[PATCH -next] integrity: Make function integrity_add_key() static

Mimi Zohar zohar at linux.ibm.com
Fri Feb 12 16:21:43 UTC 2021


[Cc: linux-integrity]

On Wed, 2021-02-10 at 08:01 +0000, Wei Yongjun wrote:
> The sparse tool complains as follows:
> 
> security/integrity/digsig.c:146:12: warning:
>  symbol 'integrity_add_key' was not declared. Should it be static?
> 
> This function is not used outside of digsig.c, so this
> commit marks it static.
> 
> Reported-by: Hulk Robot <hulkci at huawei.com>
> Signed-off-by: Wei Yongjun <weiyongjun1 at huawei.com>

Thanks!   The patch is now queued.
  
Mimi



More information about the Linux-security-module-archive mailing list