[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f5579d401738d5c72b359a158c825e5c2bc3e746.camel@linux.microsoft.com>
Date: Wed, 09 Jun 2021 07:26:43 -0700
From: nramas <nramas@...ux.microsoft.com>
To: kernel test robot <lkp@...el.com>
Cc: kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
linux-kernel@...r.kernel.org, Rob Herring <robh@...nel.org>,
Prakhar Srivastava <prsriva@...ux.microsoft.com>,
Thiago Jung Bauermann <bauerman@...ux.ibm.com>
Subject: Re: security/integrity/ima/ima_kexec.c:81:6: warning: no previous
prototype for function 'ima_add_kexec_buffer'
On Wed, 2021-06-09 at 12:10 +0800, kernel test robot wrote:
Hi,
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross
> ARCH=arm64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@...el.com>
>
> All warnings (new ones prefixed by >>):
>
> > > security/integrity/ima/ima_kexec.c:81:6: warning: no previous
> > > prototype for function 'ima_add_kexec_buffer' [-Wmissing-
> > > prototypes]
> void ima_add_kexec_buffer(struct kimage *image)
> ^
"linux/ima.h" needs to be included in
"security/integrity/ima/ima_kexec.c" to fix the above warning.
Thanks for reporting. I will post a patch shortly.
-lakshmi
> security/integrity/ima/ima_kexec.c:81:1: note: declare 'static' if
> the function is not intended to be used outside of this translation
> unit
> void ima_add_kexec_buffer(struct kimage *image)
> ^
> static
> 1 warning generated.
Powered by blists - more mailing lists