[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202312141253.4bTcywD4-lkp@intel.com>
Date: Thu, 14 Dec 2023 12:59:14 +0800
From: kernel test robot <lkp@...el.com>
To: Jamal Hadi Salim <jhs@...atatu.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: net/sched/act_meta_skbprio.c:43:25: sparse: sparse: cast to
restricted __be32
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5bd7ef53ffe5ca580e93e74eb8c81ed191ddc4bd
commit: 200e10f46936d95a553414f249cefb765194b235 Support to encoding decoding skb prio on IFE action
date: 8 years ago
config: i386-randconfig-063-20230903 (https://download.01.org/0day-ci/archive/20231214/202312141253.4bTcywD4-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231214/202312141253.4bTcywD4-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312141253.4bTcywD4-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> net/sched/act_meta_skbprio.c:43:25: sparse: sparse: cast to restricted __be32
>> net/sched/act_meta_skbprio.c:43:25: sparse: sparse: cast to restricted __be32
>> net/sched/act_meta_skbprio.c:43:25: sparse: sparse: cast to restricted __be32
>> net/sched/act_meta_skbprio.c:43:25: sparse: sparse: cast to restricted __be32
>> net/sched/act_meta_skbprio.c:43:25: sparse: sparse: cast to restricted __be32
>> net/sched/act_meta_skbprio.c:43:25: sparse: sparse: cast to restricted __be32
In file included from include/linux/kernel.h:11,
from net/sched/act_meta_skbprio.c:14:
include/linux/log2.h:22:1: warning: ignoring attribute 'noreturn' because it conflicts with attribute 'const' [-Wattributes]
22 | int ____ilog2_NaN(void);
| ^~~
vim +43 net/sched/act_meta_skbprio.c
38
39 static int skbprio_decode(struct sk_buff *skb, void *data, u16 len)
40 {
41 u32 ifeprio = *(u32 *)data;
42
> 43 skb->priority = ntohl(ifeprio);
44 return 0;
45 }
46
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists