mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: "Paul E. McKenney" <paulmck@linux.ibm.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org
Subject: [rcu:test 70/72] arch/alpha/include/asm/pal.h:57:17: warning: 'flags' may be used uninitialized in this function
Date: Fri, 31 May 2019 00:45:05 +0800	[thread overview]
Message-ID: <201905310005.ynWIayyQ%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git test
head:   77ef1b88654653681661fb0ce7cc1d6e712a409f
commit: 6ad9e6bcf543a758d4b7323cb2909ebd66f39ee4 [70/72] fixup! rcu/nocb: Avoid ->nocb_lock capture by corresponding CPU
config: alpha-allmodconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 6ad9e6bcf543a758d4b7323cb2909ebd66f39ee4
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=alpha 

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

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   In file included from arch/alpha/include/asm/bug.h:8:0,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:12,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/alpha/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from kernel/rcu/tree.c:23:
   kernel/rcu/tree_plugin.h: In function 'do_nocb_deferred_wakeup_common':
>> arch/alpha/include/asm/pal.h:57:17: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized]
     register TYPE0 __r16 __asm__("$16") = arg0;  \
                    ^~~~~
   In file included from kernel/rcu/tree.c:3519:0:
   kernel/rcu/tree_plugin.h:1883:16: note: 'flags' was declared here
     unsigned long flags;
                   ^~~~~
   In file included from arch/alpha/include/asm/bug.h:8:0,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:12,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/alpha/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from kernel/rcu/tree.c:23:
   kernel/rcu/tree_plugin.h: In function 'rcu_nocb_gp_kthread':
>> arch/alpha/include/asm/pal.h:57:17: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized]
     register TYPE0 __r16 __asm__("$16") = arg0;  \
                    ^~~~~
   In file included from kernel/rcu/tree.c:3519:0:
   kernel/rcu/tree_plugin.h:1721:16: note: 'flags' was declared here
     unsigned long flags;
                   ^~~~~
--
   In file included from arch/alpha/include/asm/bug.h:8:0,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:12,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/alpha/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from kernel//rcu/tree.c:23:
   kernel//rcu/tree_plugin.h: In function 'do_nocb_deferred_wakeup_common':
>> arch/alpha/include/asm/pal.h:57:17: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized]
     register TYPE0 __r16 __asm__("$16") = arg0;  \
                    ^~~~~
   In file included from kernel//rcu/tree.c:3519:0:
   kernel//rcu/tree_plugin.h:1883:16: note: 'flags' was declared here
     unsigned long flags;
                   ^~~~~
   In file included from arch/alpha/include/asm/bug.h:8:0,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:12,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/alpha/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from kernel//rcu/tree.c:23:
   kernel//rcu/tree_plugin.h: In function 'rcu_nocb_gp_kthread':
>> arch/alpha/include/asm/pal.h:57:17: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized]
     register TYPE0 __r16 __asm__("$16") = arg0;  \
                    ^~~~~
   In file included from kernel//rcu/tree.c:3519:0:
   kernel//rcu/tree_plugin.h:1721:16: note: 'flags' was declared here
     unsigned long flags;
                   ^~~~~

vim +/flags +57 arch/alpha/include/asm/pal.h

ec221208 David Howells 2012-03-28  52  
ec221208 David Howells 2012-03-28  53  #define __CALL_PAL_RW1(NAME, RTYPE, TYPE0)			\
ec221208 David Howells 2012-03-28  54  extern inline RTYPE NAME(TYPE0 arg0)				\
ec221208 David Howells 2012-03-28  55  {								\
ec221208 David Howells 2012-03-28  56  	register RTYPE __r0 __asm__("$0");			\
ec221208 David Howells 2012-03-28 @57  	register TYPE0 __r16 __asm__("$16") = arg0;		\
ec221208 David Howells 2012-03-28  58  	__asm__ __volatile__(					\
ec221208 David Howells 2012-03-28  59  		"call_pal %2 # "#NAME				\
ec221208 David Howells 2012-03-28  60  		: "=r"(__r16), "=r"(__r0)			\
ec221208 David Howells 2012-03-28  61  		: "i"(PAL_ ## NAME), "0"(__r16)			\
ec221208 David Howells 2012-03-28  62  		: "$1", "$22", "$23", "$24", "$25");		\
ec221208 David Howells 2012-03-28  63  	return __r0;						\
ec221208 David Howells 2012-03-28  64  }
ec221208 David Howells 2012-03-28  65  

:::::: The code at line 57 was first introduced by commit
:::::: ec2212088c42ff7d1362629ec26dda4f3e8bdad3 Disintegrate asm/system.h for Alpha

:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: David Howells <dhowells@redhat.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

                 reply	other threads:[~2019-05-30 16:45 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=201905310005.ynWIayyQ%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulmck@linux.ibm.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

all inboxes | Powered by JetHome®