From: kernel test robot <lkp@intel.com>
To: Christoph Hellwig <hch@lst.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [hch-misc:um-set_fs 1/1] arch/um/include/asm/uaccess.h:53:19: error: implicit declaration of function 'get_unaligned'; did you mean 'get_cmdline'?
Date: Sat, 10 Jul 2021 00:56:37 +0800 [thread overview]
Message-ID: <202107100031.j6juKfkU-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3299 bytes --]
tree: git://git.infradead.org/users/hch/misc.git um-set_fs
head: 969a5fb627a0faf0402f8b7e211e1a6398b73736
commit: 969a5fb627a0faf0402f8b7e211e1a6398b73736 [1/1] um: remove set_fs
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc um-set_fs
git checkout 969a5fb627a0faf0402f8b7e211e1a6398b73736
# save the attached .config to linux build tree
make W=1 ARCH=um SUBARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (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:725,
from mm/maccess.c:6:
mm/maccess.c: In function 'copy_from_kernel_nofault':
>> arch/um/include/asm/uaccess.h:53:19: error: implicit declaration of function 'get_unaligned'; did you mean 'get_cmdline'? [-Werror=implicit-function-declaration]
53 | *((type *)dst) = get_unaligned((type *)(src)); \
| ^~~~~~~~~~~~~
mm/maccess.c:19:3: note: in expansion of macro '__get_kernel_nofault'
19 | __get_kernel_nofault(dst, src, type, err_label); \
| ^~~~~~~~~~~~~~~~~~~~
mm/maccess.c:31:2: note: in expansion of macro 'copy_from_kernel_nofault_loop'
31 | copy_from_kernel_nofault_loop(dst, src, size, u64, Efault);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mm/maccess.c: In function 'copy_to_kernel_nofault':
>> arch/um/include/asm/uaccess.h:60:2: error: implicit declaration of function 'put_unaligned' [-Werror=implicit-function-declaration]
60 | put_unaligned(*((type *)src), (type *)(dst)); \
| ^~~~~~~~~~~~~
mm/maccess.c:45:3: note: in expansion of macro '__put_kernel_nofault'
45 | __put_kernel_nofault(dst, src, type, err_label); \
| ^~~~~~~~~~~~~~~~~~~~
mm/maccess.c:54:2: note: in expansion of macro 'copy_to_kernel_nofault_loop'
54 | copy_to_kernel_nofault_loop(dst, src, size, u64, Efault);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +53 arch/um/include/asm/uaccess.h
50
51 #define __get_kernel_nofault(dst, src, type, err_label) \
52 do { \
> 53 *((type *)dst) = get_unaligned((type *)(src)); \
54 if (0) /* make sure the label looks used to the compiler */ \
55 goto err_label; \
56 } while (0)
57
58 #define __put_kernel_nofault(dst, src, type, err_label) \
59 do { \
> 60 put_unaligned(*((type *)src), (type *)(dst)); \
61 if (0) /* make sure the label looks used to the compiler */ \
62 goto err_label; \
63 } while (0)
64
---
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: 8682 bytes --]
reply other threads:[~2021-07-09 16:56 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=202107100031.j6juKfkU-lkp@intel.com \
--to=lkp@intel.com \
--cc=hch@lst.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®