All of lore.kernel.org
 help / color / mirror / Atom feed
* [cschaufler:next 1/3] security/smack/smack_lsm.c:3821:26: error: 'struct sk_buff' has no member named 'secmark'; did you mean
@ 2020-09-13  0:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-09-13  0:30 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/cschaufler/smack-next next
head:   322dd63c7f98315b5794653bc582d109841219ae
commit: 36be81293dbe35aca487917c2d76941bf734d2ad [1/3] Smack: Consolidate uses of secmark into a function
config: arm-randconfig-r001-20200911 (attached as .config)
compiler: arm-linux-gnueabi-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
        git checkout 36be81293dbe35aca487917c2d76941bf734d2ad
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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

All error/warnings (new ones prefixed by >>):

   security/smack/smack_lsm.c: In function 'smack_from_skb':
>> security/smack/smack_lsm.c:3821:26: error: 'struct sk_buff' has no member named 'secmark'; did you mean 'mark'?
    3821 |  if (skb == NULL || skb->secmark == 0)
         |                          ^~~~~~~
         |                          mark
   security/smack/smack_lsm.c:3824:31: error: 'struct sk_buff' has no member named 'secmark'; did you mean 'mark'?
    3824 |  return smack_from_secid(skb->secmark);
         |                               ^~~~~~~
         |                               mark
>> security/smack/smack_lsm.c:3825:1: warning: control reaches end of non-void function [-Wreturn-type]
    3825 | }
         | ^

# https://github.com/cschaufler/smack-next/commit/36be81293dbe35aca487917c2d76941bf734d2ad
git remote add cschaufler https://github.com/cschaufler/smack-next
git fetch --no-tags cschaufler next
git checkout 36be81293dbe35aca487917c2d76941bf734d2ad
vim +3821 security/smack/smack_lsm.c

  3812	
  3813	/**
  3814	 * smack_from_skb - Smack data from the secmark in an skb
  3815	 * @skb: packet
  3816	 *
  3817	 * Returns smack_known of the secmark or NULL if that won't work.
  3818	 */
  3819	static struct smack_known *smack_from_skb(struct sk_buff *skb)
  3820	{
> 3821		if (skb == NULL || skb->secmark == 0)
  3822			return NULL;
  3823	
  3824		return smack_from_secid(skb->secmark);
> 3825	}
  3826	

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

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

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

only message in thread, other threads:[~2020-09-13  0:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-13  0:30 [cschaufler:next 1/3] security/smack/smack_lsm.c:3821:26: error: 'struct sk_buff' has no member named 'secmark'; did you mean kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.