linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 02/19] elf: Move arch_setup_additional_pages() to generic elf.h
       [not found] <20201108051730.2042693-3-dima@arista.com>
@ 2020-11-13  6:58 ` kernel test robot
  2020-11-13  7:01 ` kernel test robot
  1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-11-13  6:58 UTC (permalink / raw)
  To: Dmitry Safonov, linux-kernel
  Cc: kbuild-all, clang-built-linux, Dmitry Safonov, Alexander Viro,
	Andrew Morton, Linux Memory Management List, Andy Lutomirski,
	Arnd Bergmann, Borislav Petkov, Catalin Marinas,
	Christophe Leroy

[-- Attachment #1: Type: text/plain, Size: 29192 bytes --]

Hi Dmitry,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on c34f157421f6905e6b4a79a312e9175dce2bc607]

url:    https://github.com/0day-ci/linux/commits/Dmitry-Safonov/Add-generic-user_landing-tracking/20201109-090354
base:    c34f157421f6905e6b4a79a312e9175dce2bc607
config: riscv-randconfig-r026-20201109 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 09ec07827b1128504457a93dee80b2ceee1af600)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://github.com/0day-ci/linux/commit/c46ac7ddea192a97f9b0b3aa3536566a37389bec
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Dmitry-Safonov/Add-generic-user_landing-tracking/20201109-090354
        git checkout c46ac7ddea192a97f9b0b3aa3536566a37389bec
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   #ifndef _ASM_RISCV_ELF_H
    ^
   In file included from arch/riscv/kernel/traps_misaligned.c:9:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/riscv/include/asm/io.h:149:
   include/asm-generic/io.h:556:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           return inb(addr);
                  ^~~~~~~~~
   arch/riscv/include/asm/io.h:55:76: note: expanded from macro 'inb'
   #define inb(c)          ({ u8  __v; __io_pbr(); __v = readb_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
                                                                           ~~~~~~~~~~ ^
   arch/riscv/include/asm/mmio.h:87:48: note: expanded from macro 'readb_cpu'
   #define readb_cpu(c)            ({ u8  __r = __raw_readb(c); __r; })
                                                            ^
   In file included from arch/riscv/kernel/traps_misaligned.c:9:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/riscv/include/asm/io.h:149:
   include/asm-generic/io.h:564:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           return inw(addr);
                  ^~~~~~~~~
   arch/riscv/include/asm/io.h:56:76: note: expanded from macro 'inw'
   #define inw(c)          ({ u16 __v; __io_pbr(); __v = readw_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
                                                                           ~~~~~~~~~~ ^
   arch/riscv/include/asm/mmio.h:88:76: note: expanded from macro 'readw_cpu'
   #define readw_cpu(c)            ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; })
                                                                                        ^
   include/uapi/linux/byteorder/little_endian.h:36: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/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/riscv/include/asm/io.h:149:
   include/asm-generic/io.h:572:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           return inl(addr);
                  ^~~~~~~~~
   arch/riscv/include/asm/io.h:57:76: note: expanded from macro 'inl'
   #define inl(c)          ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
                                                                           ~~~~~~~~~~ ^
   arch/riscv/include/asm/mmio.h:89:76: note: expanded from macro 'readl_cpu'
   #define readl_cpu(c)            ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
                                                                                        ^
   include/uapi/linux/byteorder/little_endian.h:34: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/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/riscv/include/asm/io.h:149:
   include/asm-generic/io.h:580:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           outb(value, addr);
           ^~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:59:68: note: expanded from macro 'outb'
   #define outb(v,c)       ({ __io_pbw(); writeb_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
                                                                 ~~~~~~~~~~ ^
   arch/riscv/include/asm/mmio.h:91:52: note: expanded from macro 'writeb_cpu'
   #define writeb_cpu(v, c)        ((void)__raw_writeb((v), (c)))
                                                             ^
   In file included from arch/riscv/kernel/traps_misaligned.c:9:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/riscv/include/asm/io.h:149:
   include/asm-generic/io.h:588:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           outw(value, addr);
           ^~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outw'
   #define outw(v,c)       ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
                                                                 ~~~~~~~~~~ ^
   arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
   #define writew_cpu(v, c)        ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
                                                                                     ^
   In file included from arch/riscv/kernel/traps_misaligned.c:9:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/riscv/include/asm/io.h:149:
   include/asm-generic/io.h:596:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           outl(value, addr);
           ^~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:61:68: note: expanded from macro 'outl'
   #define outl(v,c)       ({ __io_pbw(); writel_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
                                                                 ~~~~~~~~~~ ^
   arch/riscv/include/asm/mmio.h:93:76: note: expanded from macro 'writel_cpu'
   #define writel_cpu(v, c)        ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
                                                                                     ^
   In file included from arch/riscv/kernel/traps_misaligned.c:9:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/riscv/include/asm/io.h:149:
   include/asm-generic/io.h:1005:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
                                                     ~~~~~~~~~~ ^
   arch/riscv/kernel/traps_misaligned.c:240:5: warning: no previous prototype for function 'handle_misaligned_load' [-Wmissing-prototypes]
   int handle_misaligned_load(struct pt_regs *regs)
       ^
   arch/riscv/kernel/traps_misaligned.c:240:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int handle_misaligned_load(struct pt_regs *regs)
   ^
   static 
>> arch/riscv/kernel/traps_misaligned.c:316:2: warning: shift count is negative [-Wshift-count-negative]
           SET_RD(insn, regs, val.data_ulong << shift >> shift);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:142:36: note: expanded from macro 'SET_RD'
   #define SET_RD(insn, regs, val)         (*REG_PTR(insn, SH_RD, regs) = (val))
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:132:28: note: expanded from macro 'REG_PTR'
           (ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
                                     ^~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:129:3: note: expanded from macro 'REG_OFFSET'
           (SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:123:18: note: expanded from macro 'SHIFT_RIGHT'
           ((y) < 0 ? ((x) << -(y)) : ((x) >> (y)))
                           ^  ~~~~
   arch/riscv/kernel/traps_misaligned.c:323:5: warning: no previous prototype for function 'handle_misaligned_store' [-Wmissing-prototypes]
   int handle_misaligned_store(struct pt_regs *regs)
       ^
   arch/riscv/kernel/traps_misaligned.c:323:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int handle_misaligned_store(struct pt_regs *regs)
   ^
   static 
   arch/riscv/kernel/traps_misaligned.c:333:19: warning: shift count is negative [-Wshift-count-negative]
           val.data_ulong = GET_RS2(insn, regs);
                            ^~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:137:32: note: expanded from macro 'GET_RS2'
   #define GET_RS2(insn, regs)             (*REG_PTR(insn, SH_RS2, regs))
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:132:28: note: expanded from macro 'REG_PTR'
           (ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
                                     ^~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:129:3: note: expanded from macro 'REG_OFFSET'
           (SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:123:18: note: expanded from macro 'SHIFT_RIGHT'
           ((y) < 0 ? ((x) << -(y)) : ((x) >> (y)))
                           ^  ~~~~
   arch/riscv/kernel/traps_misaligned.c:346:20: warning: shift count is negative [-Wshift-count-negative]
                   val.data_ulong = GET_RS2S(insn, regs);
                                    ^~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:139:33: note: expanded from macro 'GET_RS2S'
   #define GET_RS2S(insn, regs)            (*REG_PTR(RVC_RS2S(insn), 0, regs))
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:132:28: note: expanded from macro 'REG_PTR'
           (ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
                                     ^~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:129:3: note: expanded from macro 'REG_OFFSET'
           (SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:123:34: note: expanded from macro 'SHIFT_RIGHT'
           ((y) < 0 ? ((x) << -(y)) : ((x) >> (y)))
                                           ^  ~~~
   arch/riscv/kernel/traps_misaligned.c:350:20: warning: shift count is negative [-Wshift-count-negative]
                   val.data_ulong = GET_RS2C(insn, regs);
                                    ^~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:140:33: note: expanded from macro 'GET_RS2C'
   #define GET_RS2C(insn, regs)            (*REG_PTR(insn, SH_RS2C, regs))
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:132:28: note: expanded from macro 'REG_PTR'
           (ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
                                     ^~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:129:3: note: expanded from macro 'REG_OFFSET'
           (SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:123:34: note: expanded from macro 'SHIFT_RIGHT'
           ((y) < 0 ? ((x) << -(y)) : ((x) >> (y)))
                                           ^  ~~~
   arch/riscv/kernel/traps_misaligned.c:354:20: warning: shift count is negative [-Wshift-count-negative]
                   val.data_ulong = GET_RS2S(insn, regs);
                                    ^~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:139:33: note: expanded from macro 'GET_RS2S'
   #define GET_RS2S(insn, regs)            (*REG_PTR(RVC_RS2S(insn), 0, regs))
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:132:28: note: expanded from macro 'REG_PTR'
           (ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
                                     ^~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:129:3: note: expanded from macro 'REG_OFFSET'
           (SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:123:34: note: expanded from macro 'SHIFT_RIGHT'
           ((y) < 0 ? ((x) << -(y)) : ((x) >> (y)))
                                           ^  ~~~
   arch/riscv/kernel/traps_misaligned.c:358:20: warning: shift count is negative [-Wshift-count-negative]
                   val.data_ulong = GET_RS2C(insn, regs);
                                    ^~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:140:33: note: expanded from macro 'GET_RS2C'
   #define GET_RS2C(insn, regs)            (*REG_PTR(insn, SH_RS2C, regs))
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:132:28: note: expanded from macro 'REG_PTR'
           (ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
                                     ^~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:129:3: note: expanded from macro 'REG_OFFSET'
           (SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps_misaligned.c:123:34: note: expanded from macro 'SHIFT_RIGHT'
           ((y) < 0 ? ((x) << -(y)) : ((x) >> (y)))
                                           ^  ~~~
   15 warnings and 1 error generated.
--
   In file included from arch/riscv/include/asm/io.h:149:
   include/asm-generic/io.h:556:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           return inb(addr);
                  ^~~~~~~~~
   arch/riscv/include/asm/io.h:55:76: note: expanded from macro 'inb'
   #define inb(c)          ({ u8  __v; __io_pbr(); __v = readb_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
                                                                           ~~~~~~~~~~ ^
   arch/riscv/include/asm/mmio.h:87:48: note: expanded from macro 'readb_cpu'
   #define readb_cpu(c)            ({ u8  __r = __raw_readb(c); __r; })
                                                            ^
   In file included from drivers/gpu/drm/vkms/vkms_drv.c:14:
   In file included from include/linux/dma-mapping.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/riscv/include/asm/io.h:149:
   include/asm-generic/io.h:564:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           return inw(addr);
                  ^~~~~~~~~
   arch/riscv/include/asm/io.h:56:76: note: expanded from macro 'inw'
   #define inw(c)          ({ u16 __v; __io_pbr(); __v = readw_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
                                                                           ~~~~~~~~~~ ^
   arch/riscv/include/asm/mmio.h:88:76: note: expanded from macro 'readw_cpu'
   #define readw_cpu(c)            ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; })
                                                                                        ^
   include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
   #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
                                                     ^
   In file included from drivers/gpu/drm/vkms/vkms_drv.c:14:
   In file included from include/linux/dma-mapping.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/riscv/include/asm/io.h:149:
   include/asm-generic/io.h:572:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           return inl(addr);
                  ^~~~~~~~~
   arch/riscv/include/asm/io.h:57:76: note: expanded from macro 'inl'
   #define inl(c)          ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
                                                                           ~~~~~~~~~~ ^
   arch/riscv/include/asm/mmio.h:89:76: note: expanded from macro 'readl_cpu'
   #define readl_cpu(c)            ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
                                                                                        ^
   include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                                                     ^
   In file included from drivers/gpu/drm/vkms/vkms_drv.c:14:
   In file included from include/linux/dma-mapping.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/riscv/include/asm/io.h:149:
   include/asm-generic/io.h:580:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           outb(value, addr);
           ^~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:59:68: note: expanded from macro 'outb'
   #define outb(v,c)       ({ __io_pbw(); writeb_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
                                                                 ~~~~~~~~~~ ^
   arch/riscv/include/asm/mmio.h:91:52: note: expanded from macro 'writeb_cpu'
   #define writeb_cpu(v, c)        ((void)__raw_writeb((v), (c)))
                                                             ^
   In file included from drivers/gpu/drm/vkms/vkms_drv.c:14:
   In file included from include/linux/dma-mapping.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/riscv/include/asm/io.h:149:
   include/asm-generic/io.h:588:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           outw(value, addr);
           ^~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outw'
   #define outw(v,c)       ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
                                                                 ~~~~~~~~~~ ^
   arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
   #define writew_cpu(v, c)        ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
                                                                                     ^
   In file included from drivers/gpu/drm/vkms/vkms_drv.c:14:
   In file included from include/linux/dma-mapping.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/riscv/include/asm/io.h:149:
   include/asm-generic/io.h:596:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           outl(value, addr);
           ^~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:61:68: note: expanded from macro 'outl'
   #define outl(v,c)       ({ __io_pbw(); writel_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
                                                                 ~~~~~~~~~~ ^
   arch/riscv/include/asm/mmio.h:93:76: note: expanded from macro 'writel_cpu'
   #define writel_cpu(v, c)        ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
                                                                                     ^
   In file included from drivers/gpu/drm/vkms/vkms_drv.c:14:
   In file included from include/linux/dma-mapping.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/riscv/include/asm/io.h:149:
   include/asm-generic/io.h:1005: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/gpu/drm/vkms/vkms_drv.c:20:
   In file included from include/drm/drm_fb_helper.h:39:
   In file included from include/linux/vgaarb.h:34:
   include/video/vga.h:215:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           outw(VGA_OUT16VAL (val, reg), port);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outw'
   #define outw(v,c)       ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
                                                                 ~~~~~~~~~~ ^
   arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
   #define writew_cpu(v, c)        ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
                                                                                     ^
>> drivers/gpu/drm/vkms/vkms_drv.c:146:9: warning: shift count >= width of type [-Wshift-count-overflow]
                                              DMA_BIT_MASK(64));
                                              ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   9 warnings and 1 error generated.

vim +316 arch/riscv/kernel/traps_misaligned.c

956d705dd279f7 Damien Le Moal 2020-03-16  239  
956d705dd279f7 Damien Le Moal 2020-03-16  240  int handle_misaligned_load(struct pt_regs *regs)
956d705dd279f7 Damien Le Moal 2020-03-16  241  {
956d705dd279f7 Damien Le Moal 2020-03-16  242  	union reg_data val;
956d705dd279f7 Damien Le Moal 2020-03-16  243  	unsigned long epc = regs->epc;
956d705dd279f7 Damien Le Moal 2020-03-16  244  	unsigned long insn = get_insn(epc);
956d705dd279f7 Damien Le Moal 2020-03-16  245  	unsigned long addr = csr_read(mtval);
956d705dd279f7 Damien Le Moal 2020-03-16  246  	int i, fp = 0, shift = 0, len = 0;
956d705dd279f7 Damien Le Moal 2020-03-16  247  
956d705dd279f7 Damien Le Moal 2020-03-16  248  	regs->epc = 0;
956d705dd279f7 Damien Le Moal 2020-03-16  249  
956d705dd279f7 Damien Le Moal 2020-03-16  250  	if ((insn & INSN_MASK_LW) == INSN_MATCH_LW) {
956d705dd279f7 Damien Le Moal 2020-03-16  251  		len = 4;
956d705dd279f7 Damien Le Moal 2020-03-16  252  		shift = 8 * (sizeof(unsigned long) - len);
956d705dd279f7 Damien Le Moal 2020-03-16  253  #if defined(CONFIG_64BIT)
956d705dd279f7 Damien Le Moal 2020-03-16  254  	} else if ((insn & INSN_MASK_LD) == INSN_MATCH_LD) {
956d705dd279f7 Damien Le Moal 2020-03-16  255  		len = 8;
956d705dd279f7 Damien Le Moal 2020-03-16  256  		shift = 8 * (sizeof(unsigned long) - len);
956d705dd279f7 Damien Le Moal 2020-03-16  257  	} else if ((insn & INSN_MASK_LWU) == INSN_MATCH_LWU) {
956d705dd279f7 Damien Le Moal 2020-03-16  258  		len = 4;
956d705dd279f7 Damien Le Moal 2020-03-16  259  #endif
956d705dd279f7 Damien Le Moal 2020-03-16  260  	} else if ((insn & INSN_MASK_FLD) == INSN_MATCH_FLD) {
956d705dd279f7 Damien Le Moal 2020-03-16  261  		fp = 1;
956d705dd279f7 Damien Le Moal 2020-03-16  262  		len = 8;
956d705dd279f7 Damien Le Moal 2020-03-16  263  	} else if ((insn & INSN_MASK_FLW) == INSN_MATCH_FLW) {
956d705dd279f7 Damien Le Moal 2020-03-16  264  		fp = 1;
956d705dd279f7 Damien Le Moal 2020-03-16  265  		len = 4;
956d705dd279f7 Damien Le Moal 2020-03-16  266  	} else if ((insn & INSN_MASK_LH) == INSN_MATCH_LH) {
956d705dd279f7 Damien Le Moal 2020-03-16  267  		len = 2;
956d705dd279f7 Damien Le Moal 2020-03-16  268  		shift = 8 * (sizeof(unsigned long) - len);
956d705dd279f7 Damien Le Moal 2020-03-16  269  	} else if ((insn & INSN_MASK_LHU) == INSN_MATCH_LHU) {
956d705dd279f7 Damien Le Moal 2020-03-16  270  		len = 2;
956d705dd279f7 Damien Le Moal 2020-03-16  271  #if defined(CONFIG_64BIT)
956d705dd279f7 Damien Le Moal 2020-03-16  272  	} else if ((insn & INSN_MASK_C_LD) == INSN_MATCH_C_LD) {
956d705dd279f7 Damien Le Moal 2020-03-16  273  		len = 8;
956d705dd279f7 Damien Le Moal 2020-03-16  274  		shift = 8 * (sizeof(unsigned long) - len);
956d705dd279f7 Damien Le Moal 2020-03-16  275  		insn = RVC_RS2S(insn) << SH_RD;
956d705dd279f7 Damien Le Moal 2020-03-16  276  	} else if ((insn & INSN_MASK_C_LDSP) == INSN_MATCH_C_LDSP &&
956d705dd279f7 Damien Le Moal 2020-03-16  277  		   ((insn >> SH_RD) & 0x1f)) {
956d705dd279f7 Damien Le Moal 2020-03-16  278  		len = 8;
956d705dd279f7 Damien Le Moal 2020-03-16  279  		shift = 8 * (sizeof(unsigned long) - len);
956d705dd279f7 Damien Le Moal 2020-03-16  280  #endif
956d705dd279f7 Damien Le Moal 2020-03-16  281  	} else if ((insn & INSN_MASK_C_LW) == INSN_MATCH_C_LW) {
956d705dd279f7 Damien Le Moal 2020-03-16  282  		len = 4;
956d705dd279f7 Damien Le Moal 2020-03-16  283  		shift = 8 * (sizeof(unsigned long) - len);
956d705dd279f7 Damien Le Moal 2020-03-16  284  		insn = RVC_RS2S(insn) << SH_RD;
956d705dd279f7 Damien Le Moal 2020-03-16  285  	} else if ((insn & INSN_MASK_C_LWSP) == INSN_MATCH_C_LWSP &&
956d705dd279f7 Damien Le Moal 2020-03-16  286  		   ((insn >> SH_RD) & 0x1f)) {
956d705dd279f7 Damien Le Moal 2020-03-16  287  		len = 4;
956d705dd279f7 Damien Le Moal 2020-03-16  288  		shift = 8 * (sizeof(unsigned long) - len);
956d705dd279f7 Damien Le Moal 2020-03-16  289  	} else if ((insn & INSN_MASK_C_FLD) == INSN_MATCH_C_FLD) {
956d705dd279f7 Damien Le Moal 2020-03-16  290  		fp = 1;
956d705dd279f7 Damien Le Moal 2020-03-16  291  		len = 8;
956d705dd279f7 Damien Le Moal 2020-03-16  292  		insn = RVC_RS2S(insn) << SH_RD;
956d705dd279f7 Damien Le Moal 2020-03-16  293  	} else if ((insn & INSN_MASK_C_FLDSP) == INSN_MATCH_C_FLDSP) {
956d705dd279f7 Damien Le Moal 2020-03-16  294  		fp = 1;
956d705dd279f7 Damien Le Moal 2020-03-16  295  		len = 8;
956d705dd279f7 Damien Le Moal 2020-03-16  296  #if defined(CONFIG_32BIT)
956d705dd279f7 Damien Le Moal 2020-03-16  297  	} else if ((insn & INSN_MASK_C_FLW) == INSN_MATCH_C_FLW) {
956d705dd279f7 Damien Le Moal 2020-03-16  298  		fp = 1;
956d705dd279f7 Damien Le Moal 2020-03-16  299  		len = 4;
956d705dd279f7 Damien Le Moal 2020-03-16  300  		insn = RVC_RS2S(insn) << SH_RD;
956d705dd279f7 Damien Le Moal 2020-03-16  301  	} else if ((insn & INSN_MASK_C_FLWSP) == INSN_MATCH_C_FLWSP) {
956d705dd279f7 Damien Le Moal 2020-03-16  302  		fp = 1;
956d705dd279f7 Damien Le Moal 2020-03-16  303  		len = 4;
956d705dd279f7 Damien Le Moal 2020-03-16  304  #endif
956d705dd279f7 Damien Le Moal 2020-03-16  305  	} else {
956d705dd279f7 Damien Le Moal 2020-03-16  306  		regs->epc = epc;
956d705dd279f7 Damien Le Moal 2020-03-16  307  		return -1;
956d705dd279f7 Damien Le Moal 2020-03-16  308  	}
956d705dd279f7 Damien Le Moal 2020-03-16  309  
956d705dd279f7 Damien Le Moal 2020-03-16  310  	val.data_u64 = 0;
956d705dd279f7 Damien Le Moal 2020-03-16  311  	for (i = 0; i < len; i++)
956d705dd279f7 Damien Le Moal 2020-03-16  312  		val.data_bytes[i] = load_u8((void *)(addr + i));
956d705dd279f7 Damien Le Moal 2020-03-16  313  
956d705dd279f7 Damien Le Moal 2020-03-16  314  	if (fp)
956d705dd279f7 Damien Le Moal 2020-03-16  315  		return -1;
956d705dd279f7 Damien Le Moal 2020-03-16 @316  	SET_RD(insn, regs, val.data_ulong << shift >> shift);
956d705dd279f7 Damien Le Moal 2020-03-16  317  
956d705dd279f7 Damien Le Moal 2020-03-16  318  	regs->epc = epc + INSN_LEN(insn);
956d705dd279f7 Damien Le Moal 2020-03-16  319  
956d705dd279f7 Damien Le Moal 2020-03-16  320  	return 0;
956d705dd279f7 Damien Le Moal 2020-03-16  321  }
956d705dd279f7 Damien Le Moal 2020-03-16  322  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32685 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 02/19] elf: Move arch_setup_additional_pages() to generic elf.h
       [not found] <20201108051730.2042693-3-dima@arista.com>
  2020-11-13  6:58 ` [PATCH 02/19] elf: Move arch_setup_additional_pages() to generic elf.h kernel test robot
@ 2020-11-13  7:01 ` kernel test robot
  1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-11-13  7:01 UTC (permalink / raw)
  To: Dmitry Safonov, linux-kernel
  Cc: kbuild-all, Dmitry Safonov, Alexander Viro, Andrew Morton,
	Linux Memory Management List, Andy Lutomirski, Arnd Bergmann,
	Borislav Petkov, Catalin Marinas, Christophe Leroy

[-- Attachment #1: Type: text/plain, Size: 20534 bytes --]

Hi Dmitry,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on c34f157421f6905e6b4a79a312e9175dce2bc607]

url:    https://github.com/0day-ci/linux/commits/Dmitry-Safonov/Add-generic-user_landing-tracking/20201109-090354
base:    c34f157421f6905e6b4a79a312e9175dce2bc607
config: riscv-allmodconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/c46ac7ddea192a97f9b0b3aa3536566a37389bec
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Dmitry-Safonov/Add-generic-user_landing-tracking/20201109-090354
        git checkout c46ac7ddea192a97f9b0b3aa3536566a37389bec
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/irqchip.h:15,
                    from arch/riscv/kernel/irq.c:9:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
       8 | #ifndef _ASM_RISCV_ELF_H
         | 
   arch/riscv/kernel/irq.c:19:13: warning: no previous prototype for 'init_IRQ' [-Wmissing-prototypes]
      19 | void __init init_IRQ(void)
         |             ^~~~~~~~
--
   In file included from include/linux/elf.h:6,
                    from arch/riscv/kernel/ptrace.c:15:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
       8 | #ifndef _ASM_RISCV_ELF_H
         | 
   arch/riscv/kernel/ptrace.c:140:15: warning: no previous prototype for 'do_syscall_trace_enter' [-Wmissing-prototypes]
     140 | __visible int do_syscall_trace_enter(struct pt_regs *regs)
         |               ^~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/ptrace.c:163:16: warning: no previous prototype for 'do_syscall_trace_exit' [-Wmissing-prototypes]
     163 | __visible void do_syscall_trace_exit(struct pt_regs *regs)
         |                ^~~~~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/kallsyms.h:13,
                    from include/linux/ftrace.h:11,
                    from include/linux/perf_event.h:49,
                    from include/linux/trace_events.h:10,
                    from include/trace/syscall.h:7,
                    from include/linux/syscalls.h:84,
                    from arch/riscv/kernel/signal.c:11:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
       8 | #ifndef _ASM_RISCV_ELF_H
         | 
   arch/riscv/kernel/signal.c:309:27: warning: no previous prototype for 'do_notify_resume' [-Wmissing-prototypes]
     309 | asmlinkage __visible void do_notify_resume(struct pt_regs *regs,
         |                           ^~~~~~~~~~~~~~~~
--
   In file included from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/kallsyms.h:13,
                    from include/linux/ftrace.h:11,
                    from include/linux/perf_event.h:49,
                    from include/linux/trace_events.h:10,
                    from include/trace/syscall.h:7,
                    from include/linux/syscalls.h:84,
                    from arch/riscv/kernel/syscall_table.c:8:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
       8 | #ifndef _ASM_RISCV_ELF_H
         | 
   arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init]
      14 | #define __SYSCALL(nr, call) [nr] = (call),
         |                                    ^
   include/uapi/asm-generic/unistd.h:29:37: note: in expansion of macro '__SYSCALL'
      29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
         |                                     ^~~~~~~~~
   include/uapi/asm-generic/unistd.h:34:1: note: in expansion of macro '__SC_COMP'
      34 | __SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup)
         | ^~~~~~~~~
   arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[0]')
      14 | #define __SYSCALL(nr, call) [nr] = (call),
         |                                    ^
   include/uapi/asm-generic/unistd.h:29:37: note: in expansion of macro '__SYSCALL'
      29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
         |                                     ^~~~~~~~~
   include/uapi/asm-generic/unistd.h:34:1: note: in expansion of macro '__SC_COMP'
      34 | __SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup)
         | ^~~~~~~~~
   arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init]
      14 | #define __SYSCALL(nr, call) [nr] = (call),
         |                                    ^
   include/uapi/asm-generic/unistd.h:36:1: note: in expansion of macro '__SYSCALL'
      36 | __SYSCALL(__NR_io_destroy, sys_io_destroy)
         | ^~~~~~~~~
   arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[1]')
      14 | #define __SYSCALL(nr, call) [nr] = (call),
         |                                    ^
   include/uapi/asm-generic/unistd.h:36:1: note: in expansion of macro '__SYSCALL'
      36 | __SYSCALL(__NR_io_destroy, sys_io_destroy)
         | ^~~~~~~~~
   arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init]
      14 | #define __SYSCALL(nr, call) [nr] = (call),
         |                                    ^
   include/uapi/asm-generic/unistd.h:29:37: note: in expansion of macro '__SYSCALL'
      29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
         |                                     ^~~~~~~~~
   include/uapi/asm-generic/unistd.h:38:1: note: in expansion of macro '__SC_COMP'
      38 | __SC_COMP(__NR_io_submit, sys_io_submit, compat_sys_io_submit)
         | ^~~~~~~~~
   arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[2]')
      14 | #define __SYSCALL(nr, call) [nr] = (call),
         |                                    ^
   include/uapi/asm-generic/unistd.h:29:37: note: in expansion of macro '__SYSCALL'
      29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
         |                                     ^~~~~~~~~
   include/uapi/asm-generic/unistd.h:38:1: note: in expansion of macro '__SC_COMP'
      38 | __SC_COMP(__NR_io_submit, sys_io_submit, compat_sys_io_submit)
         | ^~~~~~~~~
   arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init]
      14 | #define __SYSCALL(nr, call) [nr] = (call),
         |                                    ^
   include/uapi/asm-generic/unistd.h:40:1: note: in expansion of macro '__SYSCALL'
      40 | __SYSCALL(__NR_io_cancel, sys_io_cancel)
         | ^~~~~~~~~
   arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[3]')
      14 | #define __SYSCALL(nr, call) [nr] = (call),
         |                                    ^
   include/uapi/asm-generic/unistd.h:40:1: note: in expansion of macro '__SYSCALL'
      40 | __SYSCALL(__NR_io_cancel, sys_io_cancel)
         | ^~~~~~~~~
   arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init]
      14 | #define __SYSCALL(nr, call) [nr] = (call),
         |                                    ^
   include/uapi/asm-generic/unistd.h:22:34: note: in expansion of macro '__SYSCALL'
      22 | #define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _64)
         |                                  ^~~~~~~~~
   include/uapi/asm-generic/unistd.h:43:1: note: in expansion of macro '__SC_3264'
      43 | __SC_3264(__NR_io_getevents, sys_io_getevents_time32, sys_io_getevents)
         | ^~~~~~~~~
   arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[4]')
      14 | #define __SYSCALL(nr, call) [nr] = (call),
         |                                    ^
   include/uapi/asm-generic/unistd.h:22:34: note: in expansion of macro '__SYSCALL'
      22 | #define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _64)
         |                                  ^~~~~~~~~
   include/uapi/asm-generic/unistd.h:43:1: note: in expansion of macro '__SC_3264'
      43 | __SC_3264(__NR_io_getevents, sys_io_getevents_time32, sys_io_getevents)
         | ^~~~~~~~~
   arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init]
      14 | #define __SYSCALL(nr, call) [nr] = (call),
         |                                    ^
   include/uapi/asm-generic/unistd.h:48:1: note: in expansion of macro '__SYSCALL'
      48 | __SYSCALL(__NR_setxattr, sys_setxattr)
         | ^~~~~~~~~
   arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[5]')
      14 | #define __SYSCALL(nr, call) [nr] = (call),
         |                                    ^
   include/uapi/asm-generic/unistd.h:48:1: note: in expansion of macro '__SYSCALL'
      48 | __SYSCALL(__NR_setxattr, sys_setxattr)
         | ^~~~~~~~~
   arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init]
      14 | #define __SYSCALL(nr, call) [nr] = (call),
         |                                    ^
   include/uapi/asm-generic/unistd.h:50:1: note: in expansion of macro '__SYSCALL'
      50 | __SYSCALL(__NR_lsetxattr, sys_lsetxattr)
         | ^~~~~~~~~
   arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[6]')
      14 | #define __SYSCALL(nr, call) [nr] = (call),
--
   In file included from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/kallsyms.h:13,
                    from include/linux/ftrace.h:11,
                    from include/linux/perf_event.h:49,
                    from include/linux/trace_events.h:10,
                    from include/trace/syscall.h:7,
                    from include/linux/syscalls.h:84,
                    from arch/riscv/kernel/sys_riscv.c:8:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
       8 | #ifndef _ASM_RISCV_ELF_H
         | 
--
   In file included from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from arch/riscv/kernel/traps.c:16:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
       8 | #ifndef _ASM_RISCV_ELF_H
         | 
   arch/riscv/kernel/traps.c:92:15: warning: no previous prototype for 'do_trap_unknown' [-Wmissing-prototypes]
      92 | DO_ERROR_INFO(do_trap_unknown,
         |               ^~~~~~~~~~~~~~~
   arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
      87 | asmlinkage __visible void name(struct pt_regs *regs)   \
         |                           ^~~~
   arch/riscv/kernel/traps.c:94:15: warning: no previous prototype for 'do_trap_insn_misaligned' [-Wmissing-prototypes]
      94 | DO_ERROR_INFO(do_trap_insn_misaligned,
         |               ^~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
      87 | asmlinkage __visible void name(struct pt_regs *regs)   \
         |                           ^~~~
   arch/riscv/kernel/traps.c:96:15: warning: no previous prototype for 'do_trap_insn_fault' [-Wmissing-prototypes]
      96 | DO_ERROR_INFO(do_trap_insn_fault,
         |               ^~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
      87 | asmlinkage __visible void name(struct pt_regs *regs)   \
         |                           ^~~~
   arch/riscv/kernel/traps.c:98:15: warning: no previous prototype for 'do_trap_insn_illegal' [-Wmissing-prototypes]
      98 | DO_ERROR_INFO(do_trap_insn_illegal,
         |               ^~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
      87 | asmlinkage __visible void name(struct pt_regs *regs)   \
         |                           ^~~~
   arch/riscv/kernel/traps.c:100:15: warning: no previous prototype for 'do_trap_load_fault' [-Wmissing-prototypes]
     100 | DO_ERROR_INFO(do_trap_load_fault,
         |               ^~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
      87 | asmlinkage __visible void name(struct pt_regs *regs)   \
         |                           ^~~~
   arch/riscv/kernel/traps.c:103:15: warning: no previous prototype for 'do_trap_load_misaligned' [-Wmissing-prototypes]
     103 | DO_ERROR_INFO(do_trap_load_misaligned,
         |               ^~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
      87 | asmlinkage __visible void name(struct pt_regs *regs)   \
         |                           ^~~~
   arch/riscv/kernel/traps.c:105:15: warning: no previous prototype for 'do_trap_store_misaligned' [-Wmissing-prototypes]
     105 | DO_ERROR_INFO(do_trap_store_misaligned,
         |               ^~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
      87 | asmlinkage __visible void name(struct pt_regs *regs)   \
         |                           ^~~~
   arch/riscv/kernel/traps.c:127:15: warning: no previous prototype for 'do_trap_store_fault' [-Wmissing-prototypes]
     127 | DO_ERROR_INFO(do_trap_store_fault,
         |               ^~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
      87 | asmlinkage __visible void name(struct pt_regs *regs)   \
         |                           ^~~~
   arch/riscv/kernel/traps.c:129:15: warning: no previous prototype for 'do_trap_ecall_u' [-Wmissing-prototypes]
     129 | DO_ERROR_INFO(do_trap_ecall_u,
         |               ^~~~~~~~~~~~~~~
   arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
      87 | asmlinkage __visible void name(struct pt_regs *regs)   \
         |                           ^~~~
   arch/riscv/kernel/traps.c:131:15: warning: no previous prototype for 'do_trap_ecall_s' [-Wmissing-prototypes]
     131 | DO_ERROR_INFO(do_trap_ecall_s,
         |               ^~~~~~~~~~~~~~~
   arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
      87 | asmlinkage __visible void name(struct pt_regs *regs)   \
         |                           ^~~~
   arch/riscv/kernel/traps.c:133:15: warning: no previous prototype for 'do_trap_ecall_m' [-Wmissing-prototypes]
     133 | DO_ERROR_INFO(do_trap_ecall_m,
         |               ^~~~~~~~~~~~~~~
   arch/riscv/kernel/traps.c:87:27: note: in definition of macro 'DO_ERROR_INFO'
      87 | asmlinkage __visible void name(struct pt_regs *regs)   \
         |                           ^~~~
   arch/riscv/kernel/traps.c:146:27: warning: no previous prototype for 'do_trap_break' [-Wmissing-prototypes]
     146 | asmlinkage __visible void do_trap_break(struct pt_regs *regs)
         |                           ^~~~~~~~~~~~~
--
   In file included from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/kallsyms.h:13,
                    from arch/riscv/kernel/stacktrace.c:8:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
       8 | #ifndef _ASM_RISCV_ELF_H
         | 
   arch/riscv/kernel/stacktrace.c:24:14: warning: no previous prototype for 'walk_stackframe' [-Wmissing-prototypes]
      24 | void notrace walk_stackframe(struct task_struct *task, struct pt_regs *regs,
         |              ^~~~~~~~~~~~~~~
   arch/riscv/kernel/stacktrace.c: In function 'walk_stackframe':
   arch/riscv/kernel/stacktrace.c:34:3: warning: 'register' is not at beginning of declaration [-Wold-style-declaration]
      34 |   const register unsigned long current_sp = sp_in_global;
         |   ^~~~~
--
   In file included from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/kallsyms.h:13,
                    from include/linux/ftrace.h:11,
                    from arch/riscv/kernel/ftrace.c:8:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
       8 | #ifndef _ASM_RISCV_ELF_H
         | 
   arch/riscv/kernel/ftrace.c:158:6: warning: no previous prototype for 'prepare_ftrace_return' [-Wmissing-prototypes]
     158 | void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr,
         |      ^~~~~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/kallsyms.h:13,
                    from include/linux/ftrace.h:11,
                    from include/linux/perf_event.h:49,
                    from arch/riscv/kernel/perf_callchain.c:4:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
       8 | #ifndef _ASM_RISCV_ELF_H
         | 
   arch/riscv/kernel/perf_callchain.c:77:6: warning: no previous prototype for 'fill_callchain' [-Wmissing-prototypes]
      77 | bool fill_callchain(unsigned long pc, void *entry)
         |      ^~~~~~~~~~~~~~
--
   In file included from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/bpf.h:20,
                    from include/linux/bpf-cgroup.h:5,
                    from include/linux/cgroup-defs.h:22,
                    from include/linux/cgroup.h:28,
                    from include/linux/blk-cgroup.h:17,
                    from include/linux/writeback.h:14,
                    from include/linux/backing-dev.h:17,
                    from fs/btrfs/ctree.h:16,
                    from fs/btrfs/ctree.c:10:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
       8 | #ifndef _ASM_RISCV_ELF_H
         | 
   fs/btrfs/ctree.c: In function 'btrfs_realloc_node':
   fs/btrfs/ctree.c:1581:6: warning: variable 'parent_level' set but not used [-Wunused-but-set-variable]
    1581 |  int parent_level;
         |      ^~~~~~~~~~~~
--
   In file included from include/linux/elf.h:6,
                    from include/linux/module.h:18,
                    from include/linux/bpf.h:20,
                    from include/linux/bpf-cgroup.h:5,
                    from include/linux/cgroup-defs.h:22,
                    from include/linux/cgroup.h:28,
                    from include/linux/blk-cgroup.h:17,
                    from include/linux/writeback.h:14,
                    from include/linux/backing-dev.h:17,
                    from fs/btrfs/ctree.h:16,
                    from fs/btrfs/zstd.c:22:
>> arch/riscv/include/asm/elf.h:8: error: unterminated #ifndef
       8 | #ifndef _ASM_RISCV_ELF_H
         | 
   In file included from fs/btrfs/zstd.c:19:
   include/linux/zstd.h:798:21: warning: 'ZSTD_skippableHeaderSize' defined but not used [-Wunused-const-variable=]
     798 | static const size_t ZSTD_skippableHeaderSize = 8;
         |                     ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/zstd.h:796:21: warning: 'ZSTD_frameHeaderSize_max' defined but not used [-Wunused-const-variable=]
     796 | static const size_t ZSTD_frameHeaderSize_max = ZSTD_FRAMEHEADERSIZE_MAX;
         |                     ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/zstd.h:795:21: warning: 'ZSTD_frameHeaderSize_min' defined but not used [-Wunused-const-variable=]
     795 | static const size_t ZSTD_frameHeaderSize_min = ZSTD_FRAMEHEADERSIZE_MIN;
         |                     ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/zstd.h:794:21: warning: 'ZSTD_frameHeaderSize_prefix' defined but not used [-Wunused-const-variable=]
     794 | static const size_t ZSTD_frameHeaderSize_prefix = 5;
         |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +8 arch/riscv/include/asm/elf.h

2129a235c098960 Palmer Dabbelt 2017-07-10  @8  #ifndef _ASM_RISCV_ELF_H
2129a235c098960 Palmer Dabbelt 2017-07-10   9  #define _ASM_RISCV_ELF_H
2129a235c098960 Palmer Dabbelt 2017-07-10  10  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 67567 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-13  7:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20201108051730.2042693-3-dima@arista.com>
2020-11-13  6:58 ` [PATCH 02/19] elf: Move arch_setup_additional_pages() to generic elf.h kernel test robot
2020-11-13  7:01 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).