linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Roberto Sassu <roberto.sassu@huawei.com>
Cc: kbuild-all@lists.01.org, linux-integrity@vger.kernel.org,
	Mimi Zohar <zohar@linux.ibm.com>
Subject: [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: Tue, 1 Jun 2021 03:12:43 +0800	[thread overview]
Message-ID: <202106010341.QAuocMQz-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-05-31 19:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202106010341.QAuocMQz-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-integrity@vger.kernel.org \
    --cc=roberto.sassu@huawei.com \
    --cc=zohar@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).