Re: [PATCH v5 10/10] powerpc/signal64: Use __get_user() to copy sigset_t
by kernel test robot
Hi "Christopher,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on powerpc/next]
[also build test WARNING on v5.11 next-20210215]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Christopher-M-Riedl/Improve-sign...
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc64-randconfig-s031-20210215 (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 9.3.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.3-215-g0fb77bb6-dirty
# https://github.com/0day-ci/linux/commit/c6e40a98c1ba2f91d123ef23844732b97...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Christopher-M-Riedl/Improve-signal-performance-on-PPC64-with-KUAP/20210204-025741
git checkout c6e40a98c1ba2f91d123ef23844732b97ea96fb3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc64
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 >>)"
>> arch/powerpc/kernel/signal_64.c:752:36: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct sigset_t const [usertype] *src @@ got struct sigset_t [noderef] __user * @@
arch/powerpc/kernel/signal_64.c:752:36: sparse: expected struct sigset_t const [usertype] *src
arch/powerpc/kernel/signal_64.c:752:36: sparse: got struct sigset_t [noderef] __user *
arch/powerpc/kernel/signal_64.c:712:36: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct sigset_t const [usertype] *src @@ got struct sigset_t [noderef] __user * @@
arch/powerpc/kernel/signal_64.c:712:36: sparse: expected struct sigset_t const [usertype] *src
arch/powerpc/kernel/signal_64.c:712:36: sparse: got struct sigset_t [noderef] __user *
>> arch/powerpc/kernel/signal_64.c:103:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned long const [noderef] __user *__gu_addr @@ got unsigned long const * @@
arch/powerpc/kernel/signal_64.c:103:24: sparse: expected unsigned long const [noderef] __user *__gu_addr
arch/powerpc/kernel/signal_64.c:103:24: sparse: got unsigned long const *
>> arch/powerpc/kernel/signal_64.c:105:46: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got struct sigset_t const [usertype] *src @@
arch/powerpc/kernel/signal_64.c:105:46: sparse: expected void const [noderef] __user *from
arch/powerpc/kernel/signal_64.c:105:46: sparse: got struct sigset_t const [usertype] *src
>> arch/powerpc/kernel/signal_64.c:103:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned long const [noderef] __user *__gu_addr @@ got unsigned long const * @@
arch/powerpc/kernel/signal_64.c:103:24: sparse: expected unsigned long const [noderef] __user *__gu_addr
arch/powerpc/kernel/signal_64.c:103:24: sparse: got unsigned long const *
>> arch/powerpc/kernel/signal_64.c:105:46: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got struct sigset_t const [usertype] *src @@
arch/powerpc/kernel/signal_64.c:105:46: sparse: expected void const [noderef] __user *from
arch/powerpc/kernel/signal_64.c:105:46: sparse: got struct sigset_t const [usertype] *src
vim +752 arch/powerpc/kernel/signal_64.c
733
734
735 /*
736 * Do a signal return; undo the signal stack.
737 */
738
739 SYSCALL_DEFINE0(rt_sigreturn)
740 {
741 struct pt_regs *regs = current_pt_regs();
742 struct ucontext __user *uc = (struct ucontext __user *)regs->gpr[1];
743 sigset_t set;
744 unsigned long msr;
745
746 /* Always make any pending restarted system calls return -EINTR */
747 current->restart_block.fn = do_no_restart_syscall;
748
749 if (!access_ok(uc, sizeof(*uc)))
750 goto badframe;
751
> 752 if (get_user_sigset(&set, &uc->uc_sigmask))
753 goto badframe;
754
755 set_current_blocked(&set);
756
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[intel-linux-intel-lts:5.4/yocto 1/1] drivers/spi/spi-dw-pci.c:155:5: warning: 'CONFIG_PM' is not defined, evaluates to 0
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf
commit: 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf [1/1] REVERT-ME: Temporary Enable D0i3 flow for PSE IOs
config: x86_64-randconfig-a004-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/intel/linux-intel-lts/commit/2e228f3df9479e9e061cc7e0b...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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/spi/spi-dw-pci.c:155:5: warning: 'CONFIG_PM' is not defined, evaluates to 0 [-Wundef]
#if CONFIG_PM
^
1 warning generated.
vim +/CONFIG_PM +155 drivers/spi/spi-dw-pci.c
154
> 155 #if CONFIG_PM
156 static int dw_spi_runtime_suspend(struct device *dev)
157 {
158 struct dw_spi *dws = dev_get_drvdata(dev);
159 unsigned long j0, j1, delay;
160 u32 d0i3c_reg;
161 u32 cgsr_reg;
162
163 delay = msecs_to_jiffies(100);
164 j0 = jiffies;
165 j1 = j0 + delay;
166
167
168 cgsr_reg = dw_readl(dws, PSE_SPI_CGSR);
169 dw_writel(dws, PSE_SPI_CGSR, PSE_SPI_D0I3_RR);
170
171 d0i3c_reg = dw_readl(dws, PSE_SPI_D0I3C);
172
173 if (d0i3c_reg & PSE_SPI_D0I3_CIP) {
174 dev_info(dev, "%s d0i3c CIP detected", __func__);
175 } else {
176 dw_writel(dws, PSE_SPI_D0I3C, PSE_SPI_D0I3_EN);
177 d0i3c_reg = dw_readl(dws, PSE_SPI_D0I3C);
178 }
179
180 while (time_before(jiffies, j1)) {
181 d0i3c_reg = dw_readl(dws, PSE_SPI_D0I3C);
182 if (!(d0i3c_reg & PSE_SPI_D0I3_CIP))
183 break;
184 }
185
186 if (d0i3c_reg & PSE_SPI_D0I3_CIP)
187 dev_info(dev, "%s: timeout waiting CIP to be cleared",
188 __func__);
189
190 return 0;
191 }
192
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-next:master 2510/11541] include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_549' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct abort_entry_24xx) != 64
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 52a0bcb60e40f30211cb5cbbb0f582ec4e91d896
commit: a04658594399e1fa25f984601b77ee840e6aaf01 [2510/11541] scsi: qla2xxx: Wait for ABTS response on I/O timeouts for NVMe
config: arm-randconfig-r005-20210215 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout a04658594399e1fa25f984601b77ee840e6aaf01
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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 <command-line>:
drivers/scsi/qla2xxx/qla_os.c: In function 'qla2x00_module_init':
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_541' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_a64_entry_t) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7782:2: note: in expansion of macro 'BUILD_BUG_ON'
7782 | BUILD_BUG_ON(sizeof(cmd_a64_entry_t) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_542' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_entry_t) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7783:2: note: in expansion of macro 'BUILD_BUG_ON'
7783 | BUILD_BUG_ON(sizeof(cmd_entry_t) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_546' declared with attribute error: BUILD_BUG_ON failed: sizeof(mrk_entry_t) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7787:2: note: in expansion of macro 'BUILD_BUG_ON'
7787 | BUILD_BUG_ON(sizeof(mrk_entry_t) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_547' declared with attribute error: BUILD_BUG_ON failed: sizeof(ms_iocb_entry_t) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7788:2: note: in expansion of macro 'BUILD_BUG_ON'
7788 | BUILD_BUG_ON(sizeof(ms_iocb_entry_t) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_548' declared with attribute error: BUILD_BUG_ON failed: sizeof(request_t) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7789:2: note: in expansion of macro 'BUILD_BUG_ON'
7789 | BUILD_BUG_ON(sizeof(request_t) != 64);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_549' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct abort_entry_24xx) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7790:2: note: in expansion of macro 'BUILD_BUG_ON'
7790 | BUILD_BUG_ON(sizeof(struct abort_entry_24xx) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_567' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio_crc2_to_fw) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7808:2: note: in expansion of macro 'BUILD_BUG_ON'
7808 | BUILD_BUG_ON(sizeof(struct ctio_crc2_to_fw) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_570' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct device_reg_2xxx) != 256
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7811:2: note: in expansion of macro 'BUILD_BUG_ON'
7811 | BUILD_BUG_ON(sizeof(struct device_reg_2xxx) != 256);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_576' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct imm_ntfy_from_isp) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7817:2: note: in expansion of macro 'BUILD_BUG_ON'
7817 | BUILD_BUG_ON(sizeof(struct imm_ntfy_from_isp) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_580' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct mbx_entry) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7821:2: note: in expansion of macro 'BUILD_BUG_ON'
7821 | BUILD_BUG_ON(sizeof(struct mbx_entry) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_586' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct pt_ls4_rx_unsol) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
vim +/__compiletime_assert_549 +326 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 312
eb5c2d4b45e3d2 Will Deacon 2020-07-21 313 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 314 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 315
eb5c2d4b45e3d2 Will Deacon 2020-07-21 316 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 317 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 318 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 319 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 320 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 321 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 322 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 323 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 324 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 325 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @326 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 327
:::::: The code at line 326 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
:::::: TO: Will Deacon <will(a)kernel.org>
:::::: CC: Will Deacon <will(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[frank-w-bpi-r2-4.14:5.11-mt76test 19/19] drivers/net/wireless/mediatek/Kconfig:16: can't open file "drivers/net/wireless/mediatek/mt76_test/Kconfig"
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.11-mt76test
head: 5d6e12bac94e425c29b890e7aa9e027a2edf9142
commit: 5d6e12bac94e425c29b890e7aa9e027a2edf9142 [19/19] mt76: add openwrt-version with additional patches
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/frank-w/BPI-R2-4.14/commit/5d6e12bac94e425c29b890e7aa9...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.11-mt76test
git checkout 5d6e12bac94e425c29b890e7aa9e027a2edf9142
# save the attached .config to linux build tree
make 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 errors (new ones prefixed by >>):
>> Error: kernelrelease not valid - run 'make prepare' to update it
--
>> drivers/net/wireless/mediatek/Kconfig:16: can't open file "drivers/net/wireless/mediatek/mt76_test/Kconfig"
--
>> scripts/Makefile.clean:15: drivers/net/wireless/mediatek/mt76_test/Makefile: No such file or directory
>> make[6]: *** No rule to make target 'drivers/net/wireless/mediatek/mt76_test/Makefile'.
make[6]: Failed to remake makefile 'drivers/net/wireless/mediatek/mt76_test/Makefile'.
make[5]: *** [scripts/Makefile.clean:71: drivers/net/wireless/mediatek/mt76_test] Error 2
make[5]: Target '__clean' not remade because of errors.
make[4]: *** [scripts/Makefile.clean:71: drivers/net/wireless/mediatek] Error 2
make[4]: Target '__clean' not remade because of errors.
make[3]: *** [scripts/Makefile.clean:71: drivers/net/wireless] Error 2
make[3]: Target '__clean' not remade because of errors.
make[2]: *** [scripts/Makefile.clean:71: drivers/net] Error 2
make[2]: Target '__clean' not remade because of errors.
make[1]: *** [Makefile:1812: _clean_drivers] Error 2
make[1]: Target 'distclean' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'distclean' not remade because of errors.
--
>> drivers/net/wireless/mediatek/Kconfig:16: can't open file "drivers/net/wireless/mediatek/mt76_test/Kconfig"
make[3]: *** [scripts/kconfig/Makefile:71: syncconfig] Error 1
make[2]: *** [Makefile:602: syncconfig] Error 2
make[1]: *** [Makefile:710: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
>> make[1]: *** No rule to make target 'modules_prepare'.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
>> drivers/net/wireless/mediatek/Kconfig:16: can't open file "drivers/net/wireless/mediatek/mt76_test/Kconfig"
make[2]: *** [scripts/kconfig/Makefile:71: olddefconfig] Error 1
make[1]: *** [Makefile:602: olddefconfig] Error 2
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'olddefconfig' not remade because of errors.
--
>> drivers/net/wireless/mediatek/Kconfig:16: can't open file "drivers/net/wireless/mediatek/mt76_test/Kconfig"
make[3]: *** [scripts/kconfig/Makefile:71: syncconfig] Error 1
make[2]: *** [Makefile:602: syncconfig] Error 2
make[1]: *** [Makefile:710: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
make[1]: *** [arch/x86/Makefile:278: checkbin] Error 1
>> Error: kernelrelease not valid - run 'make prepare' to update it
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +16 drivers/net/wireless/mediatek/Kconfig
> 16 source "drivers/net/wireless/mediatek/mt76_test/Kconfig"
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[arm-platforms:irq/irqchip-next 6/15] drivers/irqchip/irq-sun6i-r.c:215:79: sparse: sparse: Using plain integer as NULL pointer
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/irqchip-next
head: a890caeb2ba40ca183969230e204ab144f258357
commit: 4e34614636b31747b190488240a95647c227021f [6/15] irqchip/sun6i-r: Use a stacked irqchip driver
config: arm64-randconfig-s032-20210215 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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.3-215-g0fb77bb6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/irqchip-next
git checkout 4e34614636b31747b190488240a95647c227021f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.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/irqchip/irq-sun6i-r.c:215:79: sparse: sparse: Using plain integer as NULL pointer
vim +215 drivers/irqchip/irq-sun6i-r.c
184
185 static int sun6i_r_intc_domain_alloc(struct irq_domain *domain,
186 unsigned int virq,
187 unsigned int nr_irqs, void *arg)
188 {
189 struct irq_fwspec *fwspec = arg;
190 struct irq_fwspec gic_fwspec;
191 unsigned long hwirq;
192 unsigned int type;
193 int i, ret;
194
195 ret = sun6i_r_intc_domain_translate(domain, fwspec, &hwirq, &type);
196 if (ret)
197 return ret;
198 if (hwirq + nr_irqs > SUN6I_NR_MUX_BITS)
199 return -EINVAL;
200
201 /* Construct a GIC-compatible fwspec from this fwspec. */
202 gic_fwspec = (struct irq_fwspec) {
203 .fwnode = domain->parent->fwnode,
204 .param_count = 3,
205 .param = { GIC_SPI, hwirq, type },
206 };
207
208 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, &gic_fwspec);
209 if (ret)
210 return ret;
211
212 for (i = 0; i < nr_irqs; ++i, ++hwirq, ++virq) {
213 if (hwirq == nmi_hwirq) {
214 irq_domain_set_hwirq_and_chip(domain, virq, hwirq,
> 215 &sun6i_r_intc_nmi_chip, 0);
216 irq_set_handler(virq, handle_fasteoi_ack_irq);
217 } else {
218 /* Only the NMI is currently supported. */
219 return -EINVAL;
220 }
221 }
222
223 return 0;
224 }
225
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[tobetter-linux:odroid-5.11.y 50/88] drivers/char/exynos-gpiomem.c:121:22: error: implicit declaration of function 'phys_mem_access_prot'
by kernel test robot
tree: https://github.com/tobetter/linux odroid-5.11.y
head: f22a0a376737d4e5d61f155ab65bde2de835dc2e
commit: d565b01bf703a1fcb33747d62b76676ea1a64c64 [50/88] ODROID-XU4: char: exynos: add /dev/gpiomem device for rootless user GPIO access
config: riscv-randconfig-r031-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/tobetter/linux/commit/d565b01bf703a1fcb33747d62b76676e...
git remote add tobetter-linux https://github.com/tobetter/linux
git fetch --no-tags tobetter-linux odroid-5.11.y
git checkout d565b01bf703a1fcb33747d62b76676ea1a64c64
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
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/char/exynos-gpiomem.c:121:22: error: implicit declaration of function 'phys_mem_access_prot' [-Werror,-Wimplicit-function-declaration]
vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
^
drivers/char/exynos-gpiomem.c:121:20: error: assigning to 'pgprot_t' from incompatible type 'int'
vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
vim +/phys_mem_access_prot +121 drivers/char/exynos-gpiomem.c
106
107 static int exynos_gpiomem_mmap(struct file *file, struct vm_area_struct *vma)
108 {
109 int gpio_area = 0;
110
111 while (gpio_area < inst->gpio_area_count) {
112 if ((inst->gpio_regs_phys[gpio_area] >> PAGE_SHIFT) == vma->vm_pgoff)
113 goto found;
114
115 gpio_area++;
116 }
117
118 return -EACCES;
119
120 found:
> 121 vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
122 PAGE_SIZE,
123 vma->vm_page_prot);
124
125 vma->vm_ops = &exynos_gpiomem_vm_ops;
126
127 if (remap_pfn_range(vma, vma->vm_start,
128 vma->vm_pgoff,
129 PAGE_SIZE,
130 vma->vm_page_prot)) {
131 return -EAGAIN;
132 }
133
134 return 0;
135 }
136
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[intel-linux-intel-lts:5.4/preempt-rt 7040/14951] arch/arm/mach-imx/cpuidle-imx6q.c:65:32: error: 'struct cpuidle_state' has no member named 'disabled'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/preempt-rt
head: 6d57e4c1caf4b50e55d27251a39312fec10cd870
commit: 8bfaf7ab474ef5a95f5bd6a8724c4a9f8d0b9611 [7040/14951] cpuidle: Drop disabled field from struct cpuidle_state
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel/linux-intel-lts/commit/8bfaf7ab474ef5a95f5bd6a87...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/preempt-rt
git checkout 8bfaf7ab474ef5a95f5bd6a8724c4a9f8d0b9611
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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/arm/mach-imx/cpuidle-imx6q.c: In function 'imx6q_cpuidle_fec_irqs_used':
>> arch/arm/mach-imx/cpuidle-imx6q.c:65:32: error: 'struct cpuidle_state' has no member named 'disabled'
65 | imx6q_cpuidle_driver.states[1].disabled = true;
| ^
arch/arm/mach-imx/cpuidle-imx6q.c: In function 'imx6q_cpuidle_fec_irqs_unused':
arch/arm/mach-imx/cpuidle-imx6q.c:71:32: error: 'struct cpuidle_state' has no member named 'disabled'
71 | imx6q_cpuidle_driver.states[1].disabled = false;
| ^
--
arch/arm/mach-tegra/cpuidle-tegra20.c: In function 'tegra20_cpuidle_pcie_irqs_in_use':
>> arch/arm/mach-tegra/cpuidle-tegra20.c:206:29: error: 'struct cpuidle_state' has no member named 'disabled'
206 | tegra_idle_driver.states[1].disabled = true;
| ^
vim +65 arch/arm/mach-imx/cpuidle-imx6q.c
12bb344074cfc5 Shawn Guo 2012-12-04 56
29380905565655 Lucas Stach 2016-06-03 57 /*
29380905565655 Lucas Stach 2016-06-03 58 * i.MX6 Q/DL has an erratum (ERR006687) that prevents the FEC from waking the
29380905565655 Lucas Stach 2016-06-03 59 * CPUs when they are in wait(unclocked) state. As the hardware workaround isn't
29380905565655 Lucas Stach 2016-06-03 60 * applicable to all boards, disable the deeper idle state when the workaround
29380905565655 Lucas Stach 2016-06-03 61 * isn't present and the FEC is in use.
29380905565655 Lucas Stach 2016-06-03 62 */
29380905565655 Lucas Stach 2016-06-03 63 void imx6q_cpuidle_fec_irqs_used(void)
29380905565655 Lucas Stach 2016-06-03 64 {
29380905565655 Lucas Stach 2016-06-03 @65 imx6q_cpuidle_driver.states[1].disabled = true;
29380905565655 Lucas Stach 2016-06-03 66 }
2cb9caa4397405 Shawn Guo 2016-06-21 67 EXPORT_SYMBOL_GPL(imx6q_cpuidle_fec_irqs_used);
29380905565655 Lucas Stach 2016-06-03 68
:::::: The code at line 65 was first introduced by commit
:::::: 29380905565655bb797bf670a173bddb8e641da6 ARM: imx6: disable deeper idle states when FEC is active w/o HW workaround
:::::: TO: Lucas Stach <l.stach(a)pengutronix.de>
:::::: CC: Shawn Guo <shawnguo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH v6 6/7] Reimplement RLIMIT_MEMLOCK on top of ucounts
by kernel test robot
Hi Alexey,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on kselftest/next]
[also build test ERROR on linux/master linus/master v5.11 next-20210212]
[cannot apply to hnaz-linux-mm/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Alexey-Gladkov/Count-rlimits-in-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next
config: openrisc-randconfig-r001-20210215 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/f009495a8def89a71b9e0b9025a39379d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alexey-Gladkov/Count-rlimits-in-each-user-namespace/20210215-204524
git checkout f009495a8def89a71b9e0b9025a39379d6f9097d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc
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 >>):
mm/mmap.c: In function 'ksys_mmap_pgoff':
>> mm/mmap.c:1626:5: error: passing argument 4 of 'hugetlb_file_setup' from incompatible pointer type [-Werror=incompatible-pointer-types]
1626 | &cred, HUGETLB_ANONHUGE_INODE,
| ^~~~~
| |
| const struct cred **
In file included from mm/mmap.c:28:
include/linux/hugetlb.h:457:17: note: expected 'struct cred **' but argument is of type 'const struct cred **'
457 | struct cred **cred, int creat_flags,
| ~~~~~~~~~~~~~~^~~~
cc1: some warnings being treated as errors
--
mm/memfd.c: In function '__do_sys_memfd_create':
>> mm/memfd.c:301:52: error: passing argument 4 of 'hugetlb_file_setup' from incompatible pointer type [-Werror=incompatible-pointer-types]
301 | file = hugetlb_file_setup(name, 0, VM_NORESERVE, &cred,
| ^~~~~
| |
| const struct cred **
In file included from mm/memfd.c:18:
include/linux/hugetlb.h:457:17: note: expected 'struct cred **' but argument is of type 'const struct cred **'
457 | struct cred **cred, int creat_flags,
| ~~~~~~~~~~~~~~^~~~
cc1: some warnings being treated as errors
--
ipc/shm.c: In function 'newseg':
>> ipc/shm.c:653:5: error: passing argument 4 of 'hugetlb_file_setup' from incompatible pointer type [-Werror=incompatible-pointer-types]
653 | &shp->mlock_cred, HUGETLB_SHMFS_INODE,
| ^~~~~~~~~~~~~~~~
| |
| const struct cred **
In file included from ipc/shm.c:30:
include/linux/hugetlb.h:457:17: note: expected 'struct cred **' but argument is of type 'const struct cred **'
457 | struct cred **cred, int creat_flags,
| ~~~~~~~~~~~~~~^~~~
cc1: some warnings being treated as errors
vim +/hugetlb_file_setup +1626 mm/mmap.c
1590
1591 unsigned long ksys_mmap_pgoff(unsigned long addr, unsigned long len,
1592 unsigned long prot, unsigned long flags,
1593 unsigned long fd, unsigned long pgoff)
1594 {
1595 struct file *file = NULL;
1596 unsigned long retval;
1597
1598 if (!(flags & MAP_ANONYMOUS)) {
1599 audit_mmap_fd(fd, flags);
1600 file = fget(fd);
1601 if (!file)
1602 return -EBADF;
1603 if (is_file_hugepages(file)) {
1604 len = ALIGN(len, huge_page_size(hstate_file(file)));
1605 } else if (unlikely(flags & MAP_HUGETLB)) {
1606 retval = -EINVAL;
1607 goto out_fput;
1608 }
1609 } else if (flags & MAP_HUGETLB) {
1610 const struct cred *cred;
1611 struct hstate *hs;
1612
1613 hs = hstate_sizelog((flags >> MAP_HUGE_SHIFT) & MAP_HUGE_MASK);
1614 if (!hs)
1615 return -EINVAL;
1616
1617 len = ALIGN(len, huge_page_size(hs));
1618 /*
1619 * VM_NORESERVE is used because the reservations will be
1620 * taken when vm_ops->mmap() is called
1621 * A dummy user value is used because we are not locking
1622 * memory so no accounting is necessary
1623 */
1624 file = hugetlb_file_setup(HUGETLB_ANON_FILE, len,
1625 VM_NORESERVE,
> 1626 &cred, HUGETLB_ANONHUGE_INODE,
1627 (flags >> MAP_HUGE_SHIFT) & MAP_HUGE_MASK);
1628 if (IS_ERR(file))
1629 return PTR_ERR(file);
1630 }
1631
1632 flags &= ~(MAP_EXECUTABLE | MAP_DENYWRITE);
1633
1634 retval = vm_mmap_pgoff(file, addr, len, prot, flags, pgoff);
1635 out_fput:
1636 if (file)
1637 fput(file);
1638 return retval;
1639 }
1640
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [RFC PATCH 04/13] futex2: Implement requeue operation
by kernel test robot
Hi "André,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on tip/locking/core]
[also build test ERROR on tip/x86/asm arm64/for-next/core tip/perf/core linus/master v5.11]
[cannot apply to next-20210212]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Andr-Almeida/Add-futex2-syscalls...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 3765d01bab73bdb920ef711203978f02cd26e4da
config: riscv-randconfig-r034-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/0day-ci/linux/commit/455187a88266576bf8dee8f386d9b1637...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andr-Almeida/Add-futex2-syscalls/20210215-233004
git checkout 455187a88266576bf8dee8f386d9b16378e6cd93
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
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 arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:22:
In file included from include/linux/seccomp.h:21:
In file included from arch/riscv/include/asm/seccomp.h:6:
In file included from arch/riscv/include/asm/unistd.h:13:
In file included from arch/riscv/include/uapi/asm/unistd.h:24:
>> include/uapi/asm-generic/unistd.h:875:50: error: too many arguments provided to function-like macro invocation
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
include/uapi/asm-generic/unistd.h:16:9: note: macro '__SYSCALL' defined here
#define __SYSCALL(x, y)
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:22:
In file included from include/linux/seccomp.h:21:
In file included from arch/riscv/include/asm/seccomp.h:8:
In file included from include/asm-generic/seccomp.h:11:
In file included from include/uapi/linux/unistd.h:8:
In file included from arch/riscv/include/asm/unistd.h:13:
In file included from arch/riscv/include/uapi/asm/unistd.h:24:
>> include/uapi/asm-generic/unistd.h:875:50: error: too many arguments provided to function-like macro invocation
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
include/uapi/asm-generic/unistd.h:16:9: note: macro '__SYSCALL' defined here
#define __SYSCALL(x, y)
^
>> include/uapi/asm-generic/unistd.h:875:1: error: unknown type name '__SYSCALL'
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:22:
In file included from include/linux/seccomp.h:21:
In file included from arch/riscv/include/asm/seccomp.h:8:
In file included from include/asm-generic/seccomp.h:11:
In file included from include/uapi/linux/unistd.h:8:
In file included from arch/riscv/include/asm/unistd.h:13:
In file included from arch/riscv/include/uapi/asm/unistd.h:24:
>> include/uapi/asm-generic/unistd.h:875:10: error: expected ';' after top level declarator
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
;
4 errors generated.
--
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:22:
In file included from include/linux/seccomp.h:21:
In file included from arch/riscv/include/asm/seccomp.h:6:
In file included from arch/riscv/include/asm/unistd.h:13:
In file included from arch/riscv/include/uapi/asm/unistd.h:24:
>> include/uapi/asm-generic/unistd.h:875:50: error: too many arguments provided to function-like macro invocation
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
include/uapi/asm-generic/unistd.h:16:9: note: macro '__SYSCALL' defined here
#define __SYSCALL(x, y)
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:22:
In file included from include/linux/seccomp.h:21:
In file included from arch/riscv/include/asm/seccomp.h:8:
In file included from include/asm-generic/seccomp.h:11:
In file included from include/uapi/linux/unistd.h:8:
In file included from arch/riscv/include/asm/unistd.h:13:
In file included from arch/riscv/include/uapi/asm/unistd.h:24:
>> include/uapi/asm-generic/unistd.h:875:50: error: too many arguments provided to function-like macro invocation
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
include/uapi/asm-generic/unistd.h:16:9: note: macro '__SYSCALL' defined here
#define __SYSCALL(x, y)
^
>> include/uapi/asm-generic/unistd.h:875:1: error: unknown type name '__SYSCALL'
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:22:
In file included from include/linux/seccomp.h:21:
In file included from arch/riscv/include/asm/seccomp.h:8:
In file included from include/asm-generic/seccomp.h:11:
In file included from include/uapi/linux/unistd.h:8:
In file included from arch/riscv/include/asm/unistd.h:13:
In file included from arch/riscv/include/uapi/asm/unistd.h:24:
>> include/uapi/asm-generic/unistd.h:875:10: error: expected ';' after top level declarator
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
;
4 errors generated.
make[2]: *** [scripts/Makefile.build:117: arch/riscv/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1201: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:22:
In file included from include/linux/seccomp.h:21:
In file included from arch/riscv/include/asm/seccomp.h:6:
In file included from arch/riscv/include/asm/unistd.h:13:
In file included from arch/riscv/include/uapi/asm/unistd.h:24:
>> include/uapi/asm-generic/unistd.h:875:50: error: too many arguments provided to function-like macro invocation
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
include/uapi/asm-generic/unistd.h:16:9: note: macro '__SYSCALL' defined here
#define __SYSCALL(x, y)
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:22:
In file included from include/linux/seccomp.h:21:
In file included from arch/riscv/include/asm/seccomp.h:8:
In file included from include/asm-generic/seccomp.h:11:
In file included from include/uapi/linux/unistd.h:8:
In file included from arch/riscv/include/asm/unistd.h:13:
In file included from arch/riscv/include/uapi/asm/unistd.h:24:
>> include/uapi/asm-generic/unistd.h:875:50: error: too many arguments provided to function-like macro invocation
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
include/uapi/asm-generic/unistd.h:16:9: note: macro '__SYSCALL' defined here
#define __SYSCALL(x, y)
^
>> include/uapi/asm-generic/unistd.h:875:1: error: unknown type name '__SYSCALL'
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:22:
In file included from include/linux/seccomp.h:21:
In file included from arch/riscv/include/asm/seccomp.h:8:
In file included from include/asm-generic/seccomp.h:11:
In file included from include/uapi/linux/unistd.h:8:
In file included from arch/riscv/include/asm/unistd.h:13:
In file included from arch/riscv/include/uapi/asm/unistd.h:24:
>> include/uapi/asm-generic/unistd.h:875:10: error: expected ';' after top level declarator
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
;
4 errors generated.
make[2]: *** [scripts/Makefile.build:117: arch/riscv/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1201: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +875 include/uapi/asm-generic/unistd.h
873
874 #define __NR_futex_requeue 445
> 875 __SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
876
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months