[chrome-os:chromeos-5.10 8/147] drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c:106:14: warning: cast to smaller integer type 'enum mtk_vdec_hw_id' from 'const void *'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: ed87340a6d1e040dd01d1d1ae1a12f1a7e504559
commit: 792f7cde625bbc945e4b69190cbf4b0551f79878 [8/147] CHROMIUM: media: mtk-vcodec: Use component framework to manage each hardware information
config: x86_64-buildonly-randconfig-r005-20211118 (attached as .config)
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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout 792f7cde625bbc945e4b69190cbf4b0551f79878
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c:106:14: warning: cast to smaller integer type 'enum mtk_vdec_hw_id' from 'const void *' [-Wvoid-pointer-to-enum-cast]
comp_idx = (enum mtk_vdec_hw_id)of_id->data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +106 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c
76
77 static struct component_match *mtk_vcodec_match_add(
78 struct mtk_vcodec_dev *vdec_dev)
79 {
80 struct platform_device *pdev = vdec_dev->plat_dev;
81 struct component_match *match = NULL;
82 int i;
83
84 for (i = 0; i < ARRAY_SIZE(mtk_vdec_drv_ids); i++) {
85 struct device_node *comp_node;
86 enum mtk_vdec_hw_id comp_idx;
87 const struct of_device_id *of_id;
88
89 comp_node = of_find_compatible_node(NULL, NULL,
90 mtk_vdec_drv_ids[i].compatible);
91 if (!comp_node)
92 continue;
93
94 if (!of_device_is_available(comp_node)) {
95 of_node_put(comp_node);
96 dev_err(&pdev->dev, "Fail to get MMSYS node\n");
97 continue;
98 }
99
100 of_id = of_match_node(mtk_vdec_drv_ids, comp_node);
101 if (!of_id) {
102 dev_err(&pdev->dev, "Failed to get match node\n");
103 return ERR_PTR(-EINVAL);
104 }
105
> 106 comp_idx = (enum mtk_vdec_hw_id)of_id->data;
107 mtk_v4l2_debug(4, "Get component:hw_id(%d),vdec_dev(0x%p),comp_node(0x%p)\n",
108 comp_idx, vdec_dev, comp_node);
109 vdec_dev->component_node[comp_idx] = comp_node;
110
111 component_match_add_release(&pdev->dev, &match, mtk_vdec_release_of,
112 mtk_vdec_compare_of, comp_node);
113 }
114
115 return match;
116 }
117
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[android-common:android-4.19-stable 20830/24077] kernel/sys_ni.c:47:1: warning: no previous prototype for function '__ia32_compat_sys_io_getevents'
by kernel test robot
Hi Sami,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android-4.19-stable
head: 4b0d5f03427e2021375c707c6b0b1e89cb81754b
commit: 5625445e6e8452f7125be155dd2f087230078ae0 [20830/24077] ANDROID: syscalls/x86: use a weak function for IA32 compat syscalls
config: x86_64-randconfig-c007-20211118 (attached as .config)
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
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-4.19-stable
git checkout 5625445e6e8452f7125be155dd2f087230078ae0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:21:1: note: expanded from here
__ia32_sys_io_submit
^
kernel/sys_ni.c:42:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:43:1: warning: no previous prototype for function '__ia32_compat_sys_io_submit' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(io_submit);
^
arch/x86/include/asm/syscall_wrapper.h:123:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
<scratch space>:22:1: note: expanded from here
__ia32_compat_sys_io_submit
^
kernel/sys_ni.c:43:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:123:20: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
kernel/sys_ni.c:44:1: warning: no previous prototype for function '__x64_sys_io_cancel' [-Wmissing-prototypes]
COND_SYSCALL(io_cancel);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:27:1: note: expanded from here
__x64_sys_io_cancel
^
kernel/sys_ni.c:44:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:44:1: warning: no previous prototype for function '__ia32_sys_io_cancel' [-Wmissing-prototypes]
COND_SYSCALL(io_cancel);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:28:1: note: expanded from here
__ia32_sys_io_cancel
^
kernel/sys_ni.c:44:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:45:1: warning: no previous prototype for function '__x64_sys_io_getevents' [-Wmissing-prototypes]
COND_SYSCALL(io_getevents);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:29:1: note: expanded from here
__x64_sys_io_getevents
^
kernel/sys_ni.c:45:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:45:1: warning: no previous prototype for function '__ia32_sys_io_getevents' [-Wmissing-prototypes]
COND_SYSCALL(io_getevents);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:30:1: note: expanded from here
__ia32_sys_io_getevents
^
kernel/sys_ni.c:45:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:46:1: warning: no previous prototype for function '__x64_sys_io_pgetevents' [-Wmissing-prototypes]
COND_SYSCALL(io_pgetevents);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:31:1: note: expanded from here
__x64_sys_io_pgetevents
^
kernel/sys_ni.c:46:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:46:1: warning: no previous prototype for function '__ia32_sys_io_pgetevents' [-Wmissing-prototypes]
COND_SYSCALL(io_pgetevents);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:32:1: note: expanded from here
__ia32_sys_io_pgetevents
^
kernel/sys_ni.c:46:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
>> kernel/sys_ni.c:47:1: warning: no previous prototype for function '__ia32_compat_sys_io_getevents' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(io_getevents);
^
arch/x86/include/asm/syscall_wrapper.h:123:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
<scratch space>:33:1: note: expanded from here
__ia32_compat_sys_io_getevents
^
kernel/sys_ni.c:47:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:123:20: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
kernel/sys_ni.c:48:1: warning: no previous prototype for function '__ia32_compat_sys_io_pgetevents' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(io_pgetevents);
^
arch/x86/include/asm/syscall_wrapper.h:123:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
<scratch space>:38:1: note: expanded from here
__ia32_compat_sys_io_pgetevents
^
kernel/sys_ni.c:48:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:123:20: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
kernel/sys_ni.c:55:1: warning: no previous prototype for function '__x64_sys_lookup_dcookie' [-Wmissing-prototypes]
COND_SYSCALL(lookup_dcookie);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:43:1: note: expanded from here
__x64_sys_lookup_dcookie
^
kernel/sys_ni.c:55:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:55:1: warning: no previous prototype for function '__ia32_sys_lookup_dcookie' [-Wmissing-prototypes]
COND_SYSCALL(lookup_dcookie);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:44:1: note: expanded from here
__ia32_sys_lookup_dcookie
^
kernel/sys_ni.c:55:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:56:1: warning: no previous prototype for function '__ia32_compat_sys_lookup_dcookie' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(lookup_dcookie);
^
arch/x86/include/asm/syscall_wrapper.h:123:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
<scratch space>:45:1: note: expanded from here
__ia32_compat_sys_lookup_dcookie
^
kernel/sys_ni.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:123:20: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
kernel/sys_ni.c:59:1: warning: no previous prototype for function '__x64_sys_eventfd2' [-Wmissing-prototypes]
COND_SYSCALL(eventfd2);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:50:1: note: expanded from here
__x64_sys_eventfd2
^
kernel/sys_ni.c:59:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:59:1: warning: no previous prototype for function '__ia32_sys_eventfd2' [-Wmissing-prototypes]
COND_SYSCALL(eventfd2);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:51:1: note: expanded from here
__ia32_sys_eventfd2
^
kernel/sys_ni.c:59:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:62:1: warning: no previous prototype for function '__x64_sys_epoll_create1' [-Wmissing-prototypes]
COND_SYSCALL(epoll_create1);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:52:1: note: expanded from here
__x64_sys_epoll_create1
^
kernel/sys_ni.c:62:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
--
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:76:1: note: expanded from here
__ia32_sys_quotactl
^
kernel/sys_ni.c:94:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:105:1: warning: no previous prototype for function '__x64_sys_signalfd4' [-Wmissing-prototypes]
COND_SYSCALL(signalfd4);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:77:1: note: expanded from here
__x64_sys_signalfd4
^
kernel/sys_ni.c:105:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:105:1: warning: no previous prototype for function '__ia32_sys_signalfd4' [-Wmissing-prototypes]
COND_SYSCALL(signalfd4);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:78:1: note: expanded from here
__ia32_sys_signalfd4
^
kernel/sys_ni.c:105:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:106:1: warning: no previous prototype for function '__ia32_compat_sys_signalfd4' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(signalfd4);
^
arch/x86/include/asm/syscall_wrapper.h:123:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
<scratch space>:79:1: note: expanded from here
__ia32_compat_sys_signalfd4
^
kernel/sys_ni.c:106:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:123:20: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
kernel/sys_ni.c:115:1: warning: no previous prototype for function '__x64_sys_timerfd_create' [-Wmissing-prototypes]
COND_SYSCALL(timerfd_create);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:84:1: note: expanded from here
__x64_sys_timerfd_create
^
kernel/sys_ni.c:115:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:115:1: warning: no previous prototype for function '__ia32_sys_timerfd_create' [-Wmissing-prototypes]
COND_SYSCALL(timerfd_create);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:85:1: note: expanded from here
__ia32_sys_timerfd_create
^
kernel/sys_ni.c:115:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:116:1: warning: no previous prototype for function '__x64_sys_timerfd_settime' [-Wmissing-prototypes]
COND_SYSCALL(timerfd_settime);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:86:1: note: expanded from here
__x64_sys_timerfd_settime
^
kernel/sys_ni.c:116:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:116:1: warning: no previous prototype for function '__ia32_sys_timerfd_settime' [-Wmissing-prototypes]
COND_SYSCALL(timerfd_settime);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:87:1: note: expanded from here
__ia32_sys_timerfd_settime
^
kernel/sys_ni.c:116:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
>> kernel/sys_ni.c:117:1: warning: no previous prototype for function '__ia32_compat_sys_timerfd_settime' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(timerfd_settime);
^
arch/x86/include/asm/syscall_wrapper.h:123:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
<scratch space>:88:1: note: expanded from here
__ia32_compat_sys_timerfd_settime
^
kernel/sys_ni.c:117:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:123:20: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
kernel/sys_ni.c:118:1: warning: no previous prototype for function '__x64_sys_timerfd_gettime' [-Wmissing-prototypes]
COND_SYSCALL(timerfd_gettime);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:93:1: note: expanded from here
__x64_sys_timerfd_gettime
^
kernel/sys_ni.c:118:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:118:1: warning: no previous prototype for function '__ia32_sys_timerfd_gettime' [-Wmissing-prototypes]
COND_SYSCALL(timerfd_gettime);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:94:1: note: expanded from here
__ia32_sys_timerfd_gettime
^
kernel/sys_ni.c:118:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
>> kernel/sys_ni.c:119:1: warning: no previous prototype for function '__ia32_compat_sys_timerfd_gettime' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(timerfd_gettime);
^
arch/x86/include/asm/syscall_wrapper.h:123:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
<scratch space>:95:1: note: expanded from here
__ia32_compat_sys_timerfd_gettime
^
kernel/sys_ni.c:119:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:123:20: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
kernel/sys_ni.c:124:1: warning: no previous prototype for function '__x64_sys_acct' [-Wmissing-prototypes]
COND_SYSCALL(acct);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:100:1: note: expanded from here
__x64_sys_acct
^
kernel/sys_ni.c:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:124:1: warning: no previous prototype for function '__ia32_sys_acct' [-Wmissing-prototypes]
COND_SYSCALL(acct);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:101:1: note: expanded from here
__ia32_sys_acct
^
kernel/sys_ni.c:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:127:1: warning: no previous prototype for function '__x64_sys_capget' [-Wmissing-prototypes]
COND_SYSCALL(capget);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:102:1: note: expanded from here
__x64_sys_capget
^
kernel/sys_ni.c:127:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:127:1: warning: no previous prototype for function '__ia32_sys_capget' [-Wmissing-prototypes]
COND_SYSCALL(capget);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:103:1: note: expanded from here
__ia32_sys_capget
^
kernel/sys_ni.c:127:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:128:1: warning: no previous prototype for function '__x64_sys_capset' [-Wmissing-prototypes]
COND_SYSCALL(capset);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:104:1: note: expanded from here
__x64_sys_capset
^
kernel/sys_ni.c:128:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:128:1: warning: no previous prototype for function '__ia32_sys_capset' [-Wmissing-prototypes]
COND_SYSCALL(capset);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:105:1: note: expanded from here
__ia32_sys_capset
^
kernel/sys_ni.c:128:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:137:1: warning: no previous prototype for function '__x64_sys_futex' [-Wmissing-prototypes]
COND_SYSCALL(futex);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:106:1: note: expanded from here
__x64_sys_futex
^
kernel/sys_ni.c:137:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:137:1: warning: no previous prototype for function '__ia32_sys_futex' [-Wmissing-prototypes]
COND_SYSCALL(futex);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:107:1: note: expanded from here
__ia32_sys_futex
^
kernel/sys_ni.c:137:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
>> kernel/sys_ni.c:138:1: warning: no previous prototype for function '__ia32_compat_sys_futex' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(futex);
^
arch/x86/include/asm/syscall_wrapper.h:123:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
<scratch space>:108:1: note: expanded from here
__ia32_compat_sys_futex
^
kernel/sys_ni.c:138:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:123:20: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
kernel/sys_ni.c:139:1: warning: no previous prototype for function '__x64_sys_set_robust_list' [-Wmissing-prototypes]
COND_SYSCALL(set_robust_list);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:113:1: note: expanded from here
__x64_sys_set_robust_list
^
kernel/sys_ni.c:139:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:139:1: warning: no previous prototype for function '__ia32_sys_set_robust_list' [-Wmissing-prototypes]
COND_SYSCALL(set_robust_list);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:114:1: note: expanded from here
__ia32_sys_set_robust_list
^
kernel/sys_ni.c:139:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:140:1: warning: no previous prototype for function '__ia32_compat_sys_set_robust_list' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(set_robust_list);
^
arch/x86/include/asm/syscall_wrapper.h:123:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
<scratch space>:115:1: note: expanded from here
__ia32_compat_sys_set_robust_list
^
kernel/sys_ni.c:140:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:123:20: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
kernel/sys_ni.c:141:1: warning: no previous prototype for function '__x64_sys_get_robust_list' [-Wmissing-prototypes]
COND_SYSCALL(get_robust_list);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:120:1: note: expanded from here
__x64_sys_get_robust_list
^
kernel/sys_ni.c:141:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:62:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:141:1: warning: no previous prototype for function '__ia32_sys_get_robust_list' [-Wmissing-prototypes]
COND_SYSCALL(get_robust_list);
^
arch/x86/include/asm/syscall_wrapper.h:66:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
<scratch space>:121:1: note: expanded from here
__ia32_sys_get_robust_list
^
kernel/sys_ni.c:141:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:66:20: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __ia32_sys_##name(const struct pt_regs *__unused)\
^
kernel/sys_ni.c:142:1: warning: no previous prototype for function '__ia32_compat_sys_get_robust_list' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(get_robust_list);
^
arch/x86/include/asm/syscall_wrapper.h:123:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
<scratch space>:122:1: note: expanded from here
__ia32_compat_sys_get_robust_list
^
kernel/sys_ni.c:142:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:123:20: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage __weak long __ia32_compat_sys_##name( \
^
kernel/sys_ni.c:149:1: warning: no previous prototype for function '__x64_sys_kexec_load' [-Wmissing-prototypes]
COND_SYSCALL(kexec_load);
^
arch/x86/include/asm/syscall_wrapper.h:62:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage __weak long __x64_sys_##name(const struct pt_regs *__unused) \
^
<scratch space>:127:1: note: expanded from here
__x64_sys_kexec_load
^
kernel/sys_ni.c:149:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
..
vim +/__ia32_compat_sys_io_getevents +47 kernel/sys_ni.c
67a7acd3773a94 Dominik Brodowski 2018-03-04 32
70dd4b3160798b Dominik Brodowski 2018-03-06 33 /*
70dd4b3160798b Dominik Brodowski 2018-03-06 34 * This list is kept in the same order as include/uapi/asm-generic/unistd.h.
70dd4b3160798b Dominik Brodowski 2018-03-06 35 * Architecture specific entries go below, followed by deprecated or obsolete
70dd4b3160798b Dominik Brodowski 2018-03-06 36 * system calls.
70dd4b3160798b Dominik Brodowski 2018-03-06 37 */
70dd4b3160798b Dominik Brodowski 2018-03-06 38
67a7acd3773a94 Dominik Brodowski 2018-03-04 39 COND_SYSCALL(io_setup);
67a7acd3773a94 Dominik Brodowski 2018-03-04 40 COND_SYSCALL_COMPAT(io_setup);
67a7acd3773a94 Dominik Brodowski 2018-03-04 41 COND_SYSCALL(io_destroy);
67a7acd3773a94 Dominik Brodowski 2018-03-04 42 COND_SYSCALL(io_submit);
67a7acd3773a94 Dominik Brodowski 2018-03-04 43 COND_SYSCALL_COMPAT(io_submit);
67a7acd3773a94 Dominik Brodowski 2018-03-04 44 COND_SYSCALL(io_cancel);
67a7acd3773a94 Dominik Brodowski 2018-03-04 45 COND_SYSCALL(io_getevents);
7a074e96dee625 Christoph Hellwig 2018-05-02 @46 COND_SYSCALL(io_pgetevents);
67a7acd3773a94 Dominik Brodowski 2018-03-04 @47 COND_SYSCALL_COMPAT(io_getevents);
7a074e96dee625 Christoph Hellwig 2018-05-02 48 COND_SYSCALL_COMPAT(io_pgetevents);
70dd4b3160798b Dominik Brodowski 2018-03-06 49
70dd4b3160798b Dominik Brodowski 2018-03-06 50 /* fs/xattr.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 51
70dd4b3160798b Dominik Brodowski 2018-03-06 52 /* fs/dcache.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 53
70dd4b3160798b Dominik Brodowski 2018-03-06 54 /* fs/cookies.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 55 COND_SYSCALL(lookup_dcookie);
67a7acd3773a94 Dominik Brodowski 2018-03-04 56 COND_SYSCALL_COMPAT(lookup_dcookie);
70dd4b3160798b Dominik Brodowski 2018-03-06 57
70dd4b3160798b Dominik Brodowski 2018-03-06 58 /* fs/eventfd.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 59 COND_SYSCALL(eventfd2);
70dd4b3160798b Dominik Brodowski 2018-03-06 60
70dd4b3160798b Dominik Brodowski 2018-03-06 61 /* fs/eventfd.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 62 COND_SYSCALL(epoll_create1);
67a7acd3773a94 Dominik Brodowski 2018-03-04 63 COND_SYSCALL(epoll_ctl);
67a7acd3773a94 Dominik Brodowski 2018-03-04 64 COND_SYSCALL(epoll_pwait);
67a7acd3773a94 Dominik Brodowski 2018-03-04 65 COND_SYSCALL_COMPAT(epoll_pwait);
70dd4b3160798b Dominik Brodowski 2018-03-06 66
70dd4b3160798b Dominik Brodowski 2018-03-06 67 /* fs/fcntl.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 68
70dd4b3160798b Dominik Brodowski 2018-03-06 69 /* fs/inotify_user.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 70 COND_SYSCALL(inotify_init1);
67a7acd3773a94 Dominik Brodowski 2018-03-04 71 COND_SYSCALL(inotify_add_watch);
67a7acd3773a94 Dominik Brodowski 2018-03-04 72 COND_SYSCALL(inotify_rm_watch);
70dd4b3160798b Dominik Brodowski 2018-03-06 73
70dd4b3160798b Dominik Brodowski 2018-03-06 74 /* fs/ioctl.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 75
70dd4b3160798b Dominik Brodowski 2018-03-06 76 /* fs/ioprio.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 77 COND_SYSCALL(ioprio_set);
67a7acd3773a94 Dominik Brodowski 2018-03-04 78 COND_SYSCALL(ioprio_get);
70dd4b3160798b Dominik Brodowski 2018-03-06 79
70dd4b3160798b Dominik Brodowski 2018-03-06 80 /* fs/locks.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 81 COND_SYSCALL(flock);
70dd4b3160798b Dominik Brodowski 2018-03-06 82
70dd4b3160798b Dominik Brodowski 2018-03-06 83 /* fs/namei.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 84
70dd4b3160798b Dominik Brodowski 2018-03-06 85 /* fs/namespace.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 86
70dd4b3160798b Dominik Brodowski 2018-03-06 87 /* fs/nfsctl.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 88
70dd4b3160798b Dominik Brodowski 2018-03-06 89 /* fs/open.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 90
70dd4b3160798b Dominik Brodowski 2018-03-06 91 /* fs/pipe.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 92
70dd4b3160798b Dominik Brodowski 2018-03-06 93 /* fs/quota.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 94 COND_SYSCALL(quotactl);
70dd4b3160798b Dominik Brodowski 2018-03-06 95
70dd4b3160798b Dominik Brodowski 2018-03-06 96 /* fs/readdir.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 97
70dd4b3160798b Dominik Brodowski 2018-03-06 98 /* fs/read_write.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 99
70dd4b3160798b Dominik Brodowski 2018-03-06 100 /* fs/sendfile.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 101
70dd4b3160798b Dominik Brodowski 2018-03-06 102 /* fs/select.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 103
70dd4b3160798b Dominik Brodowski 2018-03-06 104 /* fs/signalfd.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 105 COND_SYSCALL(signalfd4);
67a7acd3773a94 Dominik Brodowski 2018-03-04 106 COND_SYSCALL_COMPAT(signalfd4);
70dd4b3160798b Dominik Brodowski 2018-03-06 107
70dd4b3160798b Dominik Brodowski 2018-03-06 108 /* fs/splice.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 109
70dd4b3160798b Dominik Brodowski 2018-03-06 110 /* fs/stat.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 111
70dd4b3160798b Dominik Brodowski 2018-03-06 112 /* fs/sync.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 113
70dd4b3160798b Dominik Brodowski 2018-03-06 114 /* fs/timerfd.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 115 COND_SYSCALL(timerfd_create);
67a7acd3773a94 Dominik Brodowski 2018-03-04 @116 COND_SYSCALL(timerfd_settime);
67a7acd3773a94 Dominik Brodowski 2018-03-04 @117 COND_SYSCALL_COMPAT(timerfd_settime);
67a7acd3773a94 Dominik Brodowski 2018-03-04 @118 COND_SYSCALL(timerfd_gettime);
67a7acd3773a94 Dominik Brodowski 2018-03-04 @119 COND_SYSCALL_COMPAT(timerfd_gettime);
70dd4b3160798b Dominik Brodowski 2018-03-06 120
70dd4b3160798b Dominik Brodowski 2018-03-06 121 /* fs/utimes.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 122
70dd4b3160798b Dominik Brodowski 2018-03-06 123 /* kernel/acct.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 124 COND_SYSCALL(acct);
70dd4b3160798b Dominik Brodowski 2018-03-06 125
70dd4b3160798b Dominik Brodowski 2018-03-06 126 /* kernel/capability.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 127 COND_SYSCALL(capget);
67a7acd3773a94 Dominik Brodowski 2018-03-04 128 COND_SYSCALL(capset);
70dd4b3160798b Dominik Brodowski 2018-03-06 129
70dd4b3160798b Dominik Brodowski 2018-03-06 130 /* kernel/exec_domain.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 131
70dd4b3160798b Dominik Brodowski 2018-03-06 132 /* kernel/exit.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 133
70dd4b3160798b Dominik Brodowski 2018-03-06 134 /* kernel/fork.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 135
70dd4b3160798b Dominik Brodowski 2018-03-06 136 /* kernel/futex.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 @137 COND_SYSCALL(futex);
67a7acd3773a94 Dominik Brodowski 2018-03-04 @138 COND_SYSCALL_COMPAT(futex);
67a7acd3773a94 Dominik Brodowski 2018-03-04 139 COND_SYSCALL(set_robust_list);
67a7acd3773a94 Dominik Brodowski 2018-03-04 140 COND_SYSCALL_COMPAT(set_robust_list);
67a7acd3773a94 Dominik Brodowski 2018-03-04 141 COND_SYSCALL(get_robust_list);
67a7acd3773a94 Dominik Brodowski 2018-03-04 142 COND_SYSCALL_COMPAT(get_robust_list);
70dd4b3160798b Dominik Brodowski 2018-03-06 143
70dd4b3160798b Dominik Brodowski 2018-03-06 144 /* kernel/hrtimer.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 145
70dd4b3160798b Dominik Brodowski 2018-03-06 146 /* kernel/itimer.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 147
70dd4b3160798b Dominik Brodowski 2018-03-06 148 /* kernel/kexec.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 149 COND_SYSCALL(kexec_load);
67a7acd3773a94 Dominik Brodowski 2018-03-04 150 COND_SYSCALL_COMPAT(kexec_load);
70dd4b3160798b Dominik Brodowski 2018-03-06 151
70dd4b3160798b Dominik Brodowski 2018-03-06 152 /* kernel/module.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 153 COND_SYSCALL(init_module);
67a7acd3773a94 Dominik Brodowski 2018-03-04 154 COND_SYSCALL(delete_module);
70dd4b3160798b Dominik Brodowski 2018-03-06 155
70dd4b3160798b Dominik Brodowski 2018-03-06 156 /* kernel/posix-timers.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 157
70dd4b3160798b Dominik Brodowski 2018-03-06 158 /* kernel/printk.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 159 COND_SYSCALL(syslog);
70dd4b3160798b Dominik Brodowski 2018-03-06 160
70dd4b3160798b Dominik Brodowski 2018-03-06 161 /* kernel/ptrace.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 162
70dd4b3160798b Dominik Brodowski 2018-03-06 163 /* kernel/sched/core.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 164
70dd4b3160798b Dominik Brodowski 2018-03-06 165 /* kernel/sys.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 166 COND_SYSCALL(setregid);
67a7acd3773a94 Dominik Brodowski 2018-03-04 167 COND_SYSCALL(setgid);
67a7acd3773a94 Dominik Brodowski 2018-03-04 168 COND_SYSCALL(setreuid);
67a7acd3773a94 Dominik Brodowski 2018-03-04 169 COND_SYSCALL(setuid);
67a7acd3773a94 Dominik Brodowski 2018-03-04 170 COND_SYSCALL(setresuid);
67a7acd3773a94 Dominik Brodowski 2018-03-04 171 COND_SYSCALL(getresuid);
67a7acd3773a94 Dominik Brodowski 2018-03-04 172 COND_SYSCALL(setresgid);
67a7acd3773a94 Dominik Brodowski 2018-03-04 173 COND_SYSCALL(getresgid);
67a7acd3773a94 Dominik Brodowski 2018-03-04 174 COND_SYSCALL(setfsuid);
67a7acd3773a94 Dominik Brodowski 2018-03-04 175 COND_SYSCALL(setfsgid);
67a7acd3773a94 Dominik Brodowski 2018-03-04 176 COND_SYSCALL(setgroups);
67a7acd3773a94 Dominik Brodowski 2018-03-04 177 COND_SYSCALL(getgroups);
70dd4b3160798b Dominik Brodowski 2018-03-06 178
70dd4b3160798b Dominik Brodowski 2018-03-06 179 /* kernel/time.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 180
70dd4b3160798b Dominik Brodowski 2018-03-06 181 /* kernel/timer.c */
70dd4b3160798b Dominik Brodowski 2018-03-06 182
70dd4b3160798b Dominik Brodowski 2018-03-06 183 /* ipc/mqueue.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 184 COND_SYSCALL(mq_open);
67a7acd3773a94 Dominik Brodowski 2018-03-04 185 COND_SYSCALL_COMPAT(mq_open);
67a7acd3773a94 Dominik Brodowski 2018-03-04 186 COND_SYSCALL(mq_unlink);
67a7acd3773a94 Dominik Brodowski 2018-03-04 @187 COND_SYSCALL(mq_timedsend);
67a7acd3773a94 Dominik Brodowski 2018-03-04 @188 COND_SYSCALL_COMPAT(mq_timedsend);
67a7acd3773a94 Dominik Brodowski 2018-03-04 @189 COND_SYSCALL(mq_timedreceive);
67a7acd3773a94 Dominik Brodowski 2018-03-04 @190 COND_SYSCALL_COMPAT(mq_timedreceive);
67a7acd3773a94 Dominik Brodowski 2018-03-04 191 COND_SYSCALL(mq_notify);
67a7acd3773a94 Dominik Brodowski 2018-03-04 192 COND_SYSCALL_COMPAT(mq_notify);
67a7acd3773a94 Dominik Brodowski 2018-03-04 193 COND_SYSCALL(mq_getsetattr);
67a7acd3773a94 Dominik Brodowski 2018-03-04 194 COND_SYSCALL_COMPAT(mq_getsetattr);
70dd4b3160798b Dominik Brodowski 2018-03-06 195
70dd4b3160798b Dominik Brodowski 2018-03-06 196 /* ipc/msg.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 197 COND_SYSCALL(msgget);
67a7acd3773a94 Dominik Brodowski 2018-03-04 198 COND_SYSCALL(msgctl);
67a7acd3773a94 Dominik Brodowski 2018-03-04 199 COND_SYSCALL_COMPAT(msgctl);
67a7acd3773a94 Dominik Brodowski 2018-03-04 200 COND_SYSCALL(msgrcv);
67a7acd3773a94 Dominik Brodowski 2018-03-04 201 COND_SYSCALL_COMPAT(msgrcv);
67a7acd3773a94 Dominik Brodowski 2018-03-04 202 COND_SYSCALL(msgsnd);
67a7acd3773a94 Dominik Brodowski 2018-03-04 203 COND_SYSCALL_COMPAT(msgsnd);
70dd4b3160798b Dominik Brodowski 2018-03-06 204
70dd4b3160798b Dominik Brodowski 2018-03-06 205 /* ipc/sem.c */
67a7acd3773a94 Dominik Brodowski 2018-03-04 206 COND_SYSCALL(semget);
67a7acd3773a94 Dominik Brodowski 2018-03-04 207 COND_SYSCALL(semctl);
67a7acd3773a94 Dominik Brodowski 2018-03-04 208 COND_SYSCALL_COMPAT(semctl);
67a7acd3773a94 Dominik Brodowski 2018-03-04 @209 COND_SYSCALL(semtimedop);
67a7acd3773a94 Dominik Brodowski 2018-03-04 @210 COND_SYSCALL_COMPAT(semtimedop);
67a7acd3773a94 Dominik Brodowski 2018-03-04 211 COND_SYSCALL(semop);
70dd4b3160798b Dominik Brodowski 2018-03-06 212
:::::: The code at line 47 was first introduced by commit
:::::: 67a7acd3773a94df2e671601a288685485463cf9 kernel/sys_ni: remove {sys_,sys_compat} from cond_syscall definitions
:::::: TO: Dominik Brodowski <linux(a)dominikbrodowski.net>
:::::: CC: Dominik Brodowski <linux(a)dominikbrodowski.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[mcgrof-next:20211118-sysctl-cleanups-set-04-v2 24/36] kernel/stackleak.c:62:78: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211118-sysctl-cleanups-set-04-v2
head: 3110d41a56792588bd2f64621080948b0fceb6ab
commit: a5185a5adbc762374bffe8c30d356978470e3ce0 [24/36] stackleak: move stack_erasing sysctl to stackleak.c
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.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/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20211118-sysctl-cleanups-set-04-v2
git checkout a5185a5adbc762374bffe8c30d356978470e3ce0
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/stackleak.c: In function 'stackleak_sysctls_init':
>> kernel/stackleak.c:62:78: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
62 | register_sysctl_init("kernel", stackleak_sysctls, "stackleak_sysctls");
| ^
In file included from include/linux/key.h:17,
from include/linux/cred.h:13,
from include/linux/sched/signal.h:10,
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:717,
from include/linux/kallsyms.h:13,
from include/linux/ftrace.h:12,
from include/linux/kprobes.h:28,
from kernel/stackleak.c:14:
include/linux/sysctl.h:210: note: macro "register_sysctl_init" defined here
210 | #define register_sysctl_init(path, table) __register_sysctl_init(path, table, #table)
|
>> kernel/stackleak.c:62:9: error: 'register_sysctl_init' undeclared (first use in this function); did you mean 'register_sysctl_paths'?
62 | register_sysctl_init("kernel", stackleak_sysctls, "stackleak_sysctls");
| ^~~~~~~~~~~~~~~~~~~~
| register_sysctl_paths
kernel/stackleak.c:62:9: note: each undeclared identifier is reported only once for each function it appears in
kernel/stackleak.c: At top level:
kernel/stackleak.c:73:25: warning: no previous prototype for 'stackleak_erase' [-Wmissing-prototypes]
73 | asmlinkage void notrace stackleak_erase(void)
| ^~~~~~~~~~~~~~~
kernel/stackleak.c:129:49: warning: no previous prototype for 'stackleak_track_stack' [-Wmissing-prototypes]
129 | void __used __no_caller_saved_registers notrace stackleak_track_stack(void)
| ^~~~~~~~~~~~~~~~~~~~~
kernel/stackleak.c:47:25: warning: 'stackleak_sysctls' defined but not used [-Wunused-variable]
47 | static struct ctl_table stackleak_sysctls[] = {
| ^~~~~~~~~~~~~~~~~
vim +/register_sysctl_init +62 kernel/stackleak.c
59
60 static int __init stackleak_sysctls_init(void)
61 {
> 62 register_sysctl_init("kernel", stackleak_sysctls, "stackleak_sysctls");
63 return 0;
64 }
65 late_initcall(stackleak_sysctls_init);
66 #endif /* CONFIG_SYSCTL */
67
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[chenxing:rperier-timer 13/14] drivers/clocksource/timer-msc313e.c:38:21: error: field has incomplete type 'struct delay_timer'
by kernel test robot
tree: git://github.com/linux-chenxing/linux.git rperier-timer
head: aa38b67e83bda972b0cbf042fcd1776d3928d4ae
commit: a3b486f1582858b868a805bf132a629d885c7678 [13/14] clocksource: Add MStar MSC313e timer support
config: mips-randconfig-c004-20211118 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c46becf500df2a7fb4b4fce16178a036c344315a)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://github.com/linux-chenxing/linux/commit/a3b486f1582858b868a805bf13...
git remote add chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags chenxing rperier-timer
git checkout a3b486f1582858b868a805bf132a629d885c7678
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/clocksource/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/clocksource/timer-msc313e.c:38:21: error: field has incomplete type 'struct delay_timer'
struct delay_timer delay;
^
drivers/clocksource/timer-msc313e.c:38:9: note: forward declaration of 'struct delay_timer'
struct delay_timer delay;
^
>> drivers/clocksource/timer-msc313e.c:197:2: error: implicit declaration of function 'register_current_timer_delay' [-Werror,-Wimplicit-function-declaration]
register_current_timer_delay(&msc313e_delay.delay);
^
2 errors generated.
vim +38 drivers/clocksource/timer-msc313e.c
35
36 struct msc313e_delay {
37 void __iomem *base;
> 38 struct delay_timer delay;
39 };
40
41 static void __iomem *msc313e_clksrc;
42 static struct msc313e_delay msc313e_delay;
43
44 static void msc313e_timer_stop(void __iomem *base)
45 {
46 writew(0, base + MSC313E_REG_CTRL);
47 }
48
49 static void msc313e_timer_start(void __iomem *base, bool periodic)
50 {
51 u16 reg;
52
53 reg = readw(base + MSC313E_REG_CTRL);
54 if (periodic)
55 reg |= MSC313E_REG_CTRL_TIMER_EN;
56 else
57 reg |= MSC313E_REG_CTRL_TIMER_TRIG;
58 writew(reg | MSC313E_REG_CTRL_TIMER_INT_EN, base + MSC313E_REG_CTRL);
59 }
60
61 static void msc313e_timer_setup(void __iomem *base, unsigned long delay)
62 {
63 writew(delay >> 16, base + MSC313E_REG_TIMER_MAX_HIGH);
64 writew(delay & 0xffff, base + MSC313E_REG_TIMER_MAX_LOW);
65 }
66
67 static unsigned long msc313e_timer_current_value(void __iomem *base)
68 {
69 unsigned long result;
70
71 result = readw(base + MSC313E_REG_COUNTER_LOW);
72 result |= readw(base + MSC313E_REG_COUNTER_HIGH) << 16;
73
74 return result;
75 }
76
77 static int msc313e_timer_clkevt_shutdown(struct clock_event_device *evt)
78 {
79 struct timer_of *timer = to_timer_of(evt);
80
81 msc313e_timer_stop(timer_of_base(timer));
82
83 return 0;
84 }
85
86 static int msc313e_timer_clkevt_set_oneshot(struct clock_event_device *evt)
87 {
88 struct timer_of *timer = to_timer_of(evt);
89
90 msc313e_timer_stop(timer_of_base(timer));
91 msc313e_timer_start(timer_of_base(timer), false);
92
93 return 0;
94 }
95
96 static int msc313e_timer_clkevt_set_periodic(struct clock_event_device *evt)
97 {
98 struct timer_of *timer = to_timer_of(evt);
99
100 msc313e_timer_stop(timer_of_base(timer));
101 msc313e_timer_setup(timer_of_base(timer), timer_of_period(timer));
102 msc313e_timer_start(timer_of_base(timer), true);
103
104 return 0;
105 }
106
107 static int msc313e_timer_clkevt_next_event(unsigned long evt, struct clock_event_device *clkevt)
108 {
109 struct timer_of *timer = to_timer_of(clkevt);
110
111 msc313e_timer_stop(timer_of_base(timer));
112 msc313e_timer_setup(timer_of_base(timer), evt);
113 msc313e_timer_start(timer_of_base(timer), false);
114
115 return 0;
116 }
117
118 static irqreturn_t msc313e_timer_clkevt_irq(int irq, void *dev_id)
119 {
120 struct clock_event_device *evt = dev_id;
121
122 evt->event_handler(evt);
123
124 return IRQ_HANDLED;
125 }
126
127 static u64 msc313e_timer_clksrc_read(struct clocksource *cs)
128 {
129 return msc313e_timer_current_value(msc313e_clksrc) & cs->mask;
130 }
131
132 static unsigned long msc313e_read_delay_timer_read(void)
133 {
134 return msc313e_timer_current_value(msc313e_delay.base);
135 }
136
137 static u64 msc313e_timer_sched_clock_read(void)
138 {
139 return msc313e_timer_current_value(msc313e_clksrc);
140 }
141
142 static struct clock_event_device msc313e_clkevt = {
143 .name = TIMER_NAME,
144 .rating = 300,
145 .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
146 .set_state_shutdown = msc313e_timer_clkevt_shutdown,
147 .set_state_periodic = msc313e_timer_clkevt_set_periodic,
148 .set_state_oneshot = msc313e_timer_clkevt_set_oneshot,
149 .tick_resume = msc313e_timer_clkevt_shutdown,
150 .set_next_event = msc313e_timer_clkevt_next_event,
151 };
152
153 static int __init msc313e_clkevt_init(struct device_node *np)
154 {
155 int ret;
156 struct timer_of *to;
157
158 to = kzalloc(sizeof(struct timer_of), GFP_KERNEL);
159 if (!to)
160 return -ENOMEM;
161
162 to->flags = TIMER_OF_IRQ | TIMER_OF_CLOCK | TIMER_OF_BASE;
163 to->of_irq.handler = msc313e_timer_clkevt_irq;
164 ret = timer_of_init(np, to);
165 if (ret)
166 return ret;
167
168 msc313e_clkevt.cpumask = cpumask_of(0);
169 msc313e_clkevt.irq = to->of_irq.irq;
170 to->clkevt = msc313e_clkevt;
171
172 clockevents_config_and_register(&to->clkevt, timer_of_rate(to),
173 TIMER_SYNC_TICKS, 0xffffffff);
174 return 0;
175 }
176
177 static int __init msc313e_clksrc_init(struct device_node *np)
178 {
179 struct timer_of to = { 0 };
180 int ret;
181 u16 reg;
182
183 to.flags = TIMER_OF_BASE | TIMER_OF_CLOCK;
184 ret = timer_of_init(np, &to);
185 if (ret)
186 return ret;
187
188 msc313e_delay.base = timer_of_base(&to);
189 msc313e_delay.delay.read_current_timer = msc313e_read_delay_timer_read;
190 msc313e_delay.delay.freq = timer_of_rate(&to);
191
192 msc313e_clksrc = timer_of_base(&to);
193 reg = readw(msc313e_clksrc + MSC313E_REG_CTRL);
194 reg |= MSC313E_REG_CTRL_TIMER_EN;
195 writew(reg, msc313e_clksrc + MSC313E_REG_CTRL);
196
> 197 register_current_timer_delay(&msc313e_delay.delay);
198
199 sched_clock_register(msc313e_timer_sched_clock_read, 32, timer_of_rate(&to));
200 return clocksource_mmio_init(timer_of_base(&to), TIMER_NAME, timer_of_rate(&to), 300, 32,
201 msc313e_timer_clksrc_read);
202 }
203
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
drivers/hid/hid-nintendo.c:196:45: error: unused variable 'joycon_rumble_frequencies'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c8c109546a19613d323a319d0c921cb1f317e629
commit: daf11ca2b9f45a1ac6f90af5a61ee4db915110b1 HID: nintendo: fix -Werror build
date: 13 days ago
config: i386-buildonly-randconfig-r003-20211114 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
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/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout daf11ca2b9f45a1ac6f90af5a61ee4db915110b1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/hid/hid-nintendo.c:196:45: error: unused variable 'joycon_rumble_frequencies' [-Werror,-Wunused-const-variable]
static const struct joycon_rumble_freq_data joycon_rumble_frequencies[] = {
^
>> drivers/hid/hid-nintendo.c:254:44: error: unused variable 'joycon_rumble_amplitudes' [-Werror,-Wunused-const-variable]
static const struct joycon_rumble_amp_data joycon_rumble_amplitudes[] = {
^
>> drivers/hid/hid-nintendo.c:400:18: error: unused variable 'JC_RUMBLE_DFLT_LOW_FREQ' [-Werror,-Wunused-const-variable]
static const u16 JC_RUMBLE_DFLT_LOW_FREQ = 160;
^
>> drivers/hid/hid-nintendo.c:401:18: error: unused variable 'JC_RUMBLE_DFLT_HIGH_FREQ' [-Werror,-Wunused-const-variable]
static const u16 JC_RUMBLE_DFLT_HIGH_FREQ = 320;
^
>> drivers/hid/hid-nintendo.c:403:29: error: unused variable 'JC_RUMBLE_ZERO_AMP_PKT_CNT' [-Werror,-Wunused-const-variable]
static const unsigned short JC_RUMBLE_ZERO_AMP_PKT_CNT = 5;
^
5 errors generated.
vim +/joycon_rumble_frequencies +196 drivers/hid/hid-nintendo.c
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 191
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 192 /*
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 193 * These tables are from
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 194 * https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering/blob/mas...
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 195 */
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 @196 static const struct joycon_rumble_freq_data joycon_rumble_frequencies[] = {
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 197 /* high, low, freq */
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 198 { 0x0000, 0x01, 41 }, { 0x0000, 0x02, 42 }, { 0x0000, 0x03, 43 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 199 { 0x0000, 0x04, 44 }, { 0x0000, 0x05, 45 }, { 0x0000, 0x06, 46 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 200 { 0x0000, 0x07, 47 }, { 0x0000, 0x08, 48 }, { 0x0000, 0x09, 49 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 201 { 0x0000, 0x0A, 50 }, { 0x0000, 0x0B, 51 }, { 0x0000, 0x0C, 52 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 202 { 0x0000, 0x0D, 53 }, { 0x0000, 0x0E, 54 }, { 0x0000, 0x0F, 55 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 203 { 0x0000, 0x10, 57 }, { 0x0000, 0x11, 58 }, { 0x0000, 0x12, 59 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 204 { 0x0000, 0x13, 60 }, { 0x0000, 0x14, 62 }, { 0x0000, 0x15, 63 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 205 { 0x0000, 0x16, 64 }, { 0x0000, 0x17, 66 }, { 0x0000, 0x18, 67 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 206 { 0x0000, 0x19, 69 }, { 0x0000, 0x1A, 70 }, { 0x0000, 0x1B, 72 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 207 { 0x0000, 0x1C, 73 }, { 0x0000, 0x1D, 75 }, { 0x0000, 0x1e, 77 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 208 { 0x0000, 0x1f, 78 }, { 0x0000, 0x20, 80 }, { 0x0400, 0x21, 82 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 209 { 0x0800, 0x22, 84 }, { 0x0c00, 0x23, 85 }, { 0x1000, 0x24, 87 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 210 { 0x1400, 0x25, 89 }, { 0x1800, 0x26, 91 }, { 0x1c00, 0x27, 93 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 211 { 0x2000, 0x28, 95 }, { 0x2400, 0x29, 97 }, { 0x2800, 0x2a, 99 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 212 { 0x2c00, 0x2b, 102 }, { 0x3000, 0x2c, 104 }, { 0x3400, 0x2d, 106 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 213 { 0x3800, 0x2e, 108 }, { 0x3c00, 0x2f, 111 }, { 0x4000, 0x30, 113 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 214 { 0x4400, 0x31, 116 }, { 0x4800, 0x32, 118 }, { 0x4c00, 0x33, 121 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 215 { 0x5000, 0x34, 123 }, { 0x5400, 0x35, 126 }, { 0x5800, 0x36, 129 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 216 { 0x5c00, 0x37, 132 }, { 0x6000, 0x38, 135 }, { 0x6400, 0x39, 137 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 217 { 0x6800, 0x3a, 141 }, { 0x6c00, 0x3b, 144 }, { 0x7000, 0x3c, 147 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 218 { 0x7400, 0x3d, 150 }, { 0x7800, 0x3e, 153 }, { 0x7c00, 0x3f, 157 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 219 { 0x8000, 0x40, 160 }, { 0x8400, 0x41, 164 }, { 0x8800, 0x42, 167 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 220 { 0x8c00, 0x43, 171 }, { 0x9000, 0x44, 174 }, { 0x9400, 0x45, 178 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 221 { 0x9800, 0x46, 182 }, { 0x9c00, 0x47, 186 }, { 0xa000, 0x48, 190 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 222 { 0xa400, 0x49, 194 }, { 0xa800, 0x4a, 199 }, { 0xac00, 0x4b, 203 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 223 { 0xb000, 0x4c, 207 }, { 0xb400, 0x4d, 212 }, { 0xb800, 0x4e, 217 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 224 { 0xbc00, 0x4f, 221 }, { 0xc000, 0x50, 226 }, { 0xc400, 0x51, 231 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 225 { 0xc800, 0x52, 236 }, { 0xcc00, 0x53, 241 }, { 0xd000, 0x54, 247 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 226 { 0xd400, 0x55, 252 }, { 0xd800, 0x56, 258 }, { 0xdc00, 0x57, 263 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 227 { 0xe000, 0x58, 269 }, { 0xe400, 0x59, 275 }, { 0xe800, 0x5a, 281 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 228 { 0xec00, 0x5b, 287 }, { 0xf000, 0x5c, 293 }, { 0xf400, 0x5d, 300 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 229 { 0xf800, 0x5e, 306 }, { 0xfc00, 0x5f, 313 }, { 0x0001, 0x60, 320 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 230 { 0x0401, 0x61, 327 }, { 0x0801, 0x62, 334 }, { 0x0c01, 0x63, 341 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 231 { 0x1001, 0x64, 349 }, { 0x1401, 0x65, 357 }, { 0x1801, 0x66, 364 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 232 { 0x1c01, 0x67, 372 }, { 0x2001, 0x68, 381 }, { 0x2401, 0x69, 389 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 233 { 0x2801, 0x6a, 397 }, { 0x2c01, 0x6b, 406 }, { 0x3001, 0x6c, 415 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 234 { 0x3401, 0x6d, 424 }, { 0x3801, 0x6e, 433 }, { 0x3c01, 0x6f, 443 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 235 { 0x4001, 0x70, 453 }, { 0x4401, 0x71, 462 }, { 0x4801, 0x72, 473 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 236 { 0x4c01, 0x73, 483 }, { 0x5001, 0x74, 494 }, { 0x5401, 0x75, 504 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 237 { 0x5801, 0x76, 515 }, { 0x5c01, 0x77, 527 }, { 0x6001, 0x78, 538 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 238 { 0x6401, 0x79, 550 }, { 0x6801, 0x7a, 562 }, { 0x6c01, 0x7b, 574 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 239 { 0x7001, 0x7c, 587 }, { 0x7401, 0x7d, 600 }, { 0x7801, 0x7e, 613 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 240 { 0x7c01, 0x7f, 626 }, { 0x8001, 0x00, 640 }, { 0x8401, 0x00, 654 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 241 { 0x8801, 0x00, 668 }, { 0x8c01, 0x00, 683 }, { 0x9001, 0x00, 698 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 242 { 0x9401, 0x00, 713 }, { 0x9801, 0x00, 729 }, { 0x9c01, 0x00, 745 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 243 { 0xa001, 0x00, 761 }, { 0xa401, 0x00, 778 }, { 0xa801, 0x00, 795 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 244 { 0xac01, 0x00, 812 }, { 0xb001, 0x00, 830 }, { 0xb401, 0x00, 848 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 245 { 0xb801, 0x00, 867 }, { 0xbc01, 0x00, 886 }, { 0xc001, 0x00, 905 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 246 { 0xc401, 0x00, 925 }, { 0xc801, 0x00, 945 }, { 0xcc01, 0x00, 966 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 247 { 0xd001, 0x00, 987 }, { 0xd401, 0x00, 1009 }, { 0xd801, 0x00, 1031 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 248 { 0xdc01, 0x00, 1053 }, { 0xe001, 0x00, 1076 }, { 0xe401, 0x00, 1100 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 249 { 0xe801, 0x00, 1124 }, { 0xec01, 0x00, 1149 }, { 0xf001, 0x00, 1174 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 250 { 0xf401, 0x00, 1199 }, { 0xf801, 0x00, 1226 }, { 0xfc01, 0x00, 1253 }
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 251 };
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 252
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 253 #define joycon_max_rumble_amp (1003)
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 @254 static const struct joycon_rumble_amp_data joycon_rumble_amplitudes[] = {
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 255 /* high, low, amp */
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 256 { 0x00, 0x0040, 0 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 257 { 0x02, 0x8040, 10 }, { 0x04, 0x0041, 12 }, { 0x06, 0x8041, 14 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 258 { 0x08, 0x0042, 17 }, { 0x0a, 0x8042, 20 }, { 0x0c, 0x0043, 24 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 259 { 0x0e, 0x8043, 28 }, { 0x10, 0x0044, 33 }, { 0x12, 0x8044, 40 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 260 { 0x14, 0x0045, 47 }, { 0x16, 0x8045, 56 }, { 0x18, 0x0046, 67 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 261 { 0x1a, 0x8046, 80 }, { 0x1c, 0x0047, 95 }, { 0x1e, 0x8047, 112 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 262 { 0x20, 0x0048, 117 }, { 0x22, 0x8048, 123 }, { 0x24, 0x0049, 128 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 263 { 0x26, 0x8049, 134 }, { 0x28, 0x004a, 140 }, { 0x2a, 0x804a, 146 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 264 { 0x2c, 0x004b, 152 }, { 0x2e, 0x804b, 159 }, { 0x30, 0x004c, 166 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 265 { 0x32, 0x804c, 173 }, { 0x34, 0x004d, 181 }, { 0x36, 0x804d, 189 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 266 { 0x38, 0x004e, 198 }, { 0x3a, 0x804e, 206 }, { 0x3c, 0x004f, 215 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 267 { 0x3e, 0x804f, 225 }, { 0x40, 0x0050, 230 }, { 0x42, 0x8050, 235 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 268 { 0x44, 0x0051, 240 }, { 0x46, 0x8051, 245 }, { 0x48, 0x0052, 251 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 269 { 0x4a, 0x8052, 256 }, { 0x4c, 0x0053, 262 }, { 0x4e, 0x8053, 268 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 270 { 0x50, 0x0054, 273 }, { 0x52, 0x8054, 279 }, { 0x54, 0x0055, 286 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 271 { 0x56, 0x8055, 292 }, { 0x58, 0x0056, 298 }, { 0x5a, 0x8056, 305 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 272 { 0x5c, 0x0057, 311 }, { 0x5e, 0x8057, 318 }, { 0x60, 0x0058, 325 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 273 { 0x62, 0x8058, 332 }, { 0x64, 0x0059, 340 }, { 0x66, 0x8059, 347 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 274 { 0x68, 0x005a, 355 }, { 0x6a, 0x805a, 362 }, { 0x6c, 0x005b, 370 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 275 { 0x6e, 0x805b, 378 }, { 0x70, 0x005c, 387 }, { 0x72, 0x805c, 395 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 276 { 0x74, 0x005d, 404 }, { 0x76, 0x805d, 413 }, { 0x78, 0x005e, 422 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 277 { 0x7a, 0x805e, 431 }, { 0x7c, 0x005f, 440 }, { 0x7e, 0x805f, 450 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 278 { 0x80, 0x0060, 460 }, { 0x82, 0x8060, 470 }, { 0x84, 0x0061, 480 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 279 { 0x86, 0x8061, 491 }, { 0x88, 0x0062, 501 }, { 0x8a, 0x8062, 512 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 280 { 0x8c, 0x0063, 524 }, { 0x8e, 0x8063, 535 }, { 0x90, 0x0064, 547 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 281 { 0x92, 0x8064, 559 }, { 0x94, 0x0065, 571 }, { 0x96, 0x8065, 584 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 282 { 0x98, 0x0066, 596 }, { 0x9a, 0x8066, 609 }, { 0x9c, 0x0067, 623 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 283 { 0x9e, 0x8067, 636 }, { 0xa0, 0x0068, 650 }, { 0xa2, 0x8068, 665 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 284 { 0xa4, 0x0069, 679 }, { 0xa6, 0x8069, 694 }, { 0xa8, 0x006a, 709 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 285 { 0xaa, 0x806a, 725 }, { 0xac, 0x006b, 741 }, { 0xae, 0x806b, 757 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 286 { 0xb0, 0x006c, 773 }, { 0xb2, 0x806c, 790 }, { 0xb4, 0x006d, 808 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 287 { 0xb6, 0x806d, 825 }, { 0xb8, 0x006e, 843 }, { 0xba, 0x806e, 862 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 288 { 0xbc, 0x006f, 881 }, { 0xbe, 0x806f, 900 }, { 0xc0, 0x0070, 920 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 289 { 0xc2, 0x8070, 940 }, { 0xc4, 0x0071, 960 }, { 0xc6, 0x8071, 981 },
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 290 { 0xc8, 0x0072, joycon_max_rumble_amp }
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 291 };
c4eae84feff3e6 Daniel J. Ogorchock 2021-09-11 292
:::::: The code at line 196 was first introduced by commit
:::::: c4eae84feff3e68c2f385aa10faea4a96791e7ad HID: nintendo: add rumble support
:::::: TO: Daniel J. Ogorchock <djogorchock(a)gmail.com>
:::::: CC: Jiri Kosina <jkosina(a)suse.cz>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
drivers/hid/hid-hyperv.c:218:9: sparse: sparse: incorrect type in argument 3 (different base types)
by kernel test robot
Hi Michael,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4c388a8e740d3235a194f330c8ef327deef710f6
commit: 7aff79e297ee1aa0126924921fd87a4ae59d2467 Drivers: hv: Enable Hyper-V code to be built on ARM64
date: 4 months ago
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7aff79e297ee1aa0126924921fd87a4ae59d2467
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/hid/hid-hyperv.c:202:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] report_desc_size @@ got restricted __le16 [usertype] wDescriptorLength @@
drivers/hid/hid-hyperv.c:202:40: sparse: expected unsigned int [usertype] report_desc_size
drivers/hid/hid-hyperv.c:202:40: sparse: got restricted __le16 [usertype] wDescriptorLength
>> drivers/hid/hid-hyperv.c:218:9: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned long [usertype] @@ got restricted __le16 [usertype] wDescriptorLength @@
drivers/hid/hid-hyperv.c:218:9: sparse: expected unsigned long [usertype]
drivers/hid/hid-hyperv.c:218:9: sparse: got restricted __le16 [usertype] wDescriptorLength
vim +218 drivers/hid/hid-hyperv.c
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 180
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 181 static void mousevsc_on_receive_device_info(struct mousevsc_dev *input_device,
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 182 struct synthhid_device_info *device_info)
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 183 {
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 184 int ret = 0;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 185 struct hid_descriptor *desc;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 186 struct mousevsc_prt_msg ack;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 187
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 188 input_device->dev_info_status = -ENOMEM;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 189
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 190 input_device->hid_dev_info = device_info->hid_dev_info;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 191 desc = &device_info->hid_descriptor;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 192 if (desc->bLength == 0)
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 193 goto cleanup;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 194
af13f9ed6f9aa68 Dexuan Cui 2019-11-19 195 /* The pointer is not NULL when we resume from hibernation */
af13f9ed6f9aa68 Dexuan Cui 2019-11-19 196 kfree(input_device->hid_desc);
a4a23f6d68ad2c8 Thomas Meyer 2013-06-01 197 input_device->hid_desc = kmemdup(desc, desc->bLength, GFP_ATOMIC);
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 198
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 199 if (!input_device->hid_desc)
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 200 goto cleanup;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 201
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 202 input_device->report_desc_size = desc->desc[0].wDescriptorLength;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 203 if (input_device->report_desc_size == 0) {
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 204 input_device->dev_info_status = -EINVAL;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 205 goto cleanup;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 206 }
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 207
af13f9ed6f9aa68 Dexuan Cui 2019-11-19 208 /* The pointer is not NULL when we resume from hibernation */
af13f9ed6f9aa68 Dexuan Cui 2019-11-19 209 kfree(input_device->report_desc);
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 210 input_device->report_desc = kzalloc(input_device->report_desc_size,
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 211 GFP_ATOMIC);
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 212
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 213 if (!input_device->report_desc) {
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 214 input_device->dev_info_status = -ENOMEM;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 215 goto cleanup;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 216 }
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 217
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 @218 memcpy(input_device->report_desc,
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 219 ((unsigned char *)desc) + desc->bLength,
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 220 desc->desc[0].wDescriptorLength);
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 221
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 222 /* Send the ack */
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 223 memset(&ack, 0, sizeof(struct mousevsc_prt_msg));
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 224
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 225 ack.type = PIPE_MESSAGE_DATA;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 226 ack.size = sizeof(struct synthhid_device_info_ack);
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 227
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 228 ack.ack.header.type = SYNTH_HID_INITIAL_DEVICE_INFO_ACK;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 229 ack.ack.header.size = 1;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 230 ack.ack.reserved = 0;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 231
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 232 ret = vmbus_sendpacket(input_device->device->channel,
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 233 &ack,
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 234 sizeof(struct pipe_prt_msg) - sizeof(unsigned char) +
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 235 sizeof(struct synthhid_device_info_ack),
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 236 (unsigned long)&ack,
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 237 VM_PKT_DATA_INBAND,
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 238 VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED);
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 239
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 240 if (!ret)
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 241 input_device->dev_info_status = 0;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 242
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 243 cleanup:
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 244 complete(&input_device->wait_event);
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 245
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 246 return;
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 247 }
b95f5bcb811e390 K. Y. Srinivasan 2011-11-17 248
:::::: The code at line 218 was first introduced by commit
:::::: b95f5bcb811e3905b5376f87789da8d097fee682 HID: Move the hid-hyperv driver out of staging
:::::: TO: K. Y. Srinivasan <kys(a)microsoft.com>
:::::: CC: Jiri Kosina <jkosina(a)suse.cz>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
drivers/of/unittest.c:910:1: warning: the frame size of 1424 bytes is larger than 1024 bytes
by kernel test robot
Hi Jim,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 42eb8fdac2fc5d62392dcfcf0253753e821a97b0
commit: e0d072782c734d27f5af062c62266f2598f68542 dma-mapping: introduce DMA range map, supplanting dma_pfn_offset
date: 1 year, 2 months ago
config: powerpc64-randconfig-r012-20211118 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.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/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e0d072782c734d27f5af062c62266f2598f68542
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/of/unittest.c: In function 'of_unittest_dma_ranges_one.constprop':
>> drivers/of/unittest.c:910:1: warning: the frame size of 1424 bytes is larger than 1024 bytes [-Wframe-larger-than=]
910 | }
| ^
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_PCI_POWERNV
Depends on PCI && HOTPLUG_PCI && PPC_POWERNV && EEH
Selected by
- OCXL && PPC_POWERNV && PCI && EEH
vim +910 drivers/of/unittest.c
201c910bd6898d8 drivers/of/selftest.c Pantelis Antoniou 2014-07-04 871
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 872 static void __init of_unittest_dma_ranges_one(const char *path,
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 873 u64 expect_dma_addr, u64 expect_paddr)
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 874 {
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 875 #ifdef CONFIG_HAS_DMA
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 876 struct device_node *np;
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 877 const struct bus_dma_region *map = NULL;
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 878 int rc;
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 879
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 880 np = of_find_node_by_path(path);
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 881 if (!np) {
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 882 pr_err("missing testcase data\n");
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 883 return;
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 884 }
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 885
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 886 rc = of_dma_get_range(np, &map);
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 887
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 888 unittest(!rc, "of_dma_get_range failed on node %pOF rc=%i\n", np, rc);
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 889
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 890 if (!rc) {
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 891 phys_addr_t paddr;
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 892 dma_addr_t dma_addr;
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 893 struct device dev_bogus;
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 894
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 895 dev_bogus.dma_range_map = map;
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 896 paddr = dma_to_phys(&dev_bogus, expect_dma_addr);
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 897 dma_addr = phys_to_dma(&dev_bogus, expect_paddr);
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 898
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 899 unittest(paddr == expect_paddr,
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 900 "of_dma_get_range: wrong phys addr %pap (expecting %llx) on node %pOF\n",
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 901 &paddr, expect_paddr, np);
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 902 unittest(dma_addr == expect_dma_addr,
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 903 "of_dma_get_range: wrong DMA addr %pad (expecting %llx) on node %pOF\n",
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 904 &dma_addr, expect_dma_addr, np);
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 905
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 906 kfree(map);
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 907 }
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 908 of_node_put(np);
e0d072782c734d2 drivers/of/unittest.c Jim Quinlan 2020-09-17 909 #endif
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 @910 }
04db93a95aef392 drivers/of/unittest.c Rob Herring 2019-09-20 911
:::::: The code at line 910 was first introduced by commit
:::::: 04db93a95aef392a98f9ffa8745da2e7c58ba75b of/unittest: Add dma-ranges address translation tests
:::::: TO: Rob Herring <robh(a)kernel.org>
:::::: CC: Rob Herring <robh(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
Re: [PATCH v3 08/13] Bluetooth: Implement MSFT avdtp open command
by Dan Carpenter
Hi Kiran,
url: https://github.com/0day-ci/linux/commits/Kiran-K/Bluetooth-Refactor-code-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: i386-randconfig-m021-20211115 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
New smatch warnings:
net/bluetooth/hci_codec.c:388 hci_configure_msft_avdtp_open() warn: is 'cmd + 1' large enough for 'struct hci_media_service_caps'? s32min
Old smatch warnings:
net/bluetooth/hci_codec.c:399 hci_configure_msft_avdtp_open() error: uninitialized symbol 'err'.
vim +388 net/bluetooth/hci_codec.c
d9396dc909768b Kiran K 2021-11-15 359 int hci_configure_msft_avdtp_open(struct hci_dev *hdev, struct l2cap_chan *chan,
d9396dc909768b Kiran K 2021-11-15 360 sockptr_t optval, int optlen)
d9396dc909768b Kiran K 2021-11-15 361 {
d9396dc909768b Kiran K 2021-11-15 362 struct msft_cp_avdtp_open *cmd = NULL;
d9396dc909768b Kiran K 2021-11-15 363 struct hci_media_service_caps *caps;
d9396dc909768b Kiran K 2021-11-15 364 int err;
d9396dc909768b Kiran K 2021-11-15 365
d9396dc909768b Kiran K 2021-11-15 366 if (!optlen || optlen < sizeof(*caps)) {
The kbuild-bot doesn't use cross function analysis so it doesn't know
how this function is called. This check doesn't prevent negative values
of "optlen" and the "!optlen" condition is not required. Of course,
making "optlen" into an unsigned value changes it from a "negatives are
not handled" warning into a "integer overflows are not handled" warning.
One idea would be to just make sure this is called with valid values and
ignore the warning. It probably should be disabled globally if you
don't have the cross function database. Another idea would be to
write this as:
if (optlen < 0 || optlen < sizeof(*caps)) {
Negatives don't really cause a problem though because copy_from_user()
has a check for that added in commit 6d13de1489b6 ("uaccess: disallow >
INT_MAX copy sizes").
regards,
dan carpenter
d9396dc909768b Kiran K 2021-11-15 367 err = -EINVAL;
d9396dc909768b Kiran K 2021-11-15 368 goto fail;
d9396dc909768b Kiran K 2021-11-15 369 }
d9396dc909768b Kiran K 2021-11-15 370
d9396dc909768b Kiran K 2021-11-15 371 cmd = kzalloc(sizeof(*cmd) + optlen, GFP_KERNEL);
d9396dc909768b Kiran K 2021-11-15 372 if (!cmd) {
d9396dc909768b Kiran K 2021-11-15 373 err = -ENOMEM;
d9396dc909768b Kiran K 2021-11-15 374 goto fail;
d9396dc909768b Kiran K 2021-11-15 375 }
d9396dc909768b Kiran K 2021-11-15 376
d9396dc909768b Kiran K 2021-11-15 377 cmd->sub_opcode = HCI_MSFT_AVDTP_OPEN;
d9396dc909768b Kiran K 2021-11-15 378 cmd->handle = __cpu_to_le16(chan->conn->hcon->handle);
d9396dc909768b Kiran K 2021-11-15 379 cmd->dcid = cpu_to_le16(chan->dcid);
d9396dc909768b Kiran K 2021-11-15 380 cmd->omtu = cpu_to_le16(chan->omtu);
d9396dc909768b Kiran K 2021-11-15 381 caps = (void *)(cmd + 1);
d9396dc909768b Kiran K 2021-11-15 382
d9396dc909768b Kiran K 2021-11-15 383 if (copy_from_sockptr(caps, optval, optlen)) {
d9396dc909768b Kiran K 2021-11-15 384 err = -EFAULT;
d9396dc909768b Kiran K 2021-11-15 385 goto fail;
d9396dc909768b Kiran K 2021-11-15 386 }
d9396dc909768b Kiran K 2021-11-15 387
d9396dc909768b Kiran K 2021-11-15 @388 if (caps->category != 0x07) {
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[joro:x86-testing 22/45] arch/x86/kvm/svm/sev.c:562:37: error: 'struct vcpu_svm' has no member named 'vmsa'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git x86-testing
head: 139c88cae82e33dfd6e49ecc4b015a5c7d39c80a
commit: ac655e0ba98a2425eec250e39795acd295e30171 [22/45] KVM: SVM: Create a separate mapping for the SEV-ES save area
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git/commit/?id...
git remote add joro https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git
git fetch --no-tags joro x86-testing
git checkout ac655e0ba98a2425eec250e39795acd295e30171
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/x86/kvm/svm/sev.c: In function 'sev_es_sync_vmsa':
>> arch/x86/kvm/svm/sev.c:562:37: error: 'struct vcpu_svm' has no member named 'vmsa'
562 | struct sev_es_save_area *save = svm->vmsa;
| ^~
vim +562 arch/x86/kvm/svm/sev.c
559
560 static int sev_es_sync_vmsa(struct vcpu_svm *svm)
561 {
> 562 struct sev_es_save_area *save = svm->vmsa;
563
564 /* Check some debug related fields before encrypting the VMSA */
565 if (svm->vcpu.guest_debug || (svm->vmcb->save.dr7 & ~DR7_FIXED_1))
566 return -EINVAL;
567
568 /*
569 * SEV-ES will use a VMSA that is pointed to by the VMCB, not
570 * the traditional VMSA that is part of the VMCB. Copy the
571 * traditional VMSA as it has been built so far (in prep
572 * for LAUNCH_UPDATE_VMSA) to be the initial SEV-ES state.
573 */
574 memcpy(save, &svm->vmcb->save, sizeof(svm->vmcb->save));
575
576 /* Sync registgers */
577 save->rax = svm->vcpu.arch.regs[VCPU_REGS_RAX];
578 save->rbx = svm->vcpu.arch.regs[VCPU_REGS_RBX];
579 save->rcx = svm->vcpu.arch.regs[VCPU_REGS_RCX];
580 save->rdx = svm->vcpu.arch.regs[VCPU_REGS_RDX];
581 save->rsp = svm->vcpu.arch.regs[VCPU_REGS_RSP];
582 save->rbp = svm->vcpu.arch.regs[VCPU_REGS_RBP];
583 save->rsi = svm->vcpu.arch.regs[VCPU_REGS_RSI];
584 save->rdi = svm->vcpu.arch.regs[VCPU_REGS_RDI];
585 #ifdef CONFIG_X86_64
586 save->r8 = svm->vcpu.arch.regs[VCPU_REGS_R8];
587 save->r9 = svm->vcpu.arch.regs[VCPU_REGS_R9];
588 save->r10 = svm->vcpu.arch.regs[VCPU_REGS_R10];
589 save->r11 = svm->vcpu.arch.regs[VCPU_REGS_R11];
590 save->r12 = svm->vcpu.arch.regs[VCPU_REGS_R12];
591 save->r13 = svm->vcpu.arch.regs[VCPU_REGS_R13];
592 save->r14 = svm->vcpu.arch.regs[VCPU_REGS_R14];
593 save->r15 = svm->vcpu.arch.regs[VCPU_REGS_R15];
594 #endif
595 save->rip = svm->vcpu.arch.regs[VCPU_REGS_RIP];
596
597 /* Sync some non-GPR registers before encrypting */
598 save->xcr0 = svm->vcpu.arch.xcr0;
599 save->pkru = svm->vcpu.arch.pkru;
600 save->xss = svm->vcpu.arch.ia32_xss;
601 save->dr6 = svm->vcpu.arch.dr6;
602
603 return 0;
604 }
605
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
Re: [PATCH net-next 1/4] net: move gro definitions to include/net/gro.h
by kernel test robot
Hi Eric,
I love your patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Eric-Dumazet/gro-get-out-of-core...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 1274a4eb318debe33e395bb8bcf8b98e6eb4670f
config: csky-defconfig (attached as .config)
compiler: csky-linux-gcc (GCC) 11.2.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://github.com/0day-ci/linux/commit/4a142ba0812a293afcb259b08c89ab80c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Eric-Dumazet/gro-get-out-of-core-files/20211116-010906
git checkout 4a142ba0812a293afcb259b08c89ab80cb3dac6d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=csky
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from net/ipv4/af_inet.c:102:
include/net/gro.h: In function 'ip6_gro_compute_pseudo':
include/net/gro.h:413:29: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'? [-Werror=implicit-function-declaration]
413 | return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr,
| ^~~~~~~~~~~~~~~
| csum_tcpudp_magic
In file included from include/net/udplite.h:8,
from net/ipv4/af_inet.c:105:
include/net/ip6_checksum.h: At top level:
>> include/net/ip6_checksum.h:34:9: error: conflicting types for 'csum_ipv6_magic'; have '__sum16(const struct in6_addr *, const struct in6_addr *, __u32, __u8, __wsum)' {aka 'short unsigned int(const struct in6_addr *, const struct in6_addr *, unsigned int, unsigned char, unsigned int)'}
34 | __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
| ^~~~~~~~~~~~~~~
In file included from net/ipv4/af_inet.c:102:
include/net/gro.h:413:29: note: previous implicit declaration of 'csum_ipv6_magic' with type 'int()'
413 | return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr,
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +34 include/net/ip6_checksum.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 32
^1da177e4c3f41 Linus Torvalds 2005-04-16 33 #ifndef _HAVE_ARCH_IPV6_CSUM
acb3e04119fbf9 Cong Wang 2013-01-07 @34 __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
56649d5d3c4cb0 Al Viro 2006-11-14 35 const struct in6_addr *daddr,
1e94082963747b Alexander Duyck 2016-03-11 36 __u32 len, __u8 proto, __wsum csum);
^1da177e4c3f41 Linus Torvalds 2005-04-16 37 #endif
8663e02aba154e Vlad Yasevich 2012-11-15 38
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months