Project

General

Profile

Actions

Feature #16418

open

ddi_fm_ereport_post(9F) could use sentinel attribute

Added by Jason King 30 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
kernel
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

Since ddi_fm_ereport_post(9F) requires a terminating NULL at the end of its argument list, we could annotate the function with __sentinel(0). This way any invocations missing the terminating NULL will generate a compiler error (instead of crashing in the best case, doing strange things otherwise).

No data to display

Actions

Also available in: Atom PDF