linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Guo Ren <guoren@linux.alibaba.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 14776/15760] arch/csky/include/asm/uaccess.h:158:2: warning: 'retval' is used uninitialized in this function
Date: Tue, 4 May 2021 05:25:51 +0800	[thread overview]
Message-ID: <202105040545.WOdbaNel-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   fd3ecedb365cc7c80040ad7c030a60b420a85711
commit: e58a41c2226847fb1446f3942dc1b55af8acfe02 [14776/15760] csky: uaccess.h: Coding convention with asm generic
config: csky-randconfig-r005-20210503 (attached as .config)
compiler: csky-linux-gcc (GCC) 9.3.0
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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e58a41c2226847fb1446f3942dc1b55af8acfe02
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout e58a41c2226847fb1446f3942dc1b55af8acfe02
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=csky 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/huge_mm.h:8,
                    from include/linux/mm.h:707,
                    from include/linux/mman.h:5,
                    from lib/test_user_copy.c:13:
   arch/csky/include/asm/uaccess.h: In function '__get_user_fn.constprop':
>> arch/csky/include/asm/uaccess.h:158:2: warning: 'retval' is used uninitialized in this function [-Wuninitialized]
     158 |  __asm__ __volatile__(    \
         |  ^~~~~~~
   arch/csky/include/asm/uaccess.h:181:6: note: 'retval' was declared here
     181 |  int retval;
         |      ^~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for LOCKDEP
   Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
   Selected by
   - LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
   - DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT


vim +/retval +158 arch/csky/include/asm/uaccess.h

   152	
   153	#define __get_user_asm_64(x, ptr, err)			\
   154	do {							\
   155		int tmp;					\
   156		int errcode;					\
   157								\
 > 158		__asm__ __volatile__(				\
   159		"1:   ldw     %3, (%2, 0)     \n"		\
   160		"     stw     %3, (%1, 0)     \n"		\
   161		"2:   ldw     %3, (%2, 4)     \n"		\
   162		"     stw     %3, (%1, 4)     \n"		\
   163		"     br      4f              \n"		\
   164		"3:   mov     %0, %4          \n"		\
   165		"     br      4f              \n"		\
   166		".section __ex_table, \"a\"   \n"		\
   167		".align   2                   \n"		\
   168		".long    1b, 3b              \n"		\
   169		".long    2b, 3b              \n"		\
   170		".previous                    \n"		\
   171		"4:                           \n"		\
   172		: "=r"(err), "=r"(x), "=r"(ptr),		\
   173		  "=r"(tmp), "=r"(errcode)			\
   174		: "0"(err), "1"(x), "2"(ptr), "3"(0),		\
   175		  "4"(-EFAULT)					\
   176		: "memory");					\
   177	} while (0)
   178	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

                 reply	other threads:[~2021-05-03 21:26 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=202105040545.WOdbaNel-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=guoren@linux.alibaba.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    /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).