mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: net/sched/act_meta_skbprio.c:43:25: sparse: sparse: cast to restricted __be32
Date: Thu, 14 Dec 2023 12:59:14 +0800	[thread overview]
Message-ID: <202312141253.4bTcywD4-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-12-14  5:15 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=202312141253.4bTcywD4-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jhs@mojatatu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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

all inboxes | Powered by JetHome®