Skip to content

Commit c679134

Browse files
nramasmimizohar
authored andcommitted
ima: Fix warning: no previous prototype for function 'ima_add_kexec_buffer'
The function prototype for ima_add_kexec_buffer() is present in 'linux/ima.h'. But this header file is not included in ima_kexec.c where the function is implemented. This results in the following compiler warning when "-Wmissing-prototypes" flag is turned on: security/integrity/ima/ima_kexec.c:81:6: warning: no previous prototype for function 'ima_add_kexec_buffer' [-Wmissing-prototypes] Include the header file 'linux/ima.h' in ima_kexec.c to fix the compiler warning. Fixes: dce92f6 (arm64: Enable passing IMA log to next kernel on kexec) Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Lakshmi Ramasubramanian <nramas@linux.microsoft.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
1 parent 55748ac commit c679134

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

security/integrity/ima/ima_kexec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/vmalloc.h>
1212
#include <linux/kexec.h>
1313
#include <linux/of.h>
14+
#include <linux/ima.h>
1415
#include "ima.h"
1516

1617
#ifdef CONFIG_IMA_KEXEC

0 commit comments

Comments
 (0)