On Wed, Jul 09, 2025 at 06:02:23PM +0200, Gabriele Monaco wrote:
> Was just running tests after rebasing and I received a kernel bot
> warning from an unlikely build without CONFIG_PRINTK [1].
> 
> >> include/linux/printk.h:218:20: warning: no previous prototype for
> function 'vprintk_deferred' [-Wmissing-prototypes]
>      218 | __printf(1, 0) int vprintk_deferred(const char *fmt, va_list
> args)
>          |                    ^
>    include/linux/printk.h:218:16: note: declare 'static' if the
> function is not intended to be used outside of this translation unit
>      218 | __printf(1, 0) int vprintk_deferred(const char *fmt, va_list
> args)
>          |                ^
>          |                static
>    1 warning generated.

Arg, I have vague recollection that I fixed this one already.

> I believe this ought to be static:
> 
> +static inline __printf(1, 0) int vprintk_deferred(const char *fmt,
> +                                                va_list args)
> +{
> +     return 0;
> +}

Yes, will do. Thanks for the info.

Best regards,
Nam

Reply via email to