linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Daniel Berlin <dberlin@dberlin.org>
Cc: oe-kbuild-all@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org, Janne Grunau <j@jannau.net>
Subject: [arm-platforms:kvm-arm64/mmu-pgt 773/874] arch/arc/include/uapi/asm/swab.h:28:9: warning: 'txchain' is used uninitialized
Date: Sun, 19 May 2024 02:19:33 +0800	[thread overview]
Message-ID: <202405190213.5s1Al3aa-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/mmu-pgt
head:   1ed29f79e7c6441ef29c25a43d7c82d91e884dcc
commit: e529bcaa17060f516d1e4f345ea460ea206317d1 [773/874] [brcmfmac] Compute number of available antennas and set it in wiphy structure.
config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20240519/202405190213.5s1Al3aa-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240519/202405190213.5s1Al3aa-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/202405190213.5s1Al3aa-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/swab.h:8,
                    from include/linux/swab.h:5,
                    from include/uapi/linux/byteorder/big_endian.h:14,
                    from include/linux/byteorder/big_endian.h:5,
                    from arch/arc/include/uapi/asm/byteorder.h:14,
                    from include/asm-generic/bitops/le.h:6,
                    from arch/arc/include/asm/bitops.h:192,
                    from include/linux/bitops.h:68,
                    from include/linux/kernel.h:23,
                    from drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:8:
   In function '__fswab32',
       inlined from 'brcmf_fil_iovar_int_get' at drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h:123:19,
       inlined from 'brcmf_setup_wiphybands' at drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:7359:8:
>> arch/arc/include/uapi/asm/swab.h:28:9: warning: 'txchain' is used uninitialized [-Wuninitialized]
      28 |         __asm__(                        \
         |         ^~~~~~~
   include/uapi/linux/swab.h:60:16: note: in expansion of macro '__arch_swab32'
      60 |         return __arch_swab32(val);
         |                ^~~~~~~~~~~~~
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c: In function 'brcmf_setup_wiphybands':
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:7316:13: note: 'txchain' was declared here
    7316 |         u32 txchain;
         |             ^~~~~~~


vim +/txchain +28 arch/arc/include/uapi/asm/swab.h

ca15c8ecd588dd arch/arc/include/asm/swab.h Vineet Gupta 2013-01-18  24  
ca15c8ecd588dd arch/arc/include/asm/swab.h Vineet Gupta 2013-01-18  25  #define __arch_swab32(x)		\
ca15c8ecd588dd arch/arc/include/asm/swab.h Vineet Gupta 2013-01-18  26  ({					\
ca15c8ecd588dd arch/arc/include/asm/swab.h Vineet Gupta 2013-01-18  27  	unsigned int tmp = x;		\
ca15c8ecd588dd arch/arc/include/asm/swab.h Vineet Gupta 2013-01-18 @28  	__asm__(			\
ca15c8ecd588dd arch/arc/include/asm/swab.h Vineet Gupta 2013-01-18  29  	"	swape	%0, %1	\n"	\
ca15c8ecd588dd arch/arc/include/asm/swab.h Vineet Gupta 2013-01-18  30  	: "=r" (tmp)			\
ca15c8ecd588dd arch/arc/include/asm/swab.h Vineet Gupta 2013-01-18  31  	: "r" (tmp));			\
ca15c8ecd588dd arch/arc/include/asm/swab.h Vineet Gupta 2013-01-18  32  	tmp;				\
ca15c8ecd588dd arch/arc/include/asm/swab.h Vineet Gupta 2013-01-18  33  })
ca15c8ecd588dd arch/arc/include/asm/swab.h Vineet Gupta 2013-01-18  34  

:::::: The code at line 28 was first introduced by commit
:::::: ca15c8ecd588dda4377d18d6d27bc1e87b4177cb ARC: Checksum/byteorder/swab routines

:::::: TO: Vineet Gupta <vgupta@synopsys.com>
:::::: CC: Vineet Gupta <vgupta@synopsys.com>

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

                 reply	other threads:[~2024-05-18 18:20 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=202405190213.5s1Al3aa-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dberlin@dberlin.org \
    --cc=j@jannau.net \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).