# # 2024-10-30T23:58:56.449031 # # make KBUILD_BUILD_USER=KernelCI LD=riscv64-linux-gnu-ld LLVM_IAS=1 ARCH=riscv LLVM=1 CROSS_COMPILE=riscv64-linux-gnu- CC="ccache clang" O=/tmp/kci/linux/build -C/tmp/kci/linux -j4 # make: Entering directory '/tmp/kci/linux' make[1]: Entering directory '/tmp/kci/linux/build' SYNC include/config/auto.conf.cmd GEN Makefile GEN Makefile WRAP arch/riscv/include/generated/uapi/asm/errno.h WRAP arch/riscv/include/generated/uapi/asm/fcntl.h WRAP arch/riscv/include/generated/uapi/asm/ioctl.h WRAP arch/riscv/include/generated/uapi/asm/ioctls.h WRAP arch/riscv/include/generated/uapi/asm/ipcbuf.h WRAP arch/riscv/include/generated/uapi/asm/mman.h WRAP arch/riscv/include/generated/uapi/asm/msgbuf.h WRAP arch/riscv/include/generated/uapi/asm/param.h WRAP arch/riscv/include/generated/uapi/asm/poll.h WRAP arch/riscv/include/generated/uapi/asm/posix_types.h UPD include/generated/uapi/linux/version.h WRAP arch/riscv/include/generated/uapi/asm/resource.h WRAP arch/riscv/include/generated/uapi/asm/sembuf.h UPD include/config/kernel.release WRAP arch/riscv/include/generated/uapi/asm/shmbuf.h WRAP arch/riscv/include/generated/uapi/asm/siginfo.h WRAP arch/riscv/include/generated/uapi/asm/signal.h UPD include/generated/compile.h WRAP arch/riscv/include/generated/uapi/asm/socket.h WRAP arch/riscv/include/generated/uapi/asm/sockios.h WRAP arch/riscv/include/generated/uapi/asm/stat.h HOSTCC scripts/dtc/dtc.o WRAP arch/riscv/include/generated/uapi/asm/statfs.h WRAP arch/riscv/include/generated/uapi/asm/swab.h HOSTCC scripts/dtc/flattree.o UPD include/generated/utsrelease.h WRAP arch/riscv/include/generated/uapi/asm/termbits.h WRAP arch/riscv/include/generated/uapi/asm/termios.h WRAP arch/riscv/include/generated/uapi/asm/types.h HOSTCC scripts/dtc/fstree.o SYSHDR arch/riscv/include/generated/uapi/asm/unistd_32.h SYSHDR arch/riscv/include/generated/uapi/asm/unistd_64.h HOSTCC scripts/dtc/data.o HOSTCC scripts/dtc/livetree.o HOSTCC scripts/dtc/treesource.o HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o LEX scripts/dtc/dtc-lexer.lex.c WRAP arch/riscv/include/generated/asm/early_ioremap.h WRAP arch/riscv/include/generated/asm/flat.h WRAP arch/riscv/include/generated/asm/kvm_para.h YACC scripts/dtc/dtc-parser.tab.[ch] WRAP arch/riscv/include/generated/asm/mmzone.h WRAP arch/riscv/include/generated/asm/parport.h WRAP arch/riscv/include/generated/asm/spinlock.h WRAP arch/riscv/include/generated/asm/spinlock_types.h WRAP arch/riscv/include/generated/asm/qrwlock.h WRAP arch/riscv/include/generated/asm/qrwlock_types.h WRAP arch/riscv/include/generated/asm/user.h WRAP arch/riscv/include/generated/asm/vmlinux.lds.h WRAP arch/riscv/include/generated/asm/device.h WRAP arch/riscv/include/generated/asm/div64.h WRAP arch/riscv/include/generated/asm/dma-mapping.h WRAP arch/riscv/include/generated/asm/dma.h WRAP arch/riscv/include/generated/asm/emergency-restart.h WRAP arch/riscv/include/generated/asm/hardirq.h WRAP arch/riscv/include/generated/asm/hw_irq.h WRAP arch/riscv/include/generated/asm/irq_regs.h WRAP arch/riscv/include/generated/asm/kmap_size.h WRAP arch/riscv/include/generated/asm/local.h WRAP arch/riscv/include/generated/asm/local64.h WRAP arch/riscv/include/generated/asm/msi.h WRAP arch/riscv/include/generated/asm/percpu.h WRAP arch/riscv/include/generated/asm/preempt.h WRAP arch/riscv/include/generated/asm/runtime-const.h WRAP arch/riscv/include/generated/asm/rwonce.h WRAP arch/riscv/include/generated/asm/serial.h WRAP arch/riscv/include/generated/asm/shmparam.h WRAP arch/riscv/include/generated/asm/softirq_stack.h WRAP arch/riscv/include/generated/asm/trace_clock.h WRAP arch/riscv/include/generated/asm/vga.h WRAP arch/riscv/include/generated/asm/video.h SYSTBL arch/riscv/include/generated/asm/syscall_table_32.h SYSTBL arch/riscv/include/generated/asm/syscall_table_64.h HOSTCC scripts/dtc/libfdt/fdt.o HOSTCC scripts/dtc/libfdt/fdt_ro.o HOSTCC scripts/dtc/libfdt/fdt_wip.o HOSTCC scripts/dtc/libfdt/fdt_sw.o HOSTCC scripts/dtc/libfdt/fdt_rw.o HOSTCC scripts/dtc/libfdt/fdt_strerror.o HOSTCC scripts/dtc/libfdt/fdt_empty_tree.o HOSTCC scripts/dtc/libfdt/fdt_addresses.o HOSTCC scripts/dtc/libfdt/fdt_overlay.o HOSTCC scripts/dtc/fdtoverlay.o HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o HOSTLD scripts/dtc/fdtoverlay HOSTLD scripts/dtc/dtc DTC arch/riscv/boot/dts/canaan/canaan_kd233.dtb CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig CC scripts/mod/devicetable-offsets.s DTC arch/riscv/boot/dts/canaan/k210_generic.dtb DTC arch/riscv/boot/dts/canaan/sipeed_maix_bit.dtb UPD scripts/mod/devicetable-offsets.h DTC arch/riscv/boot/dts/canaan/sipeed_maix_dock.dtb DTC arch/riscv/boot/dts/canaan/sipeed_maix_go.dtb DTC arch/riscv/boot/dts/canaan/sipeed_maixduino.dtb MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/modpost.o HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/sumversion.o HOSTCC scripts/mod/symsearch.o HOSTLD scripts/mod/modpost CC kernel/bounds.s CHKSHA1 ../include/linux/atomic/atomic-arch-fallback.h CHKSHA1 ../include/linux/atomic/atomic-instrumented.h UPD include/generated/timeconst.h CHKSHA1 ../include/linux/atomic/atomic-long.h UPD include/generated/bounds.h CC arch/riscv/kernel/asm-offsets.s In file included from ../arch/riscv/kernel/asm-offsets.c:12: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/asm-offsets.c:12: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/asm-offsets.c:12: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/asm-offsets.c:12: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/asm-offsets.c:12: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/asm-offsets.c:12: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/asm-offsets.c:12: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/asm-offsets.c:12: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/asm-offsets.c:12: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. UPD include/generated/asm-offsets.h CALL ../scripts/checksyscalls.sh CC init/main.o AR usr/built-in.a CC arch/riscv/kernel/vendor_extensions/andes.o AR certs/built-in.a UPD init/utsversion-tmp.h AR arch/riscv/kernel/vendor_extensions/built-in.a CC mm/filemap.o CC kernel/sched/core.o AR arch/riscv/kernel/probes/built-in.a AR arch/riscv/kernel/tests/built-in.a CC arch/riscv/kernel/pi/cmdline_early.o In file included from ../init/main.c:21: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../init/main.c:21: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../init/main.c:21: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/main.c:21: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/main.c:21: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/main.c:21: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/main.c:21: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/main.c:21: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/main.c:21: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC arch/riscv/kernel/pi/fdt_early.o In file included from ../kernel/sched/core.c:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/sched/core.c:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/sched/core.c:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/core.c:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/core.c:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/core.c:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/core.c:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/core.c:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/core.c:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../mm/filemap.c:20: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/filemap.c:20: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/filemap.c:20: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/filemap.c:20: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/filemap.c:20: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/filemap.c:20: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/filemap.c:20: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/filemap.c:20: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/filemap.c:20: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC arch/riscv/kernel/pi/string.o CC arch/riscv/kernel/pi/ctype.o CC arch/riscv/kernel/pi/lib-fdt.o CC arch/riscv/kernel/pi/lib-fdt_ro.o 13 warnings generated. CC init/do_mounts.o 13 warnings generated. CC arch/riscv/kernel/pi/archrandom_early.o CC mm/mempool.o 13 warnings generated. OBJCOPY arch/riscv/kernel/pi/cmdline_early.pi.o CC kernel/sched/fair.o OBJCOPY arch/riscv/kernel/pi/fdt_early.pi.o OBJCOPY arch/riscv/kernel/pi/string.pi.o OBJCOPY arch/riscv/kernel/pi/ctype.pi.o OBJCOPY arch/riscv/kernel/pi/lib-fdt.pi.o OBJCOPY arch/riscv/kernel/pi/lib-fdt_ro.pi.o OBJCOPY arch/riscv/kernel/pi/archrandom_early.pi.o In file included from ../init/do_mounts.c:6: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../init/do_mounts.c:6: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../init/do_mounts.c:6: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ AR arch/riscv/kernel/pi/built-in.a ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/do_mounts.c:6: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/do_mounts.c:6: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/do_mounts.c:6: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/do_mounts.c:6: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/do_mounts.c:6: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/do_mounts.c:6: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../mm/mempool.c:15: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/mempool.c:15: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/mempool.c:15: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mempool.c:15: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mempool.c:15: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mempool.c:15: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mempool.c:15: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mempool.c:15: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ LDS arch/riscv/kernel/vmlinux.lds In file included from ../mm/mempool.c:15: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AS arch/riscv/kernel/head.o 13 warnings generated. CC mm/oom_kill.o In file included from ../kernel/sched/fair.c:28: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/sched/fair.c:28: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/sched/fair.c:28: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/fair.c:28: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/fair.c:28: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/fair.c:28: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/fair.c:28: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/fair.c:28: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/fair.c:28: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC arch/riscv/kernel/soc.o 13 warnings generated. In file included from ../mm/oom_kill.c:30: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/oom_kill.c:30: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/oom_kill.c:30: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/oom_kill.c:30: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/oom_kill.c:30: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/oom_kill.c:30: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/oom_kill.c:30: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/oom_kill.c:30: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/oom_kill.c:30: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC init/noinitramfs.o CC arch/riscv/kernel/alternative.o 13 warnings generated. CC mm/fadvise.o CC arch/riscv/kernel/cpu.o In file included from ../init/noinitramfs.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../init/noinitramfs.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../init/noinitramfs.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/noinitramfs.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/noinitramfs.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/noinitramfs.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/noinitramfs.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/noinitramfs.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/noinitramfs.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC init/calibrate.o 13 warnings generated. CC kernel/sched/build_policy.o In file included from ../mm/fadvise.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/fadvise.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/fadvise.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/fadvise.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/fadvise.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/fadvise.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/fadvise.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/fadvise.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/fadvise.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC init/init_task.o CC mm/maccess.o CC arch/riscv/kernel/cpufeature.o In file included from ../kernel/sched/build_policy.c:19: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/sched/build_policy.c:19: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/sched/build_policy.c:19: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/build_policy.c:19: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/build_policy.c:19: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/build_policy.c:19: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/build_policy.c:19: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/build_policy.c:19: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/build_policy.c:19: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../init/init_task.c:2: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../init/init_task.c:2: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../init/init_task.c:2: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/init_task.c:2: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/init_task.c:2: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/init_task.c:2: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/init_task.c:2: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/init_task.c:2: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../init/init_task.c:2: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../mm/maccess.c:8: In file included from ../arch/riscv/include/asm/tlb.h:32: In file included from ../include/asm-generic/tlb.h:15: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/maccess.c:8: In file included from ../arch/riscv/include/asm/tlb.h:32: In file included from ../include/asm-generic/tlb.h:15: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/maccess.c:8: In file included from ../arch/riscv/include/asm/tlb.h:32: In file included from ../include/asm-generic/tlb.h:15: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/maccess.c:8: In file included from ../arch/riscv/include/asm/tlb.h:32: In file included from ../include/asm-generic/tlb.h:15: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/maccess.c:8: In file included from ../arch/riscv/include/asm/tlb.h:32: In file included from ../include/asm-generic/tlb.h:15: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/maccess.c:8: In file included from ../arch/riscv/include/asm/tlb.h:32: In file included from ../include/asm-generic/tlb.h:15: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/maccess.c:8: In file included from ../arch/riscv/include/asm/tlb.h:32: In file included from ../include/asm-generic/tlb.h:15: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/maccess.c:8: In file included from ../arch/riscv/include/asm/tlb.h:32: In file included from ../include/asm-generic/tlb.h:15: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/maccess.c:8: In file included from ../arch/riscv/include/asm/tlb.h:32: In file included from ../include/asm-generic/tlb.h:15: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC mm/page-writeback.o AS arch/riscv/kernel/entry.o 13 warnings generated. CC init/version.o CC arch/riscv/kernel/irq.o AR init/built-in.a CC arch/riscv/kernel/process.o In file included from ../arch/riscv/kernel/irq.c: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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/irq.c: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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/irq.c: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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/irq.c: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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/irq.c: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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/irq.c: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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/irq.c: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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/irq.c: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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/irq.c: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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../mm/page-writeback.c:21: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/page-writeback.c:21: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/page-writeback.c:21: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/page-writeback.c:21: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/page-writeback.c:21: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/page-writeback.c:21: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/page-writeback.c:21: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/page-writeback.c:21: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/page-writeback.c:21: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/process.c:15: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/process.c:15: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/process.c:15: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/process.c:15: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/process.c:15: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/process.c:15: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/process.c:15: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/process.c:15: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/process.c:15: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC mm/folio-compat.o 13 warnings generated. CC arch/riscv/kernel/ptrace.o 13 warnings generated. 13 warnings generated. CC kernel/sched/build_utility.o CC arch/riscv/kernel/reset.o In file included from ../mm/folio-compat.c:7: In file included from ../include/linux/migrate.h:6: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/folio-compat.c:7: In file included from ../include/linux/migrate.h:6: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/folio-compat.c:7: In file included from ../include/linux/migrate.h:6: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/folio-compat.c:7: In file included from ../include/linux/migrate.h:6: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/folio-compat.c:7: In file included from ../include/linux/migrate.h:6: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/folio-compat.c:7: In file included from ../include/linux/migrate.h:6: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/folio-compat.c:7: In file included from ../include/linux/migrate.h:6: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/folio-compat.c:7: In file included from ../include/linux/migrate.h:6: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/folio-compat.c:7: In file included from ../include/linux/migrate.h:6: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC mm/readahead.o CC arch/riscv/kernel/return_address.o AR fs/notify/dnotify/built-in.a AR fs/notify/inotify/built-in.a In file included from ../kernel/sched/build_utility.c:15: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/sched/build_utility.c:15: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/sched/build_utility.c:15: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/build_utility.c:15: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/build_utility.c:15: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/build_utility.c:15: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/build_utility.c:15: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/build_utility.c:15: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sched/build_utility.c:15: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR fs/notify/fanotify/built-in.a AR fs/notify/built-in.a CC fs/iomap/trace.o In file included from ../arch/riscv/kernel/return_address.c:9: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/return_address.c:9: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/return_address.c:9: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/return_address.c:9: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/return_address.c:9: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/return_address.c:9: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/return_address.c:9: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/return_address.c:9: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/return_address.c:9: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../mm/readahead.c:116: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/readahead.c:116: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/readahead.c:116: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/readahead.c:116: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/readahead.c:116: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/readahead.c:116: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/readahead.c:116: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/readahead.c:116: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/readahead.c:116: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC arch/riscv/kernel/setup.o In file included from ../fs/iomap/trace.c:5: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/iomap/trace.c:5: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/iomap/trace.c:5: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/trace.c:5: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/trace.c:5: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/trace.c:5: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/trace.c:5: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/trace.c:5: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/trace.c:5: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/iomap/iter.o 13 warnings generated. CC mm/swap.o In file included from ../arch/riscv/kernel/setup.c:21: In file included from ../include/linux/efi.h:20: In file included from ../include/linux/rtc.h:17: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/setup.c:21: In file included from ../include/linux/efi.h:20: In file included from ../include/linux/rtc.h:17: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/setup.c:21: In file included from ../include/linux/efi.h:20: In file included from ../include/linux/rtc.h:17: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/setup.c:21: In file included from ../include/linux/efi.h:20: In file included from ../include/linux/rtc.h:17: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/setup.c:21: In file included from ../include/linux/efi.h:20: In file included from ../include/linux/rtc.h:17: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/setup.c:21: In file included from ../include/linux/efi.h:20: In file included from ../include/linux/rtc.h:17: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/setup.c:21: In file included from ../include/linux/efi.h:20: In file included from ../include/linux/rtc.h:17: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/setup.c:21: In file included from ../include/linux/efi.h:20: In file included from ../include/linux/rtc.h:17: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/setup.c:21: In file included from ../include/linux/efi.h:20: In file included from ../include/linux/rtc.h:17: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/iomap/iter.c:7: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/iomap/iter.c:7: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/iomap/iter.c:7: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/iter.c:7: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/iter.c:7: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/iter.c:7: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/iter.c:7: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/iter.c:7: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/iter.c:7: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC arch/riscv/kernel/signal.o AR kernel/sched/built-in.a In file included from ../mm/swap.c:19: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/swap.c:19: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/swap.c:19: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ 13 warnings generated. ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/swap.c:19: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/swap.c:19: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/swap.c:19: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/swap.c:19: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/swap.c:19: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/swap.c:19: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC kernel/locking/mutex.o CC fs/iomap/buffered-io.o 13 warnings generated. CC mm/truncate.o In file included from ../kernel/locking/mutex.c:29: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/locking/mutex.c:29: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/locking/mutex.c:29: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/mutex.c:29: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/mutex.c:29: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/mutex.c:29: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/mutex.c:29: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/mutex.c:29: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/mutex.c:29: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/signal.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/signal.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/signal.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/signal.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/signal.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/signal.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/signal.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/signal.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/signal.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/iomap/buffered-io.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/iomap/buffered-io.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/iomap/buffered-io.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/buffered-io.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/buffered-io.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/buffered-io.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/buffered-io.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/buffered-io.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/buffered-io.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC kernel/locking/semaphore.o In file included from ../mm/truncate.c:12: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/truncate.c:12: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/truncate.c:12: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/truncate.c:12: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/truncate.c:12: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/truncate.c:12: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/truncate.c:12: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/truncate.c:12: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/truncate.c:12: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC arch/riscv/kernel/syscall_table.o 13 warnings generated. CC mm/vmscan.o In file included from ../kernel/locking/semaphore.c:34: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/locking/semaphore.c:34: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/locking/semaphore.c:34: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/semaphore.c:34: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/semaphore.c:34: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/semaphore.c:34: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/semaphore.c:34: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/semaphore.c:34: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/semaphore.c:34: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/iomap/direct-io.o In file included from ../arch/riscv/kernel/syscall_table.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/syscall_table.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/syscall_table.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/syscall_table.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/syscall_table.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/syscall_table.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/syscall_table.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/syscall_table.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/syscall_table.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/locking/rwsem.o In file included from ../mm/vmscan.c:19: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/vmscan.c:19: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/vmscan.c:19: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/vmscan.c:19: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/vmscan.c:19: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/vmscan.c:19: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/vmscan.c:19: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/vmscan.c:19: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/vmscan.c:19: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC arch/riscv/kernel/sys_riscv.o In file included from ../fs/iomap/direct-io.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/iomap/direct-io.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/iomap/direct-io.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/direct-io.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/direct-io.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/direct-io.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/direct-io.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/direct-io.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/direct-io.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/iomap/fiemap.o CC kernel/locking/percpu-rwsem.o 13 warnings generated. CC mm/shrinker.o In file included from ../arch/riscv/kernel/sys_riscv.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/sys_riscv.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/sys_riscv.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/sys_riscv.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/sys_riscv.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/sys_riscv.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/sys_riscv.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/sys_riscv.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/sys_riscv.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/iomap/fiemap.c:8: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/iomap/fiemap.c:8: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/iomap/fiemap.c:8: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/fiemap.c:8: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/fiemap.c:8: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/fiemap.c:8: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count);13 warnings generated. ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/fiemap.c:8: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/fiemap.c:8: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/fiemap.c:8: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC arch/riscv/kernel/sys_hwprobe.o In file included from ../mm/shrinker.c:2: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/shrinker.c:2: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/shrinker.c:2: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/shrinker.c:2: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/shrinker.c:2: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/shrinker.c:2: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/shrinker.c:2: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/shrinker.c:2: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/shrinker.c:2: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/locking/spinlock.o CC fs/iomap/seek.o 13 warnings generated. CC mm/shmem.o In file included from ../kernel/locking/spinlock.c:21: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/locking/spinlock.c:21: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/locking/spinlock.c:21: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/spinlock.c:21: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/spinlock.c:21: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/spinlock.c:21: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/spinlock.c:21: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/spinlock.c:21: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/spinlock.c:21: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/sys_hwprobe.c:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/sys_hwprobe.c:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/sys_hwprobe.c:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/sys_hwprobe.c:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/sys_hwprobe.c:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/sys_hwprobe.c:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/sys_hwprobe.c:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/sys_hwprobe.c:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/sys_hwprobe.c:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/iomap/seek.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/iomap/seek.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/iomap/seek.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/seek.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/seek.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/seek.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/seek.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/seek.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/iomap/seek.c:9: In file included from ../include/linux/iomap.h:7: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR fs/iomap/built-in.a 13 warnings generated. CC arch/riscv/kernel/time.o AR fs/quota/built-in.a CC fs/proc/nommu.o In file included from ../mm/shmem.c:28: In file included from ../include/linux/ramfs.h:5: In file included from ../include/linux/fs_parser.h:11: 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: 13 warnings generated. 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/shmem.c:28: In file included from ../include/linux/ramfs.h:5: In file included from ../include/linux/fs_parser.h:11: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/shmem.c:28: In file included from ../include/linux/ramfs.h:5: In file included from ../include/linux/fs_parser.h:11: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/shmem.c:28: In file included from ../include/linux/ramfs.h:5: In file included from ../include/linux/fs_parser.h:11: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/shmem.c:28: In file included from ../include/linux/ramfs.h:5: In file included from ../include/linux/fs_parser.h:11: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/shmem.c:28: In file included from ../include/linux/ramfs.h:5: In file included from ../include/linux/fs_parser.h:11: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/shmem.c:28: In file included from ../include/linux/ramfs.h:5: In file included from ../include/linux/fs_parser.h:11: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/shmem.c:28: In file included from ../include/linux/ramfs.h:5: In file included from ../include/linux/fs_parser.h:11: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/shmem.c:28: In file included from ../include/linux/ramfs.h:5: In file included from ../include/linux/fs_parser.h:11: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC kernel/locking/osq_lock.o 13 warnings generated. CC mm/util.o CC kernel/locking/rtmutex_api.o In file included from ../arch/riscv/kernel/time.c:9: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/time.c:9: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/time.c:9: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/time.c:9: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/time.c:9: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/time.c:9: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/time.c:9: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/time.c:9: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/time.c:9: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC arch/riscv/kernel/traps.o In file included from ../fs/proc/nommu.c:18: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/nommu.c:18: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/nommu.c:18: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/nommu.c:18: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/nommu.c:18: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/nommu.c:18: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/nommu.c:18: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/nommu.c:18: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/nommu.c:18: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/proc/task_nommu.o In file included from ../mm/util.c:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/util.c:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/util.c:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/util.c:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/util.c:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/util.c:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/util.c:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/util.c:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/util.c:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/traps.c:16: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/traps.c:16: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/traps.c:16: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/traps.c:16: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/traps.c:16: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/traps.c:16: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/traps.c:16: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/traps.c:16: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/traps.c:16: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC mm/mmzone.o 13 warnings generated. CC arch/riscv/kernel/riscv_ksyms.o CC kernel/locking/qrwlock.o CC fs/proc/inode.o In file included from ../kernel/locking/qrwlock.c:13: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/locking/qrwlock.c:13: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/locking/qrwlock.c:13: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/qrwlock.c:13: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/qrwlock.c:13: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/qrwlock.c:13: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/qrwlock.c:13: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/qrwlock.c:13: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/locking/qrwlock.c:13: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC arch/riscv/kernel/stacktrace.o CC mm/vmstat.o 13 warnings generated. AR kernel/locking/built-in.a CC kernel/power/qos.o CC fs/proc/root.o In file included from ../arch/riscv/kernel/stacktrace.c:13: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/stacktrace.c:13: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/stacktrace.c:13: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/stacktrace.c:13: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/stacktrace.c:13: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/stacktrace.c:13: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/stacktrace.c:13: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/vmstat.c:26: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/stacktrace.c:13: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] : val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))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 In file included from ../mm/vmstat.c:26: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] ../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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/stacktrace.c:13: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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 val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));../include/linux/io.h ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h::35:51: note: expanded from macro '__le32_to_cpu' 14#define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ : 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../mm/vmstat.c:26: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/vmstat.c:26: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/vmstat.c:26: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/vmstat.c:26: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/vmstat.c:26: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/vmstat.c:26: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/vmstat.c:26: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC arch/riscv/kernel/cacheinfo.o In file included from ../kernel/power/qos.c:40: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/power/qos.c:40: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/power/qos.c:40: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/qos.c:40: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/qos.c:40: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/qos.c:40: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/qos.c:40: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/qos.c:40: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/qos.c:40: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/proc/root.c:19: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/root.c:19: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/root.c:19: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/root.c:19: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/root.c:19: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/root.c:19: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/root.c:19: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/root.c:19: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/root.c:19: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC kernel/power/main.o CC mm/backing-dev.o 13 warnings generated. CC fs/proc/base.o CC arch/riscv/kernel/patch.o In file included from ../mm/backing-dev.c:3: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/backing-dev.c:3: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/backing-dev.c:3: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/backing-dev.c:3: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/backing-dev.c:3: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/backing-dev.c:3: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/backing-dev.c:3: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/backing-dev.c:3: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/base.c:68: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/base.c:68: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/base.c:68: In file included from ../include/linux/swap.h:9: 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: In file included from ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr);../mm/backing-dev.c:3: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] ~~~~~~~~~~ ^ return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/base.c:68: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/base.c:68: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/base.c:68: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/base.c:68: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/base.c:68: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/base.c:68: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/power/main.c:17: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/power/main.c:17: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/power/main.c:17: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/main.c:17: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/main.c:17: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/main.c:17: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/main.c:17: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/main.c:17: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/main.c:17: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC mm/mm_init.o CC arch/riscv/kernel/vendor_extensions.o 13 warnings generated. CC kernel/power/process.o CC arch/riscv/kernel/traps_misaligned.o 13 warnings generated. CC fs/proc/generic.o In file included from ../kernel/power/process.c:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/power/process.c:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/power/process.c:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/process.c:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/process.c:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/process.c:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/process.c:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/process.c:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/process.c:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../mm/mm_init.c:20: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/mm_init.c:20: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/mm_init.c:20: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mm_init.c:20: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mm_init.c:20: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mm_init.c:20: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mm_init.c:20: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mm_init.c:20: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mm_init.c:20: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/traps_misaligned.c:9: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/traps_misaligned.c:9: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/traps_misaligned.c:9: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/traps_misaligned.c:9: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/traps_misaligned.c:9: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/traps_misaligned.c:9: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/traps_misaligned.c:9: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/traps_misaligned.c:9: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/traps_misaligned.c:9: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC mm/percpu.o 13 warnings generated. CC fs/proc/array.o CC kernel/power/suspend.o 13 warnings generated. CC arch/riscv/kernel/unaligned_access_speed.o In file included from ../fs/proc/array.c:61: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/array.c:61: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/array.c:61: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/array.c:61: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/array.c:61: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/array.c:61: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/array.c:61: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/array.c:61: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/array.c:61: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/power/suspend.c: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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/power/suspend.c: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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/power/suspend.c: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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/suspend.c: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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/suspend.c: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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/suspend.c: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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/suspend.c: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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/power/suspend.c: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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/percpu.c:89: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/percpu.c:89: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/power/suspend.c: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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../mm/percpu.c:89: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/percpu.c:89: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/percpu.c:89: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/percpu.c:89: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/percpu.c:89: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/percpu.c:89: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/percpu.c:89: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AS arch/riscv/kernel/copy-unaligned.o AS arch/riscv/kernel/fpu.o 13 warnings generated. CC fs/proc/fd.o 13 warnings generated. CC arch/riscv/kernel/kernel_mode_fpu.o AR kernel/power/built-in.a CC kernel/printk/printk.o CC arch/riscv/kernel/smpboot.o 13 warnings generated. CC mm/slab_common.o In file included from ../fs/proc/fd.c:11: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/fd.c:11: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/fd.c:11: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/fd.c:11: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/fd.c:11: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/fd.c:11: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/fd.c:11: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/fd.c:11: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/fd.c:11: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/printk/printk.c:24: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/printk/printk.c:24: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/printk/printk.c:24: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/printk/printk.c:24: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/printk/printk.c:24: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/printk/printk.c:24: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/printk/printk.c:24: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/printk/printk.c:24: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/printk/printk.c:24: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/proc/proc_tty.o In file included from ../mm/slab_common.c:11: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/slab_common.c:11: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/slab_common.c:11: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/slab_common.c:11: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/slab_common.c:11: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/slab_common.c:11: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/slab_common.c:11: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/slab_common.c:11: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/slab_common.c:11: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/smpboot.c:18: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/smpboot.c:18: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/smpboot.c:18: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/smpboot.c:18: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/smpboot.c:18: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/smpboot.c:18: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/smpboot.c:18: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/smpboot.c:18: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/smpboot.c:18: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC arch/riscv/kernel/smp.o 13 warnings generated. CC mm/compaction.o 13 warnings generated. In file included from ../fs/proc/proc_tty.c:13: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/proc_tty.c:13: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/proc_tty.c:13: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/proc_tty.c:13: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/proc_tty.c:13: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/proc_tty.c:13: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/proc_tty.c:13: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/proc_tty.c:13: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/proc_tty.c:13: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h CC kernel/printk/printk_safe.o :1115:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/proc/cmdline.o In file included from ../arch/riscv/kernel/smp.c:12: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/smp.c:12: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/smp.c:12: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/smp.c:12: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/smp.c:12: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/smp.c:12: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/smp.c:12: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/smp.c:12: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/smp.c:12: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/printk/printk_safe.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/printk/printk_safe.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/printk/printk_safe.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/printk/printk_safe.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/printk/printk_safe.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/printk/printk_safe.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/printk/printk_safe.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/printk/printk_safe.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/printk/printk_safe.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../mm/compaction.c:12: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/compaction.c:12: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/compaction.c:12: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/compaction.c:12: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../mm/compaction.c:12: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/compaction.c:12: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/compaction.c:12: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/compaction.c:12: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/compaction.c:12: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC arch/riscv/kernel/cpu_ops.o 13 warnings generated. CC mm/show_mem.o 13 warnings generated. CC kernel/printk/nbcon.o CC fs/proc/consoles.o CC arch/riscv/kernel/cpu_ops_spinwait.o In file included from ../mm/show_mem.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/show_mem.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/show_mem.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/show_mem.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/show_mem.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/show_mem.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/show_mem.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/show_mem.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/show_mem.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC fs/proc/cpuinfo.o CC kernel/printk/printk_ringbuffer.o AS arch/riscv/kernel/suspend_entry.o CC arch/riscv/kernel/suspend.o 13 warnings generated. CC mm/interval_tree.o In file included from ../arch/riscv/kernel/suspend.c:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/suspend.c:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/suspend.c:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/suspend.c:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/suspend.c:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/suspend.c:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/suspend.c:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/suspend.c:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/suspend.c:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC fs/proc/devices.o CC kernel/printk/sysctl.o In file included from ../mm/interval_tree.c:10: In file included from ../include/linux/rmap.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/interval_tree.c:10: In file included from ../include/linux/rmap.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/interval_tree.c:10: In file included from ../include/linux/rmap.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/interval_tree.c:10: In file included from ../include/linux/rmap.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/interval_tree.c:10: In file included from ../include/linux/rmap.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/interval_tree.c:10: In file included from ../include/linux/rmap.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/interval_tree.c:10: In file included from ../include/linux/rmap.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/interval_tree.c:10: In file included from ../include/linux/rmap.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/interval_tree.c:10: In file included from ../include/linux/rmap.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC arch/riscv/kernel/perf_regs.o AR kernel/printk/built-in.a CC kernel/irq/irqdesc.o 13 warnings generated. CC mm/list_lru.o In file included from ../fs/proc/devices.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/devices.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/devices.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/devices.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/devices.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/devices.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/devices.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/devices.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/devices.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/proc/interrupts.o In file included from ../kernel/irq/irqdesc.c:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/irqdesc.c:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/irqdesc.c:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/irqdesc.c:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/irqdesc.c:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/irqdesc.c:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/irqdesc.c:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/irqdesc.c:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/irqdesc.c:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/perf_regs.c:6: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/perf_regs.c:6: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/perf_regs.c:6: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/perf_regs.c:6: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/perf_regs.c:6: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/perf_regs.c:6: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/perf_regs.c:6: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/perf_regs.c:6: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/perf_regs.c:6: In file included from ../include/linux/perf_event.h:52: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../mm/list_lru.c:14: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/list_lru.c:14: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/list_lru.c:14: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/list_lru.c:14: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/list_lru.c:14: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/list_lru.c:14: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/list_lru.c:14: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/list_lru.c:14: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ CC arch/riscv/kernel/cpu-hotplug.o In file included from ../mm/list_lru.c:14: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/proc/interrupts.c:4: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/interrupts.c:4: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/interrupts.c:4: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/interrupts.c:4: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/interrupts.c:4: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/interrupts.c:4: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/interrupts.c:4: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/interrupts.c:4: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/interrupts.c:4: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC kernel/irq/handle.o CC mm/workingset.o 13 warnings generated. CC fs/proc/loadavg.o In file included from ../kernel/irq/handle.c:11: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/handle.c:11: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/handle.c:11: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/handle.c:11: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/handle.c:11: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/handle.c:11: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/handle.c:11: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/handle.c:11: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/handle.c:11: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/cpu-hotplug.c:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/kernel/cpu-hotplug.c:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/kernel/cpu-hotplug.c:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/cpu-hotplug.c:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/cpu-hotplug.c:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/cpu-hotplug.c:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/cpu-hotplug.c:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/cpu-hotplug.c:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/kernel/cpu-hotplug.c:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../mm/workingset.c:8: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/workingset.c:8: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/workingset.c:8: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/workingset.c:8: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/workingset.c:8: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/workingset.c:8: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/workingset.c:8: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/workingset.c:8: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../mm/workingset.c:8: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR arch/riscv/kernel/built-in.a CC arch/riscv/mm/init.o CC fs/proc/meminfo.o 13 warnings generated. CC kernel/irq/manage.o 13 warnings generated. CC mm/debug.o In file included from ../kernel/irq/manage.c:11: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/manage.c:11: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/manage.c:11: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/manage.c:11: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/manage.c:11: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/manage.c:11: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/manage.c:11: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/manage.c:11: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/manage.c:11: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../arch/riscv/mm/init.c:13: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/mm/init.c:13: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/mm/init.c:13: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/mm/init.c:13: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/mm/init.c:13: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/mm/init.c:13: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/mm/init.c:13: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/mm/init.c:13: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/mm/init.c:13: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/proc/meminfo.c:6: In file included from ../include/linux/hugetlb.h:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/meminfo.c:6: In file included from ../include/linux/hugetlb.h:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/meminfo.c:6: In file included from ../include/linux/hugetlb.h:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/meminfo.c:6: In file included from ../include/linux/hugetlb.h:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/meminfo.c:6: In file included from ../include/linux/hugetlb.h:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/meminfo.c:6: In file included from ../include/linux/hugetlb.h:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/meminfo.c:6: In file included from ../include/linux/hugetlb.h:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/meminfo.c:6: In file included from ../include/linux/hugetlb.h:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/meminfo.c:6: In file included from ../include/linux/hugetlb.h:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC fs/proc/stat.o CC arch/riscv/mm/cacheflush.o In file included from ../mm/debug.c:11: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/debug.c:11: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/debug.c:11: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/debug.c:11: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/debug.c:11: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/debug.c:11: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/debug.c:11: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/debug.c:11: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/debug.c:11: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC mm/gup.o 13 warnings generated. CC kernel/irq/spurious.o In file included from ../fs/proc/stat.c:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/stat.c:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/stat.c:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/stat.c:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/stat.c:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/stat.c:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/stat.c:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/stat.c:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/stat.c:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC arch/riscv/mm/context.o 13 warnings generated. CC fs/proc/uptime.o In file included from ../kernel/irq/spurious.c:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/spurious.c:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/spurious.c:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/spurious.c:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/spurious.c:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/spurious.c:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/spurious.c:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/spurious.c:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/spurious.c:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../mm/gup.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/gup.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/gup.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/gup.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/gup.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/gup.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/gup.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/gup.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/gup.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/irq/resend.o In file included from ../fs/proc/uptime.c:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/uptime.c:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/uptime.c:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/uptime.c:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/uptime.c:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/uptime.c:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/uptime.c:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/uptime.c:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/uptime.c:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC mm/mmap_lock.o CC arch/riscv/mm/pmem.o 13 warnings generated. CC fs/proc/util.o In file included from ../kernel/irq/resend.c:15: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/resend.c:15: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/resend.c:15: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/resend.c:15: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/resend.c:15: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/resend.c:15: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/resend.c:15: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/resend.c:15: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/resend.c:15: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../mm/mmap_lock.c:6: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/mmap_lock.c:6: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/mmap_lock.c:6: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ CC kernel/irq/chip.o ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mmap_lock.c:6: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mmap_lock.c:6: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mmap_lock.c:6: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mmap_lock.c:6: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/mmap_lock.c:6: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/mm/pmem.c:7: In file included from ../include/linux/libnvdimm.h:14: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../arch/riscv/mm/pmem.c:7: In file included from ../include/linux/libnvdimm.h:14: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../arch/riscv/mm/pmem.c:7: In file included from ../include/linux/libnvdimm.h:14: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:20In file included from ../mm/mmap_lock.c:6: 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] : return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/mm/pmem.c:7: In file included from ../include/linux/libnvdimm.h:14: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/mm/pmem.c:7: In file included from ../include/linux/libnvdimm.h:14: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/mm/pmem.c:7: In file included from ../include/linux/libnvdimm.h:14: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/mm/pmem.c:7: In file included from ../include/linux/libnvdimm.h:14: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/mm/pmem.c:7: In file included from ../include/linux/libnvdimm.h:14: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../arch/riscv/mm/pmem.c:7: In file included from ../include/linux/libnvdimm.h:14: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC fs/proc/version.o 13 warnings generated. CC mm/nommu.o 13 warnings generated. AR arch/riscv/mm/built-in.a AR arch/riscv/net/built-in.a In file included from ../kernel/irq/chip.c:11: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/chip.c:11: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/chip.c:11: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/chip.c:11: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/chip.c:11: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/chip.c:11: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/chip.c:11: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/chip.c:11: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/chip.c:11: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ WRAP arch/riscv/boot/dts/canaan/k210_generic.dtb.S AS arch/riscv/boot/dts/canaan/k210_generic.dtb.o AR arch/riscv/boot/dts/built-in.a AR arch/riscv/errata/built-in.a CC arch/riscv/purgatory/purgatory.o CC fs/proc/softirqs.o CC arch/riscv/purgatory/sha256.o In file included from ../mm/nommu.c:23: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/nommu.c:23: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/nommu.c:23: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/nommu.c:23: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/nommu.c:23: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/nommu.c:23: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/nommu.c:23: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/nommu.c:23: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/nommu.c:23: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/irq/dummychip.o In file included from ../fs/proc/softirqs.c:3: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/softirqs.c:3: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/softirqs.c:3: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/softirqs.c:3: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/softirqs.c:3: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/softirqs.c:3: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/softirqs.c:3: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/softirqs.c:3: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/softirqs.c:3: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/irq/dummychip.c: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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/dummychip.c: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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/dummychip.c: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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/dummychip.c: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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/dummychip.c: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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/dummychip.c: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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/dummychip.c: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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/dummychip.c: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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/dummychip.c: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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC mm/page_alloc.o 13 warnings generated. CC fs/proc/namespaces.o AS arch/riscv/purgatory/entry.o 13 warnings generated. CC kernel/irq/devres.o CC arch/riscv/purgatory/string.o CC arch/riscv/purgatory/ctype.o AS arch/riscv/purgatory/memcpy.o In file included from ../mm/page_alloc.c:20: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/page_alloc.c:20: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/page_alloc.c:20: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/page_alloc.c:20: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/page_alloc.c:20: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/page_alloc.c:20: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/page_alloc.c:20: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/page_alloc.c:20: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/page_alloc.c:20: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AS arch/riscv/purgatory/memset.o In file included from ../fs/proc/namespaces.c:8: In file included from ../include/net/net_namespace.h:43: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/namespaces.c:8: In file included from ../include/net/net_namespace.h:43: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/namespaces.c:8: In file included from ../include/net/net_namespace.h:43: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/namespaces.c:8: In file included from ../include/net/net_namespace.h:43: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/namespaces.c:8: In file included from ../include/net/net_namespace.h:43: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/namespaces.c:8: In file included from ../include/net/net_namespace.h:43: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/namespaces.c:8: In file included from ../include/net/net_namespace.h:43: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/namespaces.c:8: In file included from ../include/net/net_namespace.h:43: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/namespaces.c:8: In file included from ../include/net/net_namespace.h:43: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AS arch/riscv/purgatory/strcmp.o In file included from ../kernel/irq/devres.c:3: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/devres.c:3: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/devres.c:3: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/devres.c:3: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/devres.c:3: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/devres.c:3: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/devres.c:3: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/devres.c:3: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/devres.c:3: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AS arch/riscv/purgatory/strlen.o 13 warnings generated. CC fs/proc/self.o 13 warnings generated. CC kernel/irq/irqdomain.o AS arch/riscv/purgatory/strncmp.o LD arch/riscv/purgatory/purgatory.ro LD arch/riscv/purgatory/purgatory.chk AS arch/riscv/purgatory/kexec-purgatory.o AR arch/riscv/purgatory/built-in.a AR arch/riscv/built-in.a AR ipc/built-in.a CC security/commoncap.o CC fs/proc/thread_self.o In file included from ../kernel/irq/irqdomain.c:7: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/irqdomain.c:7: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/irqdomain.c:7: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/irqdomain.c:7: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/irqdomain.c:7: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/irqdomain.c:7: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/irqdomain.c:7: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/irqdomain.c:7: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/irqdomain.c:7: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC mm/init-mm.o 13 warnings generated. CC kernel/irq/proc.o In file included from ../security/commoncap.c:9: In file included from ../include/linux/lsm_hooks.h:29: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../security/commoncap.c:9: In file included from ../include/linux/lsm_hooks.h:29: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../security/commoncap.c:9: In file included from ../include/linux/lsm_hooks.h:29: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../security/commoncap.c:9: In file included from ../include/linux/lsm_hooks.h:29: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../security/commoncap.c:9: In file included from ../include/linux/lsm_hooks.h:29: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../security/commoncap.c:9: In file included from ../include/linux/lsm_hooks.h:29: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../security/commoncap.c:9: In file included from ../include/linux/lsm_hooks.h:29: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../security/commoncap.c:9: In file included from ../include/linux/lsm_hooks.h:29: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../security/commoncap.c:9: In file included from ../include/linux/lsm_hooks.h:29: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC fs/proc/proc_sysctl.o In file included from ../kernel/irq/proc.c:8: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/proc.c:8: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/proc.c:8: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/proc.c:8: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/proc.c:8: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/proc.c:8: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/proc.c:8: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/proc.c:8: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/proc.c:8: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR security/built-in.a In file included from ../mm/init-mm.c:13: In file included from ../include/linux/iommu.h:10: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/init-mm.c:13: In file included from ../include/linux/iommu.h:10: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/init-mm.c:13: In file included from ../include/linux/iommu.h:10: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/init-mm.c:13: In file included from ../include/linux/iommu.h:10: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/init-mm.c:13: In file included from ../include/linux/iommu.h:10: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/init-mm.c:13: In file included from ../include/linux/iommu.h:10: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/init-mm.c:13: In file included from ../include/linux/iommu.h:10: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/init-mm.c:13: In file included from ../include/linux/iommu.h:10: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/init-mm.c:13: In file included from ../include/linux/iommu.h:10: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR crypto/built-in.a 13 warnings generated. CC block/partitions/core.o CC mm/memblock.o 13 warnings generated. CC kernel/irq/cpuhotplug.o In file included from ../fs/proc/proc_sysctl.c:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/proc_sysctl.c:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/proc_sysctl.c:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/proc_sysctl.c:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/proc_sysctl.c:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/proc_sysctl.c:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/proc_sysctl.c:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/proc_sysctl.c:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/proc_sysctl.c:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/irq/cpuhotplug.c:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/cpuhotplug.c:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/cpuhotplug.c:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/cpuhotplug.c:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/cpuhotplug.c:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/cpuhotplug.c:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/cpuhotplug.c:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/cpuhotplug.c:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/cpuhotplug.c:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../block/partitions/core.c:13: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/partitions/core.c:13: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/partitions/core.c:13: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/core.c:13: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/core.c:13: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/core.c:13: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/core.c:13: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/core.c:13: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/core.c:13: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../mm/memblock.c:21: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/memblock.c:21: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/memblock.c:21: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/memblock.c:21: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/memblock.c:21: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/memblock.c:21: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/memblock.c:21: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/memblock.c:21: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/memblock.c:21: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC fs/proc/kmsg.o CC kernel/irq/pm.o 13 warnings generated. CC block/partitions/msdos.o 13 warnings generated. In file included from ../kernel/irq/pm.c:8: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/pm.c:8: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/pm.c:8: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/pm.c:8: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/pm.c:8: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/pm.c:8: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/pm.c:8: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/pm.c:8: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/pm.c:8: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC mm/slub.o In file included from ../fs/proc/kmsg.c:18: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc/kmsg.c:18: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc/kmsg.c:18: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/kmsg.c:18: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/kmsg.c:18: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/kmsg.c:18: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/kmsg.c:18: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/kmsg.c:18: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc/kmsg.c:18: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR fs/proc/built-in.a CC fs/kernfs/mount.o In file included from ../block/partitions/msdos.c:31: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/partitions/msdos.c:31: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/partitions/msdos.c:31: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/msdos.c:31: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/msdos.c:31: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/msdos.c:31: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/msdos.c:31: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/msdos.c:31: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/msdos.c:31: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/irq/msi.o 13 warnings generated. CC block/partitions/efi.o In file included from ../mm/slub.c:14: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/slub.c:14: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/slub.c:14: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/slub.c:14: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/slub.c:14: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/slub.c:14: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/slub.c:14: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/slub.c:14: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/slub.c:14: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/kernfs/mount.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/kernfs/mount.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/kernfs/mount.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/mount.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/mount.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/mount.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/mount.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/mount.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/mount.c:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/irq/msi.c:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/msi.c:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/msi.c:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/msi.c:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/msi.c:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/msi.c:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/msi.c:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/msi.c:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/msi.c:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../block/partitions/efi.c:90: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/partitions/efi.c:90: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/partitions/efi.c:90: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/efi.c:90: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/efi.c:90: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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 CC fs/kernfs/inode.o :136: ../include/asm-generic/io.h:760:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/efi.c:90: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/efi.c:90: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/efi.c:90: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/partitions/efi.c:90: In file included from ../block/partitions/check.h:2: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC mm/dmapool.o 13 warnings generated. AR block/partitions/built-in.a CC block/bdev.o 13 warnings generated. CC kernel/irq/ipi.o In file included from ../fs/kernfs/inode.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/kernfs/inode.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/kernfs/inode.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/inode.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/inode.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/inode.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/inode.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/inode.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/inode.c:10: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../mm/dmapool.c:23: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/dmapool.c:23: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/dmapool.c:23: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/dmapool.c:23: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/dmapool.c:23: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/dmapool.c:23: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/dmapool.c:23: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/dmapool.c:23: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/dmapool.c:23: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC mm/early_ioremap.o In file included from ../kernel/irq/ipi.c:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/ipi.c:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/ipi.c:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/ipi.c:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/ipi.c:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/ipi.c:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/ipi.c:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/ipi.c:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../kernel/irq/ipi.c:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC fs/kernfs/dir.o In file included from ../block/bdev.c:14: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/bdev.c:14: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/bdev.c:14: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bdev.c:14: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bdev.c:14: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bdev.c:14: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bdev.c:14: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bdev.c:14: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bdev.c:14: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/irq/ipi-mux.o In file included from ../mm/early_ioremap.c:13: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../mm/early_ioremap.c:13: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../mm/early_ioremap.c:13: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/early_ioremap.c:13: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/early_ioremap.c:13: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/early_ioremap.c:13: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/early_ioremap.c:13: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/early_ioremap.c:13: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../mm/early_ioremap.c:13: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC block/fops.o In file included from ../fs/kernfs/dir.c:15: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/kernfs/dir.c:15: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/kernfs/dir.c:15: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/dir.c:15: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/dir.c:15: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/dir.c:15: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/dir.c:15: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/dir.c:15: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../fs/kernfs/dir.c:15: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR mm/built-in.a CC lib/math/div64.o CC lib/math/gcd.o In file included from ../kernel/irq/ipi-mux.c:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/ipi-mux.c:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/ipi-mux.c:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/ipi-mux.c:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/ipi-mux.c:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/ipi-mux.c:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/ipi-mux.c:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/ipi-mux.c:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/ipi-mux.c:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/math/lcm.o CC lib/math/int_log.o 13 warnings generated. CC fs/kernfs/file.o 13 warnings generated. CC lib/math/int_pow.o CC kernel/irq/affinity.o CC lib/math/int_sqrt.o In file included from ../block/fops.c:9: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/fops.c:9: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/fops.c:9: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/fops.c:9: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/fops.c:9: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/fops.c:9: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/fops.c:9: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/fops.c:9: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/fops.c:9: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/math/reciprocal_div.o CC lib/math/rational.o In file included from ../kernel/irq/affinity.c:6: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/affinity.c:6: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/affinity.c:6: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/affinity.c:6: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/affinity.c:6: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/affinity.c:6: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/affinity.c:6: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/affinity.c:6: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/affinity.c:6: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC block/bio.o In file included from ../fs/kernfs/file.c:14: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/kernfs/file.c:14: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/kernfs/file.c:14: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/file.c:14: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/file.c:14: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/file.c:14: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/file.c:14: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/file.c:14: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/file.c:14: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/irq/matrix.o AR lib/math/built-in.a CC lib/crypto/chacha.o 13 warnings generated. CC fs/kernfs/symlink.o CC lib/crypto/blake2s.o In file included from ../block/bio.c:6: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/bio.c:6: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/bio.c:6: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bio.c:6: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bio.c:6: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bio.c:6: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bio.c:6: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bio.c:6: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bio.c:6: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/irq/matrix.c:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq/matrix.c:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq/matrix.c:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/matrix.c:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/matrix.c:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/matrix.c:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/matrix.c:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/matrix.c:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq/matrix.c:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/crypto/blake2s-generic.o In file included from ../fs/kernfs/symlink.c:14: In file included from ../fs/kernfs/kernfs-internal.h:20: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/kernfs/symlink.c:14: In file included from ../fs/kernfs/kernfs-internal.h:20: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/kernfs/symlink.c:14: In file included from ../fs/kernfs/kernfs-internal.h:20: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/symlink.c:14: In file included from ../fs/kernfs/kernfs-internal.h:20: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/symlink.c:14: In file included from ../fs/kernfs/kernfs-internal.h:20: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/symlink.c:14: In file included from ../fs/kernfs/kernfs-internal.h:20: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/symlink.c:14: In file included from ../fs/kernfs/kernfs-internal.h:20: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernfs/symlink.c:14: In file included from ../fs/kernfs/kernfs-internal.h:20: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../fs/kernfs/symlink.c:14: In file included from ../fs/kernfs/kernfs-internal.h:20: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR kernel/irq/built-in.a CC kernel/rcu/update.o 13 warnings generated. CC block/elevator.o 13 warnings generated. AR fs/kernfs/built-in.a CC fs/sysfs/file.o CC lib/crypto/blake2s-selftest.o In file included from ../kernel/rcu/update.c:25: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/rcu/update.c:25: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/rcu/update.c:25: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/update.c:25: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/update.c:25: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/update.c:25: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/update.c:25: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/update.c:25: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/update.c:25: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR lib/crypto/built-in.a CC lib/argv_split.o In file included from ../block/elevator.c:28: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/elevator.c:28: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/elevator.c:28: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/elevator.c:28: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/elevator.c:28: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/elevator.c:28: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/elevator.c:28: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/elevator.c:28: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/elevator.c:28: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/rcu/sync.o CC fs/sysfs/dir.o CC lib/bug.o 13 warnings generated. CC block/blk-core.o CC kernel/rcu/srcutree.o CC fs/sysfs/symlink.o In file included from ../lib/bug.c:49: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/bug.c:49: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/bug.c:49: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bug.c:49: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bug.c:49: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bug.c:49: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bug.c:49: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bug.c:49: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bug.c:49: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC lib/buildid.o In file included from ../block/blk-core.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-core.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-core.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-core.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-core.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-core.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-core.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-core.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-core.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC kernel/rcu/tree.o In file included from ../fs/sysfs/symlink.c:16: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/sysfs/symlink.c:16: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/sysfs/symlink.c:16: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sysfs/symlink.c:16: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sysfs/symlink.c:16: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sysfs/symlink.c:16: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sysfs/symlink.c:16: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sysfs/symlink.c:16: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sysfs/symlink.c:16: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../lib/buildid.c:7: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/buildid.c:7: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/buildid.c:7: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/buildid.c:7: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:5313 warning: note: expanded from macro 'insw' s generated. #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/buildid.c:7: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/buildid.c:7: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/buildid.c:7: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/buildid.c:7: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/buildid.c:7: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/sysfs/mount.o CC block/blk-sysfs.o 13 warnings generated. CC lib/cmdline.o In file included from ../kernel/rcu/tree.c:26: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/rcu/tree.c:26: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/rcu/tree.c:26: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/tree.c:26: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/tree.c:26: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/tree.c:26: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/tree.c:26: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/tree.c:26: 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 CC lib/cpumask.o :2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/tree.c:26: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../block/blk-sysfs.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-sysfs.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-sysfs.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-sysfs.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-sysfs.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-sysfs.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-sysfs.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-sysfs.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-sysfs.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/sysfs/mount.c:18: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/sysfs/mount.c:18: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/sysfs/mount.c:18: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sysfs/mount.c:18: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sysfs/mount.c:18: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sysfs/mount.c:18: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sysfs/mount.c:18: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sysfs/mount.c:18: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sysfs/mount.c:18: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC block/blk-flush.o 13 warnings generated. CC lib/ctype.o CC fs/sysfs/group.o CC lib/dec_and_lock.o CC lib/decompress.o CC lib/dump_stack.o In file included from ../block/blk-flush.c:68: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-flush.c:68: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-flush.c:68: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-flush.c:68: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-flush.c:68: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-flush.c:68: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-flush.c:68: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-flush.c:68: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-flush.c:68: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR fs/sysfs/built-in.a CC fs/devpts/inode.o 13 warnings generated. CC block/blk-settings.o In file included from ../lib/dump_stack.c:14: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/dump_stack.c:14: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/dump_stack.c:14: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/dump_stack.c:14: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/dump_stack.c:14: In file included from ../include/linux/kexec.h:20: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/dump_stack.c:14: In file included from ../include/linux/kexec.h:20: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/dump_stack.c:14: In file included from ../include/linux/kexec.h:20: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/dump_stack.c:14: In file included from ../include/linux/kexec.h:20: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/dump_stack.c:14: In file included from ../include/linux/kexec.h:20: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC lib/earlycpio.o CC lib/extable.o 13 warnings generated. CC kernel/rcu/rcu_segcblist.o In file included from ../fs/devpts/inode.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/devpts/inode.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/devpts/inode.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/devpts/inode.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/devpts/inode.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/devpts/inode.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/devpts/inode.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/devpts/inode.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/devpts/inode.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../block/blk-settings.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-settings.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-settings.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-settings.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-settings.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-settings.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-settings.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-settings.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-settings.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR fs/devpts/built-in.a CC fs/ext2/balloc.o CC lib/fdt.o 13 warnings generated. CC block/blk-ioc.o CC lib/fdt_addresses.o In file included from ../kernel/rcu/rcu_segcblist.c:11: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/rcu/rcu_segcblist.c:11: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/rcu/rcu_segcblist.c:11: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/rcu_segcblist.c:11: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/rcu_segcblist.c:11: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/rcu_segcblist.c:11: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/rcu_segcblist.c:11: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/rcu_segcblist.c:11: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rcu/rcu_segcblist.c:11: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/fdt_empty_tree.o CC lib/fdt_ro.o 13 warnings generated. AR kernel/rcu/built-in.a AR kernel/livepatch/built-in.a CC kernel/dma/mapping.o In file included from ../fs/ext2/balloc.c:15: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/ext2/balloc.c:15: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/ext2/balloc.c:15: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/balloc.c:15: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/balloc.c:15: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/balloc.c:15: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/balloc.c:15: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/balloc.c:15: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/balloc.c:15: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/fdt_rw.o In file included from ../block/blk-ioc.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-ioc.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-ioc.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-ioc.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-ioc.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-ioc.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-ioc.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-ioc.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-ioc.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/fdt_strerror.o CC lib/fdt_sw.o 13 warnings generated. CC fs/ext2/dir.o CC lib/fdt_wip.o 13 warnings generated. In file included from ../kernel/dma/mapping.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/dma/mapping.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/dma/mapping.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); CC lib/flex_proportions.o ~~~~~~~~~~ ^ CC block/blk-map.o ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/mapping.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/mapping.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/mapping.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/mapping.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/mapping.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/mapping.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/dma/direct.o CC lib/idr.o In file included from ../fs/ext2/dir.c:25: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/ext2/dir.c:25: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/ext2/dir.c:25: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/dir.c:25: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/dir.c:25: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/dir.c:25: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/dir.c:25: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/dir.c:25: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/dir.c:25: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../block/blk-map.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-map.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-map.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-map.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-map.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-map.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-map.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-map.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-map.c:8: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/dma/direct.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/dma/direct.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/dma/direct.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/direct.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/direct.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/direct.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/direct.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/direct.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/direct.c:10: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/ext2/file.o 13 warnings generated. CC lib/irq_regs.o CC block/blk-merge.o 13 warnings generated. CC kernel/dma/coherent.o CC lib/is_single_threaded.o In file included from ../kernel/dma/coherent.c:6: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/dma/coherent.c:In file included from 6: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] ../fs/ext2/file.c:23: In file included from val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' ~~~~~~~~~~ ^ #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/dma/coherent.c:6: 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:585:33In file included from ../fs/ext2/file.c:23: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] : val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ In file included from ../fs/ext2/file.c:23: In file included from ../include/linux/pagemap.h:../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 11: __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ In file included from ../include/linux/highmem.h:12: In file included from ../include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] In file included from ../include/asm-generic/hardirq.h __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ :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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ note: expanded from macro 'insb' In file included from ../fs/ext2/file.c:23: #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count)In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ~~~~~~~~~~ ^ ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/coherent.c:In file included from ../fs/ext2/file.c:23: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~6: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:In file included from ../fs/ext2/file.c:23: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) 105:53: note: expanded from macro 'insw' ~~~~~~~~~~ ^ #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from In file included from ../kernel/dma/coherent.c:6: 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] insl(addr, buffer, count);../fs/ext2/file.c:23: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.hIn file included from ../fs/ext2/file.c:23: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] : outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ 106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/coherent.c:6: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/coherent.c:6: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/dma/coherent.c:6: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/file.c:23: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/dma/coherent.c:6: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../block/blk-merge.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-merge.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-merge.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-merge.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-merge.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-merge.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-merge.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-merge.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-merge.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/klist.o 13 warnings generated. CC fs/ext2/ialloc.o 13 warnings generated. AR kernel/dma/built-in.a CC lib/kobject.o CC kernel/entry/common.o 13 warnings generated. CC block/blk-timeout.o In file included from ../fs/ext2/ialloc.c:18: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/ext2/ialloc.c:18: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/ext2/ialloc.c:18: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/ialloc.c:18: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/ialloc.c:18: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/ialloc.c:18: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/ialloc.c:18: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/ialloc.c:18: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/ialloc.c:18: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/kobject_uevent.o In file included from ../kernel/entry/common.c:4: In file included from ../include/linux/entry-common.h:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/entry/common.c:4: In file included from ../include/linux/entry-common.h:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/entry/common.c:4: In file included from ../include/linux/entry-common.h:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ 13 warnings generated. ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/entry/common.c:4: In file included from ../include/linux/entry-common.h:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/entry/common.c:4: In file included from ../include/linux/entry-common.h:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/entry/common.c:4: In file included from ../include/linux/entry-common.h:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/entry/common.c:4: In file included from ../include/linux/entry-common.h:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/entry/common.c:4: In file included from ../include/linux/entry-common.h:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/entry/common.c:4: In file included from ../include/linux/entry-common.h:7: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC fs/ext2/inode.o In file included from ../block/blk-timeout.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-timeout.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-timeout.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-timeout.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-timeout.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-timeout.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-timeout.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-timeout.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-timeout.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC block/blk-lib.o CC kernel/entry/syscall_user_dispatch.o In file included from ../lib/kobject_uevent.c:23: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/kobject_uevent.c:23: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/kobject_uevent.c:23: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/kobject_uevent.c:23: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/kobject_uevent.c:23: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/kobject_uevent.c:23: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/kobject_uevent.c:23: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/kobject_uevent.c:23: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/kobject_uevent.c:23: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/ext2/inode.c:28: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/ext2/inode.c:28: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/ext2/inode.c:28: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/inode.c:28: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/inode.c:28: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/inode.c:28: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/inode.c:28: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/inode.c:28: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/inode.c:28: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../block/blk-lib.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-lib.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-lib.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-lib.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-lib.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-lib.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-lib.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-lib.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-lib.c:7: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR kernel/entry/built-in.a CC lib/logic_pio.o CC kernel/time/time.o 13 warnings generated. 13 warnings generated. CC block/blk-mq.o CC fs/ext2/ioctl.o In file included from ../lib/logic_pio.c:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/logic_pio.c:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/logic_pio.c:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/logic_pio.c:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/logic_pio.c:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/logic_pio.c:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/logic_pio.c:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/logic_pio.c:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/time.c:31: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/time.c:31: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/time.c:31: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/time.c:31: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/time.c:31: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/time.c:31: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/time.c:31: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/time.c:31: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/logic_pio.c:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/time/time.c:31: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC lib/maple_tree.o In file included from ../fs/ext2/ioctl.c:11: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/ext2/ioctl.c:11: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/ext2/ioctl.c:11: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/ioctl.c:11: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/ioctl.c:11: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/ioctl.c:11: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/ioctl.c:11: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/ioctl.c:11: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/ioctl.c:11: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../block/blk-mq.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-mq.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-mq.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/ext2/namei.o 13 warnings generated. CC kernel/time/timer.o In file included from ../kernel/time/timer.c:21: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/timer.c:21: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/timer.c:21: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timer.c:21: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timer.c:21: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timer.c:21: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timer.c:21: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timer.c:21: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timer.c:21: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/ext2/namei.c:34: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/ext2/namei.c:34: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/ext2/namei.c:34: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/namei.c:34: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/namei.c:34: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/namei.c:34: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/namei.c:34: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/namei.c:34: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/namei.c:34: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/ext2/super.o 13 warnings generated. CC block/blk-mq-tag.o 13 warnings generated. In file included from ../fs/ext2/super.c:25: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/ext2/super.c:25: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/ext2/super.c:25: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/super.c:25: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/super.c:25: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/super.c:25: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/super.c:25: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/super.c:25: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/super.c:25: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC kernel/time/hrtimer.o 13 warnings generated. CC fs/ext2/symlink.o In file included from ../block/blk-mq-tag.c:13: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-mq-tag.c:13: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-mq-tag.c:13: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-tag.c:13: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-tag.c:13: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-tag.c:13: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-tag.c:13: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-tag.c:13: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-tag.c:13: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/memcat_p.o In file included from ../kernel/time/hrtimer.c:30: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/hrtimer.c:30: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/hrtimer.c:30: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/hrtimer.c:30: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/hrtimer.c:30: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/hrtimer.c:30: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/hrtimer.c:30: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/hrtimer.c:30: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/hrtimer.c:30: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC block/blk-stat.o CC lib/nmi_backtrace.o In file included from ../fs/ext2/symlink.c:21: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/ext2/symlink.c:21: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/ext2/symlink.c:21: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/symlink.c:21: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/symlink.c:21: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/symlink.c:21: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/symlink.c:21: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/symlink.c:21: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/symlink.c:21: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC kernel/time/timekeeping.o CC fs/ext2/trace.o In file included from ../lib/nmi_backtrace.c:18: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/nmi_backtrace.c:18: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/nmi_backtrace.c:18: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/nmi_backtrace.c:18: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/nmi_backtrace.c:18: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/nmi_backtrace.c:18: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/nmi_backtrace.c:18: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/nmi_backtrace.c:18: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/nmi_backtrace.c:18: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../block/blk-stat.c:10: In file included from ../block/blk-stat.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-stat.c:10: In file included from ../block/blk-stat.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-stat.c:10: In file included from ../block/blk-stat.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-stat.c:10: In file included from ../block/blk-stat.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-stat.c:10: In file included from ../block/blk-stat.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-stat.c:10: In file included from ../block/blk-stat.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-stat.c:10: In file included from ../block/blk-stat.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-stat.c:10: In file included from ../block/blk-stat.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-stat.c:10: In file included from ../block/blk-stat.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/time/timekeeping.c:6: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/timekeeping.c:6: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/timekeeping.c:6: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timekeeping.c:6: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timekeeping.c:6: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timekeeping.c:6: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timekeeping.c:6: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timekeeping.c:6: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timekeeping.c:6: In file included from ../include/linux/timekeeper_internal.h:10: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC block/blk-mq-sysfs.o 13 warnings generated. In file included from ../fs/ext2/trace.c:2: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/ext2/trace.c:2: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/ext2/trace.c:2: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/trace.c:2: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/trace.c:2: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/trace.c:2: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] CC lib/objpool.o outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/trace.c:2: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/trace.c:2: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ext2/trace.c:2: In file included from ../fs/ext2/ext2.h:20: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR fs/ext2/built-in.a CC fs/ramfs/inode.o 13 warnings generated. CC lib/plist.o CC kernel/time/ntp.o In file included from ../block/blk-mq-sysfs.c:4: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-mq-sysfs.c:4: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-mq-sysfs.c:4: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-sysfs.c:4: In file included from ../include/linux/backing-dev.h:16: CC lib/radix-tree.o In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-sysfs.c:4: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-sysfs.c:4: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-sysfs.c:4: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-sysfs.c:4: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-sysfs.c:4: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/ramfs/inode.c:27: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/ramfs/inode.c:27: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/ramfs/inode.c:27: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ramfs/inode.c:27: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ramfs/inode.c:27: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ramfs/inode.c:27: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ramfs/inode.c:27: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ramfs/inode.c:27: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ramfs/inode.c:27: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC block/blk-mq-cpumap.o In file included from ../kernel/time/ntp.c:10: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/ntp.c:10: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/ntp.c:10: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/ntp.c:10: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/ntp.c:10: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/ntp.c:10: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/ntp.c:10: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/ntp.c:10: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/ntp.c:10: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/ramfs/file-nommu.o 13 warnings generated. CC kernel/time/clocksource.o In file included from ../block/blk-mq-cpumap.c:15: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-mq-cpumap.c:15: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-mq-cpumap.c:15: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-cpumap.c:15: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-cpumap.c:15: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-cpumap.c:15: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-cpumap.c:15: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-cpumap.c:15: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ CC lib/ratelimit.o In file included from ../block/blk-mq-cpumap.c:15: In file included from ../block/blk.h:5: In file included from ../include/linux/bio-integrity.h:5: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../fs/ramfs/file-nommu.c:11: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/ramfs/file-nommu.c:11: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/ramfs/file-nommu.c:11: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ramfs/file-nommu.c:11: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ramfs/file-nommu.c:11: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ramfs/file-nommu.c:11: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ramfs/file-nommu.c:11: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ramfs/file-nommu.c:11: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ramfs/file-nommu.c:11: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC block/blk-mq-sched.o CC lib/rbtree.o In file included from ../kernel/time/clocksource.c:11: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/clocksource.c:11: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/clocksource.c:11: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/clocksource.c:11: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/clocksource.c:11: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/clocksource.c:11: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/clocksource.c:11: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/clocksource.c:11: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/clocksource.c:11: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR fs/ramfs/built-in.a AR fs/unicode/built-in.a AR fs/hostfs/built-in.a 13 warnings generated. CC fs/open.o CC kernel/time/jiffies.o CC lib/seq_buf.o In file included from ../block/blk-mq-sched.c:11: In file included from ../include/trace/events/block.h:8: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-mq-sched.c:11: In file included from ../include/trace/events/block.h:8: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-mq-sched.c:11: In file included from ../include/trace/events/block.h:8: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-sched.c:11: In file included from ../include/trace/events/block.h:8: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-sched.c:11: In file included from ../include/trace/events/block.h:8: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-sched.c:11: In file included from ../include/trace/events/block.h:8: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-sched.c:11: In file included from ../include/trace/events/block.h:8: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-sched.c:11: In file included from ../include/trace/events/block.h:8: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-mq-sched.c:11: In file included from ../include/trace/events/block.h:8: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/time/jiffies.c:7: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/jiffies.c:7: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/jiffies.c:7: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/jiffies.c:7: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/jiffies.c:7: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/jiffies.c:7: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/jiffies.c:7: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/jiffies.c:7: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/jiffies.c:7: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC block/ioctl.o 13 warnings generated. CC kernel/time/timer_list.o In file included from ../fs/open.c:14: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/open.c:14: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/open.c:14: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/open.c:14: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/open.c:14: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/open.c:14: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/open.c:14: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/open.c:14: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/open.c:14: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/siphash.o 13 warnings generated. CC lib/string.o CC fs/read_write.o In file included from ../block/ioctl.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/ioctl.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/ioctl.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/ioctl.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/ioctl.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/ioctl.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/ioctl.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/ioctl.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/ioctl.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/time/timer_list.c:14: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/timer_list.c:14: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/timer_list.c:14: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timer_list.c:14: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timer_list.c:14: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timer_list.c:14: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timer_list.c:14: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timer_list.c:14: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/timer_list.c:14: In file included from ../include/linux/nmi.h:9: In file included from ../arch/riscv/include/asm/irq.h:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC lib/timerqueue.o CC kernel/time/timeconv.o 13 warnings generated. CC block/genhd.o CC lib/union_find.o CC lib/vsprintf.o In file included from ../fs/read_write.c:15: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/read_write.c:15: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/read_write.c:15: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/read_write.c:15: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/read_write.c:15: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/read_write.c:15: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/read_write.c:15: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/read_write.c:15: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/read_write.c:15: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC kernel/time/timecounter.o CC kernel/time/alarmtimer.o In file included from ../block/genhd.c:13: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/genhd.c:13: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/genhd.c:13: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/genhd.c:13: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/genhd.c:13: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/genhd.c:13: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/genhd.c:13: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/genhd.c:13: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/genhd.c:13: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../lib/vsprintf.c:36: In file included from ../include/linux/rtc.h:17: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/vsprintf.c:36: In file included from ../include/linux/rtc.h:17: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/vsprintf.c:36: In file included from ../include/linux/rtc.h:17: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/vsprintf.c:36: In file included from ../include/linux/rtc.h:17: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/vsprintf.c:36: In file included from ../include/linux/rtc.h:17: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/vsprintf.c:36: In file included from ../include/linux/rtc.h:17: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/vsprintf.c:36: In file included from ../include/linux/rtc.h:17: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/vsprintf.c:36: In file included from ../include/linux/rtc.h:17: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/vsprintf.c:36: In file included from ../include/linux/rtc.h:17: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/file_table.o In file included from ../kernel/time/alarmtimer.c:18: In file included from ../include/linux/rtc.h:17: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/alarmtimer.c:18: In file included from ../include/linux/rtc.h:17: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/alarmtimer.c:18: In file included from ../include/linux/rtc.h:17: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/alarmtimer.c:18: In file included from ../include/linux/rtc.h:17: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/alarmtimer.c:18: In file included from ../include/linux/rtc.h:17: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/alarmtimer.c:18: In file included from ../include/linux/rtc.h:17: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/alarmtimer.c:18: In file included from ../include/linux/rtc.h:17: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/alarmtimer.c:18: In file included from ../include/linux/rtc.h:17: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/alarmtimer.c:18: In file included from ../include/linux/rtc.h:17: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC block/ioprio.o 13 warnings generated. CC kernel/time/posix-timers.o In file included from ../fs/file_table.c:17: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/file_table.c:17: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/file_table.c:17: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/file_table.c:17: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/file_table.c:17: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/file_table.c:17: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/file_table.c:17: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/file_table.c:17: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/file_table.c:17: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../block/ioprio.c:27: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/ioprio.c:27: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/ioprio.c:27: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/ioprio.c:27: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/ioprio.c:27: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/ioprio.c:27: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/ioprio.c:27: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/ioprio.c:27: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/ioprio.c:27: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC lib/win_minmax.o CC fs/super.o In file included from ../kernel/time/posix-timers.c:13: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/posix-timers.c:13: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/posix-timers.c:13: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-timers.c:13: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-timers.c:13: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-timers.c:13: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-timers.c:13: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-timers.c:13: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-timers.c:13: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC block/badblocks.o 13 warnings generated. CC kernel/time/posix-cpu-timers.o CC lib/xarray.o In file included from ../fs/super.c:26: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/super.c:26: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/super.c:26: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/super.c:26: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/super.c:26: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/super.c:26: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/super.c:26: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/super.c:26: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/super.c:26: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC block/blk-rq-qos.o In file included from ../kernel/time/posix-cpu-timers.c:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/posix-cpu-timers.c:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/posix-cpu-timers.c:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-cpu-timers.c:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-cpu-timers.c:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-cpu-timers.c:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-cpu-timers.c:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-cpu-timers.c:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-cpu-timers.c:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/char_dev.o CC lib/lockref.o In file included from ../block/blk-rq-qos.c:3: In file included from ../block/blk-rq-qos.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-rq-qos.c:3: In file included from ../block/blk-rq-qos.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-rq-qos.c:3: In file included from ../block/blk-rq-qos.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-rq-qos.c:3: In file included from ../block/blk-rq-qos.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-rq-qos.c:3: In file included from ../block/blk-rq-qos.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-rq-qos.c:3: In file included from ../block/blk-rq-qos.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-rq-qos.c:3: In file included from ../block/blk-rq-qos.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-rq-qos.c:3: In file included from ../block/blk-rq-qos.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-rq-qos.c:3: In file included from ../block/blk-rq-qos.h:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/time/posix-clock.o CC lib/bcd.o CC lib/sort.o 13 warnings generated. CC block/disk-events.o CC lib/parser.o In file included from ../fs/char_dev.c:23: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/char_dev.c:23: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/char_dev.c:23: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/char_dev.c:23: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/char_dev.c:23: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/char_dev.c:23: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/char_dev.c:23: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/char_dev.c:23: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/char_dev.c:23: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/stat.o CC lib/debug_locks.o In file included from ../kernel/time/posix-clock.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/posix-clock.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/posix-clock.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-clock.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-clock.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-clock.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-clock.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-clock.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/posix-clock.c:12: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../block/disk-events.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/disk-events.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/disk-events.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/disk-events.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/disk-events.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/disk-events.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/disk-events.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/disk-events.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/disk-events.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/random32.o 13 warnings generated. CC kernel/time/itimer.o 13 warnings generated. CC block/blk-ia-ranges.o In file included from ../fs/stat.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/stat.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/stat.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/stat.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/stat.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/stat.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/stat.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/stat.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/stat.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/bust_spinlocks.o 13 warnings generated. CC fs/exec.o In file included from ../kernel/time/itimer.c:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/itimer.c:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/itimer.c:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/itimer.c:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/itimer.c:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/itimer.c:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/itimer.c:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/itimer.c:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/itimer.c:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../block/blk-ia-ranges.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-ia-ranges.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-ia-ranges.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-ia-ranges.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-ia-ranges.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-ia-ranges.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-ia-ranges.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-ia-ranges.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-ia-ranges.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC block/early-lookup.o 13 warnings generated. In file included from ../lib/bust_spinlocks.c:15: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/bust_spinlocks.c:15: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/bust_spinlocks.c:15: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bust_spinlocks.c:15: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bust_spinlocks.c:15: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bust_spinlocks.c:15: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: CC kernel/time/clockevents.o 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bust_spinlocks.c:15: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bust_spinlocks.c:15: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bust_spinlocks.c:15: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC lib/kasprintf.o In file included from ../fs/exec.c:33: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/exec.c:33: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/exec.c:33: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/exec.c:33: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/exec.c:33: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/exec.c:33: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/exec.c:33: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/exec.c:33: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/exec.c:33: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/bitmap.o In file included from ../kernel/time/clockevents.c:10: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/clockevents.c:10: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/clockevents.c:10: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/clockevents.c:10: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/clockevents.c:10: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/clockevents.c:10: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/clockevents.c:10: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/clockevents.c:10: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/clockevents.c:10: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../block/early-lookup.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/early-lookup.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/early-lookup.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/early-lookup.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/early-lookup.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/early-lookup.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/early-lookup.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/early-lookup.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/early-lookup.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC block/bfq-iosched.o CC fs/pipe.o 13 warnings generated. CC kernel/time/tick-common.o CC lib/scatterlist.o In file included from ../block/bfq-iosched.c:118: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/bfq-iosched.c:118: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/bfq-iosched.c:118: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-iosched.c:118: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-iosched.c:118: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-iosched.c:118: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-iosched.c:118: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-iosched.c:118: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-iosched.c:118: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/pipe.c:17: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37In file included from :51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ ../kernel/time/tick-common.c:14: 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.hIn file included from :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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] ../fs/pipe.c: val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ 17: 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/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] ../include/linux/bpf.h val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] : val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 37#define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ :51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/pipe.c:17: In file included from ../include/linux/pseudo_fs.h:4: In file included from ../include/linux/fs_context.hIn file included from ../kernel/time/tick-common.c:14: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] : val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^../include/asm-generic/io.h :595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ In file included from ../kernel/time/tick-common.c:14: In file included from ../include/linux/interrupt.h:11: In file included from ../include/linux/hardirq.h:11: In file included from ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] ./arch/riscv/include/generated/asm/hardirq.h __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);: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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/pipe.c:17: In file included from ../include/linux/pseudo_fs.h:4: In file included from ../include/linux/fs_context.h:14: ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] In file included from insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' ../include/linux/security.h#define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ :35: In file included from ../include/linux/bpf.h:31: In file included from ../kernel/time/tick-common.c:14: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count);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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' ^~~~~~~~~~~~~~~~~~~~~~~~~#define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' In file included from #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ ../fs/pipe.c:17: In file included from ../include/linux/pseudo_fs.h:4: In file included from In file included from ../kernel/time/tick-common.c:14: 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] insl(addr, buffer, count);../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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' ^~~~~~~~~~~~~~~~~~~~~~~~~#define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' In file included from ../fs/pipe.c#define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ :17: In file included from ../include/linux/pseudo_fs.h:4: In file included from ../include/linux/fs_context.h:14In file included from ../kernel/time/tick-common.c:14: 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] : outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' In file included from ../include/linux/security.h#define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ :35: In file included from ../include/linux/bpf.h:31: In file included from In file included from ../kernel/time/tick-common.c:14: 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] ../include/linux/memcontrol.h outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' :#define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ 13: In file included from ../include/linux/cgroup.h:26: In file included from ../include/linux/kernel_stat.hIn file included from ../kernel/time/tick-common.c:14: 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] : outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' 8#define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count): 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' ~~~~~~~~~~ ^#define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/pipe.c:17: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/pipe.c:17: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/tick-common.c:14: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/pipe.c:17: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/time/tick-broadcast.o 13 warnings generated. CC fs/namei.o In file included from ../lib/scatterlist.c:9: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/scatterlist.c:9: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/scatterlist.c:9: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/scatterlist.c:9: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/scatterlist.c:9: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/scatterlist.c:9: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/scatterlist.c:9: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/scatterlist.c:9: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/scatterlist.c:9: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC lib/list_sort.o In file included from ../kernel/time/tick-broadcast.c:13: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/tick-broadcast.c:13: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/tick-broadcast.c:13: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/tick-broadcast.c:13: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/tick-broadcast.c:13: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/tick-broadcast.c:13: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/tick-broadcast.c:13: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/tick-broadcast.c:13: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/tick-broadcast.c:13: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/namei.c:25: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/namei.c:25: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/namei.c:25: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/namei.c:25: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/namei.c:25: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/namei.c:25: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/namei.c:25: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/namei.c:25: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/namei.c:25: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h CC lib/uuid.o :12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC block/bfq-wf2q.o 13 warnings generated. CC kernel/time/sched_clock.o CC lib/iov_iter.o In file included from ../kernel/time/sched_clock.c:6: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/time/sched_clock.c:6: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/time/sched_clock.c:6: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/sched_clock.c:6: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/sched_clock.c:6: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/sched_clock.c:6: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/sched_clock.c:6: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/sched_clock.c:6: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/time/sched_clock.c:6: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../block/bfq-wf2q.c:9: In file included from ../block/bfq-iosched.h:9: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/bfq-wf2q.c:9: In file included from ../block/bfq-iosched.h:9: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/bfq-wf2q.c:9: In file included from ../block/bfq-iosched.h:9: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-wf2q.c:9: In file included from ../block/bfq-iosched.h:9: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-wf2q.c:9: In file included from ../block/bfq-iosched.h:9: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-wf2q.c:9: In file included from ../block/bfq-iosched.h:9: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-wf2q.c:9: In file included from ../block/bfq-iosched.h:9: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-wf2q.c:9: In file included from ../block/bfq-iosched.h:9: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-wf2q.c:9: In file included from ../block/bfq-iosched.h:9: In file included from ../include/linux/blktrace_api.h:5: In file included from ../include/linux/blk-mq.h:5: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR kernel/time/built-in.a CC kernel/fork.o In file included from ../lib/iov_iter.c:3: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/iov_iter.c:3: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/iov_iter.c:3: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/iov_iter.c:3: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/iov_iter.c:3: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/iov_iter.c:3: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/iov_iter.c:3: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/iov_iter.c:3: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/iov_iter.c:3: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC block/bfq-cgroup.o 13 warnings generated. CC fs/fcntl.o In file included from ../kernel/fork.c:35: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/fork.c:35: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/fork.c:35: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/fork.c:35: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/fork.c:35: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/fork.c:35: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/fork.c:35: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/fork.c:35: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/fork.c:35: In file included from ../include/linux/mempolicy.h:15: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../block/bfq-cgroup.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/bfq-cgroup.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/bfq-cgroup.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-cgroup.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-cgroup.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-cgroup.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-cgroup.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-cgroup.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/bfq-cgroup.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC lib/clz_ctz.o 13 warnings generated. CC block/blk-pm.o CC lib/bsearch.o In file included from ../fs/fcntl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/fcntl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/fcntl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fcntl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fcntl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fcntl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fcntl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fcntl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fcntl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/exec_domain.o In file included from ../lib/bsearch.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/bsearch.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/bsearch.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bsearch.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bsearch.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bsearch.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bsearch.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bsearch.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/bsearch.c:11: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/ioctl.o In file included from ../block/blk-pm.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../block/blk-pm.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../block/blk-pm.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-pm.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-pm.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-pm.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-pm.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-pm.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../block/blk-pm.c:4: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. AR block/built-in.a CC lib/find_bit.o AS arch/riscv/lib/clear_page.o CC arch/riscv/lib/csum.o CC lib/llist.o In file included from ../kernel/exec_domain.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/exec_domain.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/exec_domain.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/exec_domain.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/exec_domain.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/exec_domain.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/exec_domain.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/exec_domain.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/exec_domain.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/ioctl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/ioctl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/ioctl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ioctl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ioctl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ioctl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ioctl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ioctl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/ioctl.c:8: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/lwq.o 13 warnings generated. CC kernel/panic.o CC arch/riscv/lib/delay.o CC lib/memweight.o 13 warnings generated. CC fs/readdir.o AS arch/riscv/lib/memcpy.o CC lib/kfifo.o In file included from ../kernel/panic.c:14: 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 AS arch/riscv/lib/memmove.o :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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/panic.c:14: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/panic.c:14: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/panic.c:14: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/panic.c:14: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/panic.c:14: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/panic.c:14: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/panic.c:14: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/panic.c:14: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AS arch/riscv/lib/memset.o AS arch/riscv/lib/strcmp.o AS arch/riscv/lib/strlen.o AS arch/riscv/lib/strncmp.o 13 warnings generated. CC kernel/cpu.o AS arch/riscv/lib/tishift.o In file included from ../lib/kfifo.c:8: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/kfifo.c:8: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/kfifo.c:8: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/kfifo.c:8: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/kfifo.c:8: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/kfifo.c:8: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/kfifo.c:8: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/kfifo.c:8: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/kfifo.c:8: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/readdir.c:19: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/readdir.c:19: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/readdir.c:19: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/readdir.c:19: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/readdir.c:19: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/readdir.c:19: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/readdir.c:19: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/readdir.c:19: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/readdir.c:19: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR arch/riscv/lib/built-in.a AR arch/riscv/lib/lib.a 13 warnings generated. AR drivers/cache/built-in.a CC lib/percpu-refcount.o CC drivers/irqchip/irqchip.o 13 warnings generated. CC fs/select.o In file included from ../kernel/cpu.c:13: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/cpu.c:13: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/cpu.c:13: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/cpu.c:13: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/cpu.c:13: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/cpu.c:13: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/cpu.c:13: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/cpu.c:13: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/cpu.c:13: In file included from ../include/linux/sched/isolation.h:7: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irqchip.c:14: In file included from ../include/linux/of_irq.h:7: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/irqchip/irqchip.c:14: In file included from ../include/linux/of_irq.h:7: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/irqchip/irqchip.c:14: In file included from ../include/linux/of_irq.h:7: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irqchip.c:14: In file included from ../include/linux/of_irq.h:7: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irqchip.c:14: In file included from ../include/linux/of_irq.h:7: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irqchip.c:14: In file included from ../include/linux/of_irq.h:7: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irqchip.c:14: In file included from ../include/linux/of_irq.h:7: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irqchip.c:14: In file included from ../include/linux/of_irq.h:7: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irqchip.c:14: In file included from ../include/linux/of_irq.h:7: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/rhashtable.o In file included from ../fs/select.c:22: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/select.c:22: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/select.c:22: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/select.c:22: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/select.c:22: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/select.c:22: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/select.c:22: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/select.c:22: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/select.c:22: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/irqchip/irq-riscv-intc.o 13 warnings generated. CC kernel/exit.o In file included from ../drivers/irqchip/irq-riscv-intc.c:13: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/irqchip/irq-riscv-intc.c:13: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/irqchip/irq-riscv-intc.c:13: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-intc.c:13: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-intc.c:13: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-intc.c:13: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-intc.c:13: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-intc.c:13: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-intc.c:13: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/dcache.o 13 warnings generated. CC drivers/irqchip/irq-riscv-aplic-main.o In file included from ../kernel/exit.c:16: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/exit.c:16: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/exit.c:16: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/exit.c:16: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/exit.c:16: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/exit.c:16: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/exit.c:16: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/exit.c:16: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/exit.c:16: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/base64.o CC lib/once.o In file included from ../fs/dcache.c:29: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/dcache.c:29: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/dcache.c:29: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/dcache.c:29: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/dcache.c:29: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/dcache.c:29: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/dcache.c:29: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/dcache.c:29: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/dcache.c:29: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-main.c:13: In file included from ../include/linux/of_irq.h:7: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/irqchip/irq-riscv-aplic-main.c:13: In file included from ../include/linux/of_irq.h:7: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/irqchip/irq-riscv-aplic-main.c:13: In file included from ../include/linux/of_irq.h:7: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-main.c:13: In file included from ../include/linux/of_irq.h:7: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-main.c:13: In file included from ../include/linux/of_irq.h:7: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-main.c:13: In file included from ../include/linux/of_irq.h:7: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-main.c:13: In file included from ../include/linux/of_irq.h:7: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-main.c:13: In file included from ../include/linux/of_irq.h:7: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-main.c:13: In file included from ../include/linux/of_irq.h:7: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/irqchip/irq-riscv-aplic-direct.o CC lib/refcount.o 13 warnings generated. CC kernel/softirq.o CC lib/rcuref.o In file included from ../kernel/softirq.c:13: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/softirq.c:13: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/softirq.c:13: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/softirq.c:13: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/softirq.c:13: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/softirq.c:13: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/softirq.c:13: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/softirq.c:13: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/softirq.c:13: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/usercopy.o 13 warnings generated. CC fs/inode.o In file included from ../drivers/irqchip/irq-riscv-aplic-direct.c:11: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/irqchip/irq-riscv-aplic-direct.c:11: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/irqchip/irq-riscv-aplic-direct.c:11: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-direct.c:11: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-direct.c:11: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-direct.c:11: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-direct.c:11: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-direct.c:11: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-direct.c:11: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/irqchip/irq-riscv-aplic-msi.o 13 warnings generated. CC lib/errseq.o CC kernel/resource.o CC lib/bucket_locks.o In file included from ../fs/inode.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/inode.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/inode.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/inode.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/inode.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/inode.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/inode.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/inode.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/inode.c:10: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-msi.c:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/irqchip/irq-riscv-aplic-msi.c:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/irqchip/irq-riscv-aplic-msi.c:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-msi.c:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-msi.c:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-msi.c:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-msi.c:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-msi.c:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-aplic-msi.c:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/resource.c:21: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/resource.c:21: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/resource.c:21: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/resource.c:21: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/resource.c:21: 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:760:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/resource.c:21: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/resource.c:21: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/resource.c:21: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/resource.c:21: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/generic-radix-tree.o 13 warnings generated. CC drivers/irqchip/irq-riscv-imsic-state.o 13 warnings generated. CC kernel/sysctl.o 13 warnings generated. CC fs/attr.o CC lib/bitmap-str.o In file included from ../drivers/irqchip/irq-riscv-imsic-state.c:11: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/irqchip/irq-riscv-imsic-state.c:11: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/irqchip/irq-riscv-imsic-state.c:11: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-state.c:11: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-state.c:11: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-state.c:11: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-state.c:11: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-state.c:11: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-state.c:11: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/sysctl.c:24: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/sysctl.c:24: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/sysctl.c:24: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sysctl.c:24: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sysctl.c:24: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sysctl.c:24: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sysctl.c:24: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sysctl.c:24: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sysctl.c:24: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/irqchip/irq-riscv-imsic-early.o In file included from ../fs/attr.c:18: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/attr.c:18: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/attr.c:18: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/attr.c:18: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/attr.c:18: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/attr.c:18: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/attr.c:18: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/attr.c:18: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/attr.c:18: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/string_helpers.o 13 warnings generated. CC fs/bad_inode.o In file included from ../drivers/irqchip/irq-riscv-imsic-early.c:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/irqchip/irq-riscv-imsic-early.c:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/irqchip/irq-riscv-imsic-early.c:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-early.c:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-early.c:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-early.c:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-early.c:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-early.c:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-early.c:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/irqchip/irq-riscv-imsic-platform.o 13 warnings generated. CC kernel/capability.o CC fs/file.o CC lib/hexdump.o CC lib/kstrtox.o In file included from ../drivers/irqchip/irq-riscv-imsic-platform.c:11: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/irqchip/irq-riscv-imsic-platform.c:11: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/irqchip/irq-riscv-imsic-platform.c:11: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-platform.c:11: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-platform.c:11: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-platform.c:11: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-platform.c:11: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-platform.c:11: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-riscv-imsic-platform.c:11: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/capability.c:17: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/capability.c:17: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/capability.c:17: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/capability.c:17: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/capability.c:17: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/capability.c:17: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/capability.c:17: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/capability.c:17: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/capability.c:17: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/file.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/file.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ CC lib/iomap_copy.o In file included from ../fs/file.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/file.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/file.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/file.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/file.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/file.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../fs/file.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/irqchip/irq-sifive-plic.o 13 warnings generated. CC kernel/ptrace.o In file included from ../lib/iomap_copy.c:7: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/iomap_copy.c:7: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/iomap_copy.c:7: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/iomap_copy.c:7: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/iomap_copy.c:7: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/iomap_copy.c:7: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/iomap_copy.c:7: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/iomap_copy.c:7: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/iomap_copy.c:7: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC lib/devres.o In file included from ../drivers/irqchip/irq-sifive-plic.c:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/irqchip/irq-sifive-plic.c:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/irqchip/irq-sifive-plic.c:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-sifive-plic.c:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-sifive-plic.c:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-sifive-plic.c:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-sifive-plic.c:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-sifive-plic.c:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/irqchip/irq-sifive-plic.c:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/filesystems.o In file included from ../kernel/ptrace.c:19: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/ptrace.c:19: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/ptrace.c:19: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ptrace.c:19: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ptrace.c:19: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ptrace.c:19: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ptrace.c:19: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ptrace.c:19: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ptrace.c:19: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR drivers/irqchip/built-in.a AR drivers/bus/mhi/built-in.a CC drivers/bus/simple-pm-bus.o In file included from ../lib/devres.c:7: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/devres.c:7: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/devres.c:7: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/devres.c:7: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/devres.c:7: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/devres.c:7: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/devres.c:7: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/devres.c:7: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/devres.c:7: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC lib/hweight.o CC lib/bitrev.o 13 warnings generated. CC kernel/user.o In file included from ../fs/filesystems.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/filesystems.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/filesystems.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/filesystems.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/filesystems.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/filesystems.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/filesystems.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/filesystems.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/filesystems.c:10: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/namespace.o AR drivers/bus/built-in.a AR drivers/pinctrl/actions/built-in.a In file included from ../kernel/user.c:18: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/user.c:18: 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: AR drivers/pinctrl/bcm/built-in.a 14: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/user.c:18: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/user.c:18: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/user.c:18: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/user.c:18: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/user.c:18: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/user.c:18: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/user.c:18: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/pinctrl/cirrus/built-in.a AR drivers/pinctrl/freescale/built-in.a AR drivers/pinctrl/mediatek/built-in.a AR drivers/pinctrl/mvebu/built-in.a CC lib/crc-itu-t.o AR drivers/pinctrl/nomadik/built-in.a AR drivers/pinctrl/nuvoton/built-in.a AR drivers/pinctrl/nxp/built-in.a AR drivers/pinctrl/qcom/built-in.a AR drivers/pinctrl/sophgo/built-in.a 13 warnings generated. AR drivers/pinctrl/sprd/built-in.a CC kernel/signal.o AR drivers/pinctrl/sunplus/built-in.a AR drivers/pinctrl/ti/built-in.a CC drivers/pinctrl/core.o In file included from ../fs/namespace.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/namespace.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/namespace.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/namespace.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/namespace.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/namespace.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/namespace.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/namespace.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/namespace.c:11: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ HOSTCC lib/gen_crc32table CC lib/crc7.o In file included from ../kernel/signal.c:27: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/signal.c:27: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/signal.c:27: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/signal.c:27: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/signal.c:27: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/signal.c:27: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/signal.c:27: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/signal.c:27: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/signal.c:27: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/pinctrl/core.c:28: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/pinctrl/core.c:28: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/pinctrl/core.c:28: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pinctrl/core.c:28: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pinctrl/core.c:28: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pinctrl/core.c:28: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pinctrl/core.c:28: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pinctrl/core.c:28: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pinctrl/core.c:28: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/pinctrl/pinctrl-utils.o CC lib/percpu_counter.o 13 warnings generated. CC kernel/sys.o 13 warnings generated. CC fs/seq_file.o CC drivers/pinctrl/pinmux.o CC lib/syscall.o In file included from ../kernel/sys.c:10: In file included from ../include/linux/mm_inline.h:8: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/sys.c:10: In file included from ../include/linux/mm_inline.h:8: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/sys.c:10: In file included from ../include/linux/mm_inline.h:8: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sys.c:10: In file included from ../include/linux/mm_inline.h:8: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sys.c:10: In file included from ../include/linux/mm_inline.h:8: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sys.c:10: In file included from ../include/linux/mm_inline.h:8: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sys.c:10: In file included from ../include/linux/mm_inline.h:8: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sys.c:10: In file included from ../include/linux/mm_inline.h:8: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/sys.c:10: In file included from ../include/linux/mm_inline.h:8: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/pinctrl/pinconf.o CC lib/checksum.o CC fs/xattr.o 13 warnings generated. CC lib/strncpy_from_user.o CC kernel/umh.o CC drivers/pinctrl/pinconf-generic.o In file included from ../fs/xattr.c:18: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/xattr.c:18: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/xattr.c:18: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/xattr.c:18: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/xattr.c:18: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/xattr.c:18: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/xattr.c:18: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/xattr.c:18: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/xattr.c:18: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/strnlen_user.o In file included from ../kernel/umh.c:9: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/umh.c:9: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/umh.c:9: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/umh.c:9: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/umh.c:9: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from 13 warnings generated. ../kernel/umh.c:9: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/umh.c:9: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/umh.c:9: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/umh.c:9: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC fs/libfs.o CC drivers/pinctrl/devicetree.o 13 warnings generated. CC kernel/workqueue.o CC lib/sbitmap.o In file included from ../fs/libfs.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/libfs.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/libfs.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/libfs.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/libfs.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/libfs.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/libfs.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/libfs.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/libfs.c:7: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/workqueue.c:32: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/workqueue.c:32: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/workqueue.c:32: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/workqueue.c:32: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/workqueue.c:32: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/workqueue.c:32: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/workqueue.c:32: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/workqueue.c:32: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/workqueue.c:32: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/pinctrl/pinctrl-k210.o In file included from ../drivers/pinctrl/pinctrl-k210.c:8: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/pinctrl/pinctrl-k210.c:8: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/pinctrl/pinctrl-k210.c:8: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pinctrl/pinctrl-k210.c:8: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pinctrl/pinctrl-k210.c:8: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pinctrl/pinctrl-k210.c:8: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pinctrl/pinctrl-k210.c:8: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pinctrl/pinctrl-k210.c:8: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pinctrl/pinctrl-k210.c:8: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/fs-writeback.o CC lib/group_cpus.o 13 warnings generated. AR drivers/pinctrl/built-in.a CC drivers/gpio/gpiolib.o In file included from ../fs/fs-writeback.c:24: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/fs-writeback.c:24: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/fs-writeback.c:24: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs-writeback.c:24: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs-writeback.c:24: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs-writeback.c:24: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs-writeback.c:24: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs-writeback.c:24: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs-writeback.c:24: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC lib/devmem_is_allowed.o 13 warnings generated. In file included from ../drivers/gpio/gpiolib.c:15: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/gpio/gpiolib.c:15: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/gpio/gpiolib.c:15: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ CC kernel/pid.o ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib.c:15: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib.c:15: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib.c:15: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib.c:15: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib.c:15: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib.c:15: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/pnode.o In file included from ../lib/devmem_is_allowed.c:13: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../lib/devmem_is_allowed.c:13: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../lib/devmem_is_allowed.c:13: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/devmem_is_allowed.c:13: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/devmem_is_allowed.c:13: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/devmem_is_allowed.c:13: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/devmem_is_allowed.c:13: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/devmem_is_allowed.c:13: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../lib/devmem_is_allowed.c:13: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR lib/lib.a GEN lib/crc32table.h CC lib/crc32.o In file included from ../kernel/pid.c:37: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/pid.c:37: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/pid.c:37: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/pid.c:37: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/pid.c:37: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/pid.c:37: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/pid.c:37: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/pid.c:37: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/pid.c:37: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC fs/splice.o 13 warnings generated. CC drivers/gpio/gpiolib-devres.o 13 warnings generated. CC kernel/task_work.o AR lib/built-in.a AR sound/built-in.a AR virt/lib/built-in.a AR virt/built-in.a CC kernel/extable.o In file included from ../fs/splice.c:21: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/splice.c:21: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/splice.c:21: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/splice.c:21: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/splice.c:21: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/splice.c:21: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/splice.c:21: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/splice.c:21: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/splice.c:21: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-devres.c:17: In file included from ../drivers/gpio/gpiolib.h:16: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/gpio/gpiolib-devres.c:17: In file included from ../drivers/gpio/gpiolib.h:16: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/gpio/gpiolib-devres.c:17: In file included from ../drivers/gpio/gpiolib.h:16: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-devres.c:17: In file included from ../drivers/gpio/gpiolib.h:16: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-devres.c:17: In file included from ../drivers/gpio/gpiolib.h:16: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-devres.c:17: In file included from ../drivers/gpio/gpiolib.h:16: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-devres.c:17: In file included from ../drivers/gpio/gpiolib.h:16: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-devres.c:17: In file included from ../drivers/gpio/gpiolib.h:16: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-devres.c:17: In file included from ../drivers/gpio/gpiolib.h:16: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/gpio/gpiolib-legacy.o In file included from ../kernel/task_work.c:5: In file included from ../include/linux/resume_user_mode.h:8: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/task_work.c:5: In file included from ../include/linux/resume_user_mode.h:8: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/task_work.c:5: In file included from ../include/linux/resume_user_mode.h:8: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/task_work.c:5: In file included from ../include/linux/resume_user_mode.h:8: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/task_work.c:5: In file included from ../include/linux/resume_user_mode.h:8: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/task_work.c:5: In file included from ../include/linux/resume_user_mode.h:8: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/task_work.c:5: In file included from ../include/linux/resume_user_mode.h:8: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/task_work.c:5: In file included from ../include/linux/resume_user_mode.h:8: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/task_work.c:5: In file included from ../include/linux/resume_user_mode.h:8: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/params.o In file included from ../kernel/extable.c:7: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/extable.c:7: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/extable.c:7: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/extable.c:7: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/extable.c:7: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/extable.c:7: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/extable.c:7: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/extable.c:7: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/extable.c:7: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/sync.o In file included from ../drivers/gpio/gpiolib-legacy.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/gpio/gpiolib-legacy.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/gpio/gpiolib-legacy.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-legacy.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-legacy.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-legacy.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-legacy.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-legacy.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-legacy.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/gpio/gpiolib-of.o 13 warnings generated. CC drivers/gpio/gpiolib-cdev.o In file included from ../kernel/params.c:15: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/params.c:15: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/params.c:15: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/params.c:15: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/params.c:15: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/params.c:15: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/params.c:15: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/params.c:15: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/params.c:15: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/sync.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/sync.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/sync.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sync.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sync.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sync.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sync.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sync.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/sync.c:6: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/kthread.o In file included from ../drivers/gpio/gpiolib-of.c:13: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/gpio/gpiolib-of.c:13: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/gpio/gpiolib-of.c:13: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-of.c:13: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-of.c:13: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-of.c:13: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-of.c:13: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-of.c:13: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-of.c:13: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/utimes.o In file included from ../drivers/gpio/gpiolib-cdev.c:15: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/gpio/gpiolib-cdev.c:15: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/gpio/gpiolib-cdev.c:15: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-cdev.c:15: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-cdev.c:15: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-cdev.c:15: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-cdev.c:15: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-cdev.c:15: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-cdev.c:15: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/gpio/gpiolib-swnode.o In file included from ../kernel/kthread.c:19: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/kthread.c:19: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/kthread.c:19: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/kthread.c:19: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/kthread.c:19: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/kthread.c:19: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/kthread.c:19: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/kthread.c:19: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/kthread.c:19: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-swnode.c:20: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/gpio/gpiolib-swnode.c:20: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/gpio/gpiolib-swnode.c:20: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-swnode.c:20: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-swnode.c:20: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-swnode.c:20: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-swnode.c:20: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-swnode.c:20: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpiolib-swnode.c:20: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/utimes.c:6: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/utimes.c:6: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/utimes.c:6: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/utimes.c:6: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/utimes.c:6: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/utimes.c:6: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/utimes.c:6: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/utimes.c:6: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/utimes.c:6: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/gpio/gpio-mmio.o 13 warnings generated. CC kernel/sys_ni.o 13 warnings generated. 13 warnings generated. CC fs/d_path.o CC kernel/nsproxy.o CC kernel/notifier.o In file included from ../drivers/gpio/gpio-mmio.c:47: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/gpio/gpio-mmio.c:47: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/gpio/gpio-mmio.c:47: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-mmio.c:47: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-mmio.c:47: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-mmio.c:47: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-mmio.c:47: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-mmio.c:47: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-mmio.c:47: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/nsproxy.c:15: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/nsproxy.c:15: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/nsproxy.c:15: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/nsproxy.c:15: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/nsproxy.c:15: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/nsproxy.c:15: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/nsproxy.c:15: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/nsproxy.c:15: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/nsproxy.c:15: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../kernel/notifier.c:3: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/notifier.c:3: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/notifier.c:3: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/notifier.c:3: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/notifier.c:3: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/notifier.c:3: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/notifier.c:3: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/notifier.c:3: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/notifier.c:3: In file included from ../include/linux/kprobes.h:28: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../fs/d_path.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/d_path.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/d_path.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/d_path.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/d_path.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/d_path.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/d_path.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/d_path.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/d_path.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/gpio/gpio-dwapb.o 13 warnings generated. CC fs/stack.o 13 warnings generated. CC kernel/ksysfs.o 13 warnings generated. CC kernel/cred.o In file included from ../drivers/gpio/gpio-dwapb.c:10: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/gpio/gpio-dwapb.c:10: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/gpio/gpio-dwapb.c:10: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-dwapb.c:10: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-dwapb.c:10: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-dwapb.c:10: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-dwapb.c:10: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-dwapb.c:10: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-dwapb.c:10: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC fs/fs_struct.o In file included from ../kernel/cred.c:17: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/cred.c:17: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/cred.c:17: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/cred.c:17: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/cred.c:17: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/cred.c:17: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/cred.c:17: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/cred.c:17: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/cred.c:17: In file included from ../include/linux/init_task.h:9: In file included from ../include/linux/ftrace.h:10: In file included from ../include/linux/trace_recursion.h:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/gpio/gpio-sifive.o In file included from ../kernel/ksysfs.c:15: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/ksysfs.c:15: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/ksysfs.c:15: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ksysfs.c:15: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ksysfs.c:15: In file included from ../include/linux/kexec.h:20: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ksysfs.c:15: In file included from ../include/linux/kexec.h:20: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ksysfs.c:15: In file included from ../include/linux/kexec.h:20: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ksysfs.c:15: In file included from ../include/linux/kexec.h:20: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ksysfs.c:15: In file included from ../include/linux/kexec.h:20: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/reboot.o CC fs/statfs.o 13 warnings generated. CC kernel/async.o In file included from ../drivers/gpio/gpio-sifive.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/gpio/gpio-sifive.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/gpio/gpio-sifive.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-sifive.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-sifive.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-sifive.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-sifive.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-sifive.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/gpio/gpio-sifive.c:9: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../kernel/reboot.c:13: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/reboot.c:13: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/reboot.c:13: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/reboot.c:13: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/reboot.c:13: In file included from ../include/linux/kexec.h:20: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/reboot.c:13: In file included from ../include/linux/kexec.h:20: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/reboot.c:13: In file included from ../include/linux/kexec.h:20: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/reboot.c:13: In file included from ../include/linux/kexec.h:20: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/reboot.c:13: In file included from ../include/linux/kexec.h:20: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/gpio/built-in.a AR drivers/pwm/built-in.a AR drivers/leds/blink/built-in.a AR drivers/leds/simple/built-in.a CC drivers/leds/led-core.o In file included from ../fs/statfs.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/statfs.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/statfs.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/statfs.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/statfs.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/statfs.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/statfs.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/statfs.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/statfs.c:2: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/range.o CC kernel/smpboot.o CC kernel/ucount.o 13 warnings generated. CC fs/fs_pin.o CC drivers/leds/led-class.o CC kernel/regset.o CC kernel/ksyms_common.o CC fs/nsfs.o CC kernel/groups.o CC drivers/leds/leds-gpio.o In file included from ../kernel/ksyms_common.c:7: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/ksyms_common.c:7: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/ksyms_common.c:7: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ksyms_common.c:7: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ksyms_common.c:7: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ksyms_common.c:7: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ksyms_common.c:7: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ksyms_common.c:7: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/ksyms_common.c:7: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/nsfs.c:3: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/nsfs.c:3: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/nsfs.c:3: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/nsfs.c:3: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/nsfs.c:3: 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:760:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/nsfs.c:3: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/nsfs.c:3: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/nsfs.c:3: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/nsfs.c:3: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/freezer.o 13 warnings generated. CC fs/fs_types.o In file included from ../kernel/groups.c:8: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/groups.c:8: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/groups.c:8: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/groups.c:8: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/groups.c:8: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/groups.c:8: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/groups.c:8: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/groups.c:8: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/groups.c:8: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/leds/uleds.o In file included from ../kernel/freezer.c: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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/freezer.c: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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/freezer.c: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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/freezer.c: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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/freezer.c: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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/freezer.c: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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/freezer.c: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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/freezer.c: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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/freezer.c: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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC kernel/smp.o CC fs/fs_context.o In file included from ../kernel/smp.c:17: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/smp.c:17: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/smp.c:17: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/smp.c:17: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/smp.c:17: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/smp.c:17: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/smp.c:17: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/smp.c:17: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/smp.c:17: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR drivers/leds/built-in.a CC kernel/stop_machine.o AR drivers/pci/controller/dwc/built-in.a AR drivers/pci/controller/mobiveil/built-in.a AR drivers/pci/controller/plda/built-in.a AR drivers/pci/controller/built-in.a AR drivers/pci/switch/built-in.a CC drivers/pci/of.o In file included from ../fs/fs_context.c:11: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/fs_context.c:11: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/fs_context.c:11: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs_context.c:11: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs_context.c:11: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs_context.c:11: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs_context.c:11: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs_context.c:11: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../fs/fs_context.c:11: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC kernel/utsname_sysctl.o In file included from ../kernel/stop_machine.c:19: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/stop_machine.c:19: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/stop_machine.c:19: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/stop_machine.c:19: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/stop_machine.c:19: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/stop_machine.c:19: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/stop_machine.c:19: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/stop_machine.c:19: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/stop_machine.c:19: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../drivers/pci/of.c:12: In file included from ../include/linux/pci.h:38: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/pci/of.c:12: In file included from ../include/linux/pci.h:38: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/pci/of.c:12: In file included from ../include/linux/pci.h:38: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pci/of.c:12: In file included from ../include/linux/pci.h:38: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pci/of.c:12: In file included from ../include/linux/pci.h:38: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pci/of.c:12: In file included from ../include/linux/pci.h:38: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pci/of.c:12: In file included from ../include/linux/pci.h:38: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pci/of.c:12: In file included from ../include/linux/pci.h:38: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/pci/of.c:12: In file included from ../include/linux/pci.h:38: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC kernel/irq_work.o CC fs/fs_parser.o 13 warnings generated. 13 warnings generated. AR drivers/pci/built-in.a CC kernel/cpu_pm.o AR drivers/video/backlight/built-in.a AR drivers/video/fbdev/core/built-in.a AR drivers/video/fbdev/omap/built-in.a AR drivers/video/fbdev/omap2/omapfb/dss/built-in.a In file included from ../kernel/irq_work.c:14: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/irq_work.c:14: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/irq_work.c:14: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq_work.c:14: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq_work.c:14: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq_work.c:14: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq_work.c:14: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq_work.c:14: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/irq_work.c:14: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/video/fbdev/omap2/omapfb/displays/built-in.a AR drivers/video/fbdev/omap2/omapfb/built-in.a AR drivers/video/fbdev/omap2/built-in.a AR drivers/video/fbdev/built-in.a AR drivers/video/built-in.a AR drivers/idle/built-in.a AR drivers/char/ipmi/built-in.a In file included from ../fs/fs_parser.c:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/fs_parser.c:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/fs_parser.c:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs_parser.c:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs_parser.c:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs_parser.c:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs_parser.c:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs_parser.c:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fs_parser.c:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/amba/built-in.a AR drivers/clk/actions/built-in.a AR drivers/clk/analogbits/built-in.a CC kernel/context_tracking.o AR drivers/clk/bcm/built-in.a 13 warnings generated. AR drivers/clk/imgtec/built-in.a CC kernel/iomem.o AR drivers/clk/imx/built-in.a 13 warnings generated. AR drivers/clk/ingenic/built-in.a CC fs/fsopen.o AR drivers/clk/mediatek/built-in.a AR drivers/clk/microchip/built-in.a AR drivers/clk/mstar/built-in.a AR drivers/clk/mvebu/built-in.a AR drivers/clk/ralink/built-in.a In file included from ../kernel/context_tracking.c:23: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/context_tracking.c: AR drivers/clk/renesas/built-in.a 23: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/context_tracking.c:23: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/context_tracking.c:23: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/context_tracking.c:23: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/context_tracking.c:23: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/context_tracking.c:23: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/context_tracking.c:23: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/context_tracking.c:23: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/clk/socfpga/built-in.a AR drivers/clk/sophgo/built-in.a AR drivers/clk/sprd/built-in.a AR drivers/clk/starfive/built-in.a AR drivers/clk/sunxi-ng/built-in.a AR drivers/clk/ti/built-in.a AR drivers/clk/versatile/built-in.a AR drivers/clk/xilinx/built-in.a CC drivers/clk/clk-devres.o In file included from ../kernel/iomem.c:4: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/iomem.c:4: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/iomem.c:4: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/iomem.c:4: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/iomem.c:4: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/iomem.c:4: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/iomem.c:4: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/iomem.c:4: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/iomem.c:4: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC kernel/rseq.o AR drivers/soc/apple/built-in.a AR drivers/soc/aspeed/built-in.a In file included from ../fs/fsopen.c:8: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/fsopen.c:8: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/fsopen.c:8: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fsopen.c:8: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fsopen.c:8: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fsopen.c:8: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fsopen.c:8: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fsopen.c:8: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/fsopen.c:8: 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: AR drivers/soc/bcm/built-in.a 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/soc/canaan/k210-sysctl.o 13 warnings generated. CC fs/init.o In file included from ../drivers/soc/canaan/k210-sysctl.c:6: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/soc/canaan/k210-sysctl.c:6: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/soc/canaan/k210-sysctl.c:6: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/soc/canaan/k210-sysctl.c:6: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/soc/canaan/k210-sysctl.c:6: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/soc/canaan/k210-sysctl.c:6: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/soc/canaan/k210-sysctl.c:6: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/soc/canaan/k210-sysctl.c:6: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/soc/canaan/k210-sysctl.c:6: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/clk/clk-bulk.o In file included from ../kernel/rseq.c:13: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../kernel/rseq.c:13: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../kernel/rseq.c:13: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rseq.c:13: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rseq.c:13: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rseq.c:13: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rseq.c:13: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rseq.c:13: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../kernel/rseq.c:13: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR drivers/soc/canaan/built-in.a AR drivers/soc/fsl/built-in.a AR drivers/soc/fujitsu/built-in.a AR drivers/soc/hisilicon/built-in.a 13 warnings generated. AR kernel/built-in.a AR drivers/soc/imx/built-in.a AR drivers/soc/ixp4xx/built-in.a AR drivers/soc/loongson/built-in.a AR drivers/soc/mediatek/built-in.a AR drivers/soc/microchip/built-in.a AR drivers/soc/nuvoton/built-in.a AR drivers/soc/pxa/built-in.a AR drivers/soc/amlogic/built-in.a AR drivers/soc/qcom/built-in.a In file included from ../fs/init.c:13: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/init.c:13: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/init.c:13: 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: AR drivers/soc/renesas/built-in.a 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ AR drivers/soc/rockchip/built-in.a In file included from ../fs/init.c:13: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/init.c:13: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/init.c:13: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/init.c:13: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/init.c:13: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ AR drivers/soc/sunxi/built-in.a In file included from ../fs/init.c:13: 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] AR drivers/soc/ti/built-in.a return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/soc/versatile/built-in.a AR drivers/soc/xilinx/built-in.a CC drivers/clk/clkdev.o AR drivers/soc/built-in.a AR drivers/virtio/built-in.a AR drivers/reset/hisilicon/built-in.a AR drivers/reset/starfive/built-in.a 13 warnings generated. AR drivers/reset/sti/built-in.a CC drivers/clk/clk.o CC fs/kernel_read_file.o AR drivers/reset/tegra/built-in.a CC drivers/reset/core.o CC drivers/clk/clk-divider.o In file included from ../drivers/reset/core.c:14: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/reset/core.c:14: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/reset/core.c:14: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/reset/core.c:14: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/reset/core.c:14: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/reset/core.c:14: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/reset/core.c:14: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/reset/core.c:14: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/reset/core.c:14: In file included from ../include/linux/gpio/driver.h:8: In file included from ../include/linux/irqchip/chained_irq.h:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/kernel_read_file.c:5: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/kernel_read_file.c:5: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/kernel_read_file.c:5: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernel_read_file.c:5: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernel_read_file.c:5: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernel_read_file.c:5: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernel_read_file.c:5: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernel_read_file.c:5: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/kernel_read_file.c:5: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/mnt_idmapping.o 13 warnings generated. CC drivers/reset/reset-k210.o In file included from ../drivers/clk/clk-divider.c:14: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/clk/clk-divider.c:14: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/clk/clk-divider.c:14: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-divider.c:14: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-divider.c:14: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-divider.c:14: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-divider.c:14: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-divider.c:14: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-divider.c:14: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/clk/clk-fixed-factor.o 13 warnings generated. CC drivers/clk/clk-fixed-rate.o CC fs/remap_range.o In file included from ../drivers/reset/reset-k210.c:10: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/reset/reset-k210.c:10: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/reset/reset-k210.c:10: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/reset/reset-k210.c:10: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/reset/reset-k210.c:10: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/reset/reset-k210.c:10: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/reset/reset-k210.c:10: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/reset/reset-k210.c:10: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/reset/reset-k210.c:10: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR drivers/reset/built-in.a AR drivers/tty/vt/built-in.a AR drivers/tty/serial/8250/built-in.a CC drivers/tty/serial/serial_core.o In file included from ../drivers/clk/clk-fixed-rate.c:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/clk/clk-fixed-rate.c:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/clk/clk-fixed-rate.c:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-fixed-rate.c:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-fixed-rate.c:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-fixed-rate.c:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-fixed-rate.c:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-fixed-rate.c:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-fixed-rate.c:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/clk/clk-gate.o CC drivers/clk/clk-multiplier.o In file included from ../fs/remap_range.c:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/remap_range.c:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/remap_range.c:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/remap_range.c:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/remap_range.c:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/remap_range.c:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/remap_range.c:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/remap_range.c:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/remap_range.c:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-multiplier.c:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/clk/clk-multiplier.c:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/clk/clk-multiplier.c:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-multiplier.c:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-multiplier.c:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-multiplier.c:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-multiplier.c:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-multiplier.c:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-multiplier.c:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC fs/pidfs.o In file included from ../drivers/tty/serial/serial_core.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/serial/serial_core.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/serial/serial_core.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h: CC drivers/clk/clk-mux.o 595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_core.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_core.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_core.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_core.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_core.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_core.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-gate.c:13: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/clk/clk-gate.c:13: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/clk/clk-gate.c:13: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-gate.c:13: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-gate.c:13: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-gate.c:13: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-gate.c:13: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-gate.c:13: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-gate.c:13: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/clk/clk-composite.o In file included from ../drivers/clk/clk-mux.c:14: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/clk/clk-mux.c:14: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/clk/clk-mux.c:14: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-mux.c:14: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-mux.c:14: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-mux.c:14: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-mux.c:14: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-mux.c:14: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-mux.c:14: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../fs/pidfs.c:13: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/pidfs.c:13: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/pidfs.c:13: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/pidfs.c:13: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/pidfs.c:13: 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:760:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/pidfs.c:13: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/pidfs.c:13: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/pidfs.c:13: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/pidfs.c:13: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/clk/clk-fractional-divider.o 13 warnings generated. CC fs/buffer.o CC drivers/clk/clk-gpio.o 13 warnings generated. CC drivers/tty/serial/serial_base_bus.o In file included from ../drivers/clk/clk-fractional-divider.c:43: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/clk/clk-fractional-divider.c:43: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/clk/clk-fractional-divider.c:43: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-fractional-divider.c:43: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-fractional-divider.c:43: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-fractional-divider.c:43: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-fractional-divider.c:43: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-fractional-divider.c:43: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-fractional-divider.c:43: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/clk/clk-conf.o In file included from ../drivers/tty/serial/serial_base_bus.c:16: In file included from ../include/linux/serial_core.h:13: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/serial/serial_base_bus.c:16: In file included from ../include/linux/serial_core.h:13: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/serial/serial_base_bus.c:16: In file included from ../include/linux/serial_core.h:13: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_base_bus.c:16: In file included from ../include/linux/serial_core.h:13: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_base_bus.c:16: In file included from ../include/linux/serial_core.h:13: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_base_bus.c:16: In file included from ../include/linux/serial_core.h:13: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_base_bus.c:16: In file included from ../include/linux/serial_core.h:13: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_base_bus.c:16: In file included from ../include/linux/serial_core.h:13: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_base_bus.c:16: In file included from ../include/linux/serial_core.h:13: 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: CC drivers/clk/clk-k210.o 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/buffer.c:24: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/buffer.c:24: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/buffer.c:24: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/buffer.c:24: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/buffer.c:24: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/buffer.c:24: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/buffer.c:24: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/buffer.c:24: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/buffer.c:24: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/tty/serial/serial_ctrl.o In file included from ../drivers/clk/clk-k210.c:8: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/clk/clk-k210.c:8: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/clk/clk-k210.c:8: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-k210.c:8: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-k210.c:8: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-k210.c:8: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-k210.c:8: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-k210.c:8: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clk/clk-k210.c:8: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC fs/mpage.o In file included from ../drivers/tty/serial/serial_ctrl.c:16: In file included from ../include/linux/serial_core.h:13: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/serial/serial_ctrl.c:16: In file included from ../include/linux/serial_core.h:13: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/serial/serial_ctrl.c:16: In file included from ../include/linux/serial_core.h:13: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_ctrl.c:16: In file included from ../include/linux/serial_core.h:13: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_ctrl.c:16: In file included from ../include/linux/serial_core.h:13: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_ctrl.c:16: In file included from ../include/linux/serial_core.h:13: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_ctrl.c:16: In file included from ../include/linux/serial_core.h:13: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_ctrl.c:16: In file included from ../include/linux/serial_core.h:13: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_ctrl.c:16: In file included from ../include/linux/serial_core.h:13: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR drivers/clk/built-in.a 13 warnings generated. CC drivers/tty/serial/serial_port.o AR drivers/char/agp/built-in.a CC drivers/char/mem.o 13 warnings generated. CC fs/proc_namespace.o In file included from ../fs/mpage.c:21: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/mpage.c:21: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/mpage.c:21: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/mpage.c:21: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/mpage.c:21: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/mpage.c:21: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/mpage.c:21: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/mpage.c:21: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/mpage.c:21: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_port.c:16: In file included from ../include/linux/serial_core.h:13: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/serial/serial_port.c:16: In file included from ../include/linux/serial_core.h:13: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/serial/serial_port.c:16: In file included from ../include/linux/serial_core.h:13: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_port.c:16: In file included from ../include/linux/serial_core.h:13: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_port.c:16: In file included from ../include/linux/serial_core.h:13: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_port.c:16: In file included from ../include/linux/serial_core.h:13: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_port.c:16: In file included from ../include/linux/serial_core.h:13: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_port.c:16: In file included from ../include/linux/serial_core.h:13: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/serial_port.c:16: In file included from ../include/linux/serial_core.h:13: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/anon_inodes.o In file included from ../drivers/char/mem.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/char/mem.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/char/mem.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/mem.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/mem.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/mem.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/mem.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/mem.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/mem.c:19: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/tty/serial/earlycon.o In file included from ../fs/proc_namespace.c:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/proc_namespace.c:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/proc_namespace.c:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc_namespace.c:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc_namespace.c:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc_namespace.c:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc_namespace.c:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc_namespace.c:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/proc_namespace.c:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/char/random.o 13 warnings generated. CC drivers/char/misc.o In file included from ../drivers/tty/serial/earlycon.c:16: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/serial/earlycon.c:16: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/serial/earlycon.c:16: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/earlycon.c:16: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/earlycon.c:16: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/earlycon.c:16: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/earlycon.c:16: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/earlycon.c:16: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/earlycon.c:16: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../fs/anon_inodes.c:23: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/anon_inodes.c:23: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/anon_inodes.c:23: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/anon_inodes.c:23: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/anon_inodes.c:23: 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:760:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/anon_inodes.c:23: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/anon_inodes.c:23: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/anon_inodes.c:23: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/anon_inodes.c:23: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/binfmt_script.o 13 warnings generated. CC drivers/tty/serial/sifive.o In file included from ../drivers/char/random.c:39: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/char/random.c:39: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/char/random.c:39: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/random.c:39: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/random.c:39: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/random.c:39: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/random.c:39: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/random.c:39: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/random.c:39: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/char/misc.c:50: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/char/misc.c:50: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/char/misc.c:50: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/misc.c:50: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/misc.c:50: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/misc.c:50: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/misc.c:50: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/misc.c:50: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/char/misc.c:50: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC fs/binfmt_elf_fdpic.o In file included from ../drivers/tty/serial/sifive.c:35: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/serial/sifive.c:35: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/serial/sifive.c:35: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/sifive.c:35: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/sifive.c:35: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/sifive.c:35: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/sifive.c:35: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/sifive.c:35: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/serial/sifive.c:35: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC fs/binfmt_flat.o 13 warnings generated. AR drivers/char/built-in.a AR drivers/iommu/amd/built-in.a AR drivers/iommu/intel/built-in.a AR drivers/iommu/arm/arm-smmu/built-in.a In file included from ../fs/binfmt_elf_fdpic.c:26: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/binfmt_elf_fdpic.c:26: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h: AR drivers/iommu/arm/arm-smmu-v3/built-in.a 35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/binfmt_elf_fdpic.c13 warnings generated. :26: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/binfmt_elf_fdpic.c:26: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/binfmt_elf_fdpic.c:26: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/binfmt_elf_fdpic.c:26: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/binfmt_elf_fdpic.c:26: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/binfmt_elf_fdpic.c:26: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ AR drivers/tty/serial/built-in.a AR drivers/iommu/arm/built-in.a In file included from ../fs/binfmt_elf_fdpic.c:26: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/iommu/iommufd/built-in.a AR drivers/tty/ipwireless/built-in.a AR drivers/iommu/built-in.a CC drivers/tty/tty_io.o AR drivers/gpu/host1x/built-in.a 13 warnings generated. CC fs/drop_caches.o AR drivers/gpu/drm/tests/built-in.a CC fs/sysctls.o AR drivers/gpu/drm/arm/built-in.a AR drivers/gpu/drm/display/built-in.a AR drivers/gpu/drm/renesas/rcar-du/built-in.a In file included from ../drivers/tty/tty_io.c:75: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/tty_io.c:75: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/tty_io.c:75: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_io.c:75: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_io.c:75: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_io.c:75: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_io.c:75: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_io.c:75: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_io.c:75: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/gpu/drm/renesas/rz-du/built-in.a AR drivers/gpu/drm/renesas/built-in.a AR drivers/gpu/drm/omapdrm/built-in.a AR drivers/gpu/drm/tilcdc/built-in.a AR drivers/gpu/drm/imx/built-in.a AR drivers/gpu/drm/i2c/built-in.a AR drivers/gpu/drm/panel/built-in.a AR drivers/gpu/drm/bridge/analogix/built-in.a AR drivers/gpu/drm/hisilicon/built-in.a AR drivers/gpu/drm/bridge/cadence/built-in.a AR drivers/gpu/drm/mxsfb/built-in.a AR drivers/gpu/drm/bridge/imx/built-in.a AR drivers/gpu/drm/tiny/built-in.a AR drivers/gpu/drm/bridge/synopsys/built-in.a AR drivers/gpu/drm/bridge/built-in.a AR drivers/gpu/drm/xlnx/built-in.a AR drivers/gpu/drm/gud/built-in.a AR drivers/gpu/drm/solomon/built-in.a AR drivers/gpu/drm/built-in.a AR drivers/gpu/vga/built-in.a AR drivers/gpu/built-in.a CC drivers/base/power/sysfs.o AR drivers/block/built-in.a AR drivers/misc/eeprom/built-in.a AR drivers/misc/cb710/built-in.a In file included from ../fs/drop_caches.c:6: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../fs/drop_caches.c:6: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h AR drivers/misc/ti-st/built-in.a :35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../fs/drop_caches.c:6: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/drop_caches.c:6: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/drop_caches.c:6: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/drop_caches.c:6: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/drop_caches.c:6: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/drop_caches.c:6: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../fs/drop_caches.c:6: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/misc/lis3lv02d/built-in.a AR drivers/misc/cardreader/built-in.a AR drivers/misc/keba/built-in.a AR drivers/misc/built-in.a CC drivers/mfd/syscon.o 13 warnings generated. AR fs/built-in.a 13 warnings generated. CC drivers/base/power/generic_ops.o CC drivers/tty/n_tty.o In file included from ../drivers/mfd/syscon.c:15: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mfd/syscon.c:15: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mfd/syscon.c:15: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mfd/syscon.c:15: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mfd/syscon.c:15: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mfd/syscon.c:15: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mfd/syscon.c:15: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mfd/syscon.c:15: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mfd/syscon.c:15: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/tty/tty_ioctl.o 13 warnings generated. AR drivers/mfd/built-in.a CC drivers/tty/tty_ldisc.o CC drivers/base/power/common.o In file included from ../drivers/tty/n_tty.c:46: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/n_tty.c:46: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/n_tty.c:46: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/n_tty.c:46: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/n_tty.c:46: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/n_tty.c:46: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/n_tty.c:46: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/n_tty.c:46: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/n_tty.c:46: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ioctl.c:17: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/tty_ioctl.c:17: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/tty_ioctl.c:17: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ioctl.c:17: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ioctl.c:17: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ioctl.c:17: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ioctl.c:17: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ioctl.c:17: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ioctl.c:17: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ldisc.c:6: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/tty_ldisc.c:6: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/tty_ldisc.c:6: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ldisc.c:6: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ldisc.c:6: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ldisc.c:6: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ldisc.c:6: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ldisc.c:6: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ldisc.c:6: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/base/power/qos.o 13 warnings generated. CC drivers/tty/tty_buffer.o 13 warnings generated. CC drivers/tty/tty_port.o CC drivers/base/power/runtime.o In file included from ../drivers/base/power/qos.c:38: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/power/qos.c:38: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/power/qos.c:38: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/qos.c:38: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/qos.c:38: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/qos.c:38: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/qos.c:38: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/qos.c:38: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/qos.c:38: In file included from ../include/trace/events/power.h:12: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_buffer.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/tty_buffer.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/tty_buffer.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_buffer.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_buffer.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_buffer.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_buffer.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_buffer.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_buffer.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_port.c:8: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/tty_port.c:8: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/tty_port.c:8: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_port.c:8: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_port.c:8: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_port.c:8: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_port.c:8: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_port.c:8: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_port.c:8: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC drivers/base/power/wakeirq.o CC drivers/tty/tty_mutex.o 13 warnings generated. CC drivers/tty/tty_ldsem.o CC drivers/base/power/main.o In file included from ../drivers/base/power/wakeirq.c:4: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/power/wakeirq.c:4: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/power/wakeirq.c:4: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/wakeirq.c:4: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/wakeirq.c:4: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/wakeirq.c:4: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/wakeirq.c:4: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/wakeirq.c:4: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/wakeirq.c:4: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ldsem.c:31: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/tty_ldsem.c:31: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/tty_ldsem.c:31: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ldsem.c:31: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ldsem.c:31: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ldsem.c:31: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ldsem.c:31: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ldsem.c:31: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_ldsem.c:31: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_mutex.c:2: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/tty_mutex.c:2: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/tty_mutex.c:2: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_mutex.c:2: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_mutex.c:2: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_mutex.c:2: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_mutex.c:2: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_mutex.c:2: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_mutex.c:2: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC drivers/base/power/wakeup.o CC drivers/tty/tty_baudrate.o 13 warnings generated. CC drivers/tty/tty_jobctrl.o In file included from ../drivers/base/power/main.c:28: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/power/main.c:28: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/power/main.c:28: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/main.c:28: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/main.c:28: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/main.c:28: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/main.c:28: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/main.c:28: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/main.c:28: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/base/power/wakeup.c:14: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/power/wakeup.c:14: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/power/wakeup.c:14: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/wakeup.c:14: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/wakeup.c:14: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/wakeup.c:14: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/wakeup.c:14: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/wakeup.c:14: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/wakeup.c:14: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_jobctrl.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/tty_jobctrl.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/tty_jobctrl.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_jobctrl.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_jobctrl.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_jobctrl.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_jobctrl.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_jobctrl.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_jobctrl.c:11: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../drivers/tty/tty_baudrate.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/tty_baudrate.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from CC drivers/base/power/wakeup_stats.o ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/tty_baudrate.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_baudrate.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_baudrate.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_baudrate.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_baudrate.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_baudrate.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/tty_baudrate.c:9: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC drivers/tty/n_null.o CC drivers/tty/pty.o 13 warnings generated. AR drivers/nfc/built-in.a AR drivers/dax/hmem/built-in.a AR drivers/dax/built-in.a AR drivers/cxl/core/built-in.a AR drivers/cxl/built-in.a AR drivers/macintosh/built-in.a AR drivers/scsi/built-in.a AR drivers/nvme/common/built-in.a AR drivers/nvme/host/built-in.a AR drivers/nvme/target/built-in.a AR drivers/nvme/built-in.a CC drivers/base/power/clock_ops.o CC drivers/spi/spi.o In file included from ../drivers/tty/pty.c:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/pty.c:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/pty.c:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/pty.c:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/pty.c:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/pty.c:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/pty.c:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/pty.c:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/pty.c:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/tty/n_null.c:4: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/tty/n_null.c:4: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/tty/n_null.c:4: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/n_null.c:4: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/n_null.c:4: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/n_null.c:4: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/n_null.c:4: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/n_null.c:4: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/tty/n_null.c:4: In file included from ../include/linux/tty.h:11: In file included from ../include/linux/tty_port.h:5: In file included from ../include/linux/kfifo.h:40: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/spi/spi-dw-core.o 13 warnings generated. AR drivers/tty/built-in.a AR drivers/net/phy/qcom/built-in.a AR drivers/net/phy/built-in.a AR drivers/net/pse-pd/built-in.a AR drivers/net/mdio/built-in.a AR drivers/net/pcs/built-in.a AR drivers/net/built-in.a AR drivers/firewire/built-in.a AR drivers/cdrom/built-in.a In file included from ../drivers/base/power/clock_ops.c:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/power/clock_ops.c:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/power/clock_ops.c:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/clock_ops.c:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/clock_ops.c:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/clock_ops.c:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/clock_ops.c:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/clock_ops.c:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/power/clock_ops.c:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/auxdisplay/built-in.a AR drivers/usb/built-in.a AR drivers/i2c/algos/built-in.a CC drivers/i2c/busses/i2c-designware-common.o In file included from ../drivers/spi/spi.c:12: In file included from ../include/linux/dmaengine.h:12: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/spi/spi.c:12: In file included from ../include/linux/dmaengine.h:12: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/spi/spi.c:12: In file included from ../include/linux/dmaengine.h:12: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ 13 warnings generated. ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi.c:12: In file included from ../include/linux/dmaengine.h:12: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi.c:12: In file included from ../include/linux/dmaengine.h:12: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi.c:12: In file included from ../include/linux/dmaengine.h:12: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi.c:12: In file included from ../include/linux/dmaengine.h:12: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi.c:12: In file included from ../include/linux/dmaengine.h:12: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi.c:12: In file included from ../include/linux/dmaengine.h:12: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/base/power/built-in.a CC drivers/base/firmware_loader/builtin/main.o In file included from ../drivers/spi/spi-dw-core.c:10: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/spi/spi-dw-core.c:10: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/spi/spi-dw-core.c:10: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi-dw-core.c:10: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi-dw-core.c:10: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi-dw-core.c:10: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi-dw-core.c:10: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi-dw-core.c:10: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi-dw-core.c:10: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/spi/spi-dw-mmio.o AR drivers/base/firmware_loader/builtin/built-in.a AR drivers/base/firmware_loader/built-in.a CC drivers/base/regmap/regmap.o In file included from ../drivers/i2c/busses/i2c-designware-common.c:18: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/i2c/busses/i2c-designware-common.c:18: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/i2c/busses/i2c-designware-common.c:18: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-common.c:18: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-common.c:18: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-common.c:18: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-common.c:18: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-common.c:18: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-common.c:18: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/i2c/busses/i2c-designware-master.o 13 warnings generated. CC drivers/i2c/busses/i2c-designware-platdrv.o In file included from ../drivers/spi/spi-dw-mmio.c:13: In file included from ../include/linux/spi/spi.h:17: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/spi/spi-dw-mmio.c:13: In file included from ../include/linux/spi/spi.h:17: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/spi/spi-dw-mmio.c:13: In file included from ../include/linux/spi/spi.h:17: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi-dw-mmio.c:13: In file included from ../include/linux/spi/spi.h:17: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi-dw-mmio.c:13: In file included from ../include/linux/spi/spi.h:17: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi-dw-mmio.c:13: In file included from ../include/linux/spi/spi.h:17: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi-dw-mmio.c:13: In file included from ../include/linux/spi/spi.h:17: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi-dw-mmio.c:13: In file included from ../include/linux/spi/spi.h:17: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/spi/spi-dw-mmio.c:13: In file included from ../include/linux/spi/spi.h:17: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regmap.c:23: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/regmap/regmap.c:23: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/regmap/regmap.c:23: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regmap.c:23: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regmap.c:23: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regmap.c:23: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regmap.c:23: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regmap.c:23: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regmap.c:23: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR drivers/spi/built-in.a AR drivers/i3c/built-in.a AR drivers/media/i2c/built-in.a AR drivers/media/tuners/built-in.a AR drivers/media/rc/keymaps/built-in.a AR drivers/media/rc/built-in.a In file included from ../drivers/i2c/busses/i2c-designware-master.c:16: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/i2c/busses/i2c-designware-master.c:16: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/i2c/busses/i2c-designware-master.c:16: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-master.c:16: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-master.c:16: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-master.c:16: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-master.c:16: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-master.c:16: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-master.c:16: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/media/common/b2c2/built-in.a In file included from ../drivers/i2c/busses/i2c-designware-platdrv.c:17: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/i2c/busses/i2c-designware-platdrv.c:17: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/i2c/busses/i2c-designware-platdrv.c:17: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-platdrv.c:17: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-platdrv.c:17: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-platdrv.c:17: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-platdrv.c:17: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-platdrv.c:17: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/busses/i2c-designware-platdrv.c:17: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/media/common/saa7146/built-in.a AR drivers/media/common/siano/built-in.a 13 warnings generated. AR drivers/media/common/v4l2-tpg/built-in.a CC drivers/base/regmap/regcache.o AR drivers/media/common/videobuf2/built-in.a AR drivers/media/common/built-in.a 13 warnings generated. AR drivers/media/platform/allegro-dvt/built-in.a AR drivers/media/pci/ttpci/built-in.a 13 warnings generated. AR drivers/media/platform/amlogic/meson-ge2d/built-in.a AR drivers/i2c/busses/built-in.a AR drivers/media/pci/b2c2/built-in.a AR drivers/media/platform/amlogic/built-in.a AR drivers/i2c/muxes/built-in.a AR drivers/media/pci/pluto2/built-in.a AR drivers/media/platform/amphion/built-in.a CC drivers/i2c/i2c-boardinfo.o AR drivers/media/pci/dm1105/built-in.a AR drivers/media/platform/aspeed/built-in.a AR drivers/media/pci/pt1/built-in.a AR drivers/media/pci/pt3/built-in.a AR drivers/media/platform/atmel/built-in.a AR drivers/media/platform/broadcom/built-in.a AR drivers/media/pci/mantis/built-in.a AR drivers/media/pci/ngene/built-in.a AR drivers/media/pci/ddbridge/built-in.a AR drivers/media/platform/cadence/built-in.a AR drivers/media/pci/saa7146/built-in.a AR drivers/media/platform/chips-media/coda/built-in.a AR drivers/media/pci/smipcie/built-in.a AR drivers/media/platform/chips-media/wave5/built-in.a AR drivers/media/pci/netup_unidvb/built-in.a AR drivers/media/platform/chips-media/built-in.a AR drivers/media/pci/intel/ipu3/built-in.a AR drivers/media/platform/imagination/built-in.a AR drivers/media/platform/intel/built-in.a AR drivers/media/pci/intel/ivsc/built-in.a AR drivers/media/pci/intel/built-in.a AR drivers/media/platform/marvell/built-in.a In file included from ../drivers/base/regmap/regcache.c:15: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/regmap/regcache.c:15: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/regmap/regcache.c:15: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache.c:15: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache.c:15: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache.c:15: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache.c:15: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache.c:15: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache.c:15: In file included from ../drivers/base/regmap/trace.h:11: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/media/pci/built-in.a AR drivers/media/platform/mediatek/jpeg/built-in.a AR drivers/media/usb/b2c2/built-in.a AR drivers/media/platform/mediatek/mdp/built-in.a AR drivers/media/usb/dvb-usb/built-in.a AR drivers/media/platform/mediatek/vcodec/common/built-in.a AR drivers/media/usb/dvb-usb-v2/built-in.a AR drivers/media/platform/mediatek/vcodec/encoder/built-in.a AR drivers/media/usb/s2255/built-in.a AR drivers/media/platform/mediatek/vcodec/decoder/built-in.a 13 warnings generated. AR drivers/media/platform/mediatek/vcodec/built-in.a AR drivers/media/usb/siano/built-in.a CC drivers/base/regmap/regcache-rbtree.o AR drivers/media/usb/ttusb-budget/built-in.a AR drivers/media/platform/mediatek/vpu/built-in.a AR drivers/media/usb/ttusb-dec/built-in.a AR drivers/media/platform/mediatek/mdp3/built-in.a In file included from ../drivers/i2c/i2c-boardinfo.c:7: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/i2c/i2c-boardinfo.c:7: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/i2c/i2c-boardinfo.c:7: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-boardinfo.c:7: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-boardinfo.c:7: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-boardinfo.c:7: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-boardinfo.c:7: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-boardinfo.c:7: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ AR drivers/media/usb/built-in.a In file included from ../drivers/i2c/i2c-boardinfo.c:7: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/media/platform/mediatek/built-in.a AR drivers/media/platform/microchip/built-in.a AR drivers/media/mmc/siano/built-in.a AR drivers/media/mmc/built-in.a AR drivers/media/platform/nuvoton/built-in.a AR drivers/media/platform/nxp/dw100/built-in.a AR drivers/media/platform/nvidia/tegra-vde/built-in.a AR drivers/media/platform/nxp/imx-jpeg/built-in.a AR drivers/media/platform/nvidia/built-in.a AR drivers/media/platform/nxp/imx8-isi/built-in.a 13 warnings generated. AR drivers/media/platform/nxp/built-in.a CC drivers/i2c/i2c-core-base.o AR drivers/media/platform/qcom/camss/built-in.a AR drivers/media/firewire/built-in.a AR drivers/media/platform/qcom/venus/built-in.a AR drivers/media/platform/qcom/built-in.a AR drivers/media/spi/built-in.a AR drivers/media/test-drivers/built-in.a AR drivers/media/platform/raspberrypi/pisp_be/built-in.a AR drivers/media/platform/raspberrypi/built-in.a AR drivers/media/platform/renesas/rcar-vin/built-in.a AR drivers/media/platform/renesas/rzg2l-cru/built-in.a AR drivers/media/platform/rockchip/rga/built-in.a AR drivers/media/platform/renesas/vsp1/built-in.a AR drivers/media/platform/rockchip/rkisp1/built-in.a AR drivers/media/platform/renesas/built-in.a AR drivers/media/platform/rockchip/built-in.a AR drivers/media/platform/samsung/exynos-gsc/built-in.a AR drivers/media/platform/st/sti/bdisp/built-in.a AR drivers/media/platform/samsung/exynos4-is/built-in.a AR drivers/media/platform/st/sti/c8sectpfe/built-in.a AR drivers/media/platform/samsung/s3c-camif/built-in.a AR drivers/media/platform/st/sti/delta/built-in.a In file included from ../drivers/base/regmap/regcache-rbtree.c:15: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61 AR drivers/media/platform/samsung/s5p-g2d/built-in.a : warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/regmap/regcache-rbtree.c:15: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/regmap/regcache-rbtree.c:15: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ AR drivers/media/platform/st/sti/hva/built-in.a ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-rbtree.c:15: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-rbtree.c:15: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-rbtree.c:15: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-rbtree.c:15: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-rbtree.c:15: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-rbtree.c:15: In file included from ../drivers/base/regmap/internal.h:14 AR drivers/media/platform/samsung/s5p-jpeg/built-in.a : In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/media/platform/st/stm32/built-in.a AR drivers/media/platform/samsung/s5p-mfc/built-in.a AR drivers/media/platform/st/built-in.a AR drivers/media/platform/samsung/built-in.a AR drivers/media/platform/sunxi/sun4i-csi/built-in.a AR drivers/media/platform/ti/am437x/built-in.a AR drivers/media/platform/sunxi/sun6i-csi/built-in.a 13 warnings generated. AR drivers/media/platform/ti/cal/built-in.a AR drivers/media/platform/sunxi/sun6i-mipi-csi2/built-in.a CC drivers/base/regmap/regcache-flat.o AR drivers/media/platform/ti/vpe/built-in.a AR drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/built-in.a AR drivers/media/platform/ti/davinci/built-in.a AR drivers/media/platform/sunxi/sun8i-di/built-in.a AR drivers/media/platform/ti/j721e-csi2rx/built-in.a AR drivers/media/platform/sunxi/sun8i-rotate/built-in.a AR drivers/media/platform/ti/omap/built-in.a AR drivers/media/platform/sunxi/built-in.a AR drivers/media/platform/ti/omap3isp/built-in.a AR drivers/media/platform/verisilicon/built-in.a AR drivers/media/platform/ti/built-in.a AR drivers/media/platform/via/built-in.a In file included from ../drivers/i2c/i2c-core-base.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/i2c/i2c-core-base.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/i2c/i2c-core-base.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ CC drivers/base/regmap/regcache-maple.o ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); AR drivers/media/platform/xilinx/built-in.a ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-base.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-base.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-base.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-base.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-base.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-base.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/media/platform/built-in.a AR drivers/media/built-in.a AR drivers/ptp/built-in.a CC drivers/power/reset/syscon-reboot.o In file included from ../drivers/base/regmap/regcache-flat.c:13: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/regmap/regcache-flat.c:13: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/regmap/regcache-flat.c:13: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-flat.c:13: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-flat.c:13: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-flat.c:13: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-flat.c:13: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-flat.c:13: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-flat.c:13: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/base/regmap/regmap-mmio.o In file included from ../drivers/power/reset/syscon-reboot.c:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/power/reset/syscon-reboot.c:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/power/reset/syscon-reboot.c:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/power/reset/syscon-reboot.c:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/power/reset/syscon-reboot.c:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/power/reset/syscon-reboot.c:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/power/reset/syscon-reboot.c:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/power/reset/syscon-reboot.c:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/power/reset/syscon-reboot.c:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/i2c/i2c-core-smbus.o In file included from ../drivers/base/regmap/regcache-maple.c:14: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/regmap/regcache-maple.c:14: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/regmap/regcache-maple.c:14: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-maple.c:14: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-maple.c:14: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-maple.c:14: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-maple.c:14: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-maple.c:14: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regcache-maple.c:14: In file included from ../drivers/base/regmap/internal.h:14: In file included from ../include/linux/regmap.h:20: In file included from ../include/linux/iopoll.h:14: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/i2c/i2c-core-of.o 13 warnings generated. AR drivers/power/reset/built-in.a AR drivers/power/built-in.a In file included from ../drivers/base/regmap/regmap-mmio.c:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/regmap/regmap-mmio.c:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/regmap/regmap-mmio.c:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regmap-mmio.c:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regmap-mmio.c:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regmap-mmio.c:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regmap-mmio.c:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regmap-mmio.c:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/regmap/regmap-mmio.c:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/mmc/core/core.o 13 warnings generated. AR drivers/base/regmap/built-in.a In file included from ../drivers/i2c/i2c-core-smbus.c:15: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/i2c/i2c-core-smbus.c:15: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/i2c/i2c-core-smbus.c:15: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-smbus.c:15: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-smbus.c:15: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-smbus.c:15: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-smbus.c:15: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-smbus.c:15: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-smbus.c:15: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/base/test/built-in.a CC drivers/base/component.o In file included from ../drivers/i2c/i2c-core-of.c:14: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/i2c/i2c-core-of.c:14: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/i2c/i2c-core-of.c:14: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-of.c:14: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-of.c:14: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-of.c:14: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-of.c:14: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-of.c:14: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-core-of.c:14: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/core.c:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/core.c:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/core.c:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/core.c:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/core.c:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/core.c:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/core.c:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/core.c:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/core.c:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/i2c/i2c-dev.o 13 warnings generated. CC drivers/base/core.o 13 warnings generated. CC drivers/mmc/core/bus.o CC drivers/mmc/host/mmc_spi.o In file included from ../drivers/i2c/i2c-dev.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/i2c/i2c-dev.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/i2c/i2c-dev.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-dev.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-dev.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-dev.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-dev.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-dev.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/i2c/i2c-dev.c:24: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/base/core.c:12: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/core.c:12: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/core.c:12: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/core.c:12: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/core.c:12: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/core.c:12: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/core.c:12: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/core.c:12: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/core.c:12: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR drivers/i2c/built-in.a AR drivers/ufs/built-in.a AR drivers/firmware/arm_ffa/built-in.a AR drivers/firmware/arm_scmi/built-in.a AR drivers/firmware/broadcom/built-in.a AR drivers/firmware/cirrus/built-in.a In file included from ../drivers/mmc/core/bus.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/bus.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/bus.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/bus.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h AR drivers/firmware/meson/built-in.a :10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/bus.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/bus.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/bus.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/bus.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); In file included from ../drivers/mmc/host/mmc_spi.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] ^~~~~~~~~~~~~~~~~~~~~~~~~~ val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count)In file included from ../drivers/mmc/host/mmc_spi.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/host/mmc_spi.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/host/mmc_spi.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/host/mmc_spi.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/host/mmc_spi.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/host/mmc_spi.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/host/mmc_spi.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/bus.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/mmc/host/mmc_spi.c:17: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/firmware/microchip/built-in.a AR drivers/firmware/efi/built-in.a AR drivers/firmware/imx/built-in.a AR drivers/firmware/psci/built-in.a AR drivers/firmware/qcom/built-in.a 13 warnings generated. AR drivers/firmware/smccc/built-in.a CC drivers/mmc/core/host.o AR drivers/firmware/tegra/built-in.a AR drivers/firmware/xilinx/built-in.a AR drivers/firmware/built-in.a CC drivers/clocksource/timer-of.o 13 warnings generated. CC drivers/mmc/host/of_mmc_spi.o In file included from ../drivers/clocksource/timer-of.c: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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/clocksource/timer-of.c: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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/clocksource/timer-of.c: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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-of.c: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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-of.c: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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-of.c: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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-of.c: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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-of.c: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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-of.c: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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/base/bus.o In file included from ../drivers/mmc/core/host.c:16: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/host.c:16: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/host.c:16: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/host.c:16: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/host.c:16: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/host.c:16: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/host.c:16: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/host.c:16: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/host.c:16: In file included from ../include/linux/pagemap.h:11: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. In file included from ../drivers/mmc/host/of_mmc_spi.c:14: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/host/of_mmc_spi.c:14: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/host/of_mmc_spi.c:14: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/host/of_mmc_spi.c:14: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/host/of_mmc_spi.c:14: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/host/of_mmc_spi.c:14: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/host/of_mmc_spi.c:14: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/host/of_mmc_spi.c:14: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/host/of_mmc_spi.c:14: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/clocksource/timer-probe.o 13 warnings generated. CC drivers/mmc/core/mmc.o 13 warnings generated. AR drivers/mmc/host/built-in.a CC drivers/base/dd.o CC drivers/base/syscore.o In file included from ../drivers/clocksource/timer-probe.c:9: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/clocksource/timer-probe.c:9: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/clocksource/timer-probe.c:9: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-probe.c:9: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-probe.c:9: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-probe.c:9: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-probe.c:9: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-probe.c:9: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-probe.c:9: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/clocksource/dummy_timer.o In file included from ../drivers/mmc/core/mmc.c:18: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/mmc.c:18: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/mmc.c:18: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/mmc.c:18: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/mmc.c:18: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/mmc.c:18: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/mmc.c:18: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/mmc.c:18: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/mmc.c:18: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/base/dd.c:22: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/dd.c:22: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/dd.c:22: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/dd.c:22: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/dd.c:22: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/dd.c:22: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/dd.c:22: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/dd.c:22: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/dd.c:22: In file included from ../include/linux/dma-map-ops.h:9: In file included from ../include/linux/dma-mapping.h:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/dummy_timer.c:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/clocksource/dummy_timer.c:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/clocksource/dummy_timer.c:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/dummy_timer.c:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/dummy_timer.c:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/dummy_timer.c:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/dummy_timer.c:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/dummy_timer.c:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/dummy_timer.c:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC drivers/clocksource/timer-clint.o In file included from ../drivers/base/syscore.c:11: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/syscore.c:11: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ CC drivers/mmc/core/mmc_ops.o In file included from ../drivers/base/syscore.c:11: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/syscore.c:11: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/syscore.c:11: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/syscore.c:11: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/syscore.c:11: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/syscore.c:11: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/syscore.c:11: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/base/driver.o 13 warnings generated. In file included from ../drivers/clocksource/timer-clint.c:11: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/clocksource/timer-clint.c:11: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/clocksource/timer-clint.c:11: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-clint.c:11: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-clint.c:11: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-clint.c:11: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-clint.c:11: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/clocksource/timer-clint.c:11: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ CC drivers/base/class.o In file included from ../drivers/clocksource/timer-clint.c:11: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/mmc_ops.c:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/mmc_ops.c:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/mmc_ops.c:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/mmc_ops.c:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/mmc_ops.c:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/mmc_ops.c:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/mmc_ops.c:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/mmc_ops.c:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/mmc_ops.c:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. AR drivers/clocksource/built-in.a CC drivers/of/base.o CC drivers/base/platform.o 13 warnings generated. CC drivers/mmc/core/sd.o In file included from ../drivers/base/class.c:19: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/class.c:19: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/class.c:19: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/class.c:19: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/class.c:19: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/class.c:19: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/class.c:19: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/class.c:19: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/class.c:19: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/base/cpu.o In file included from ../drivers/base/platform.c:15: In file included from ../include/linux/of_irq.h:7: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/platform.c:15: In file included from ../include/linux/of_irq.h:7: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/platform.c:15: In file included from ../include/linux/of_irq.h:7: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/platform.c:15: In file included from ../include/linux/of_irq.h:7: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/platform.c:15: In file included from ../include/linux/of_irq.h:7: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/platform.c:15: In file included from ../include/linux/of_irq.h:7: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/platform.c:15: In file included from ../include/linux/of_irq.h:7: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/platform.c:15: In file included from ../include/linux/of_irq.h:7: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/platform.c:15: In file included from ../include/linux/of_irq.h:7: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sd.c:16: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/sd.c:16: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/sd.c:16: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sd.c:16: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sd.c:16: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sd.c:16: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sd.c:16: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sd.c:16: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sd.c:16: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/of/cpu.o 13 warnings generated. CC drivers/base/firmware.o In file included from ../drivers/base/cpu.c:20: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/cpu.c:20: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/cpu.c:20: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/cpu.c:20: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/cpu.c:20: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/cpu.c:20: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/cpu.c:20: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/cpu.c:20: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/cpu.c:20: In file included from ../include/linux/tick.h:8: In file included from ../include/linux/clockchips.h:14: In file included from ../include/linux/clocksource.h:22: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/mmc/core/sd_ops.o 13 warnings generated. CC drivers/base/init.o CC drivers/of/device.o CC drivers/base/map.o In file included from ../drivers/mmc/core/sd_ops.c:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/sd_ops.c:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/sd_ops.c:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sd_ops.c:11: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sd_ops.c:11: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sd_ops.c:11: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sd_ops.c:11: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sd_ops.c:11: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sd_ops.c:11: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/base/init.c:11: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/init.c:11: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/init.c:11: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/init.c:11: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/init.c:11: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/init.c:11: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/init.c:11: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/init.c:11: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/init.c:11: In file included from ../include/linux/backing-dev.h:16: In file included from ../include/linux/writeback.h:13: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC drivers/base/devres.o CC drivers/mmc/core/sdio.o In file included from ../drivers/of/device.c:5: In file included from ../include/linux/of_address.h:7: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/of/device.c:5: In file included from ../include/linux/of_address.h:7: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/of/device.c:5: In file included from ../include/linux/of_address.h:7: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/device.c:5: In file included from ../include/linux/of_address.h:7: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/device.c:5: In file included from ../include/linux/of_address.h:7: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/device.c:5: In file included from ../include/linux/of_address.h:7: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/device.c:5: In file included from ../include/linux/of_address.h:7: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/device.c:5: In file included from ../include/linux/of_address.h:7: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/device.c:5: In file included from ../include/linux/of_address.h:7: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/base/attribute_container.o CC drivers/of/module.o In file included from ../drivers/mmc/core/sdio.c:12: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/sdio.c:12: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/sdio.c:12: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio.c:12: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio.c:12: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio.c:12: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio.c:12: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio.c:12: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio.c:12: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/base/transport_class.o CC drivers/of/platform.o CC drivers/base/topology.o 13 warnings generated. CC drivers/mmc/core/sdio_ops.o In file included from ../drivers/of/platform.c:14: In file included from ../include/linux/amba/bus.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/of/platform.c:14: In file included from ../include/linux/amba/bus.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/of/platform.c:14: In file included from ../include/linux/amba/bus.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/platform.c:14: In file included from ../include/linux/amba/bus.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/platform.c:14: In file included from ../include/linux/amba/bus.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/platform.c:14: In file included from ../include/linux/amba/bus.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/platform.c:14: In file included from ../include/linux/amba/bus.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/platform.c:14: In file included from ../include/linux/amba/bus.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/platform.c:14: In file included from ../include/linux/amba/bus.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/base/container.o In file included from ../drivers/base/topology.c:14: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/topology.c:14: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/topology.c:14: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/topology.c:14: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/topology.c:14: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/topology.c:14: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/topology.c:14: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/topology.c:14: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/topology.c:14: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_ops.c:8: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/sdio_ops.c:8: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/sdio_ops.c:8: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_ops.c:8: In file included from ../include/linux/scatterlist.h:9: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_ops.c:8: In file included from ../include/linux/scatterlist.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_ops.c:8: In file included from ../include/linux/scatterlist.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_ops.c:8: In file included from ../include/linux/scatterlist.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_ops.c:8: In file included from ../include/linux/scatterlist.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_ops.c:8: In file included from ../include/linux/scatterlist.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/base/property.o 13 warnings generated. 13 warnings generated. CC drivers/of/property.o CC drivers/mmc/core/sdio_bus.o CC drivers/base/cacheinfo.o In file included from ../drivers/of/property.c:25: In file included from ../include/linux/of_address.h:7: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/of/property.c:25: In file included from ../include/linux/of_address.h:7: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/of/property.c:25: In file included from ../include/linux/of_address.h:7: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/property.c:25: In file included from ../include/linux/of_address.h:7: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/property.c:25: In file included from ../include/linux/of_address.h:7: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/property.c:25: In file included from ../include/linux/of_address.h:7: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/property.c:25: In file included from ../include/linux/of_address.h:7: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/property.c:25: In file included from ../include/linux/of_address.h:7: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/property.c:16: In file included from ../include/linux/phy.h:16: In file included from ../include/linux/ethtool.h:18: In file included from ../include/linux/if_ether.h:19: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ In file included from ../drivers/of/property.c:25: In file included from ../include/linux/of_address.h:7: In file included from ../include/linux/io.h:14: In file included from ../arch/riscv/include/asm/io.h:../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 136 val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));: ../include/asm-generic/io.h:1115:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/property.c:16: In file included from ../include/linux/phy.h:16: In file included from ../include/linux/ethtool.h:18: In file included from ../include/linux/if_ether.h:19: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/property.c:16: In file included from ../include/linux/phy.h:16: In file included from ../include/linux/ethtool.h:18: In file included from ../include/linux/if_ether.h:19: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/property.c:16: In file included from ../include/linux/phy.h:16: In file included from ../include/linux/ethtool.h:18: In file included from ../include/linux/if_ether.h:19: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/property.c:16: In file included from ../include/linux/phy.h:16: In file included from ../include/linux/ethtool.h:18: In file included from ../include/linux/if_ether.h:19: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/property.c:16: In file included from ../include/linux/phy.h:16: In file included from ../include/linux/ethtool.h:18: In file included from ../include/linux/if_ether.h:19: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/property.c:16: In file included from ../include/linux/phy.h:16: In file included from ../include/linux/ethtool.h:18: In file included from ../include/linux/if_ether.h:19: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/property.c:16: In file included from ../include/linux/phy.h:16: In file included from ../include/linux/ethtool.h:18: In file included from ../include/linux/if_ether.h:19: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/property.c:16: In file included from ../include/linux/phy.h:16: In file included from ../include/linux/ethtool.h:18: In file included from ../include/linux/if_ether.h:19: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_bus.c:20: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/sdio_bus.c:20: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/sdio_bus.c:20: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_bus.c:20: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_bus.c:20: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_bus.c:20: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_bus.c:20: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_bus.c:20: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_bus.c:20: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. CC drivers/base/swnode.o CC drivers/of/kobj.o 13 warnings generated. CC drivers/mmc/core/sdio_cis.o CC drivers/base/devtmpfs.o CC drivers/of/fdt.o In file included from ../drivers/mmc/core/sdio_cis.c:15: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/sdio_cis.c:15: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/sdio_cis.c:15: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_cis.c:15: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_cis.c:15: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_cis.c:15: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_cis.c:15: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_cis.c:15: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_cis.c:15: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/base/pinctrl.o In file included from ../drivers/base/devtmpfs.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/devtmpfs.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/devtmpfs.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ 13 warnings generated. ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/devtmpfs.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/devtmpfs.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/devtmpfs.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/devtmpfs.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/devtmpfs.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/devtmpfs.c:19: In file included from ../include/linux/syscalls.h:93: In file included from ../include/trace/syscall.h:7: In file included from ../include/linux/trace_events.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ CC drivers/mmc/core/sdio_io.o In file included from ../drivers/of/fdt.c:12: In file included from ../include/linux/crash_dump.h:5: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/of/fdt.c:12: In file included from ../include/linux/crash_dump.h:5: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/of/fdt.c:12: In file included from ../include/linux/crash_dump.h:5: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/fdt.c:12: In file included from ../include/linux/crash_dump.h:5: In file included from ../include/linux/kexec.h:20: In file included from ../arch/riscv/include/asm/io.h:136: ../include/asm-generic/io.h:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/fdt.c:12: In file included from ../include/linux/crash_dump.h:5: In file included from ../include/linux/kexec.h:20: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/fdt.c:12: In file included from ../include/linux/crash_dump.h:5: In file included from ../include/linux/kexec.h:20: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/fdt.c:12: In file included from ../include/linux/crash_dump.h:5: In file included from ../include/linux/kexec.h:20: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/fdt.c:12: In file included from ../include/linux/crash_dump.h:5: In file included from ../include/linux/kexec.h:20: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/fdt.c:12: In file included from ../include/linux/crash_dump.h:5: In file included from ../include/linux/kexec.h:20: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/base/platform-msi.o CC drivers/base/arch_topology.o 13 warnings generated. DTC drivers/of/empty_root.dtb CC drivers/of/fdt_address.o In file included from ../drivers/mmc/core/sdio_io.c:10: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/sdio_io.c:10: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/sdio_io.c:10: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_io.c:10: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_io.c:10: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_io.c:10: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_io.c:10: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_io.c:10: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_io.c:10: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/mmc/core/sdio_irq.o In file included from ../drivers/base/platform-msi.c:12: In file included from ../include/linux/msi.h:24: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/base/platform-msi.c:12: In file included from ../include/linux/msi.h:24: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/base/platform-msi.c:12: In file included from ../include/linux/msi.h:24: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/platform-msi.c:12: In file included from ../include/linux/msi.h:24: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/platform-msi.c:12: In file included from ../include/linux/msi.h:24: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/platform-msi.c:12: In file included from ../include/linux/msi.h:24: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/platform-msi.c:12: In file included from ../include/linux/msi.h:24: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/platform-msi.c:12: In file included from ../include/linux/msi.h:24: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/base/platform-msi.c:12: In file included from ../include/linux/msi.h:24: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/of/address.o CC drivers/of/irq.o AR drivers/base/built-in.a AR drivers/platform/built-in.a AR drivers/hwtracing/intel_th/built-in.a AR drivers/android/built-in.a CC drivers/of/of_reserved_mem.o In file included from ../drivers/mmc/core/sdio_irq.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/sdio_irq.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/sdio_irq.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_irq.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_irq.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_irq.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_irq.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_irq.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/sdio_irq.c:21: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/of/address.c:6: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/of/address.c:6: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/of/address.c:6: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/address.c:6: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/address.c:6: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/address.c:6: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/address.c:6: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/address.c:6: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/address.c:6: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/mmc/core/slot-gpio.o In file included from ../drivers/of/irq.c:24: In file included from ../include/linux/of_irq.h:7: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/of/irq.c:24: In file included from ../include/linux/of_irq.h:7: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/of/irq.c:24: In file included from ../include/linux/of_irq.h:7: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/irq.c:24: In file included from ../include/linux/of_irq.h:7: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/irq.c:24: In file included from ../include/linux/of_irq.h:7: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/irq.c:24: In file included from ../include/linux/of_irq.h:7: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/irq.c:24: In file included from ../include/linux/of_irq.h:7: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/irq.c:24: In file included from ../include/linux/of_irq.h:7: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/of/irq.c:24: In file included from ../include/linux/of_irq.h:7: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. CC drivers/mmc/core/regulator.o 13 warnings generated. WRAP drivers/of/empty_root.dtb.S AS drivers/of/empty_root.dtb.o In file included from ../drivers/mmc/core/slot-gpio.c:10: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/slot-gpio.c:10: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/slot-gpio.c:10: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/slot-gpio.c:10: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/slot-gpio.c:10: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/slot-gpio.c:10: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/slot-gpio.c:10: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/slot-gpio.c:10: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ CC drivers/mmc/core/pwrseq.o In file included from ../drivers/mmc/core/slot-gpio.c:10: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ AR drivers/of/built-in.a CC drivers/mmc/core/block.o 13 warnings generated. CC drivers/mmc/core/queue.o In file included from ../drivers/mmc/core/regulator.c:9: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/regulator.c:9: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/regulator.c:9: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/regulator.c:9: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/regulator.c:9: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/regulator.c:9: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/regulator.c:9: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/regulator.c:9: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/regulator.c:9: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/pwrseq.c:14: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/pwrseq.c:14: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/pwrseq.c:14: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/pwrseq.c:14: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/pwrseq.c:14: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/pwrseq.c:14: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/pwrseq.c:14: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/pwrseq.c:14: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/pwrseq.c:14: In file included from ../include/linux/mmc/host.h:19: In file included from ../include/linux/blk-crypto-profile.h:9: In file included from ../include/linux/bio.h:10: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. In file included from ../drivers/mmc/core/block.c:32: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/block.c:32: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/block.c:32: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/block.c:32: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/block.c:32: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/block.c:32: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/block.c:32: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/block.c:32: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/block.c:32: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/queue.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from ../drivers/mmc/core/queue.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ ../include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from ../drivers/mmc/core/queue.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ ../include/asm-generic/io.h:744:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/queue.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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:752:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/queue.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/queue.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/queue.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/queue.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from ../drivers/mmc/core/queue.c:8: In file included from ../include/linux/blkdev.h:9: In file included from ../include/linux/blk_types.h:10: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:12: 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] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ 13 warnings generated. 13 warnings generated. AR drivers/mmc/core/built-in.a AR drivers/mmc/built-in.a AR drivers/built-in.a AR built-in.a AR vmlinux.a LD vmlinux.o OBJCOPY modules.builtin.modinfo GEN modules.builtin MODPOST vmlinux.symvers UPD include/generated/utsversion.h CC init/version-timestamp.o LD vmlinux NM System.map OBJCOPY arch/riscv/boot/Image Kernel: arch/riscv/boot/Image is ready AS arch/riscv/boot/loader.o LDS arch/riscv/boot/loader.lds Kernel: arch/riscv/boot/loader is ready OBJCOPY arch/riscv/boot/loader.bin Kernel: arch/riscv/boot/loader.bin is ready make[1]: Leaving directory '/tmp/kci/linux/build' make: Leaving directory '/tmp/kci/linux'