drivers/net/dsa/microchip/ksz8795_spi.c:87:34: warning: unused variable 'ksz8795_dt_ids'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1c52283265a462a100ae63ddf58b4e5884acde86
commit: 227d72063fccb2d19b30fb4197fba478514f7d83 dsa: simplify Kconfig symbols and dependencies
date: 10 months ago
config: s390-randconfig-c005-20220120 (https://download.01.org/0day-ci/archive/20220123/202201230139.E1dqQNmn-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f7b7138a62648f4019c55e4671682af1f851f295)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 227d72063fccb2d19b30fb4197fba478514f7d83
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash drivers/net/dsa/microchip/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
include/uapi/linux/swab.h:19:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x000000ffUL) << 24) | \
^
In file included from drivers/net/dsa/microchip/ksz8795_spi.c: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:13:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
^
In file included from drivers/net/dsa/microchip/ksz8795_spi.c: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:13:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
^
In file included from drivers/net/dsa/microchip/ksz8795_spi.c: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:13:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0xff000000UL) >> 24)))
^
In file included from drivers/net/dsa/microchip/ksz8795_spi.c: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:13:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
__fswab32(x))
^
In file included from drivers/net/dsa/microchip/ksz8795_spi.c: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:13:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
>> drivers/net/dsa/microchip/ksz8795_spi.c:87:34: warning: unused variable 'ksz8795_dt_ids' [-Wunused-const-variable]
static const struct of_device_id ksz8795_dt_ids[] = {
^
21 warnings generated.
vim +/ksz8795_dt_ids +87 drivers/net/dsa/microchip/ksz8795_spi.c
e66f840c08a237 Tristram Ha 2019-07-29 86
e66f840c08a237 Tristram Ha 2019-07-29 @87 static const struct of_device_id ksz8795_dt_ids[] = {
e66f840c08a237 Tristram Ha 2019-07-29 88 { .compatible = "microchip,ksz8765" },
e66f840c08a237 Tristram Ha 2019-07-29 89 { .compatible = "microchip,ksz8794" },
e66f840c08a237 Tristram Ha 2019-07-29 90 { .compatible = "microchip,ksz8795" },
e66f840c08a237 Tristram Ha 2019-07-29 91 {},
e66f840c08a237 Tristram Ha 2019-07-29 92 };
e66f840c08a237 Tristram Ha 2019-07-29 93 MODULE_DEVICE_TABLE(of, ksz8795_dt_ids);
e66f840c08a237 Tristram Ha 2019-07-29 94
:::::: The code at line 87 was first introduced by commit
:::::: e66f840c08a237acfbb981592047b53e7411012f net: dsa: ksz: Add Microchip KSZ8795 DSA driver
:::::: TO: Tristram Ha <Tristram.Ha(a)microchip.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
Re: [PATCH] Fixed: Misaligned memory access. Fixed pointer comparison.
by kernel test robot
Hi "Michael,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.16 next-20220121]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Michael-T-Kloos/Fixed-Misaligned...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2c271fe77d52a0555161926c232cd5bc07178b39
config: riscv-randconfig-r021-20220120 (https://download.01.org/0day-ci/archive/20220123/202201230123.GN7Kvrlq-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
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/c1930afcc76babc4e2313f67d0fe103a2...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Michael-T-Kloos/Fixed-Misaligned-memory-access-Fixed-pointer-comparison/20220121-074148
git checkout c1930afcc76babc4e2313f67d0fe103a26f07712
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/riscv/lib/memmove.S:113:16: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo modifier or an integer in the range [-2048, 2047]
1: jalr zero, (t0)
^
vim +113 arch/riscv/lib/memmove.S
8
9 SYM_FUNC_START(__memmove)
10 SYM_FUNC_START_ALIAS(memmove)
11 /*
12 * Returns
13 * a0 - dest
14 *
15 * Parameters
16 * a0 - Inclusive first byte of dest
17 * a1 - Inclusive first byte of src
18 * a2 - Length of copy
19 *
20 * Because the return matches the parameter register a0,
21 * we will not clobber or modify that register.
22 */
23
24 /* Return if nothing to do */
25 beq a0, a1, exit_memmove
26 beqz a2, exit_memmove
27
28 /*
29 * Register Uses
30 * a3 - Inclusive first multibyte of src
31 * a4 - Non-inclusive last multibyte of src
32 * a5 - Non-inclusive last byte of src
33 *
34 * During the copy
35 * Forward Copy: a1 - Index counter of src
36 * Reverse Copy: a5 - Index counter of src
37 * Both Copy Modes: t2 - Index counter of dest
38 * Both Copy Modes: t1 - Temporary for load-store
39 * Both Copy Modes: t0 - Link
40 */
41
42 /*
43 * Solve for last byte now. We will solve the rest when
44 * they are needed for the copy because either byte copy
45 * does not require any of the others (Wasted effort if
46 * byte copy gets used) or we do not yet have enough
47 * information to solve them.
48 */
49 add a5, a1, a2
50
51 /*
52 * Byte copy if copying less than SZREG bytes.
53 * This can cause problems with the bulk copy
54 * implementation below and is small enough not
55 * to bother.
56 */
57 andi t0, a2, -SZREG
58 beqz t0, byte_copy
59
60 /* Determine the maximum granularity of co-alignment. */
61 xor t0, a0, a1
62 #if SZREG >= 8
63 andi t1, t0, 0x7
64 beqz t1, doubleword_copy
65 #endif
66 andi t1, t0, 0x3
67 beqz t1, word_copy
68 andi t1, t0, 0x1
69 beqz t1, halfword_copy
70 /* Fall through to byte copy if nothing larger is found. */
71
72 byte_copy:
73 bltu a1, a0, byte_copy_reverse
74
75 byte_copy_forward:
76 add t2, a0, zero
77 byte_copy_fw_callin:
78 beq a1, a5, exit_memmove
79 lb t1, (a1)
80 sb t1, (t2)
81 addi a1, a1, 1
82 addi t2, t2, 1
83 j byte_copy_fw_callin
84
85 byte_copy_reverse:
86 add t2, a0, a2
87 byte_copy_rv_callin:
88 beq a1, a5, exit_memmove
89 addi a5, a5, -1
90 addi t2, t2, -1
91 lb t1, (a5)
92 sb t1, (t2)
93 j byte_copy_rv_callin
94
95 exit_memmove:
96 ret
97
98 copy_bytes_until_aligned_fw:
99 beq a1, a3, 1f /* Reuse the return from the other copy loop */
100 lb t1, (a1)
101 sb t1, (t2)
102 addi a1, a1, 1
103 addi t2, t2, 1
104 j copy_bytes_until_aligned_fw
105
106 copy_bytes_until_aligned_rv:
107 beq a4, a5, 1f
108 addi a5, a5, -1
109 addi t2, t2, -1
110 lb t1, (a5)
111 sb t1, (t2)
112 j copy_bytes_until_aligned_rv
> 113 1: jalr zero, (t0) /* Return */
114
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
[cxl:preview 45/53] drivers/cxl/core/port.c:853:26: error: use of undeclared identifier 'CXL_REGLOC_RBI_COMPONENT'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head: e675fabdbbcdb6e32dba688a20fb0bd42e0e2d5d
commit: bdcd1df24905ea3d8196ef7e62b077b136d18ab1 [45/53] cxl/core/port: Add switch port enumeration
config: mips-randconfig-c004-20220120 (https://download.01.org/0day-ci/archive/20220123/202201230041.j2B2ds4Z-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=bd...
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl preview
git checkout bdcd1df24905ea3d8196ef7e62b077b136d18ab1
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/cxl/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/cxl/core/port.c:853:26: error: use of undeclared identifier 'CXL_REGLOC_RBI_COMPONENT'
cxl_find_regblock(pdev, CXL_REGLOC_RBI_COMPONENT, &map);
^
>> drivers/cxl/core/port.c:854:9: error: implicit declaration of function 'cxl_regmap_to_base' [-Werror,-Wimplicit-function-declaration]
return cxl_regmap_to_base(pdev, &map);
^
drivers/cxl/core/port.c:998:18: warning: no previous prototype for function 'cxl_mem_find_port' [-Wmissing-prototypes]
struct cxl_port *cxl_mem_find_port(struct cxl_memdev *cxlmd)
^
drivers/cxl/core/port.c:998:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct cxl_port *cxl_mem_find_port(struct cxl_memdev *cxlmd)
^
static
1 warning and 2 errors generated.
vim +/CXL_REGLOC_RBI_COMPONENT +853 drivers/cxl/core/port.c
838
839 static resource_size_t find_component_registers(struct device *dev)
840 {
841 struct cxl_register_map map;
842 struct pci_dev *pdev;
843
844 /*
845 * Theoretically, CXL component registers can be hosted on a
846 * non-PCI device, in practice, only cxl_test hits this case.
847 */
848 if (!dev_is_pci(dev))
849 return CXL_RESOURCE_NONE;
850
851 pdev = to_pci_dev(dev);
852
> 853 cxl_find_regblock(pdev, CXL_REGLOC_RBI_COMPONENT, &map);
> 854 return cxl_regmap_to_base(pdev, &map);
855 }
856
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
dtbs_check: arch/arm/boot/dts/stm32f429-disco.dt.yaml: ethernet@40028000: Unevaluated properties are not allowed ('interrupts', 'interrupt-names', 'snps,pbl', 'snps,mixed-burst' were unexpected)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1d1df41c5a33359a00e919d54eaebfb789711fdc
commit: 8650381f33fba33e162db2266ce74f1b87a2f71c dt-bindings: net: Add missing properties used in examples
date: 13 days ago
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce: make ARCH=arm dtbs_check
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
dtcheck warnings: (new ones prefixed by >>)
arch/arm/boot/dts/stm32f429-disco.dt.yaml:0:0: /timer@e000e010: failed to match any schema with compatible: ['arm,armv7m-systick']
arch/arm/boot/dts/stm32f429-disco.dt.yaml:0:0: /soc/i2c@40005c00/stmpe811@41: failed to match any schema with compatible: ['st,stmpe811']
arch/arm/boot/dts/stm32f429-disco.dt.yaml:0:0: /soc/i2c@40005c00/stmpe811@41/stmpe_touchscreen: failed to match any schema with compatible: ['st,stmpe-ts']
arch/arm/boot/dts/stm32f429-disco.dt.yaml: l3gd20@0: 'spi-max-frequency' does not match any of the regexes: 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/iio/st,st-sensors.yaml
arch/arm/boot/dts/stm32f429-disco.dt.yaml: display@1: compatible: ['st,sf-tc240t-9370-t'] is too short
From schema: Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml
arch/arm/boot/dts/stm32f429-disco.dt.yaml:0:0: /soc/crc@40023000: failed to match any schema with compatible: ['st,stm32f4-crc']
arch/arm/boot/dts/stm32f429-disco.dt.yaml:0:0: /soc/rcc@40023800: failed to match any schema with compatible: ['st,stm32f42xx-rcc', 'st,stm32-rcc']
arch/arm/boot/dts/stm32f429-disco.dt.yaml:0:0: /soc/rcc@40023800: failed to match any schema with compatible: ['st,stm32f42xx-rcc', 'st,stm32-rcc']
>> arch/arm/boot/dts/stm32f429-disco.dt.yaml: ethernet@40028000: Unevaluated properties are not allowed ('interrupts', 'interrupt-names', 'snps,pbl', 'snps,mixed-burst' were unexpected)
From schema: Documentation/devicetree/bindings/net/stm32-dwmac.yaml
--
arch/arm/boot/dts/stm32f469-disco.dt.yaml:0:0: /interrupt-controller@e000e100: failed to match any schema with compatible: ['arm,armv7m-nvic']
arch/arm/boot/dts/stm32f469-disco.dt.yaml:0:0: /timer@e000e010: failed to match any schema with compatible: ['arm,armv7m-systick']
arch/arm/boot/dts/stm32f469-disco.dt.yaml: display-controller@40016800: port:endpoint@0: 'reg' is a required property
From schema: Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml
arch/arm/boot/dts/stm32f469-disco.dt.yaml:0:0: /soc/crc@40023000: failed to match any schema with compatible: ['st,stm32f4-crc']
arch/arm/boot/dts/stm32f469-disco.dt.yaml:0:0: /soc/rcc@40023800: failed to match any schema with compatible: ['st,stm32f469-rcc', 'st,stm32f42xx-rcc', 'st,stm32-rcc']
arch/arm/boot/dts/stm32f469-disco.dt.yaml:0:0: /soc/rcc@40023800: failed to match any schema with compatible: ['st,stm32f469-rcc', 'st,stm32f42xx-rcc', 'st,stm32-rcc']
arch/arm/boot/dts/stm32f469-disco.dt.yaml:0:0: /soc/rcc@40023800: failed to match any schema with compatible: ['st,stm32f469-rcc', 'st,stm32f42xx-rcc', 'st,stm32-rcc']
>> arch/arm/boot/dts/stm32f469-disco.dt.yaml: ethernet@40028000: Unevaluated properties are not allowed ('interrupts', 'interrupt-names', 'snps,pbl', 'snps,mixed-burst' were unexpected)
From schema: Documentation/devicetree/bindings/net/stm32-dwmac.yaml
--
>> arch/arm/boot/dts/stm32mp157a-iot-box.dt.yaml: ethernet@5800a000: Unevaluated properties are not allowed ('interrupts-extended', 'interrupt-names', 'snps,mixed-burst', 'snps,pbl', 'snps,en-tx-lpi-clockgating', 'snps,axi-config', 'snps,tso', 'stmmac-axi-config' were unexpected)
From schema: Documentation/devicetree/bindings/net/stm32-dwmac.yaml
arch/arm/boot/dts/stm32mp157a-iot-box.dt.yaml: led: led2:linux,default-trigger:0: 'mmc0' is not one of ['backlight', 'default-on', 'heartbeat', 'disk-activity', 'ide-disk', 'timer', 'pattern']
From schema: Documentation/devicetree/bindings/leds/leds-gpio.yaml
arch/arm/boot/dts/stm32mp157a-iot-box.dt.yaml: led: led3:linux,default-trigger:0: 'mmc1' is not one of ['backlight', 'default-on', 'heartbeat', 'disk-activity', 'ide-disk', 'timer', 'pattern']
From schema: Documentation/devicetree/bindings/leds/leds-gpio.yaml
arch/arm/boot/dts/stm32mp157a-iot-box.dt.yaml: led: led4:linux,default-trigger:0: 'none' is not one of ['backlight', 'default-on', 'heartbeat', 'disk-activity', 'ide-disk', 'timer', 'pattern']
From schema: Documentation/devicetree/bindings/leds/leds-gpio.yaml
--
>> arch/arm/boot/dts/stm32mp157a-microgea-stm32mp1-microdev2.0.dt.yaml: ethernet@5800a000: Unevaluated properties are not allowed ('interrupts-extended', 'interrupt-names', 'snps,mixed-burst', 'snps,pbl', 'snps,en-tx-lpi-clockgating', 'snps,axi-config', 'snps,tso', 'stmmac-axi-config' were unexpected)
From schema: Documentation/devicetree/bindings/net/stm32-dwmac.yaml
--
>> arch/arm/boot/dts/stm32mp157a-microgea-stm32mp1-microdev2.0-of7.dt.yaml: ethernet@5800a000: Unevaluated properties are not allowed ('interrupts-extended', 'interrupt-names', 'snps,mixed-burst', 'snps,pbl', 'snps,en-tx-lpi-clockgating', 'snps,axi-config', 'snps,tso', 'stmmac-axi-config' were unexpected)
From schema: Documentation/devicetree/bindings/net/stm32-dwmac.yaml
--
>> arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-ctouch2.dt.yaml: ethernet@5800a000: Unevaluated properties are not allowed ('interrupts-extended', 'interrupt-names', 'snps,mixed-burst', 'snps,pbl', 'snps,en-tx-lpi-clockgating', 'snps,axi-config', 'snps,tso', 'stmmac-axi-config' were unexpected)
From schema: Documentation/devicetree/bindings/net/stm32-dwmac.yaml
--
>> arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-edimm2.2.dt.yaml: ethernet@5800a000: Unevaluated properties are not allowed ('interrupts-extended', 'interrupt-names', 'snps,mixed-burst', 'snps,pbl', 'snps,en-tx-lpi-clockgating', 'snps,axi-config', 'snps,tso', 'stmmac-axi-config' were unexpected)
From schema: Documentation/devicetree/bindings/net/stm32-dwmac.yaml
--
>> arch/arm/boot/dts/stm32mp157a-stinger96.dt.yaml: ethernet@5800a000: Unevaluated properties are not allowed ('interrupts-extended', 'interrupt-names', 'snps,mixed-burst', 'snps,pbl', 'snps,en-tx-lpi-clockgating', 'snps,axi-config', 'snps,tso', 'stmmac-axi-config' were unexpected)
From schema: Documentation/devicetree/bindings/net/stm32-dwmac.yaml
arch/arm/boot/dts/stm32mp157a-stinger96.dt.yaml: led: led2:linux,default-trigger:0: 'mmc0' is not one of ['backlight', 'default-on', 'heartbeat', 'disk-activity', 'ide-disk', 'timer', 'pattern']
From schema: Documentation/devicetree/bindings/leds/leds-gpio.yaml
arch/arm/boot/dts/stm32mp157a-stinger96.dt.yaml: led: led3:linux,default-trigger:0: 'mmc1' is not one of ['backlight', 'default-on', 'heartbeat', 'disk-activity', 'ide-disk', 'timer', 'pattern']
From schema: Documentation/devicetree/bindings/leds/leds-gpio.yaml
arch/arm/boot/dts/stm32mp157a-stinger96.dt.yaml: led: led4:linux,default-trigger:0: 'none' is not one of ['backlight', 'default-on', 'heartbeat', 'disk-activity', 'ide-disk', 'timer', 'pattern']
From schema: Documentation/devicetree/bindings/leds/leds-gpio.yaml
--
>> arch/arm/boot/dts/stm32mp157c-ed1.dt.yaml: ethernet@5800a000: Unevaluated properties are not allowed ('interrupts-extended', 'interrupt-names', 'snps,mixed-burst', 'snps,pbl', 'snps,en-tx-lpi-clockgating', 'snps,axi-config', 'snps,tso', 'stmmac-axi-config' were unexpected)
From schema: Documentation/devicetree/bindings/net/stm32-dwmac.yaml
arch/arm/boot/dts/stm32mp157c-ed1.dt.yaml: stpmic@33: regulators: 'vref_ddr-supply' does not match any of the regexes: '^(buck[1-4]|ldo[1-6]|boost|pwr_sw[1-2])-supply$', '^(buck[1-4]|ldo[1-6]|boost|vref_ddr|pwr_sw[1-2])$', '^buck[1-4]$', '^ldo[1-2,5-6]$', '^pwr_sw[1-2]$', 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/mfd/st,stpmic1.yaml
arch/arm/boot/dts/stm32mp157c-ed1.dt.yaml: gpu@59000000: 'contiguous-area' does not match any of the regexes: 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/gpu/vivante,gc.yaml
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
[intel-lts:5.4/yocto 13550/20394] include/linux/stddef.h:8:14: warning: initialization of 'long unsigned int' from 'void *' makes integer from pointer without a cast
by kernel test robot
Hi Raymond,
FYI, the error/warning still remains.
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 36f93ff941f127f4137ab369aecbdd995fb58c66
commit: e3b73159b8cfd2c940dd6e55702754c16f1f3923 [13550/20394] mfd: intel-ehl-gpio: Introduce MFD framework to PSE GPIO/TGPIO
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220122/202201222346.ttrLsdym-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/linux-intel-lts/commit/e3b73159b8cfd2c940dd6e557...
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.4/yocto
git checkout e3b73159b8cfd2c940dd6e55702754c16f1f3923
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/mfd/ drivers/ptp/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/mfd/intel-ehl-gpio.c: In function 'intel_ehl_pse_gpio_mfd_suspend':
drivers/mfd/intel-ehl-gpio.c:135:6: warning: unused variable 'i' [-Wunused-variable]
135 | int i = 0;
| ^
drivers/mfd/intel-ehl-gpio.c: In function 'intel_ehl_pse_gpio_mfd_runtime_suspend':
drivers/mfd/intel-ehl-gpio.c:184:6: warning: unused variable 'i' [-Wunused-variable]
184 | int i = 0;
| ^
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/limits.h:6,
from include/linux/kernel.h:7,
from drivers/mfd/intel-ehl-gpio.c:14:
drivers/mfd/intel-ehl-gpio.c: At top level:
>> include/linux/stddef.h:8:14: warning: initialization of 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
8 | #define NULL ((void *)0)
| ^
drivers/mfd/intel-ehl-gpio.c:236:32: note: in expansion of macro 'NULL'
236 | { PCI_VDEVICE(INTEL, 0x4b88), NULL},
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for 'intel_ehl_pse_gpio_mfd_ids[0].driver_data')
8 | #define NULL ((void *)0)
| ^
drivers/mfd/intel-ehl-gpio.c:236:32: note: in expansion of macro 'NULL'
236 | { PCI_VDEVICE(INTEL, 0x4b88), NULL},
| ^~~~
>> include/linux/stddef.h:8:14: warning: initialization of 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
8 | #define NULL ((void *)0)
| ^
drivers/mfd/intel-ehl-gpio.c:237:32: note: in expansion of macro 'NULL'
237 | { PCI_VDEVICE(INTEL, 0x4b89), NULL},
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for 'intel_ehl_pse_gpio_mfd_ids[1].driver_data')
8 | #define NULL ((void *)0)
| ^
drivers/mfd/intel-ehl-gpio.c:237:32: note: in expansion of macro 'NULL'
237 | { PCI_VDEVICE(INTEL, 0x4b89), NULL},
| ^~~~
vim +8 include/linux/stddef.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 6
^1da177e4c3f41 Linus Torvalds 2005-04-16 7 #undef NULL
^1da177e4c3f41 Linus Torvalds 2005-04-16 @8 #define NULL ((void *)0)
6e218287432472 Richard Knutsson 2006-09-30 9
:::::: The code at line 8 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
[ti:ti-rt-linux-5.10.y 9823/9999] drivers/media/platform/vxe-vxd/decoder/core.c:311:26: error: initialization of 'int (*)(struct core_stream_context *, struct vdecdd_seq_resint *, struct vxdio_mempool, struct core_seq_resinfo *)' from incompatible pointer type 'unsigned char (*)(struct c...
by kernel test robot
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: d19d8f329cd20e1e2d14f30ed08d6a1164e6e9d9
commit: a33d1db14eb5c72031aaefc0bfbad114e3415a02 [9823/9999] net/socket: Fix compilation error on non-ARM builds
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20220122/202201222322.Av18AQiP-lk...)
compiler: mips-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout a33d1db14eb5c72031aaefc0bfbad114e3415a02
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
include/linux/stddef.h:8:14: note: (near initialization for 'std_specific_ops[10].<anonymous>')
8 | #define NULL ((void *)0)
| ^
drivers/media/platform/vxe-vxd/decoder/core.c:304:29: note: in expansion of macro 'NULL'
304 | /* SORENSON */ { NULL, NULL, NULL, NULL, NULL, NULL},
| ^~~~
include/linux/stddef.h:8:14: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
8 | #define NULL ((void *)0)
| ^
drivers/media/platform/vxe-vxd/decoder/core.c:304:41: note: in expansion of macro 'NULL'
304 | /* SORENSON */ { NULL, NULL, NULL, NULL, NULL, NULL},
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for 'std_specific_ops[10]')
8 | #define NULL ((void *)0)
| ^
drivers/media/platform/vxe-vxd/decoder/core.c:304:41: note: in expansion of macro 'NULL'
304 | /* SORENSON */ { NULL, NULL, NULL, NULL, NULL, NULL},
| ^~~~
include/linux/stddef.h:8:14: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
8 | #define NULL ((void *)0)
| ^
drivers/media/platform/vxe-vxd/decoder/core.c:304:52: note: in expansion of macro 'NULL'
304 | /* SORENSON */ { NULL, NULL, NULL, NULL, NULL, NULL},
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for 'std_specific_ops[10]')
8 | #define NULL ((void *)0)
| ^
drivers/media/platform/vxe-vxd/decoder/core.c:304:52: note: in expansion of macro 'NULL'
304 | /* SORENSON */ { NULL, NULL, NULL, NULL, NULL, NULL},
| ^~~~
include/linux/stddef.h:8:14: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
8 | #define NULL ((void *)0)
| ^
drivers/media/platform/vxe-vxd/decoder/core.c:304:60: note: in expansion of macro 'NULL'
304 | /* SORENSON */ { NULL, NULL, NULL, NULL, NULL, NULL},
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for 'std_specific_ops[10]')
8 | #define NULL ((void *)0)
| ^
drivers/media/platform/vxe-vxd/decoder/core.c:304:60: note: in expansion of macro 'NULL'
304 | /* SORENSON */ { NULL, NULL, NULL, NULL, NULL, NULL},
| ^~~~
include/linux/stddef.h:8:14: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
8 | #define NULL ((void *)0)
| ^
drivers/media/platform/vxe-vxd/decoder/core.c:304:67: note: in expansion of macro 'NULL'
304 | /* SORENSON */ { NULL, NULL, NULL, NULL, NULL, NULL},
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for 'std_specific_ops[10]')
8 | #define NULL ((void *)0)
| ^
drivers/media/platform/vxe-vxd/decoder/core.c:304:67: note: in expansion of macro 'NULL'
304 | /* SORENSON */ { NULL, NULL, NULL, NULL, NULL, NULL},
| ^~~~
include/linux/stddef.h:8:14: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
8 | #define NULL ((void *)0)
| ^
drivers/media/platform/vxe-vxd/decoder/core.c:304:78: note: in expansion of macro 'NULL'
304 | /* SORENSON */ { NULL, NULL, NULL, NULL, NULL, NULL},
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for 'std_specific_ops[10]')
8 | #define NULL ((void *)0)
| ^
drivers/media/platform/vxe-vxd/decoder/core.c:304:78: note: in expansion of macro 'NULL'
304 | /* SORENSON */ { NULL, NULL, NULL, NULL, NULL, NULL},
| ^~~~
drivers/media/platform/vxe-vxd/decoder/core.c:306:26: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
306 | /* HEVC */ { core_alloc_hevc_specific_pict_buffers,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/vxe-vxd/decoder/core.c:306:26: note: (near initialization for 'std_specific_ops[11]')
drivers/media/platform/vxe-vxd/decoder/core.c:306:26: error: invalid initializer
drivers/media/platform/vxe-vxd/decoder/core.c:306:26: note: (near initialization for 'std_specific_ops[11].<anonymous>')
drivers/media/platform/vxe-vxd/decoder/core.c:307:26: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
307 | core_free_hevc_picture_resource,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/vxe-vxd/decoder/core.c:307:26: note: (near initialization for 'std_specific_ops[11]')
drivers/media/platform/vxe-vxd/decoder/core.c:307:26: error: initialization of 'int (*)(struct core_stream_context *, const struct vdec_comsequ_hdrinfo *, struct vdec_pict_size *, struct core_pict_bufsize_info *, struct core_seq_resinfo *, unsigned char *)' from incompatible pointer type 'int (*)(struct core_stream_context *, struct vdecdd_pict_resint *)' [-Werror=incompatible-pointer-types]
drivers/media/platform/vxe-vxd/decoder/core.c:307:26: note: (near initialization for 'std_specific_ops[11].bufs_get_size')
drivers/media/platform/vxe-vxd/decoder/core.c:308:26: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
308 | core_alloc_hevc_specific_seq_buffers,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/vxe-vxd/decoder/core.c:308:26: note: (near initialization for 'std_specific_ops[11]')
drivers/media/platform/vxe-vxd/decoder/core.c:308:26: error: initialization of 'unsigned char (*)(struct core_pict_resinfo *, struct core_pict_resinfo *, struct core_seq_resinfo *, struct core_seq_resinfo *)' from incompatible pointer type 'int (*)(struct core_stream_context *, struct vdecdd_seq_resint *, struct vxdio_mempool, struct core_seq_resinfo *)' [-Werror=incompatible-pointer-types]
drivers/media/platform/vxe-vxd/decoder/core.c:308:26: note: (near initialization for 'std_specific_ops[11].is_stream_resource_suitable')
drivers/media/platform/vxe-vxd/decoder/core.c:309:26: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
309 | core_free_hevc_sequence_resource,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/vxe-vxd/decoder/core.c:309:26: note: (near initialization for 'std_specific_ops[11]')
drivers/media/platform/vxe-vxd/decoder/core.c:309:26: error: initialization of 'int (*)(struct core_stream_context *, struct vdecdd_pict_resint *, struct vxdio_mempool, struct core_pict_resinfo *)' from incompatible pointer type 'int (*)(struct core_stream_context *, struct vdecdd_seq_resint *)' [-Werror=incompatible-pointer-types]
drivers/media/platform/vxe-vxd/decoder/core.c:309:26: note: (near initialization for 'std_specific_ops[11].alloc_picture_buffers')
drivers/media/platform/vxe-vxd/decoder/core.c:310:26: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
310 | core_hevc_bufs_get_size,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/vxe-vxd/decoder/core.c:310:26: note: (near initialization for 'std_specific_ops[11]')
drivers/media/platform/vxe-vxd/decoder/core.c:310:26: error: initialization of 'int (*)(struct core_stream_context *, struct vdecdd_pict_resint *)' from incompatible pointer type 'int (*)(struct core_stream_context *, const struct vdec_comsequ_hdrinfo *, struct vdec_pict_size *, struct core_pict_bufsize_info *, struct core_seq_resinfo *, unsigned char *)' [-Werror=incompatible-pointer-types]
drivers/media/platform/vxe-vxd/decoder/core.c:310:26: note: (near initialization for 'std_specific_ops[11].free_picture_resource')
drivers/media/platform/vxe-vxd/decoder/core.c:311:26: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
311 | core_is_hevc_stream_resource_suitable},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/vxe-vxd/decoder/core.c:311:26: note: (near initialization for 'std_specific_ops[11]')
>> drivers/media/platform/vxe-vxd/decoder/core.c:311:26: error: initialization of 'int (*)(struct core_stream_context *, struct vdecdd_seq_resint *, struct vxdio_mempool, struct core_seq_resinfo *)' from incompatible pointer type 'unsigned char (*)(struct core_pict_resinfo *, struct core_pict_resinfo *, struct core_seq_resinfo *, struct core_seq_resinfo *)' [-Werror=incompatible-pointer-types]
drivers/media/platform/vxe-vxd/decoder/core.c:311:26: note: (near initialization for 'std_specific_ops[11].alloc_sequence_buffers')
In file included from drivers/media/platform/vxe-vxd/decoder/vxd_props.h:19,
from drivers/media/platform/vxe-vxd/decoder/decoder.h:29,
from drivers/media/platform/vxe-vxd/decoder/core.h:20,
from drivers/media/platform/vxe-vxd/decoder/core.c:16:
drivers/media/platform/vxe-vxd/common/imgmmu.h:65:28: warning: 'VIRT_DIR_IDX_MASK' defined but not used [-Wunused-const-variable=]
65 | static const unsigned long VIRT_DIR_IDX_MASK = (~((1 << MMU_DIR_SHIFT) - 1));
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/vxe-vxd/common/imgmmu.h:62:28: warning: 'VIRT_PAGE_TBL_MASK' defined but not used [-Wunused-const-variable=]
62 | static const unsigned long VIRT_PAGE_TBL_MASK =
| ^~~~~~~~~~~~~~~~~~
drivers/media/platform/vxe-vxd/common/imgmmu.h:60:28: warning: 'VIRT_PAGE_OFF_MASK' defined but not used [-Wunused-const-variable=]
60 | static const unsigned long VIRT_PAGE_OFF_MASK = ((1 << MMU_PAGE_SHIFT) - 1);
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +311 drivers/media/platform/vxe-vxd/decoder/core.c
ac39bb1fd9f20d Sidraya 2021-11-02 276
ac39bb1fd9f20d Sidraya 2021-11-02 277 static int
ac39bb1fd9f20d Sidraya 2021-11-02 278 core_common_bufs_getsize(struct core_stream_context *core_str_ctx,
ac39bb1fd9f20d Sidraya 2021-11-02 279 const struct vdec_comsequ_hdrinfo *comseq_hdrinfo,
ac39bb1fd9f20d Sidraya 2021-11-02 280 struct vdec_pict_size *max_pict_size,
ac39bb1fd9f20d Sidraya 2021-11-02 281 struct core_pict_bufsize_info *size_info,
ac39bb1fd9f20d Sidraya 2021-11-02 282 struct core_seq_resinfo *seq_res_info, unsigned char *res_needed);
ac39bb1fd9f20d Sidraya 2021-11-02 283
ac39bb1fd9f20d Sidraya 2021-11-02 284 static struct core_std_spec_operations std_specific_ops[VDEC_STD_MAX - 1] = {
ac39bb1fd9f20d Sidraya 2021-11-02 285 /* AllocPicture FreePicture AllocSeq FreeSeq BufsGetSize IsStreamResourceSuitable */
ac39bb1fd9f20d Sidraya 2021-11-02 286 /* MPEG2 */ { NULL, NULL, NULL, NULL, NULL, NULL},
ac39bb1fd9f20d Sidraya 2021-11-02 287 /* MPEG4 */ { NULL, NULL, NULL, NULL, NULL, NULL},
ac39bb1fd9f20d Sidraya 2021-11-02 288 /* H263 */ { NULL, NULL, NULL, NULL, NULL, NULL},
ac39bb1fd9f20d Sidraya 2021-11-02 289
ac39bb1fd9f20d Sidraya 2021-11-02 290 /* H264 */ { NULL, NULL, NULL, NULL, core_common_bufs_getsize, NULL},
ac39bb1fd9f20d Sidraya 2021-11-02 291
ac39bb1fd9f20d Sidraya 2021-11-02 292 /* VC1 */ { NULL, NULL, NULL, NULL, NULL, NULL},
ac39bb1fd9f20d Sidraya 2021-11-02 293
ac39bb1fd9f20d Sidraya 2021-11-02 294 /* AVS */ { NULL, NULL, NULL, NULL, NULL, NULL},
ac39bb1fd9f20d Sidraya 2021-11-02 295
ac39bb1fd9f20d Sidraya 2021-11-02 296 /* REAL */ { NULL, NULL, NULL, NULL, NULL, NULL},
ac39bb1fd9f20d Sidraya 2021-11-02 297
ac39bb1fd9f20d Sidraya 2021-11-02 298 /* JPEG */ { NULL, NULL, NULL, NULL, NULL, NULL},
ac39bb1fd9f20d Sidraya 2021-11-02 299
ac39bb1fd9f20d Sidraya 2021-11-02 300 /* VP6 */ { NULL, NULL, NULL, NULL, NULL, NULL},
ac39bb1fd9f20d Sidraya 2021-11-02 301
ac39bb1fd9f20d Sidraya 2021-11-02 302 /* VP8 */ { NULL, NULL, NULL, NULL, NULL, NULL},
ac39bb1fd9f20d Sidraya 2021-11-02 303
ac39bb1fd9f20d Sidraya 2021-11-02 304 /* SORENSON */ { NULL, NULL, NULL, NULL, NULL, NULL},
ac39bb1fd9f20d Sidraya 2021-11-02 305 #ifdef HAS_HEVC
ac39bb1fd9f20d Sidraya 2021-11-02 306 /* HEVC */ { core_alloc_hevc_specific_pict_buffers,
ac39bb1fd9f20d Sidraya 2021-11-02 307 core_free_hevc_picture_resource,
ac39bb1fd9f20d Sidraya 2021-11-02 308 core_alloc_hevc_specific_seq_buffers,
ac39bb1fd9f20d Sidraya 2021-11-02 309 core_free_hevc_sequence_resource,
ac39bb1fd9f20d Sidraya 2021-11-02 310 core_hevc_bufs_get_size,
ac39bb1fd9f20d Sidraya 2021-11-02 @311 core_is_hevc_stream_resource_suitable},
ac39bb1fd9f20d Sidraya 2021-11-02 312 #else
ac39bb1fd9f20d Sidraya 2021-11-02 313 /* HEVC */ { NULL, NULL, NULL, NULL, NULL, NULL},
ac39bb1fd9f20d Sidraya 2021-11-02 314 #endif
ac39bb1fd9f20d Sidraya 2021-11-02 315 };
ac39bb1fd9f20d Sidraya 2021-11-02 316
:::::: The code at line 311 was first introduced by commit
:::::: ac39bb1fd9f20d9cd36801758ae378d0af521184 v4l:vxd-dec:Decoder Core Component
:::::: TO: Sidraya <sidraya.bj(a)pathpartnertech.com>
:::::: CC: Praneeth Bajjuri <praneeth(a)ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
[cxl:preview 34/53] drivers/cxl/core/pci.c:48:31: error: use of undeclared identifier 'CXL_REGLOC_RBI_COMPONENT'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head: e675fabdbbcdb6e32dba688a20fb0bd42e0e2d5d
commit: 2b7a34a480122fb652df99554f6d59c5d9f3ef24 [34/53] cxl/core: Generalize dport enumeration in the core
config: mips-randconfig-c004-20220120 (https://download.01.org/0day-ci/archive/20220122/202201222342.XT0vW1nO-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=2b...
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl preview
git checkout 2b7a34a480122fb652df99554f6d59c5d9f3ef24
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/cxl/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
>> drivers/cxl/core/pci.c:48:31: error: use of undeclared identifier 'CXL_REGLOC_RBI_COMPONENT'
rc = cxl_find_regblock(pdev, CXL_REGLOC_RBI_COMPONENT, &map);
^
>> drivers/cxl/core/pci.c:55:8: error: implicit declaration of function 'cxl_regmap_to_base' [-Werror,-Wimplicit-function-declaration]
cxl_regmap_to_base(pdev, &map));
^
>> drivers/cxl/core/pci.c:76:5: warning: no previous prototype for function 'devm_cxl_port_enumerate_dports' [-Wmissing-prototypes]
int devm_cxl_port_enumerate_dports(struct device *host, struct cxl_port *port)
^
drivers/cxl/core/pci.c:76:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int devm_cxl_port_enumerate_dports(struct device *host, struct cxl_port *port)
^
static
1 warning and 2 errors generated.
vim +/CXL_REGLOC_RBI_COMPONENT +48 drivers/cxl/core/pci.c
24
25 static int match_add_dports(struct pci_dev *pdev, void *data)
26 {
27 struct cxl_walk_context *ctx = data;
28 struct cxl_port *port = ctx->port;
29 struct device *host = ctx->host;
30 struct pci_bus *bus = ctx->bus;
31 int type = pci_pcie_type(pdev);
32 struct cxl_register_map map;
33 int match_type = ctx->type;
34 struct cxl_dport *dport;
35 u32 lnkcap, port_num;
36 int rc;
37
38 if (pdev->bus != bus)
39 return 0;
40 if (!pci_is_pcie(pdev))
41 return 0;
42 if (type != match_type)
43 return 0;
44 if (pci_read_config_dword(pdev, pci_pcie_cap(pdev) + PCI_EXP_LNKCAP,
45 &lnkcap) != PCIBIOS_SUCCESSFUL)
46 return 0;
47
> 48 rc = cxl_find_regblock(pdev, CXL_REGLOC_RBI_COMPONENT, &map);
49 if (rc)
50 dev_dbg(&port->dev, "failed to find component registers\n");
51
52 port_num = FIELD_GET(PCI_EXP_LNKCAP_PN, lnkcap);
53 cxl_device_lock(&port->dev);
54 dport = devm_cxl_add_dport(host, port, &pdev->dev, port_num,
> 55 cxl_regmap_to_base(pdev, &map));
56 cxl_device_unlock(&port->dev);
57 if (IS_ERR(dport)) {
58 ctx->error = PTR_ERR(dport);
59 return PTR_ERR(dport);
60 }
61 ctx->count++;
62
63 dev_dbg(&port->dev, "add dport%d: %s\n", port_num, dev_name(&pdev->dev));
64
65 return 0;
66 }
67
68 /**
69 * devm_cxl_port_enumerate_dports - enumerate downstream ports of the upstream port
70 * @host: devm context
71 * @port: cxl_port whose ->uport is the upstream of dports to be enumerated
72 *
73 * Returns a positive number of dports enumerated or a negative error
74 * code.
75 */
> 76 int devm_cxl_port_enumerate_dports(struct device *host, struct cxl_port *port)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
[cxl:preview 34/53] drivers/cxl/cxl.h:285:17: warning: declaration of 'struct pci_bus' will not be visible outside of this function
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head: e675fabdbbcdb6e32dba688a20fb0bd42e0e2d5d
commit: 2b7a34a480122fb652df99554f6d59c5d9f3ef24 [34/53] cxl/core: Generalize dport enumeration in the core
config: riscv-randconfig-r042-20220122 (https://download.01.org/0day-ci/archive/20220122/202201222345.9wJm6Bcm-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=2b...
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl preview
git checkout 2b7a34a480122fb652df99554f6d59c5d9f3ef24
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/cxl/core/pmem.c:6:
In file included from drivers/cxl/cxlmem.h:7:
>> drivers/cxl/cxl.h:285:17: warning: declaration of 'struct pci_bus' will not be visible outside of this function [-Wvisibility]
struct pci_bus *bus);
^
1 warning generated.
vim +285 drivers/cxl/cxl.h
24be641caabe25 Ben Widawsky 2021-12-01 281
42c377a63d21df Dan Williams 2022-01-05 282 bool is_cxl_port(struct device *dev);
4812be97c015bd Dan Williams 2021-06-09 283 struct cxl_port *to_cxl_port(struct device *dev);
7237f27228ec66 Dan Williams 2022-01-18 284 int devm_cxl_register_pci_bus(struct device *host, struct device *uport,
7237f27228ec66 Dan Williams 2022-01-18 @285 struct pci_bus *bus);
7237f27228ec66 Dan Williams 2022-01-18 286 struct pci_bus *cxl_port_to_pci_bus(struct cxl_port *port);
4812be97c015bd Dan Williams 2021-06-09 287 struct cxl_port *devm_cxl_add_port(struct device *host, struct device *uport,
4812be97c015bd Dan Williams 2021-06-09 288 resource_size_t component_reg_phys,
4812be97c015bd Dan Williams 2021-06-09 289 struct cxl_port *parent_port);
3c39e157b25e0c Dan Williams 2022-01-18 290 struct cxl_port *find_cxl_root(struct device *dev);
2b7a34a480122f Dan Williams 2022-01-18 291 struct cxl_dport *devm_cxl_add_dport(struct device *host, struct cxl_port *port,
2b7a34a480122f Dan Williams 2022-01-18 292 struct device *dport, int port_id,
2b7a34a480122f Dan Williams 2022-01-18 293 resource_size_t component_reg_phys);
40ba17afdfabb0 Dan Williams 2021-06-09 294 struct cxl_decoder *to_cxl_decoder(struct device *dev);
8fdcb1704f61a8 Dan Williams 2021-06-15 295 bool is_root_decoder(struct device *dev);
42c377a63d21df Dan Williams 2022-01-05 296 bool is_cxl_decoder(struct device *dev);
24be641caabe25 Ben Widawsky 2021-12-01 297 struct cxl_decoder *cxl_root_decoder_alloc(struct cxl_port *port,
24be641caabe25 Ben Widawsky 2021-12-01 298 unsigned int nr_targets);
24be641caabe25 Ben Widawsky 2021-12-01 299 struct cxl_decoder *cxl_switch_decoder_alloc(struct cxl_port *port,
24be641caabe25 Ben Widawsky 2021-12-01 300 unsigned int nr_targets);
48667f676189ec Dan Williams 2021-09-21 301 int cxl_decoder_add(struct cxl_decoder *cxld, int *target_map);
48667f676189ec Dan Williams 2021-09-21 302 int cxl_decoder_autoremove(struct device *host, struct cxl_decoder *cxld);
40ba17afdfabb0 Dan Williams 2021-06-09 303
:::::: The code at line 285 was first introduced by commit
:::::: 7237f27228ec660f73924f38e553e1d2b2ff65c4 cxl/port: Introduce cxl_port_to_pci_bus()
:::::: TO: Dan Williams <dan.j.williams(a)intel.com>
:::::: CC: Dan Williams <dan.j.williams(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
[cxl:preview 20/53] drivers/cxl/core/regs.c:256:18: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head: e675fabdbbcdb6e32dba688a20fb0bd42e0e2d5d
commit: 0deb1229ea40390e8402361338d680619a750270 [20/53] cxl/acpi: Map component registers for Root Ports
config: mips-randconfig-c004-20220120 (https://download.01.org/0day-ci/archive/20220122/202201222305.il9hV9Zh-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=0d...
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl preview
git checkout 0deb1229ea40390e8402361338d680619a750270
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/cxl/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/cxl/core/regs.c:256:18: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK'
(reg_lo & CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK);
^
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
map->barno = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BIR_MASK, reg_lo);
^
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:13: error: assigning to 'u8' (aka 'unsigned char') from incompatible type 'void'
map->barno = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BIR_MASK, reg_lo);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
map->reg_type = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK, reg_lo);
^
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
vim +/CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK +256 drivers/cxl/core/regs.c
251
252 static void cxl_decode_regblock(u32 reg_lo, u32 reg_hi,
253 struct cxl_register_map *map)
254 {
255 map->block_offset = ((u64)reg_hi << 32) |
> 256 (reg_lo & CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK);
> 257 map->barno = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BIR_MASK, reg_lo);
> 258 map->reg_type = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK, reg_lo);
259 }
260
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
Re: [RFC PATCH v3 2/2] security/inode.c: Add capabilities file.
by kernel test robot
Hi Francis,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on linux/master]
[also build test ERROR on linus/master jmorris-security/next-testing v5.16 next-20220121]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Francis-Laniel/Add-capabilities-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 1d1df41c5a33359a00e919d54eaebfb789711fdc
config: riscv-randconfig-r026-20220120 (https://download.01.org/0day-ci/archive/20220122/202201222235.SOQYCPHW-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f7b7138a62648f4019c55e4671682af1f851f295)
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/48b37f6e79a73709d7bcf17ea19464073...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Francis-Laniel/Add-capabilities-file-to-sysfs/20220121-020524
git checkout 48b37f6e79a73709d7bcf17ea19464073f5da9b6
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from security/inode.c:18:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
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:136:
include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_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/inode.c:18:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
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:136:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_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/inode.c:18:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
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:136:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:1024:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
>> security/inode.c:362:24: error: implicit declaration of function 'securityfs' [-Werror,-Wimplicit-function-declaration]
capabilities_dentry = securityfs("capabilities", 0444, NULL, NULL,
^
>> security/inode.c:362:22: warning: incompatible integer to pointer conversion assigning to 'struct dentry *' from 'int' [-Wint-conversion]
capabilities_dentry = securityfs("capabilities", 0444, NULL, NULL,
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 warnings and 1 error generated.
vim +/securityfs +362 security/inode.c
344
345 static int __init securityfs_init(void)
346 {
347 int retval;
348
349 retval = sysfs_create_mount_point(kernel_kobj, "security");
350 if (retval)
351 return retval;
352
353 retval = register_filesystem(&fs_type);
354 if (retval) {
355 sysfs_remove_mount_point(kernel_kobj, "security");
356 return retval;
357 }
358 #ifdef CONFIG_SECURITY
359 lsm_dentry = securityfs_create_file("lsm", 0444, NULL, NULL,
360 &lsm_ops);
361 #endif
> 362 capabilities_dentry = securityfs("capabilities", 0444, NULL, NULL,
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months