ld.lld: error: main.c:(.text+0x1D0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: Alexey Kardashevskiy <aik(a)ozlabs.ru>
CC: "Steven Rostedt (VMware)" <rostedt(a)goodmis.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dcc0b49040c70ad827a7f3d58a21b01fdb14e749
commit: c8b186a8d54d7e12d28e9f9686cb00ff18fc2ab2 tracepoint: Fix race between tracing and removing tracepoint
date: 11 days ago
config: riscv-randconfig-r005-20210213 (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://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 c8b186a8d54d7e12d28e9f9686cb00ff18fc2ab2
# 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 >>):
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x3E): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x150): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x114E): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x1190): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x1212): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x122C): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x98): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x130): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0x1D0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0x3EA): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x53A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x724): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x820): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0xA14): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0xB1A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x1220): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x127A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
ld.lld: error: failed to open fs/ext4/ext4.o: Cannot allocate memory
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: Lin Feng <linf(a)wangsu.com>
CC: Jens Axboe <axboe(a)kernel.dk>
CC: Jan Kara <jack(a)suse.cz>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dcc0b49040c70ad827a7f3d58a21b01fdb14e749
commit: 388c705b95f23f317fa43e6abf9ff07b583b721a bfq-iosched: Revert "bfq: Fix computation of shallow depth"
date: 11 days ago
config: x86_64-randconfig-a012-20210214 (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://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 388c705b95f23f317fa43e6abf9ff07b583b721a
# 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 errors (new ones prefixed by >>):
terminate called after throwing an instance of 'std::system_error'
what(): Resource temporarily unavailable
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
>> ld.lld: error: failed to open fs/ext4/ext4.o: Cannot allocate memory
#0 0x000055984dee4c8c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/cross/clang-c9439ca363/bin/lld+0x929c8c)
#1 0x000055984dee2ac4 llvm::sys::RunSignalHandlers() (/opt/cross/clang-c9439ca363/bin/lld+0x927ac4)
#2 0x000055984dee2c23 SignalHandler(int) (/opt/cross/clang-c9439ca363/bin/lld+0x927c23)
#3 0x00007f64f8e09730 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12730)
#4 0x00007f64f893b7bb raise (/lib/x86_64-linux-gnu/libc.so.6+0x377bb)
#5 0x00007f64f8926535 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22535)
#6 0x00007f64f8cf0983 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x8c983)
#7 0x00007f64f8cf68c6 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x928c6)
#8 0x00007f64f8cf6901 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x92901)
#9 0x00007f64f8cf6b34 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x92b34)
#10 0x00007f64f8cf2a55 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x8ea55)
#11 0x00007f64f8d1fdc9 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xbbdc9)
#12 0x0000559850c6b1f1 std::thread::_State_impl<std::thread::_Invoker<std::tuple<llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::'lambda'()> > >::_M_run() (/opt/cross/clang-c9439ca363/bin/lld+0x36b01f1)
#13 0x00007f64f8d1fb2f (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xbbb2f)
#14 0x00007f64f8dfefa3 start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x7fa3)
#15 0x00007f64f89fd4cf clone (/lib/x86_64-linux-gnu/libc.so.6+0xf94cf)
/bin/bash: line 1: 138867 Aborted ld.lld -m elf_x86_64 -r -o fs/ext4/ext4.o fs/ext4/balloc.o fs/ext4/bitmap.o fs/ext4/block_validity.o fs/ext4/dir.o fs/ext4/ext4_jbd2.o fs/ext4/extents.o fs/ext4/extents_status.o fs/ext4/file.o fs/ext4/fsmap.o fs/ext4/fsync.o fs/ext4/hash.o fs/ext4/ialloc.o fs/ext4/indirect.o fs/ext4/inline.o fs/ext4/inode.o fs/ext4/ioctl.o fs/ext4/mballoc.o fs/ext4/migrate.o fs/ext4/mmp.o fs/ext4/move_extent.o fs/ext4/namei.o fs/ext4/page-io.o fs/ext4/readpage.o fs/ext4/resize.o fs/ext4/super.o fs/ext4/symlink.o fs/ext4/sysfs.o fs/ext4/xattr.o fs/ext4/xattr_hurd.o fs/ext4/xattr_trusted.o fs/ext4/xattr_user.o fs/ext4/fast_commit.o fs/ext4/acl.o fs/ext4/xattr_security.o
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
kernel/bpf/btf.c:5346:22: warning: function might be possible candidate for 'gnu_printf' format attribute
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dcc0b49040c70ad827a7f3d58a21b01fdb14e749
commit: 31d0bc81637d8d974a6dad9827b765b4b70c89d7 bpf: Move to generic BTF show support, apply it to seq files/strings
date: 5 months ago
config: x86_64-randconfig-a001-20200622 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce (this is a W=1 build):
# 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 31d0bc81637d8d974a6dad9827b765b4b70c89d7
# 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 warnings (new ones prefixed by >>):
kernel/bpf/btf.c: In function 'btf_seq_show':
>> kernel/bpf/btf.c:5346:22: warning: function might be possible candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
seq_vprintf((struct seq_file *)show->target, fmt, args);
^
kernel/bpf/btf.c: In function 'btf_snprintf_show':
kernel/bpf/btf.c:5383:2: warning: function might be possible candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
len = vsnprintf(show->target, ssnprintf->len_left, fmt, args);
^
vim +/gnu_printf +5346 kernel/bpf/btf.c
5342
5343 static void btf_seq_show(struct btf_show *show, const char *fmt,
5344 va_list args)
5345 {
> 5346 seq_vprintf((struct seq_file *)show->target, fmt, args);
5347 }
5348
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[android-goldfish:android-3.18 13244/17780] drivers/ata/libata-scsi.c:1648:7: error: implicit declaration of function 'blk_rq_is_passthrough'
by kernel test robot
tree: https://android.googlesource.com/kernel/goldfish android-3.18
head: e57956d9b06ef68154e596d853a08dbb24654a07
commit: 14b7e7aed01fb11261d841ea622a31342d6a57ad [13244/17780] libata: have ata_scsi_rw_xlat() fail invalid passthrough requests
config: powerpc-randconfig-r016-20210213 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 5.5.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
git remote add android-goldfish https://android.googlesource.com/kernel/goldfish
git fetch --no-tags android-goldfish android-3.18
git checkout 14b7e7aed01fb11261d841ea622a31342d6a57ad
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-5.5.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 errors (new ones prefixed by >>):
include/linux/blk-mq.h:111:2: error: unknown type name 'softirq_done_fn'
softirq_done_fn *complete;
^
include/linux/blk-mq.h:162:35: warning: 'struct request' declared inside parameter list
void blk_mq_insert_request(struct request *, bool, bool, bool);
^
include/linux/blk-mq.h:164:33: warning: 'struct request' declared inside parameter list
void blk_mq_free_request(struct request *rq);
^
include/linux/blk-mq.h: In function 'blk_mq_rq_from_pdu':
include/linux/blk-mq.h:197:22: error: invalid application of 'sizeof' to incomplete type 'struct request'
return pdu - sizeof(struct request);
^
include/linux/blk-mq.h: In function 'blk_mq_rq_to_pdu':
include/linux/blk-mq.h:201:30: error: dereferencing pointer to incomplete type 'struct request'
return (void *) rq + sizeof(*rq);
^
In file included from drivers/ata/libata-scsi.c:43:0:
include/scsi/scsi_cmnd.h: At top level:
include/scsi/scsi_cmnd.h:30:25: warning: "BLK_MAX_CDB" is not defined [-Wundef]
#if (MAX_COMMAND_SIZE > BLK_MAX_CDB)
^
include/scsi/scsi_cmnd.h:31:3: error: #error MAX_COMMAND_SIZE can not be bigger than BLK_MAX_CDB
# error MAX_COMMAND_SIZE can not be bigger than BLK_MAX_CDB
^
include/scsi/scsi_cmnd.h: In function 'scsi_bidi_cmnd':
include/scsi/scsi_cmnd.h:197:9: error: implicit declaration of function 'blk_bidi_rq' [-Werror=implicit-function-declaration]
return blk_bidi_rq(cmd->request) &&
^
include/scsi/scsi_cmnd.h: In function 'scsi_get_lba':
include/scsi/scsi_cmnd.h:290:9: error: implicit declaration of function 'blk_rq_pos' [-Werror=implicit-function-declaration]
return blk_rq_pos(scmd->request);
^
In file included from drivers/ata/libata-scsi.c:44:0:
include/scsi/scsi_eh.h: At top level:
include/scsi/scsi_eh.h:84:24: error: 'BLK_MAX_CDB' undeclared here (not in a function)
unsigned char eh_cmnd[BLK_MAX_CDB];
^
In file included from include/linux/libata.h:35:0,
from drivers/ata/libata-scsi.c:48:
include/linux/ata.h: In function 'ata_id_is_lba_capacity_ok':
include/linux/ata.h:930:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(lba_sects >= 16383 * 63 * id[ATA_ID_HEADS]))
^
In file included from drivers/ata/libata-scsi.c:48:0:
include/linux/libata.h: In function 'ata_msg_init':
include/linux/libata.h:112:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (dval < 0 || dval >= (sizeof(u32) * 8))
^
drivers/ata/libata-scsi.c: In function 'ata_scsi_park_store':
drivers/ata/libata-scsi.c:266:17: warning: signed and unsigned type in conditional expression [-Wsign-compare]
return rc ? rc : len;
^
drivers/ata/libata-scsi.c: In function 'ata_sas_scsi_ioctl':
drivers/ata/libata-scsi.c:698:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (val != ata_ioc32(ap))
^
In file included from include/linux/linkage.h:4:0,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/mmzone.h:7,
from include/linux/gfp.h:5,
from include/linux/slab.h:14,
from drivers/ata/libata-scsi.c:36:
drivers/ata/libata-scsi.c: In function 'atapi_drain_needed':
drivers/ata/libata-scsi.c:1103:29: error: 'REQ_TYPE_BLOCK_PC' undeclared (first use in this function)
if (likely(rq->cmd_type != REQ_TYPE_BLOCK_PC))
^
include/linux/compiler.h:159:40: note: in definition of macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
drivers/ata/libata-scsi.c:1103:29: note: each undeclared identifier is reported only once for each function it appears in
if (likely(rq->cmd_type != REQ_TYPE_BLOCK_PC))
^
include/linux/compiler.h:159:40: note: in definition of macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
drivers/ata/libata-scsi.c:1106:7: error: implicit declaration of function 'blk_rq_bytes' [-Werror=implicit-function-declaration]
if (!blk_rq_bytes(rq) || (rq->cmd_flags & REQ_WRITE))
^
drivers/ata/libata-scsi.c: In function 'ata_scsi_dev_config':
drivers/ata/libata-scsi.c:1121:2: error: implicit declaration of function 'blk_queue_max_hw_sectors' [-Werror=implicit-function-declaration]
blk_queue_max_hw_sectors(q, dev->max_sectors);
^
drivers/ata/libata-scsi.c:1129:3: error: implicit declaration of function 'blk_queue_update_dma_pad' [-Werror=implicit-function-declaration]
blk_queue_update_dma_pad(q, ATA_DMA_PAD_SZ - 1);
^
drivers/ata/libata-scsi.c:1132:35: error: dereferencing pointer to incomplete type 'struct request_queue'
buf = kmalloc(ATAPI_MAX_DRAIN, q->bounce_gfp | GFP_KERNEL);
^
drivers/ata/libata-scsi.c:1138:3: error: implicit declaration of function 'blk_queue_dma_drain' [-Werror=implicit-function-declaration]
blk_queue_dma_drain(q, atapi_drain_needed, buf, ATAPI_MAX_DRAIN);
^
drivers/ata/libata-scsi.c:1156:2: error: implicit declaration of function 'blk_queue_update_dma_alignment' [-Werror=implicit-function-declaration]
blk_queue_update_dma_alignment(q, sdev->sector_size - 1);
^
drivers/ata/libata-scsi.c:1169:2: error: implicit declaration of function 'blk_queue_flush_queueable' [-Werror=implicit-function-declaration]
blk_queue_flush_queueable(q, false);
^
drivers/ata/libata-scsi.c: In function 'ata_check_nblocks':
>> drivers/ata/libata-scsi.c:1648:7: error: implicit declaration of function 'blk_rq_is_passthrough' [-Werror=implicit-function-declaration]
if (!blk_rq_is_passthrough(rq))
^
drivers/ata/libata-scsi.c: In function 'ata_scsi_mode_select_xlat':
drivers/ata/libata-scsi.c:3263:56: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (!scsi_sg_count(scmd) || scsi_sglist(scmd)->length < len)
^
drivers/ata/libata-scsi.c:3269:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (len < hdr_len)
^
drivers/ata/libata-scsi.c:3279:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (len < bd_len)
^
drivers/ata/libata-scsi.c:3315:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pg_len > len)
^
drivers/ata/libata-scsi.c:3332:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (len > pg_len)
^
In file included from include/linux/linkage.h:4:0,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/mmzone.h:7,
from include/linux/gfp.h:5,
from include/linux/slab.h:14,
from drivers/ata/libata-scsi.c:36:
drivers/ata/libata-scsi.c: In function '__ata_scsi_queuecmd':
drivers/ata/libata-scsi.c:3454:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
len > dev->cdb_len ||
^
include/linux/compiler.h:160:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
drivers/ata/libata-scsi.c: In function 'ata_scsi_add_hosts':
drivers/ata/libata-scsi.c:3652:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < host->n_ports; i++) {
^
drivers/ata/libata-scsi.c: In function 'ata_scsi_user_scan':
drivers/ata/libata-scsi.c:3984:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (lun != SCAN_WILD_CARD && lun)
^
drivers/ata/libata-scsi.c:3988:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (channel != SCAN_WILD_CARD && channel)
^
drivers/ata/libata-scsi.c:3992:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (id != SCAN_WILD_CARD && id)
^
drivers/ata/libata-scsi.c: In function 'atapi_drain_needed':
drivers/ata/libata-scsi.c:1110:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cc1: some warnings being treated as errors
vim +/blk_rq_is_passthrough +1648 drivers/ata/libata-scsi.c
1642
1643 static bool ata_check_nblocks(struct scsi_cmnd *scmd, u32 n_blocks)
1644 {
1645 struct request *rq = scmd->request;
1646 u32 req_blocks;
1647
> 1648 if (!blk_rq_is_passthrough(rq))
1649 return true;
1650
1651 req_blocks = blk_rq_bytes(rq) / scmd->device->sector_size;
1652 if (n_blocks > req_blocks)
1653 return false;
1654
1655 return true;
1656 }
1657
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[android-goldfish:android-3.18 74/187] net/rxrpc/ar-key.c:1188:25: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://android.googlesource.com/kernel/goldfish android-3.18
head: e4742bb317218e1c75c86aa765e50cdd06d2c007
commit: b0b3266cbcbe8f9b81cb9b5b1e6cf656e774fc5c [74/187] rxrpc: Fix rxkad token xdr encoding
config: sh-randconfig-s031-20210213 (attached as .config)
compiler: sh4-linux-gcc (GCC) 5.5.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
git remote add android-goldfish https://android.googlesource.com/kernel/goldfish
git fetch --no-tags android-goldfish android-3.18
git checkout b0b3266cbcbe8f9b81cb9b5b1e6cf656e774fc5c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-5.5.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sh
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 >>)"
>> net/rxrpc/ar-key.c:1188:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *__to @@ got restricted __be32 [noderef] [usertype] <asn:1> *[assigned] xdr @@
net/rxrpc/ar-key.c:1188:25: sparse: expected void *__to
net/rxrpc/ar-key.c:1188:25: sparse: got restricted __be32 [noderef] [usertype] <asn:1> *[assigned] xdr
net/rxrpc/ar-key.c:1188:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/rxrpc/ar-key.c: note: in included file (through include/net/checksum.h, include/linux/skbuff.h):
arch/sh/include/asm/uaccess.h:154:47: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] <asn:1> *from @@
arch/sh/include/asm/uaccess.h:154:47: sparse: expected void const *from
arch/sh/include/asm/uaccess.h:154:47: sparse: got void const [noderef] <asn:1> *from
arch/sh/include/asm/uaccess.h:154:47: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] <asn:1> *from @@
arch/sh/include/asm/uaccess.h:154:47: sparse: expected void const *from
arch/sh/include/asm/uaccess.h:154:47: sparse: got void const [noderef] <asn:1> *from
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
arch/sh/include/asm/uaccess.h:169:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:1> *to @@
arch/sh/include/asm/uaccess.h:169:36: sparse: expected void *to
arch/sh/include/asm/uaccess.h:169:36: sparse: got void [noderef] <asn:1> *to
cc1: warning: arch/sh/include/cpu-sh2a: No such file or directory [-Wmissing-include-dirs]
cc1: warning: arch/sh/include/cpu-sh2: No such file or directory [-Wmissing-include-dirs]
cc1: warning: arch/sh/include/cpu-common: No such file or directory [-Wmissing-include-dirs]
cc1: warning: arch/sh/include/mach-common: No such file or directory [-Wmissing-include-dirs]
cc1: warning: arch/sh/include/cpu-sh2a: No such file or directory [-Wmissing-include-dirs]
cc1: warning: arch/sh/include/cpu-sh2: No such file or directory [-Wmissing-include-dirs]
cc1: warning: arch/sh/include/cpu-common: No such file or directory [-Wmissing-include-dirs]
cc1: warning: arch/sh/include/mach-common: No such file or directory [-Wmissing-include-dirs]
In file included from net/rxrpc/ar-key.c:17:0:
include/linux/skbuff.h: In function 'skb_can_coalesce':
include/linux/skbuff.h:2528:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
off == frag->page_offset + skb_frag_size(frag);
vim +1188 net/rxrpc/ar-key.c
1129
1130 if (!buffer || buflen < size)
1131 return size;
1132
1133 xdr = (__be32 __user *) buffer;
1134 zero = 0;
1135 #define ENCODE(x) \
1136 do { \
1137 __be32 y = htonl(x); \
1138 if (put_user(y, xdr++) < 0) \
1139 goto fault; \
1140 } while(0)
1141 #define ENCODE_DATA(l, s) \
1142 do { \
1143 u32 _l = (l); \
1144 ENCODE(l); \
1145 if (copy_to_user(xdr, (s), _l) != 0) \
1146 goto fault; \
1147 if (_l & 3 && \
1148 copy_to_user((u8 __user *)xdr + _l, &zero, 4 - (_l & 3)) != 0) \
1149 goto fault; \
1150 xdr += (_l + 3) >> 2; \
1151 } while(0)
1152 #define ENCODE_BYTES(l, s) \
1153 do { \
1154 u32 _l = (l); \
1155 memcpy(xdr, (s), _l); \
1156 if (_l & 3) \
1157 memcpy((u8 *)xdr + _l, &zero, 4 - (_l & 3)); \
1158 xdr += (_l + 3) >> 2; \
1159 } while(0)
1160 #define ENCODE64(x) \
1161 do { \
1162 __be64 y = cpu_to_be64(x); \
1163 if (copy_to_user(xdr, &y, 8) != 0) \
1164 goto fault; \
1165 xdr += 8 >> 2; \
1166 } while(0)
1167 #define ENCODE_STR(s) \
1168 do { \
1169 const char *_s = (s); \
1170 ENCODE_DATA(strlen(_s), _s); \
1171 } while(0)
1172
1173 ENCODE(0); /* flags */
1174 ENCODE_DATA(cnlen, key->description + 4); /* cellname */
1175 ENCODE(ntoks);
1176
1177 tok = 0;
1178 for (token = key->payload.data; token; token = token->next) {
1179 toksize = toksizes[tok++];
1180 ENCODE(toksize);
1181 oldxdr = xdr;
1182 ENCODE(token->security_index);
1183
1184 switch (token->security_index) {
1185 case RXRPC_SECURITY_RXKAD:
1186 ENCODE(token->kad->vice_id);
1187 ENCODE(token->kad->kvno);
> 1188 ENCODE_BYTES(8, token->kad->session_key);
1189 ENCODE(token->kad->start);
1190 ENCODE(token->kad->expiry);
1191 ENCODE(token->kad->primary_flag);
1192 ENCODE_DATA(token->kad->ticket_len, token->kad->ticket);
1193 break;
1194
1195 case RXRPC_SECURITY_RXK5:
1196 princ = &token->k5->client;
1197 ENCODE(princ->n_name_parts);
1198 for (loop = 0; loop < princ->n_name_parts; loop++)
1199 ENCODE_STR(princ->name_parts[loop]);
1200 ENCODE_STR(princ->realm);
1201
1202 princ = &token->k5->server;
1203 ENCODE(princ->n_name_parts);
1204 for (loop = 0; loop < princ->n_name_parts; loop++)
1205 ENCODE_STR(princ->name_parts[loop]);
1206 ENCODE_STR(princ->realm);
1207
1208 ENCODE(token->k5->session.tag);
1209 ENCODE_DATA(token->k5->session.data_len,
1210 token->k5->session.data);
1211
1212 ENCODE64(token->k5->authtime);
1213 ENCODE64(token->k5->starttime);
1214 ENCODE64(token->k5->endtime);
1215 ENCODE64(token->k5->renew_till);
1216 ENCODE(token->k5->is_skey);
1217 ENCODE(token->k5->flags);
1218
1219 ENCODE(token->k5->n_addresses);
1220 for (loop = 0; loop < token->k5->n_addresses; loop++) {
1221 ENCODE(token->k5->addresses[loop].tag);
1222 ENCODE_DATA(token->k5->addresses[loop].data_len,
1223 token->k5->addresses[loop].data);
1224 }
1225
1226 ENCODE_DATA(token->k5->ticket_len, token->k5->ticket);
1227 ENCODE_DATA(token->k5->ticket2_len, token->k5->ticket2);
1228
1229 ENCODE(token->k5->n_authdata);
1230 for (loop = 0; loop < token->k5->n_authdata; loop++) {
1231 ENCODE(token->k5->authdata[loop].tag);
1232 ENCODE_DATA(token->k5->authdata[loop].data_len,
1233 token->k5->authdata[loop].data);
1234 }
1235 break;
1236
1237 default:
1238 BUG();
1239 break;
1240 }
1241
1242 ASSERTCMP((unsigned long)xdr - (unsigned long)oldxdr, ==,
1243 toksize);
1244 }
1245
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[android-goldfish:android-3.18 442/460] drivers/mmc/host/sdhci-of-esdhc.c:361:11: error: dereferencing pointer to incomplete type 'struct sdhci_esdhc'
by kernel test robot
tree: https://android.googlesource.com/kernel/goldfish android-3.18
head: 03c65f790cc49ff38432f8c39f3cd1320fcb1f2a
commit: dc29f368658a96818bc9c602b0f160e603a0d4a6 [442/460] mmc: sdhci-of-esdhc: add/remove some quirks according to vendor version
config: powerpc64-randconfig-p002-20210213 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 5.5.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
git remote add android-goldfish https://android.googlesource.com/kernel/goldfish
git fetch --no-tags android-goldfish android-3.18
git checkout dc29f368658a96818bc9c602b0f160e603a0d4a6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-5.5.0 make.cross ARCH=powerpc64
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/powerpc/kernel/cputable.c:14:0:
>> include/linux/sched.h:1067:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
^
arch/powerpc/kernel/cputable.c: In function 'identify_cpu':
arch/powerpc/kernel/cputable.c:2166:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (i = 0; i < ARRAY_SIZE(cpu_specs); i++,s++) {
^
cc1: all warnings being treated as errors
--
In file included from arch/powerpc/kernel/ptrace.c:19:0:
>> include/linux/sched.h:1067:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from include/asm-generic/preempt.h:4,
from arch/powerpc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/sched.h:19,
from arch/powerpc/kernel/ptrace.c:19:
include/linux/regset.h: In function 'user_regset_copyout':
include/linux/regset.h:227:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
BUG_ON(*pos < start_pos);
^
arch/powerpc/include/asm/bug.h:75:27: note: in definition of macro 'BUG_ON'
if (__builtin_constant_p(x)) { \
^
include/linux/regset.h:227:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
BUG_ON(*pos < start_pos);
^
arch/powerpc/include/asm/bug.h:76:7: note: in definition of macro 'BUG_ON'
if (x) \
^
include/linux/regset.h:227:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
BUG_ON(*pos < start_pos);
^
arch/powerpc/include/asm/bug.h:84:25: note: in definition of macro 'BUG_ON'
"r" ((__force long)(x))); \
^
In file included from arch/powerpc/kernel/ptrace.c:24:0:
include/linux/regset.h:228:26: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (end_pos < 0 || *pos < end_pos) {
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from include/asm-generic/preempt.h:4,
from arch/powerpc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/sched.h:19,
from arch/powerpc/kernel/ptrace.c:19:
include/linux/regset.h: In function 'user_regset_copyin':
include/linux/regset.h:252:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
BUG_ON(*pos < start_pos);
^
arch/powerpc/include/asm/bug.h:75:27: note: in definition of macro 'BUG_ON'
if (__builtin_constant_p(x)) { \
^
include/linux/regset.h:252:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
BUG_ON(*pos < start_pos);
^
arch/powerpc/include/asm/bug.h:76:7: note: in definition of macro 'BUG_ON'
if (x) \
^
include/linux/regset.h:252:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
BUG_ON(*pos < start_pos);
^
arch/powerpc/include/asm/bug.h:84:25: note: in definition of macro 'BUG_ON'
"r" ((__force long)(x))); \
^
In file included from arch/powerpc/kernel/ptrace.c:24:0:
include/linux/regset.h:253:26: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (end_pos < 0 || *pos < end_pos) {
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from include/asm-generic/preempt.h:4,
from arch/powerpc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/sched.h:19,
from arch/powerpc/kernel/ptrace.c:19:
include/linux/regset.h: In function 'user_regset_copyout_zero':
include/linux/regset.h:282:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
BUG_ON(*pos < start_pos);
^
arch/powerpc/include/asm/bug.h:75:27: note: in definition of macro 'BUG_ON'
if (__builtin_constant_p(x)) { \
^
include/linux/regset.h:282:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
BUG_ON(*pos < start_pos);
^
arch/powerpc/include/asm/bug.h:76:7: note: in definition of macro 'BUG_ON'
if (x) \
^
include/linux/regset.h:282:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
BUG_ON(*pos < start_pos);
^
--
In file included from arch/powerpc/kernel/syscalls.c:23:0:
>> include/linux/sched.h:1067:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
^
arch/powerpc/kernel/syscalls.c:118:6: error: no previous prototype for 'ppc_fadvise64_64' [-Werror=missing-prototypes]
long ppc_fadvise64_64(int fd, int advice, u32 offset_high, u32 offset_low,
^
arch/powerpc/kernel/syscalls.c:125:6: error: no previous prototype for 'do_show_syscall' [-Werror=missing-prototypes]
void do_show_syscall(unsigned long r3, unsigned long r4, unsigned long r5,
^
arch/powerpc/kernel/syscalls.c:134:6: error: no previous prototype for 'do_show_syscall_exit' [-Werror=missing-prototypes]
void do_show_syscall_exit(unsigned long r3)
^
cc1: all warnings being treated as errors
--
In file included from include/linux/kernel_stat.h:9:0,
from arch/powerpc/kernel/irq.c:35:
>> include/linux/sched.h:1067:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
^
arch/powerpc/kernel/irq.c:136:22: error: no previous prototype for '__check_irq_replay' [-Werror=missing-prototypes]
notrace unsigned int __check_irq_replay(void)
^
arch/powerpc/kernel/irq.c:290:14: error: no previous prototype for 'restore_interrupts' [-Werror=missing-prototypes]
void notrace restore_interrupts(void)
^
In file included from include/linux/interrupt.h:11:0,
from include/linux/kernel_stat.h:8,
from arch/powerpc/kernel/irq.c:35:
arch/powerpc/kernel/irq.c: In function 'migrate_irqs':
include/linux/irqnr.h:12:45: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (irq = 0, desc = irq_to_desc(irq); irq < nr_irqs; \
^
arch/powerpc/kernel/irq.c:435:2: note: in expansion of macro 'for_each_irq_desc'
for_each_irq_desc(irq, desc) {
^
arch/powerpc/kernel/irq.c:446:25: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (cpumask_any(mask) >= nr_cpu_ids) {
^
arch/powerpc/kernel/irq.c: At top level:
arch/powerpc/kernel/irq.c:548:13: error: no previous prototype for 'init_IRQ' [-Werror=missing-prototypes]
void __init init_IRQ(void)
^
cc1: all warnings being treated as errors
--
In file included from arch/powerpc/include/asm/uaccess.h:7:0,
from arch/powerpc/kernel/align.c:23:
>> include/linux/sched.h:1067:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
^
In file included from arch/powerpc/kernel/align.c:23:0:
arch/powerpc/kernel/align.c: In function 'emulate_dcbz':
arch/powerpc/include/asm/uaccess.h:51:40: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
(((addr) <= (segment).seg) && ((size) <= (segment).seg))
^
arch/powerpc/include/asm/uaccess.h:63:3: note: in expansion of macro '__access_ok'
__access_ok((__force unsigned long)(addr), (size), get_fs()))
^
arch/powerpc/kernel/align.c:211:26: note: in expansion of macro 'access_ok'
if (user_mode(regs) && !access_ok(VERIFY_WRITE, p, size))
^
arch/powerpc/kernel/align.c:213:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (i = 0; i < size / sizeof(long); ++i)
^
arch/powerpc/kernel/align.c: In function 'emulate_vsx':
arch/powerpc/kernel/align.c:717:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (j = 0; j < length; j += elsize) {
^
arch/powerpc/kernel/align.c:718:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (i = 0; i < elsize; ++i) {
^
arch/powerpc/kernel/align.c: In function 'fix_alignment':
arch/powerpc/kernel/align.c:992:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (i = 0; i < nb; i++)
^
arch/powerpc/kernel/align.c:1067:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (i = 0; i < nb; i++)
^
cc1: all warnings being treated as errors
--
In file included from arch/powerpc/kernel/signal_32.c:20:0:
>> include/linux/sched.h:1067:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
^
arch/powerpc/kernel/signal_32.c:60:25: error: no previous prototype for 'compat_sys_swapcontext' [-Werror=missing-prototypes]
#define sys_swapcontext compat_sys_swapcontext
^
arch/powerpc/kernel/signal_32.c:1130:6: note: in expansion of macro 'sys_swapcontext'
long sys_swapcontext(struct ucontext __user *old_ctx,
^
arch/powerpc/kernel/signal_32.c: In function 'compat_sys_swapcontext':
arch/powerpc/kernel/signal_32.c:1159:15: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (ctx_size < UCONTEXTSIZEWITHOUTVSX)
^
arch/powerpc/kernel/signal_32.c:1165:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if ((ctx_size < sizeof(struct ucontext)) &&
^
arch/powerpc/kernel/signal_32.c:1169:15: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (ctx_size >= sizeof(struct ucontext))
^
In file included from include/linux/poll.h:11:0,
from include/linux/ring_buffer.h:7,
from include/linux/ftrace_event.h:5,
from include/trace/syscall.h:6,
from include/linux/syscalls.h:81,
from arch/powerpc/kernel/signal_32.c:30:
arch/powerpc/include/asm/uaccess.h:51:40: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
(((addr) <= (segment).seg) && ((size) <= (segment).seg))
^
arch/powerpc/include/asm/uaccess.h:63:3: note: in expansion of macro '__access_ok'
__access_ok((__force unsigned long)(addr), (size), get_fs()))
^
arch/powerpc/kernel/signal_32.c:1190:8: note: in expansion of macro 'access_ok'
if (!access_ok(VERIFY_WRITE, old_ctx, ctx_size)
^
arch/powerpc/include/asm/uaccess.h:51:40: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
(((addr) <= (segment).seg) && ((size) <= (segment).seg))
^
arch/powerpc/include/asm/uaccess.h:63:3: note: in expansion of macro '__access_ok'
__access_ok((__force unsigned long)(addr), (size), get_fs()))
^
arch/powerpc/kernel/signal_32.c:1198:7: note: in expansion of macro 'access_ok'
if (!access_ok(VERIFY_READ, new_ctx, ctx_size)
^
arch/powerpc/kernel/signal_32.c:1134:16: error: variable 'tmp' set but not used [-Werror=unused-but-set-variable]
unsigned char tmp;
^
arch/powerpc/kernel/signal_32.c: At top level:
arch/powerpc/kernel/signal_32.c:59:26: error: no previous prototype for 'compat_sys_rt_sigreturn' [-Werror=missing-prototypes]
#define sys_rt_sigreturn compat_sys_rt_sigreturn
^
arch/powerpc/kernel/signal_32.c:1221:6: note: in expansion of macro 'sys_rt_sigreturn'
long sys_rt_sigreturn(int r3, int r4, int r5, int r6, int r7, int r8,
^
arch/powerpc/kernel/signal_32.c:61:23: error: no previous prototype for 'compat_sys_sigreturn' [-Werror=missing-prototypes]
#define sys_sigreturn compat_sys_sigreturn
^
arch/powerpc/kernel/signal_32.c:1493:6: note: in expansion of macro 'sys_sigreturn'
long sys_sigreturn(int r3, int r4, int r5, int r6, int r7, int r8,
^
cc1: all warnings being treated as errors
--
In file included from arch/powerpc/kernel/vdso.c:13:0:
>> include/linux/sched.h:1067:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
^
arch/powerpc/kernel/vdso.c: In function 'vdso_fixup_alt_funcs':
arch/powerpc/kernel/vdso.c:631:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (i = 0; i < ARRAY_SIZE(vdso_patches); i++) {
^
arch/powerpc/kernel/vdso.c: In function 'vdso_init':
arch/powerpc/kernel/vdso.c:812:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (i = 0; i < vdso32_pages; i++) {
^
arch/powerpc/kernel/vdso.c:825:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (i = 0; i < vdso64_pages; i++) {
^
cc1: all warnings being treated as errors
--
In file included from arch/powerpc/kernel/process.c:18:0:
>> include/linux/sched.h:1067:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
^
In file included from include/linux/netfilter.h:5:0,
from include/net/netns/netfilter.h:5,
from include/net/net_namespace.h:22,
from include/linux/init_task.h:15,
from arch/powerpc/kernel/process.c:29:
include/linux/skbuff.h: In function 'skb_can_coalesce':
include/linux/skbuff.h:2535:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
off == frag->page_offset + skb_frag_size(frag);
^
arch/powerpc/kernel/process.c: At top level:
arch/powerpc/kernel/process.c:78:6: error: no previous prototype for 'giveup_fpu_maybe_transactional' [-Werror=missing-prototypes]
void giveup_fpu_maybe_transactional(struct task_struct *tsk)
^
arch/powerpc/kernel/process.c:96:6: error: no previous prototype for 'giveup_altivec_maybe_transactional' [-Werror=missing-prototypes]
void giveup_altivec_maybe_transactional(struct task_struct *tsk)
^
arch/powerpc/kernel/process.c:721:6: error: no previous prototype for 'restore_tm_state' [-Werror=missing-prototypes]
void restore_tm_state(struct pt_regs *regs)
^
arch/powerpc/kernel/process.c:1076:5: error: no previous prototype for 'arch_dup_task_struct' [-Werror=missing-prototypes]
int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
^
arch/powerpc/kernel/process.c:1633:15: error: no previous prototype for 'arch_align_stack' [-Werror=missing-prototypes]
unsigned long arch_align_stack(unsigned long sp)
^
cc1: all warnings being treated as errors
..
vim +361 drivers/mmc/host/sdhci-of-esdhc.c
342
343 static int sdhci_esdhc_probe(struct platform_device *pdev)
344 {
345 struct sdhci_host *host;
346 struct device_node *np;
347 struct sdhci_pltfm_host *pltfm_host;
348 struct sdhci_esdhc *esdhc;
349 int ret;
350
351 host = sdhci_pltfm_init(pdev, &sdhci_esdhc_pdata, 0);
352 if (IS_ERR(host))
353 return PTR_ERR(host);
354
355 sdhci_get_of_property(pdev);
356
357 np = pdev->dev.of_node;
358
359 pltfm_host = sdhci_priv(host);
360 esdhc = pltfm_host->priv;
> 361 if (esdhc->vendor_ver == VENDOR_V_22)
362 host->quirks2 |= SDHCI_QUIRK2_HOST_NO_CMD23;
363
364 if (esdhc->vendor_ver > VENDOR_V_22)
365 host->quirks &= ~SDHCI_QUIRK_NO_BUSY_IRQ;
366
367 if (of_device_is_compatible(np, "fsl,p2020-esdhc")) {
368 /*
369 * Freescale messed up with P2020 as it has a non-standard
370 * host control register
371 */
372 host->quirks2 |= SDHCI_QUIRK2_BROKEN_HOST_CONTROL;
373 }
374
375 /* call to generic mmc_of_parse to support additional capabilities */
376 mmc_of_parse(host->mmc);
377 mmc_of_parse_voltage(np, &host->ocr_mask);
378
379 ret = sdhci_add_host(host);
380 if (ret)
381 sdhci_pltfm_free(pdev);
382
383 return ret;
384 }
385
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[chrome-os:chromeos-4.19 4/4] include/linux/kern_levels.h:5:18: error: format '%lX' expects argument of type 'long unsigned int', but argument 2 has type 'u32' {aka 'unsigned int'}
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: d7fbffc4196415cc9fa9db9d797234cd6ccedab0
commit: d7fbffc4196415cc9fa9db9d797234cd6ccedab0 [4/4] CHROMIUM: drm/mediatek: add display debug patch
config: arm64-chromiumos-arm64-customedconfig-chrome-os:chromeos-4.19:a50b3b83f7144bbdd92fc8889fbdc177f1fb09a9 (attached as .config)
compiler: aarch64-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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.19
git checkout d7fbffc4196415cc9fa9db9d797234cd6ccedab0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
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 include/linux/printk.h:7,
from include/linux/kernel.h:14,
from include/linux/list.h:9,
from include/linux/agp_backend.h:33,
from include/drm/drmP.h:35,
from drivers/gpu/drm/mediatek/mtk_drm_debug.c:13:
drivers/gpu/drm/mediatek/mtk_drm_debug.c: In function 'mtk_drm_dbg_dump_comp_reg':
>> include/linux/kern_levels.h:5:18: error: format '%lX' expects argument of type 'long unsigned int', but argument 2 has type 'u32' {aka 'unsigned int'} [-Werror=format=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:310:9: note: in expansion of macro 'KERN_INFO'
310 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/mediatek/mtk_drm_debug.h:20:31: note: in expansion of macro 'pr_info'
20 | #define mtk_drm_dbg(fmt, ...) pr_info("[mtkdrm] " fmt, ##__VA_ARGS__)
| ^~~~~~~
drivers/gpu/drm/mediatek/mtk_drm_debug.c:291:3: note: in expansion of macro 'mtk_drm_dbg'
291 | mtk_drm_dbg("0x%08lX | 0x%08X 0x%08X 0x%08X 0x%08X\n",
| ^~~~~~~~~~~
drivers/gpu/drm/mediatek/mtk_drm_debug.c:291:22: note: format string is defined here
291 | mtk_drm_dbg("0x%08lX | 0x%08X 0x%08X 0x%08X 0x%08X\n",
| ~~~~^
| |
| long unsigned int
| %08X
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:14,
from include/linux/list.h:9,
from include/linux/agp_backend.h:33,
from include/drm/drmP.h:35,
from drivers/gpu/drm/mediatek/mtk_drm_debug.c:13:
drivers/gpu/drm/mediatek/mtk_drm_debug.c: In function 'mtk_drm_dbg_init':
>> include/linux/kern_levels.h:5:18: error: too many arguments for format [-Werror=format-extra-args]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:310:9: note: in expansion of macro 'KERN_INFO'
310 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/mediatek/mtk_drm_debug.h:20:31: note: in expansion of macro 'pr_info'
20 | #define mtk_drm_dbg(fmt, ...) pr_info("[mtkdrm] " fmt, ##__VA_ARGS__)
| ^~~~~~~
drivers/gpu/drm/mediatek/mtk_drm_debug.c:357:3: note: in expansion of macro 'mtk_drm_dbg'
357 | mtk_drm_dbg("parent node %s\n", dev->of_node->parent->name,
| ^~~~~~~~~~~
cc1: all warnings being treated as errors
vim +5 include/linux/kern_levels.h
314ba3520e513a Joe Perches 2012-07-30 4
04d2c8c83d0e3a Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */
04d2c8c83d0e3a Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3a Joe Perches 2012-07-30 7
:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern
:::::: TO: Joe Perches <joe(a)perches.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
cnic.c:undefined reference to `uio_event_notify'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dcc0b49040c70ad827a7f3d58a21b01fdb14e749
commit: 14483cbf040fcb38113497161088a1ce8ce5d713 net: broadcom CNIC: requires MMU
date: 2 months ago
config: riscv-randconfig-s031-20210212 (attached as .config)
compiler: riscv64-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/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 14483cbf040fcb38113497161088a1ce8ce5d713
# 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=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 >>):
riscv64-linux-ld: drivers/net/ethernet/broadcom/cnic.o: in function `.L169':
>> cnic.c:(.text+0x1174): undefined reference to `uio_event_notify'
riscv64-linux-ld: drivers/net/ethernet/broadcom/cnic.o: in function `cnic_chk_pkt_rings':
cnic.c:(.text+0x119c): undefined reference to `uio_event_notify'
riscv64-linux-ld: drivers/net/ethernet/broadcom/cnic.o: in function `.L0 ':
>> cnic.c:(.text+0xaac8): undefined reference to `__uio_register_device'
>> riscv64-linux-ld: cnic.c:(.text.unlikely+0x68): undefined reference to `uio_unregister_device'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for CNIC
Depends on NETDEVICES && ETHERNET && NET_VENDOR_BROADCOM && PCI && (IPV6 || IPV6 && MMU
Selected by
- SCSI_BNX2X_FCOE && SCSI_LOWLEVEL && SCSI && PCI && (IPV6 || IPV6 && LIBFC && LIBFCOE
---
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] tty: serial: Add earlycon driver for Tegra Combined UART
by kernel test robot
Hi Mikko,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on usb/usb-testing]
[also build test WARNING on tegra/for-next linux/master linus/master v5.11-rc7 next-20210212]
[cannot apply to tty/tty-testing]
[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/Mikko-Perttunen/tty-serial-Add-e...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: arm-randconfig-r016-20210213 (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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/0day-ci/linux/commit/889104c3001a64bab09c4ac82aed58f1d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mikko-Perttunen/tty-serial-Add-earlycon-driver-for-Tegra-Combined-UART/20210213-200425
git checkout 889104c3001a64bab09c4ac82aed58f1d98ec77a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
>> drivers/tty/serial/tegra-tcu-earlycon.c:62:12: warning: no previous prototype for function 'early_tegra_combined_uart_setup' [-Wmissing-prototypes]
int __init early_tegra_combined_uart_setup(struct earlycon_device *device, const char *options)
^
drivers/tty/serial/tegra-tcu-earlycon.c:62:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __init early_tegra_combined_uart_setup(struct earlycon_device *device, const char *options)
^
static
1 warning generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for ARM_CPU_SUSPEND
Depends on ARCH_SUSPEND_POSSIBLE
Selected by
- ARM_QCOM_SPM_CPUIDLE && CPU_IDLE && (ARM || ARM64) && (ARCH_QCOM || COMPILE_TEST && !ARM64
vim +/early_tegra_combined_uart_setup +62 drivers/tty/serial/tegra-tcu-earlycon.c
61
> 62 int __init early_tegra_combined_uart_setup(struct earlycon_device *device, const char *options)
63 {
64 if (!(device->port.membase))
65 return -ENODEV;
66
67 device->con->write = early_tcu_write;
68
69 return 0;
70 }
71
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[android-goldfish:android-3.18 106/187] include/linux/compiler.h:462:38: error: call to '__compiletime_assert_24' declared with attribute error: BUILD_BUG_ON failed: 21 - 1 != HWEIGHT32( (VALID_OPEN_FLAGS & ~(O_NONBLOCK | O_NDELAY)) | __FMODE_EXEC | __FMODE_NONOTIFY)
by kernel test robot
tree: https://android.googlesource.com/kernel/goldfish android-3.18
head: e4742bb317218e1c75c86aa765e50cdd06d2c007
commit: a4375387b1009a40dca013d11261c2fbafa5ce00 [106/187] fs: add a VALID_OPEN_FLAGS
config: alpha-defconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 5.5.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
git remote add android-goldfish https://android.googlesource.com/kernel/goldfish
git fetch --no-tags android-goldfish android-3.18
git checkout a4375387b1009a40dca013d11261c2fbafa5ce00
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-5.5.0 make.cross ARCH=alpha
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 include/linux/mempolicy.h:14:0,
from include/linux/shmem_fs.h:6,
from fs/fcntl.c:24:
include/linux/pagemap.h: In function 'fault_in_multipages_readable':
include/linux/pagemap.h:633:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/syscalls.h:70,
from fs/fcntl.c:7:
fs/fcntl.c: In function 'fcntl_init':
>> include/linux/compiler.h:462:38: error: call to '__compiletime_assert_24' declared with attribute error: BUILD_BUG_ON failed: 21 - 1 != HWEIGHT32( (VALID_OPEN_FLAGS & ~(O_NONBLOCK | O_NDELAY)) | __FMODE_EXEC | __FMODE_NONOTIFY)
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler.h:445:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^
include/linux/compiler.h:462:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/bug.h:50:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/bug.h:74:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
fs/fcntl.c:747:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(21 - 1 /* for O_RDONLY being 0 */ !=
^
vim +/__compiletime_assert_24 +462 include/linux/compiler.h
c361d3e54364d1 Daniel Santos 2013-02-21 439
9a8ab1c39970a4 Daniel Santos 2013-02-21 440 #define __compiletime_assert(condition, msg, prefix, suffix) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 441 do { \
9a8ab1c39970a4 Daniel Santos 2013-02-21 442 bool __cond = !(condition); \
9a8ab1c39970a4 Daniel Santos 2013-02-21 443 extern void prefix ## suffix(void) __compiletime_error(msg); \
9a8ab1c39970a4 Daniel Santos 2013-02-21 444 if (__cond) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 445 prefix ## suffix(); \
9a8ab1c39970a4 Daniel Santos 2013-02-21 446 __compiletime_error_fallback(__cond); \
9a8ab1c39970a4 Daniel Santos 2013-02-21 447 } while (0)
9a8ab1c39970a4 Daniel Santos 2013-02-21 448
9a8ab1c39970a4 Daniel Santos 2013-02-21 449 #define _compiletime_assert(condition, msg, prefix, suffix) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 450 __compiletime_assert(condition, msg, prefix, suffix)
9a8ab1c39970a4 Daniel Santos 2013-02-21 451
9a8ab1c39970a4 Daniel Santos 2013-02-21 452 /**
9a8ab1c39970a4 Daniel Santos 2013-02-21 453 * compiletime_assert - break build and emit msg if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 454 * @condition: a compile-time constant condition to check
9a8ab1c39970a4 Daniel Santos 2013-02-21 455 * @msg: a message to emit if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 456 *
9a8ab1c39970a4 Daniel Santos 2013-02-21 457 * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 458 * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 459 * compiler has support to do so.
9a8ab1c39970a4 Daniel Santos 2013-02-21 460 */
9a8ab1c39970a4 Daniel Santos 2013-02-21 461 #define compiletime_assert(condition, msg) \
6c0c303e5d07e1 Vegard Nossum 2020-04-06 @462 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
9a8ab1c39970a4 Daniel Santos 2013-02-21 463
:::::: The code at line 462 was first introduced by commit
:::::: 6c0c303e5d07e1af6ff4fca1be7e32f97186c42a compiler.h: fix error in BUILD_BUG_ON() reporting
:::::: TO: Vegard Nossum <vegard.nossum(a)oracle.com>
:::::: CC: Lee Jones <lee.jones(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months