Re: [PATCH -next] printk/index: Fix -Wunused-function warning

From: Petr Mladek
Date: Fri Aug 27 2021 - 10:47:40 EST


On Wed 2021-08-04 21:01:05, YueHaibing wrote:
> If CONFIG_MODULES is n, we got this:
>
> kernel/printk/index.c:146:13: warning: ‘pi_remove_file’ defined but not used [-Wunused-function]
>
> Move it inside #ifdef block to fix this warning.
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

The patch has been committed into printk/linux.git,
branch for-5.15-printk-index.

Best Regards,
Petr