linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [integrity:next-integrity-testing 18/20] security/integrity/ima/ima_template_lib.c:623:5: warning: no previous prototype for 'ima_eventinodexattrs_init_common'
@ 2021-05-31 19:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-31 19:12 UTC (permalink / raw)
  To: Roberto Sassu; +Cc: kbuild-all, linux-integrity, Mimi Zohar

[-- Attachment #1: Type: text/plain, Size: 2618 bytes --]

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@intel.com>

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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26414 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-31 19:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-31 19:12 [integrity:next-integrity-testing 18/20] security/integrity/ima/ima_template_lib.c:623:5: warning: no previous prototype for 'ima_eventinodexattrs_init_common' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).