[integrity:next-integrity-testing 18/20] security/integrity/ima/ima_template_lib.c:623:5: warning: no previous prototype for 'ima_eventinodexattrs_init_common'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-integrity-testing
head:   845885f2e585faac4f3814d27f503f50ab766d6c
commit: 875cccb5479e321effab74268e27befb47282303 [18/20] ima: Define new template fields xattrnames, xattrlengths and xattrvalues
config: openrisc-randconfig-r024-20210531 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git/commit/?id=875cccb5479e321effab74268e27befb47282303
        git remote add integrity https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git
        git fetch --no-tags integrity next-integrity-testing
        git checkout 875cccb5479e321effab74268e27befb47282303
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> security/integrity/ima/ima_template_lib.c:623:5: warning: no previous prototype for 'ima_eventinodexattrs_init_common' [-Wmissing-prototypes]
     623 | int ima_eventinodexattrs_init_common(struct ima_event_data *event_data,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/ima_eventinodexattrs_init_common +623 security/integrity/ima/ima_template_lib.c

   622	
 > 623	int ima_eventinodexattrs_init_common(struct ima_event_data *event_data,
   624					     struct ima_field_data *field_data,
   625					     char type)
   626	{
   627		u8 *buffer = NULL;
   628		int rc;
   629	
   630		if (!event_data->file)
   631			return 0;
   632	
   633		rc = evm_read_protected_xattrs(file_dentry(event_data->file), NULL, 0,
   634					       type, ima_canonical_fmt);
   635		if (rc < 0)
   636			return 0;
   637	
   638		buffer = kmalloc(rc, GFP_KERNEL);
   639		if (!buffer)
   640			return 0;
   641	
   642		rc = evm_read_protected_xattrs(file_dentry(event_data->file), buffer,
   643					       rc, type, ima_canonical_fmt);
   644		if (rc < 0) {
   645			rc = 0;
   646			goto out;
   647		}
   648	
   649		rc = ima_write_template_field_data((char *)buffer, rc, DATA_FMT_HEX,
   650						   field_data);
   651	out:
   652		kfree(buffer);
   653		return rc;
   654	}
   655	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux