public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Rakesh Sankaranarayanan <rakesh.sankaranarayanan@microchip.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH net-next 01/11] net: dsa: microchip: lan937x: add cascade tailtag
Date: Sat, 4 Feb 2023 16:35:23 +0800	[thread overview]
Message-ID: <202302041634.D4xvmQxf-lkp@intel.com> (raw)
In-Reply-To: <20230202125930.271740-2-rakesh.sankaranarayanan@microchip.com>

Hi Rakesh,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on net-next/master]

url:    https://github.com/intel-lab-lkp/linux/commits/Rakesh-Sankaranarayanan/net-dsa-microchip-lan937x-add-cascade-tailtag/20230202-210316
patch link:    https://lore.kernel.org/r/20230202125930.271740-2-rakesh.sankaranarayanan%40microchip.com
patch subject: [RFC PATCH net-next 01/11] net: dsa: microchip: lan937x: add cascade tailtag
config: x86_64-randconfig-a005 (https://download.01.org/0day-ci/archive/20230204/202302041634.D4xvmQxf-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://github.com/intel-lab-lkp/linux/commit/d70ada5150dd09e1036c9de8c81198b9489430b3
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Rakesh-Sankaranarayanan/net-dsa-microchip-lan937x-add-cascade-tailtag/20230202-210316
        git checkout d70ada5150dd09e1036c9de8c81198b9489430b3
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash net/dsa/

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

All warnings (new ones prefixed by >>):

>> net/dsa/tag_ksz.c:488:2: warning: variable 'val' is uninitialized when used here [-Wuninitialized]
           val |= BIT((dp->index + (8 * dp->ds->index)));
           ^~~
   net/dsa/tag_ksz.c:481:9: note: initialize the variable 'val' to silence this warning
           u32 val;
                  ^
                   = 0
   1 warning generated.


vim +/val +488 net/dsa/tag_ksz.c

   454	
   455	/* For xmit, 3/7 bytes are added before FCS.
   456	 * ---------------------------------------------------------------------------
   457	 * DA(6bytes)|SA(6bytes)|....|Data(nbytes)|ts(4bytes)|tag0(1byte)|tag1(1byte)|
   458	 * tag2(1byte)|FCS(4bytes)
   459	 * ---------------------------------------------------------------------------
   460	 * ts   : time stamp (Present only if PTP is enabled in the Hardware)
   461	 * tag0 : represents tag override, lookup and valid
   462	 * tag1 : each bit represents destination port map through switch 2
   463	 *	  (eg, 0x01=port1, 0x02=port2, 0x80=port8)
   464	 * tag2 : each bit represents destination port map through switch 1
   465	 *	  (eg, 0x01=port1, 0x02=port2, 0x80=port8)
   466	 *
   467	 * For rcv, 1/5 bytes is added before FCS.
   468	 * ---------------------------------------------------------------------------
   469	 * DA(6bytes)|SA(6bytes)|....|Data(nbytes)|ts(4bytes)|tag0(1byte)|FCS(4bytes)
   470	 * ---------------------------------------------------------------------------
   471	 * ts   : time stamp (Present only if bit 7 of tag0 is set)
   472	 * tag0 : zero-based value represents port
   473	 *	  (eg, 0x00=port1, 0x02=port3, 0x07=port8)
   474	 */
   475	static struct sk_buff *lan937x_cascade_xmit(struct sk_buff *skb,
   476						    struct net_device *dev)
   477	{
   478		struct dsa_port *dp = dsa_slave_to_port(dev);
   479		const struct ethhdr *hdr = eth_hdr(skb);
   480		__be32 *tag;
   481		u32 val;
   482	
   483		if (skb->ip_summed == CHECKSUM_PARTIAL && skb_checksum_help(skb))
   484			return NULL;
   485	
   486		tag = skb_put(skb, LAN937X_CASCADE_TAG_LEN);
   487	
 > 488		val |= BIT((dp->index + (8 * dp->ds->index)));
   489	
   490		if (is_link_local_ether_addr(hdr->h_dest))
   491			val |= (LAN937X_TAIL_TAG_BLOCKING_OVERRIDE << 8);
   492	
   493		val |= (LAN937X_TAIL_TAG_VALID << 8);
   494	
   495		put_unaligned_be24(val, tag);
   496	
   497		return skb;
   498	}
   499	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

           reply	other threads:[~2023-02-04  8:35 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20230202125930.271740-2-rakesh.sankaranarayanan@microchip.com>]

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=202302041634.D4xvmQxf-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rakesh.sankaranarayanan@microchip.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