From: kernel test robot <lkp@intel.com>
To: Gao Xiang <hsiangkao@linux.alibaba.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH 3/4] erofs: reference `struct erofs_device_info` for erofs_map_dev
Date: Sat, 14 Dec 2024 14:33:41 +0800 [thread overview]
Message-ID: <202412141431.B33KpvxH-lkp@intel.com> (raw)
In-Reply-To: <20241212133504.2047178-3-hsiangkao@linux.alibaba.com>
Hi Gao,
kernel test robot noticed the following build errors:
[auto build test ERROR on xiang-erofs/dev]
[also build test ERROR on linus/master v6.13-rc2 next-20241213]
[cannot apply to xiang-erofs/dev-test xiang-erofs/fixes]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Gao-Xiang/erofs-use-struct-erofs_device_info-for-the-primary-device/20241213-115709
base: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git dev
patch link: https://lore.kernel.org/r/20241212133504.2047178-3-hsiangkao%40linux.alibaba.com
patch subject: [PATCH 3/4] erofs: reference `struct erofs_device_info` for erofs_map_dev
config: riscv-randconfig-001-20241214 (https://download.01.org/0day-ci/archive/20241214/202412141431.B33KpvxH-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 2dc22615fd46ab2566d0f26d5ba234ab12dc4bf8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241214/202412141431.B33KpvxH-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412141431.B33KpvxH-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/fs_context.h:14:
In file included from include/linux/security.h:35:
In file included from include/linux/bpf.h:31:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:8:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:14:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:760:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
760 | insl(addr, buffer, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl'
106 | #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count)
| ~~~~~~~~~~ ^
In file included from fs/erofs/fscache.c:6:
In file included from include/linux/pseudo_fs.h:4:
In file included from include/linux/fs_context.h:14:
In file included from include/linux/security.h:35:
In file included from include/linux/bpf.h:31:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:8:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:14:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:769:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
769 | outsb(addr, buffer, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb'
118 | #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count)
| ~~~~~~~~~~ ^
In file included from fs/erofs/fscache.c:6:
In file included from include/linux/pseudo_fs.h:4:
In file included from include/linux/fs_context.h:14:
In file included from include/linux/security.h:35:
In file included from include/linux/bpf.h:31:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:8:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:14:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:778:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
778 | outsw(addr, buffer, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw'
119 | #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count)
| ~~~~~~~~~~ ^
In file included from fs/erofs/fscache.c:6:
In file included from include/linux/pseudo_fs.h:4:
In file included from include/linux/fs_context.h:14:
In file included from include/linux/security.h:35:
In file included from include/linux/bpf.h:31:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:8:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:14:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:787:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
787 | outsl(addr, buffer, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl'
120 | #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count)
| ~~~~~~~~~~ ^
In file included from fs/erofs/fscache.c:6:
In file included from include/linux/pseudo_fs.h:4:
In file included from include/linux/fs_context.h:14:
In file included from include/linux/security.h:35:
In file included from include/linux/bpf.h:31:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:8:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:14:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:1115:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
1115 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
| ~~~~~~~~~~ ^
>> fs/erofs/fscache.c:201:25: error: no member named 'm_fscache' in 'struct erofs_map_dev'
201 | io->io.private = mdev->m_fscache->cookie;
| ~~~~ ^
fs/erofs/fscache.c:319:41: error: no member named 'm_fscache' in 'struct erofs_map_dev'
319 | ret = erofs_fscache_read_io_async(mdev.m_fscache->cookie,
| ~~~~ ^
14 warnings and 2 errors generated.
vim +201 fs/erofs/fscache.c
a1bafc3109d713 Jingbo Xu 2024-03-08 194
a1bafc3109d713 Jingbo Xu 2024-03-08 195 struct bio *erofs_fscache_bio_alloc(struct erofs_map_dev *mdev)
a1bafc3109d713 Jingbo Xu 2024-03-08 196 {
a1bafc3109d713 Jingbo Xu 2024-03-08 197 struct erofs_fscache_bio *io;
a1bafc3109d713 Jingbo Xu 2024-03-08 198
a1bafc3109d713 Jingbo Xu 2024-03-08 199 io = kmalloc(sizeof(*io), GFP_KERNEL | __GFP_NOFAIL);
a1bafc3109d713 Jingbo Xu 2024-03-08 200 bio_init(&io->bio, NULL, io->bvecs, BIO_MAX_VECS, REQ_OP_READ);
a1bafc3109d713 Jingbo Xu 2024-03-08 @201 io->io.private = mdev->m_fscache->cookie;
a1bafc3109d713 Jingbo Xu 2024-03-08 202 io->io.end_io = erofs_fscache_bio_endio;
a1bafc3109d713 Jingbo Xu 2024-03-08 203 refcount_set(&io->io.ref, 1);
a1bafc3109d713 Jingbo Xu 2024-03-08 204 return &io->bio;
a1bafc3109d713 Jingbo Xu 2024-03-08 205 }
a1bafc3109d713 Jingbo Xu 2024-03-08 206
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
parent reply other threads:[~2024-12-14 6:34 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20241212133504.2047178-3-hsiangkao@linux.alibaba.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202412141431.B33KpvxH-lkp@intel.com \
--to=lkp@intel.com \
--cc=hsiangkao@linux.alibaba.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox