HomeFreeBSD

LinuxKPI: add no_printk

Description

LinuxKPI: add no_printk

Add a version of no_printk(), which seems to be there to have format
string checking while never calling the printk. It seems a very weird
thing and it needs a return code and for some reason my initial
while (0) { } version hadn't worked while porting over new code but
could have been further downstream format string problems.
if (0) seems to do the job though I would have expected that to more
likely simply get optimised out without any futher format checking.

Sponsored by: The FreeBSD Foundation
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D46463

(cherry picked from commit 1847e63d63f440cfcb2f4ee2c2ee8990f0272d88)

Details

Provenance
bzAuthored on Aug 27 2024, 9:12 PM
Reviewer
emaste
Differential Revision
D46463: LinuxKPI: add no_printk
Parents
rG6dedd620cfe3: LinuxKPI: add eth_hdr()
Branches
Unknown
Tags
Unknown