* [sashal-stable:pending-4.19 154/244] arch/arm/kernel/sys_oabi-compat.c:331:10: error: implicit declaration of function 'set_user_sigmask'
@ 2021-09-19 14:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-19 14:28 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 10222 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-4.19
head: d4908a6dadb0cbfac87a1fa8a61c92053adac759
commit: d5c35cd6aca3007759e14b1e9558998b5085b4a1 [154/244] ARM: 9109/1: oabi-compat: add epoll_pwait handler
config: arm-randconfig-c002-20210919 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=d5c35cd6aca3007759e14b1e9558998b5085b4a1
git remote add sashal-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-stable pending-4.19
git checkout d5c35cd6aca3007759e14b1e9558998b5085b4a1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
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 >>):
arch/arm/kernel/sys_oabi-compat.c:145:17: warning: no previous prototype for function 'sys_oabi_stat64' [-Wmissing-prototypes]
asmlinkage long sys_oabi_stat64(const char __user * filename,
^
arch/arm/kernel/sys_oabi-compat.c:145:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage long sys_oabi_stat64(const char __user * filename,
^
static
arch/arm/kernel/sys_oabi-compat.c:155:17: warning: no previous prototype for function 'sys_oabi_lstat64' [-Wmissing-prototypes]
asmlinkage long sys_oabi_lstat64(const char __user * filename,
^
arch/arm/kernel/sys_oabi-compat.c:155:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage long sys_oabi_lstat64(const char __user * filename,
^
static
arch/arm/kernel/sys_oabi-compat.c:165:17: warning: no previous prototype for function 'sys_oabi_fstat64' [-Wmissing-prototypes]
asmlinkage long sys_oabi_fstat64(unsigned long fd,
^
arch/arm/kernel/sys_oabi-compat.c:165:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage long sys_oabi_fstat64(unsigned long fd,
^
static
arch/arm/kernel/sys_oabi-compat.c:175:17: warning: no previous prototype for function 'sys_oabi_fstatat64' [-Wmissing-prototypes]
asmlinkage long sys_oabi_fstatat64(int dfd,
^
arch/arm/kernel/sys_oabi-compat.c:175:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage long sys_oabi_fstatat64(int dfd,
^
static
arch/arm/kernel/sys_oabi-compat.c:232:17: warning: no previous prototype for function 'sys_oabi_fcntl64' [-Wmissing-prototypes]
asmlinkage long sys_oabi_fcntl64(unsigned int fd, unsigned int cmd,
^
arch/arm/kernel/sys_oabi-compat.c:232:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage long sys_oabi_fcntl64(unsigned int fd, unsigned int cmd,
^
static
arch/arm/kernel/sys_oabi-compat.c:254:17: warning: no previous prototype for function 'sys_oabi_epoll_ctl' [-Wmissing-prototypes]
asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd,
^
arch/arm/kernel/sys_oabi-compat.c:254:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd,
^
static
>> arch/arm/kernel/sys_oabi-compat.c:331:10: error: implicit declaration of function 'set_user_sigmask' [-Werror,-Wimplicit-function-declaration]
error = set_user_sigmask(sigmask, sigsetsize);
^
arch/arm/kernel/sys_oabi-compat.c:331:10: note: did you mean 'set_restore_sigmask'?
include/linux/sched/signal.h:415:20: note: 'set_restore_sigmask' declared here
static inline void set_restore_sigmask(void)
^
>> arch/arm/kernel/sys_oabi-compat.c:336:2: error: implicit declaration of function 'restore_saved_sigmask_unless' [-Werror,-Wimplicit-function-declaration]
restore_saved_sigmask_unless(error == -EINTR);
^
arch/arm/kernel/sys_oabi-compat.c:336:2: note: did you mean 'restore_saved_sigmask'?
include/linux/sched/signal.h:476:20: note: 'restore_saved_sigmask' declared here
static inline void restore_saved_sigmask(void)
^
arch/arm/kernel/sys_oabi-compat.c:340:2: error: #endif without #if
#endif
^
arch/arm/kernel/sys_oabi-compat.c:349:17: warning: no previous prototype for function 'sys_oabi_semtimedop' [-Wmissing-prototypes]
asmlinkage long sys_oabi_semtimedop(int semid,
^
arch/arm/kernel/sys_oabi-compat.c:349:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage long sys_oabi_semtimedop(int semid,
^
static
arch/arm/kernel/sys_oabi-compat.c:392:17: warning: no previous prototype for function 'sys_oabi_semop' [-Wmissing-prototypes]
asmlinkage long sys_oabi_semop(int semid, struct oabi_sembuf __user *tsops,
^
arch/arm/kernel/sys_oabi-compat.c:392:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage long sys_oabi_semop(int semid, struct oabi_sembuf __user *tsops,
^
static
arch/arm/kernel/sys_oabi-compat.c:398:16: warning: no previous prototype for function 'sys_oabi_ipc' [-Wmissing-prototypes]
asmlinkage int sys_oabi_ipc(uint call, int first, int second, int third,
^
arch/arm/kernel/sys_oabi-compat.c:398:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage int sys_oabi_ipc(uint call, int first, int second, int third,
^
static
arch/arm/kernel/sys_oabi-compat.c:416:17: warning: no previous prototype for function 'sys_oabi_bind' [-Wmissing-prototypes]
asmlinkage long sys_oabi_bind(int fd, struct sockaddr __user *addr, int addrlen)
^
arch/arm/kernel/sys_oabi-compat.c:416:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage long sys_oabi_bind(int fd, struct sockaddr __user *addr, int addrlen)
^
static
arch/arm/kernel/sys_oabi-compat.c:426:17: warning: no previous prototype for function 'sys_oabi_connect' [-Wmissing-prototypes]
asmlinkage long sys_oabi_connect(int fd, struct sockaddr __user *addr, int addrlen)
^
arch/arm/kernel/sys_oabi-compat.c:426:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage long sys_oabi_connect(int fd, struct sockaddr __user *addr, int addrlen)
^
static
arch/arm/kernel/sys_oabi-compat.c:436:17: warning: no previous prototype for function 'sys_oabi_sendto' [-Wmissing-prototypes]
asmlinkage long sys_oabi_sendto(int fd, void __user *buff,
^
arch/arm/kernel/sys_oabi-compat.c:436:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage long sys_oabi_sendto(int fd, void __user *buff,
^
static
arch/arm/kernel/sys_oabi-compat.c:449:17: warning: no previous prototype for function 'sys_oabi_sendmsg' [-Wmissing-prototypes]
asmlinkage long sys_oabi_sendmsg(int fd, struct user_msghdr __user *msg, unsigned flags)
^
arch/arm/kernel/sys_oabi-compat.c:449:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage long sys_oabi_sendmsg(int fd, struct user_msghdr __user *msg, unsigned flags)
^
static
arch/arm/kernel/sys_oabi-compat.c:475:17: warning: no previous prototype for function 'sys_oabi_socketcall' [-Wmissing-prototypes]
asmlinkage long sys_oabi_socketcall(int call, unsigned long __user *args)
^
arch/arm/kernel/sys_oabi-compat.c:475:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage long sys_oabi_socketcall(int call, unsigned long __user *args)
^
static
14 warnings and 3 errors generated.
vim +/set_user_sigmask +331 arch/arm/kernel/sys_oabi-compat.c
315
316 /*
317 * Implement the event wait interface for the eventpoll file. It is the kernel
318 * part of the user space epoll_pwait(2).
319 */
320 SYSCALL_DEFINE6(oabi_epoll_pwait, int, epfd,
321 struct oabi_epoll_event __user *, events, int, maxevents,
322 int, timeout, const sigset_t __user *, sigmask,
323 size_t, sigsetsize)
324 {
325 int error;
326
327 /*
328 * If the caller wants a certain signal mask to be set during the wait,
329 * we apply it here.
330 */
> 331 error = set_user_sigmask(sigmask, sigsetsize);
332 if (error)
333 return error;
334
335 error = do_oabi_epoll_wait(epfd, events, maxevents, timeout);
> 336 restore_saved_sigmask_unless(error == -EINTR);
337
338 return error;
339 }
340 #endif
341
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 25995 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-19 14:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-19 14:28 [sashal-stable:pending-4.19 154/244] arch/arm/kernel/sys_oabi-compat.c:331:10: error: implicit declaration of function 'set_user_sigmask' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.