linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org
Subject: [mark:arm64/uaccess/rework 17/19] arch/arm64/kernel/traps.c:443:5: warning: no previous prototype for function 'hark_foo'
Date: Sat, 9 Oct 2021 10:27:41 +0800	[thread overview]
Message-ID: <202110091032.VuzgedCl-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/uaccess/rework
head:   692de878f919de31942d0d28571b5e6f32c7135e
commit: d8e501ad8a85b31fbff728b8bb17e89e58076c3d [17/19] HACK: test
config: arm64-randconfig-r035-20211008 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 30caca39f401ae17927439c0a0bd6d1b1916dd6a)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=d8e501ad8a85b31fbff728b8bb17e89e58076c3d
        git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark arm64/uaccess/rework
        git checkout d8e501ad8a85b31fbff728b8bb17e89e58076c3d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

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 >>):

>> arch/arm64/kernel/traps.c:443:5: warning: no previous prototype for function 'hark_foo' [-Wmissing-prototypes]
   int hark_foo(int __user *thing)
       ^
   arch/arm64/kernel/traps.c:443:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int hark_foo(int __user *thing)
   ^
   static 
   arch/arm64/kernel/traps.c:558:43: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
                   __user_cache_maint("dc civac", address, ret);
                                                           ^
   arch/arm64/kernel/traps.c:558:3: note: use constraint modifier "w"
                   __user_cache_maint("dc civac", address, ret);
                   ^
   arch/arm64/kernel/traps.c:540:4: note: expanded from macro '__user_cache_maint'
                           _ASM_EXTABLE_EFAULT(1b, 2b, %0)         \
                           ^
   arch/arm64/include/asm/asm-extable.h:67:2: note: expanded from macro '_ASM_EXTABLE_EFAULT'
           _ASM_EXTABLE_EFAULT_ZERO(insn, fixup, err, xzr)
           ^
   arch/arm64/include/asm/asm-extable.h:64:10: note: expanded from macro '_ASM_EXTABLE_EFAULT_ZERO'
                             "(" EX_DATA_REG(ERR, err) " | " EX_DATA_REG(ZERO, zero) ")")
                                 ^
   arch/arm64/include/asm/asm-extable.h:59:19: note: expanded from macro 'EX_DATA_REG'
           "((.L__gpr_num_" #gpr ") << " __stringify(EX_DATA_REG_##reg##_SHIFT) ")"
                            ^
   <scratch space>:12:2: note: expanded from here
   "%0"
    ^
   arch/arm64/kernel/traps.c:561:43: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
                   __user_cache_maint("dc civac", address, ret);
                                                           ^
   arch/arm64/kernel/traps.c:561:3: note: use constraint modifier "w"
                   __user_cache_maint("dc civac", address, ret);
                   ^
   arch/arm64/kernel/traps.c:540:4: note: expanded from macro '__user_cache_maint'
                           _ASM_EXTABLE_EFAULT(1b, 2b, %0)         \
                           ^
   arch/arm64/include/asm/asm-extable.h:67:2: note: expanded from macro '_ASM_EXTABLE_EFAULT'
           _ASM_EXTABLE_EFAULT_ZERO(insn, fixup, err, xzr)
           ^
   arch/arm64/include/asm/asm-extable.h:64:10: note: expanded from macro '_ASM_EXTABLE_EFAULT_ZERO'
                             "(" EX_DATA_REG(ERR, err) " | " EX_DATA_REG(ZERO, zero) ")")
                                 ^
   arch/arm64/include/asm/asm-extable.h:59:19: note: expanded from macro 'EX_DATA_REG'
           "((.L__gpr_num_" #gpr ") << " __stringify(EX_DATA_REG_##reg##_SHIFT) ")"
                            ^
   <scratch space>:23:2: note: expanded from here
   "%0"
    ^
   arch/arm64/kernel/traps.c:564:52: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
                   __user_cache_maint("sys 3, c7, c13, 1", address, ret);
                                                                    ^
   arch/arm64/kernel/traps.c:564:3: note: use constraint modifier "w"
                   __user_cache_maint("sys 3, c7, c13, 1", address, ret);
                   ^
   arch/arm64/kernel/traps.c:540:4: note: expanded from macro '__user_cache_maint'
                           _ASM_EXTABLE_EFAULT(1b, 2b, %0)         \
                           ^
   arch/arm64/include/asm/asm-extable.h:67:2: note: expanded from macro '_ASM_EXTABLE_EFAULT'
           _ASM_EXTABLE_EFAULT_ZERO(insn, fixup, err, xzr)
           ^
   arch/arm64/include/asm/asm-extable.h:64:10: note: expanded from macro '_ASM_EXTABLE_EFAULT_ZERO'
                             "(" EX_DATA_REG(ERR, err) " | " EX_DATA_REG(ZERO, zero) ")")
                                 ^
   arch/arm64/include/asm/asm-extable.h:59:19: note: expanded from macro 'EX_DATA_REG'
           "((.L__gpr_num_" #gpr ") << " __stringify(EX_DATA_REG_##reg##_SHIFT) ")"
                            ^
   <scratch space>:34:2: note: expanded from here
   "%0"
    ^
   arch/arm64/kernel/traps.c:567:52: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
                   __user_cache_maint("sys 3, c7, c12, 1", address, ret);
                                                                    ^
   arch/arm64/kernel/traps.c:567:3: note: use constraint modifier "w"
                   __user_cache_maint("sys 3, c7, c12, 1", address, ret);
                   ^
   arch/arm64/kernel/traps.c:540:4: note: expanded from macro '__user_cache_maint'
                           _ASM_EXTABLE_EFAULT(1b, 2b, %0)         \
                           ^
   arch/arm64/include/asm/asm-extable.h:67:2: note: expanded from macro '_ASM_EXTABLE_EFAULT'
           _ASM_EXTABLE_EFAULT_ZERO(insn, fixup, err, xzr)
           ^
   arch/arm64/include/asm/asm-extable.h:64:10: note: expanded from macro '_ASM_EXTABLE_EFAULT_ZERO'
                             "(" EX_DATA_REG(ERR, err) " | " EX_DATA_REG(ZERO, zero) ")")
                                 ^
   arch/arm64/include/asm/asm-extable.h:59:19: note: expanded from macro 'EX_DATA_REG'
           "((.L__gpr_num_" #gpr ") << " __stringify(EX_DATA_REG_##reg##_SHIFT) ")"
                            ^
   <scratch space>:45:2: note: expanded from here
   "%0"
    ^
   arch/arm64/kernel/traps.c:570:43: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
                   __user_cache_maint("dc civac", address, ret);
                                                           ^
   arch/arm64/kernel/traps.c:570:3: note: use constraint modifier "w"
                   __user_cache_maint("dc civac", address, ret);
                   ^
   arch/arm64/kernel/traps.c:540:4: note: expanded from macro '__user_cache_maint'
                           _ASM_EXTABLE_EFAULT(1b, 2b, %0)         \
                           ^
   arch/arm64/include/asm/asm-extable.h:67:2: note: expanded from macro '_ASM_EXTABLE_EFAULT'


vim +/hark_foo +443 arch/arm64/kernel/traps.c

   442	
 > 443	int hark_foo(int __user *thing)
   444	{
   445		int val;
   446	
   447		if (!get_user(val, thing))
   448			return val;
   449	
   450		return 0xf00fd00d;
   451	}
   452	

---
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: 34664 bytes --]

                 reply	other threads:[~2021-10-09  2:28 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=202110091032.VuzgedCl-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mark.rutland@arm.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;
as well as URLs for NNTP newsgroup(s).