Linux Integrity Measurement development
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Lakshmi Ramasubramanian <nramas@linux.microsoft.com>
Cc: kbuild-all@lists.01.org, linux-integrity@vger.kernel.org,
	Mimi Zohar <zohar@linux.ibm.com>
Subject: [integrity:next-integrity-testing 5/5] security/integrity/ima/ima_asymmetric_keys.c:53:6: error: redefinition of 'ima_init_key_queue'
Date: Sun, 5 Jan 2020 17:00:15 +0800	[thread overview]
Message-ID: <202001051708.DO90I9sl%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-integrity-testing
head:   cc3e145566e2f2b697e67f01ed973b3782ba8b83
commit: cc3e145566e2f2b697e67f01ed973b3782ba8b83 [5/5] IMA: Defined timer to free queued keys
config: x86_64-randconfig-e003-20200105 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
        git checkout cc3e145566e2f2b697e67f01ed973b3782ba8b83
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> security/integrity/ima/ima_asymmetric_keys.c:53:6: error: redefinition of 'ima_init_key_queue'
    void ima_init_key_queue(void)
         ^~~~~~~~~~~~~~~~~~
   In file included from security/integrity/ima/ima_asymmetric_keys.c:16:0:
   security/integrity/ima/ima.h:222:20: note: previous definition of 'ima_init_key_queue' was here
    static inline void ima_init_key_queue(void) {}
                       ^~~~~~~~~~~~~~~~~~
   security/integrity/ima/ima_asymmetric_keys.c:60:39: warning: 'struct ima_key_entry' declared inside parameter list will not be visible outside of this definition or declaration
    static void ima_free_key_entry(struct ima_key_entry *entry)
                                          ^~~~~~~~~~~~~
   security/integrity/ima/ima_asymmetric_keys.c: In function 'ima_free_key_entry':
   security/integrity/ima/ima_asymmetric_keys.c:63:14: error: dereferencing pointer to incomplete type 'struct ima_key_entry'
      kfree(entry->payload);
                 ^~
   security/integrity/ima/ima_asymmetric_keys.c: In function 'ima_alloc_key_entry':
   security/integrity/ima/ima_asymmetric_keys.c:76:25: error: dereferencing pointer to incomplete type 'struct ima_key_entry'
     entry = kzalloc(sizeof(*entry), GFP_KERNEL);
                            ^~~~~~
   security/integrity/ima/ima_asymmetric_keys.c:94:22: error: passing argument 1 of 'ima_free_key_entry' from incompatible pointer type [-Werror=incompatible-pointer-types]
      ima_free_key_entry(entry);
                         ^~~~~
   security/integrity/ima/ima_asymmetric_keys.c:60:13: note: expected 'struct ima_key_entry *' but argument is of type 'struct ima_key_entry *'
    static void ima_free_key_entry(struct ima_key_entry *entry)
                ^~~~~~~~~~~~~~~~~~
   security/integrity/ima/ima_asymmetric_keys.c: In function 'ima_queue_key':
   security/integrity/ima/ima_asymmetric_keys.c:119:22: error: passing argument 1 of 'ima_free_key_entry' from incompatible pointer type [-Werror=incompatible-pointer-types]
      ima_free_key_entry(entry);
                         ^~~~~
   security/integrity/ima/ima_asymmetric_keys.c:60:13: note: expected 'struct ima_key_entry *' but argument is of type 'struct ima_key_entry *'
    static void ima_free_key_entry(struct ima_key_entry *entry)
                ^~~~~~~~~~~~~~~~~~
   security/integrity/ima/ima_asymmetric_keys.c: At top level:
   security/integrity/ima/ima_asymmetric_keys.c:130:6: error: redefinition of 'ima_process_queued_keys'
    void ima_process_queued_keys(void)
         ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from security/integrity/ima/ima_asymmetric_keys.c:16:0:
   security/integrity/ima/ima.h:221:20: note: previous definition of 'ima_process_queued_keys' was here
    static inline void ima_process_queued_keys(void) {}
                       ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/timer.h:5:0,
                    from security/integrity/ima/ima_asymmetric_keys.c:14:
   security/integrity/ima/ima_asymmetric_keys.c: In function 'ima_process_queued_keys':
   include/linux/list.h:664:57: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     for (pos = list_first_entry(head, typeof(*pos), member), \
                                                            ^
   security/integrity/ima/ima_asymmetric_keys.c:156:2: note: in expansion of macro 'list_for_each_entry_safe'
     list_for_each_entry_safe(entry, tmp, &ima_keys, list) {
     ^~~~~~~~~~~~~~~~~~~~~~~~
   security/integrity/ima/ima_asymmetric_keys.c:164:22: error: passing argument 1 of 'ima_free_key_entry' from incompatible pointer type [-Werror=incompatible-pointer-types]
      ima_free_key_entry(entry);
                         ^~~~~
   security/integrity/ima/ima_asymmetric_keys.c:60:13: note: expected 'struct ima_key_entry *' but argument is of type 'struct ima_key_entry *'
    static void ima_free_key_entry(struct ima_key_entry *entry)
                ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/ima_init_key_queue +53 security/integrity/ima/ima_asymmetric_keys.c

    48	
    49	/*
    50	 * This function sets up a timer to free queued keys in case
    51	 * custom IMA policy was never loaded.
    52	 */
  > 53	void ima_init_key_queue(void)
    54	{
    55		timer_setup(&ima_key_queue_timer, ima_timer_handler, 0);
    56		mod_timer(&ima_key_queue_timer,
    57			  jiffies + msecs_to_jiffies(ima_key_queue_timeout));
    58	}
    59	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation

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

             reply	other threads:[~2020-01-05  9:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-05  9:00 kbuild test robot [this message]
2020-01-05 17:57 ` [integrity:next-integrity-testing 5/5] security/integrity/ima/ima_asymmetric_keys.c:53:6: error: redefinition of 'ima_init_key_queue' Lakshmi Ramasubramanian
2020-01-05 18:15   ` James Bottomley
2020-01-05 18:56     ` Lakshmi Ramasubramanian
2020-01-05 19:16       ` James Bottomley
2020-01-06  3:58         ` Lakshmi Ramasubramanian
2020-01-06 13:23           ` Mimi Zohar
2020-01-06 14:58           ` James Bottomley

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=202001051708.DO90I9sl%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-integrity@vger.kernel.org \
    --cc=nramas@linux.microsoft.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