[char-misc:char-misc-testing 98/99] drivers/misc/eeprom/at25.c:181:27: warning: field width specifier '*' expects argument of type 'int', but argument 3 has type 'long unsigned int'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git char-misc-testing
head: 63879e2964bceee2aa5bbe8b99ea58bba28bb64f
commit: fd307a4ad332ef50be5569c92490219e7cd84ce5 [98/99] nvmem: prepare basics for FRAM support
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/comm...
git remote add char-misc https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
git fetch --no-tags char-misc char-misc-testing
git checkout fd307a4ad332ef50be5569c92490219e7cd84ce5
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/misc/eeprom/at25.c: In function 'sernum_show':
>> drivers/misc/eeprom/at25.c:181:27: warning: field width specifier '*' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
181 | return sysfs_emit(buf, "%*ph\n", sizeof(at25->sernum), at25->sernum);
| ~^~ ~~~~~~~~~~~~~~~~~~~~
| | |
| int long unsigned int
drivers/misc/eeprom/at25.c: In function 'at25_probe':
>> drivers/misc/eeprom/at25.c:386:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
386 | is_fram = (int)match->data;
| ^
vim +181 drivers/misc/eeprom/at25.c
175
176 static ssize_t sernum_show(struct device *dev, struct device_attribute *attr, char *buf)
177 {
178 struct at25_data *at25;
179
180 at25 = dev_get_drvdata(dev);
> 181 return sysfs_emit(buf, "%*ph\n", sizeof(at25->sernum), at25->sernum);
182 }
183 static DEVICE_ATTR_RO(sernum);
184
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[char-misc:char-misc-testing 98/99] drivers/misc/eeprom/at25.c:181:28: warning: field width should have type 'int', but argument has type 'unsigned long'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git char-misc-testing
head: 63879e2964bceee2aa5bbe8b99ea58bba28bb64f
commit: fd307a4ad332ef50be5569c92490219e7cd84ce5 [98/99] nvmem: prepare basics for FRAM support
config: arm64-randconfig-r023-20210611 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/comm...
git remote add char-misc https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
git fetch --no-tags char-misc char-misc-testing
git checkout fd307a4ad332ef50be5569c92490219e7cd84ce5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/misc/eeprom/at25.c:181:28: warning: field width should have type 'int', but argument has type 'unsigned long' [-Wformat]
return sysfs_emit(buf, "%*ph\n", sizeof(at25->sernum), at25->sernum);
~~^ ~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/eeprom/at25.c:386:13: warning: cast to smaller integer type 'int' from 'const void *' [-Wvoid-pointer-to-int-cast]
is_fram = (int)match->data;
^~~~~~~~~~~~~~~~
2 warnings generated.
vim +181 drivers/misc/eeprom/at25.c
175
176 static ssize_t sernum_show(struct device *dev, struct device_attribute *attr, char *buf)
177 {
178 struct at25_data *at25;
179
180 at25 = dev_get_drvdata(dev);
> 181 return sysfs_emit(buf, "%*ph\n", sizeof(at25->sernum), at25->sernum);
182 }
183 static DEVICE_ATTR_RO(sernum);
184
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[intel-linux-intel-lts:5.4/yocto 1/1] drivers/spi/spi-dw-pci.c:155:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_PM'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf
commit: 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf [1/1] REVERT-ME: Temporary Enable D0i3 flow for PSE IOs
config: microblaze-randconfig-s031-20210611 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/intel/linux-intel-lts/commit/2e228f3df9479e9e061cc7e0b...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/spi/spi-dw-pci.c:155:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_PM'
vim +/CONFIG_PM +155 drivers/spi/spi-dw-pci.c
154
> 155 #if CONFIG_PM
156 static int dw_spi_runtime_suspend(struct device *dev)
157 {
158 struct dw_spi *dws = dev_get_drvdata(dev);
159 unsigned long j0, j1, delay;
160 u32 d0i3c_reg;
161 u32 cgsr_reg;
162
163 delay = msecs_to_jiffies(100);
164 j0 = jiffies;
165 j1 = j0 + delay;
166
167
168 cgsr_reg = dw_readl(dws, PSE_SPI_CGSR);
169 dw_writel(dws, PSE_SPI_CGSR, PSE_SPI_D0I3_RR);
170
171 d0i3c_reg = dw_readl(dws, PSE_SPI_D0I3C);
172
173 if (d0i3c_reg & PSE_SPI_D0I3_CIP) {
174 dev_info(dev, "%s d0i3c CIP detected", __func__);
175 } else {
176 dw_writel(dws, PSE_SPI_D0I3C, PSE_SPI_D0I3_EN);
177 d0i3c_reg = dw_readl(dws, PSE_SPI_D0I3C);
178 }
179
180 while (time_before(jiffies, j1)) {
181 d0i3c_reg = dw_readl(dws, PSE_SPI_D0I3C);
182 if (!(d0i3c_reg & PSE_SPI_D0I3_CIP))
183 break;
184 }
185
186 if (d0i3c_reg & PSE_SPI_D0I3_CIP)
187 dev_info(dev, "%s: timeout waiting CIP to be cleared",
188 __func__);
189
190 return 0;
191 }
192
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[ipsec-next:testing 10/10] net/xfrm/xfrm_output.c:100:33: error: 'nh' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next.git testing
head: 65b3564d0c98ea3c0ca4f19d5edd9b77090d8998
commit: 65b3564d0c98ea3c0ca4f19d5edd9b77090d8998 [10/10] xfrm: merge dstopt and routing hdroff functions
config: sh-randconfig-s031-20210611 (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next.git/c...
git remote add ipsec-next https://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next.git
git fetch --no-tags ipsec-next testing
git checkout 65b3564d0c98ea3c0ca4f19d5edd9b77090d8998
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=sh
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 >>):
cc1: warning: arch/sh/include/mach-rsk: No such file or directory [-Wmissing-include-dirs]
cc1: warning: arch/sh/include/mach-rsk: No such file or directory [-Wmissing-include-dirs]
net/xfrm/xfrm_output.c: In function 'mip6_rthdr_offset':
>> net/xfrm/xfrm_output.c:100:33: error: 'nh' undeclared (first use in this function)
100 | rt = (struct ipv6_rt_hdr *)(nh + offset);
| ^~
net/xfrm/xfrm_output.c:100:33: note: each undeclared identifier is reported only once for each function it appears in
vim +/nh +100 net/xfrm/xfrm_output.c
79
80 #if IS_ENABLED(CONFIG_IPV6_MIP6)
81 static int mip6_rthdr_offset(struct sk_buff *skb, u8 **nexthdr, int type)
82 {
83 unsigned int offset = sizeof(struct ipv6hdr);
84 unsigned int packet_len = skb_tail_pointer(skb) -
85 skb_network_header(skb);
86 int found_rhdr = 0;
87
88 *nexthdr = &ipv6_hdr(skb)->nexthdr;
89
90 while (offset <= packet_len) {
91 struct ipv6_opt_hdr *exthdr;
92
93 switch (**nexthdr) {
94 case NEXTHDR_HOP:
95 break;
96 case NEXTHDR_ROUTING:
97 if (type == IPPROTO_ROUTING && offset + 3 <= packet_len) {
98 struct ipv6_rt_hdr *rt;
99
> 100 rt = (struct ipv6_rt_hdr *)(nh + offset);
101 if (rt->type != 0)
102 return offset;
103 }
104 found_rhdr = 1;
105 break;
106 case NEXTHDR_DEST:
107 /* HAO MUST NOT appear more than once.
108 * XXX: It is better to try to find by the end of
109 * XXX: packet if HAO exists.
110 */
111 if (ipv6_find_tlv(skb, offset, IPV6_TLV_HAO) >= 0) {
112 net_dbg_ratelimited("mip6: hao exists already, override\n");
113 return offset;
114 }
115
116 if (found_rhdr)
117 return offset;
118
119 break;
120 default:
121 return offset;
122 }
123
124 if (offset + sizeof(struct ipv6_opt_hdr) > packet_len)
125 return -EINVAL;
126
127 exthdr = (struct ipv6_opt_hdr *)(skb_network_header(skb) +
128 offset);
129 offset += ipv6_optlen(exthdr);
130 if (offset > IPV6_MAXPLEN)
131 return -EINVAL;
132 *nexthdr = &exthdr->nexthdr;
133 }
134
135 return offset;
136 }
137 #endif
138
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[freescale-fslc:pr/317 13/48] drivers/pci/controller/dwc/pci-imx6.c:2935: undefined reference to `dw_pcie_find_ext_capability'
by kernel test robot
tree: https://github.com/Freescale/linux-fslc pr/317
head: cffe4fb95c43405f2fe3ceab81948a12c8769724
commit: a32bd4692437b1a2fc977fc8b1302e6107b2f0d6 [13/48] MLK-25283-4 PCI: imx: adjust the l1ss support to proper place
config: i386-randconfig-a015-20210611 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Freescale/linux-fslc/commit/a32bd4692437b1a2fc977fc8b1...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/317
git checkout a32bd4692437b1a2fc977fc8b1302e6107b2f0d6
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `imx6_pcie_start_link':
drivers/pci/controller/dwc/pci-imx6.c:1965: undefined reference to `dw_pcie_link_up'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o:drivers/pci/controller/dwc/pcie-designware.h:289: more undefined references to `dw_pcie_write_dbi' follow
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `imx6_pcie_l1ss_quirk':
>> drivers/pci/controller/dwc/pci-imx6.c:2935: undefined reference to `dw_pcie_find_ext_capability'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `imx6_pcie_l1ss_quirk':
>> drivers/pci/controller/dwc/pci-imx6.c:2940: undefined reference to `dw_pcie_read'
>> ld: drivers/pci/controller/dwc/pci-imx6.c:2956: undefined reference to `dw_pcie_read'
ld: drivers/pci/controller/dwc/pci-imx6.c:2958: undefined reference to `dw_pcie_read'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readw_dbi':
drivers/pci/controller/dwc/pcie-designware.h:304: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writew_dbi':
drivers/pci/controller/dwc/pcie-designware.h:299: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `imx6_pcie_establish_link':
drivers/pci/controller/dwc/pci-imx6.c:1818: undefined reference to `dw_pcie_wait_for_link'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `imx6_pcie_establish_link':
drivers/pci/controller/dwc/pci-imx6.c:1866: undefined reference to `dw_pcie_wait_for_link'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:294: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:289: undefined reference to `dw_pcie_write_dbi'
ld: drivers/gpu/drm/bridge/nwl-dsi/nwl-drv.o: in function `nwl_dsi_get_lcm':
drivers/gpu/drm/bridge/nwl-dsi/nwl-drv.c:144: undefined reference to `__udivdi3'
ld: drivers/gpu/drm/bridge/nwl-dsi/nwl-dsi.o: in function `ui2bc':
drivers/gpu/drm/bridge/nwl-dsi/nwl-dsi.c:152: undefined reference to `__udivdi3'
ld: drivers/gpu/drm/bridge/nwl-dsi/nwl-dsi.o: in function `ps2bc':
drivers/gpu/drm/bridge/nwl-dsi/nwl-dsi.c:141: undefined reference to `__udivdi3'
ld: drivers/gpu/drm/bridge/nwl-dsi/nwl-dsi.o: in function `ui2bc':
drivers/gpu/drm/bridge/nwl-dsi/nwl-dsi.c:152: undefined reference to `__udivdi3'
ld: drivers/gpu/drm/bridge/nwl-dsi/nwl-dsi.o: in function `ps2bc':
drivers/gpu/drm/bridge/nwl-dsi/nwl-dsi.c:141: undefined reference to `__udivdi3'
vim +2935 drivers/pci/controller/dwc/pci-imx6.c
2889
2890 static void imx6_pcie_quirk(struct pci_dev *dev)
2891 {
2892 struct pci_bus *bus = dev->bus;
2893 struct pcie_port *pp = bus->sysdata;
2894
2895 /* Bus parent is the PCI bridge, its parent is this platform driver */
2896 if (!bus->dev.parent || !bus->dev.parent->parent)
2897 return;
2898
2899 /* Make sure we only quirk devices associated with this driver */
2900 if (bus->dev.parent->parent->driver != &imx6_pcie_driver.driver)
2901 return;
2902
2903 if (bus->number == pp->root_bus_nr) {
2904 struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
2905 struct imx6_pcie *imx6_pcie = to_imx6_pcie(pci);
2906
2907 /*
2908 * Limit config length to avoid the kernel reading beyond
2909 * the register set and causing an abort on i.MX 6Quad
2910 */
2911 if (imx6_pcie->drvdata->dbi_length) {
2912 dev->cfg_size = imx6_pcie->drvdata->dbi_length;
2913 dev_info(&dev->dev, "Limiting cfg_size to %d\n",
2914 dev->cfg_size);
2915 }
2916 }
2917 }
2918 DECLARE_PCI_FIXUP_CLASS_HEADER(PCI_VENDOR_ID_SYNOPSYS, 0xabcd,
2919 PCI_CLASS_BRIDGE_PCI, 8, imx6_pcie_quirk);
2920
2921 static void imx6_pcie_l1ss_quirk(struct pci_dev *dev)
2922 {
2923 u32 reg, rc_l1sub, ep_l1sub, header;
2924 int ttl, ret;
2925 int pos = PCI_CFG_SPACE_SIZE;
2926 struct pci_bus *bus = dev->bus;
2927 struct pcie_port *pp = bus->sysdata;
2928 struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
2929 struct imx6_pcie *imx6_pcie = to_imx6_pcie(pci);
2930
2931 /* Return directly, if the L1SS is not supported by RC */
2932 if (!(imx6_pcie->drvdata->flags & IMX6_PCIE_FLAG_SUPPORTS_L1SS))
2933 return;
2934
> 2935 reg = dw_pcie_find_ext_capability(pci, PCI_EXT_CAP_ID_L1SS);
2936 rc_l1sub = dw_pcie_readl_dbi(pci, reg + PCI_L1SS_CAP);
2937
2938 /* minimum 8 bytes per capability */
2939 ttl = (PCI_CFG_SPACE_EXP_SIZE - PCI_CFG_SPACE_SIZE) / 8;
> 2940 ret = dw_pcie_read(pp->va_cfg0_base + pos, 4, &header);
2941 /*
2942 * If we have no capabilities, this is indicated by cap ID,
2943 * cap version and next pointer all being 0.
2944 */
2945 if (header == 0)
2946 return;
2947
2948 while (ttl-- > 0) {
2949 if (PCI_EXT_CAP_ID(header) == PCI_EXT_CAP_ID_L1SS && pos != 0)
2950 break;
2951
2952 pos = PCI_EXT_CAP_NEXT(header);
2953 if (pos < PCI_CFG_SPACE_SIZE)
2954 break;
2955
> 2956 ret = dw_pcie_read(pp->va_cfg0_base + pos, 4, &header);
2957 }
2958 ret = dw_pcie_read(pp->va_cfg0_base + pos + PCI_L1SS_CAP, 4, &ep_l1sub);
2959
2960 if ((rc_l1sub && ep_l1sub) && PCI_L1SS_CAP_L1_PM_SS) {
2961 imx6_pcie->l1ss_clkreq = 1;
2962 imx6_pcie_clkreq_enable(imx6_pcie);
2963 } else {
2964 imx6_pcie->l1ss_clkreq = 0;
2965 }
2966 }
2967 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SYNOPSYS, 0xabcd, imx6_pcie_l1ss_quirk);
2968
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[freescale-fslc:5.4-2.3.x-imx 11674/19343] drivers/irqchip/irq-imx-intmux.c:169:14: error: 'struct intmux_data' has no member named 'saved_reg'
by kernel test robot
Hi Joakim,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head: ef8eb7d4787bee4be718a83b6c73fb8cc7e8f158
commit: 89f28f28d76a0bc4a4d825818e2f50fbd4368235 [11674/19343] MLK-24382-1 irqchip: imx-intmux: add system PM support
config: arm-randconfig-r011-20210611 (attached as .config)
compiler: arm-linux-gnueabi-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/Freescale/linux-fslc/commit/89f28f28d76a0bc4a4d825818e...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.3.x-imx
git checkout 89f28f28d76a0bc4a4d825818e2f50fbd4368235
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/irqchip/irq-imx-intmux.c: In function 'imx_intmux_probe':
>> drivers/irqchip/irq-imx-intmux.c:169:14: error: 'struct intmux_data' has no member named 'saved_reg'
169 | intmux_data->saved_reg = devm_kzalloc(&pdev->dev,
| ^~
drivers/irqchip/irq-imx-intmux.c:172:19: error: 'struct intmux_data' has no member named 'saved_reg'
172 | if (!intmux_data->saved_reg)
| ^~
vim +169 drivers/irqchip/irq-imx-intmux.c
128
129 static int imx_intmux_probe(struct platform_device *pdev)
130 {
131 struct device_node *np = pdev->dev.of_node;
132 struct intmux_data *intmux_data;
133 struct resource *res;
134 int i;
135 int channum;
136 int ret;
137
138 ret = of_property_read_u32(np, "nxp,intmux_chans", &channum);
139 if (ret)
140 channum = 1;
141
142 intmux_data = devm_kzalloc(&pdev->dev, sizeof(*intmux_data) +
143 channum *
144 sizeof(intmux_data->irqchip_data[0]),
145 GFP_KERNEL);
146 if (!intmux_data)
147 return -ENOMEM;
148
149 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
150 intmux_data->regs = devm_ioremap_resource(&pdev->dev, res);
151 if (IS_ERR(intmux_data->regs)) {
152 dev_err(&pdev->dev, "failed to initialize reg\n");
153 return PTR_ERR(intmux_data->regs);
154 }
155
156 intmux_data->ipg_clk = devm_clk_get(&pdev->dev, "ipg");
157 if (IS_ERR(intmux_data->ipg_clk)) {
158 ret = PTR_ERR(intmux_data->ipg_clk);
159 dev_err(&pdev->dev, "failed to get ipg clk: %d\n", ret);
160 return ret;
161 }
162
163 intmux_data->channum = channum;
164 intmux_data->pdev = pdev;
165 spin_lock_init(&intmux_data->lock);
166
167 if (IS_ENABLED(CONFIG_PM)) {
168 /* save CHANIER register */
> 169 intmux_data->saved_reg = devm_kzalloc(&pdev->dev,
170 sizeof(u32) * channum,
171 GFP_KERNEL);
172 if (!intmux_data->saved_reg)
173 return -ENOMEM;
174 }
175
176 ret = clk_prepare_enable(intmux_data->ipg_clk);
177 if (ret) {
178 dev_err(&pdev->dev, "failed to enable ipg clk: %d\n", ret);
179 return ret;
180 }
181
182 for (i = 0; i < channum; i++) {
183 intmux_data->irqchip_data[i].chanidx = i;
184 intmux_data->irqchip_data[i].irq = platform_get_irq(pdev, i);
185 if (intmux_data->irqchip_data[i].irq <= 0) {
186 dev_err(&pdev->dev, "failed to get irq\n");
187 return -ENODEV;
188 }
189
190 intmux_data->irqchip_data[i].domain = irq_domain_add_linear(np,
191 32,
192 &imx_intmux_domain_ops,
193 &intmux_data->irqchip_data[i]);
194 if (!intmux_data->irqchip_data[i].domain) {
195 dev_err(&intmux_data->pdev->dev,
196 "failed to create IRQ domain\n");
197 return -ENOMEM;
198 }
199
200 irq_set_chained_handler_and_data(intmux_data->irqchip_data[i].irq,
201 imx_intmux_irq_handler,
202 &intmux_data->irqchip_data[i]);
203 }
204
205 platform_set_drvdata(pdev, intmux_data);
206
207 return 0;
208 }
209
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[freescale-fslc:5.4-2.3.x-imx 10629/19343] drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_func_flop_reset.c:1266:1: error: no previous prototype for 'gckPPU_SetEVIS'
by kernel test robot
Hi Ella,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head: ef8eb7d4787bee4be718a83b6c73fb8cc7e8f158
commit: 003e8f969b3267f44e94f0ee4f7167089bb0d800 [10629/19343] MGS-5531 [#imx-1868] Fix VIP Hang isse with HW reet
config: arm-randconfig-r011-20210611 (attached as .config)
compiler: arm-linux-gnueabi-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/Freescale/linux-fslc/commit/003e8f969b3267f44e94f0ee4f...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.3.x-imx
git checkout 003e8f969b3267f44e94f0ee4f7167089bb0d800
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
cc1: error: arch/arm/mm: No such file or directory [-Werror=missing-include-dirs]
>> drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_func_flop_reset.c:1266:1: error: no previous prototype for 'gckPPU_SetEVIS' [-Werror=missing-prototypes]
1266 | gckPPU_SetEVIS(
| ^~~~~~~~~~~~~~
>> drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_func_flop_reset.c:1590:1: error: no previous prototype for 'gckPPU_SetTempReg' [-Werror=missing-prototypes]
1590 | gckPPU_SetTempReg(
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for ARM_ERRATA_814220
Depends on CPU_V7
Selected by
- SOC_IMX7D && ARCH_MXC && (ARCH_MULTI_V7 || ARM_SINGLE_ARMV7M
vim +/gckPPU_SetEVIS +1266 drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_func_flop_reset.c
1264
1265 gceSTATUS
> 1266 gckPPU_SetEVIS(
1267 IN gctUINT32 Start,
1268 IN gctUINT32 End,
1269 IN gctUINT32 Evis,
1270 IN OUT gctUINT32_PTR Inst
1271 )
1272 {
1273 gceSTATUS status = gcvSTATUS_OK;
1274
1275 if (!Inst)
1276 {
1277 gcmkONERROR(gcvSTATUS_INVALID_ARGUMENT);
1278 }
1279
1280 Inst[0] = ((((gctUINT32) (Inst[0])) & ~(((gctUINT32) (((gctUINT32) ((((1 ?
1281 26:23) - (0 ?
1282 26:23) + 1) == 32) ?
1283 ~0U : (~(~0U << ((1 ?
1284 26:23) - (0 ?
1285 26:23) + 1))))))) << (0 ?
1286 26:23))) | (((gctUINT32) ((gctUINT32) (Start) & ((gctUINT32) ((((1 ?
1287 26:23) - (0 ?
1288 26:23) + 1) == 32) ?
1289 ~0U : (~(~0U << ((1 ? 26:23) - (0 ? 26:23) + 1))))))) << (0 ? 26:23)));
1290 Inst[0] = _SETBITS(Inst[0], 30, 27, End);
1291 Inst[1] = _SETBITS(Inst[1], 10, 2, Evis);
1292
1293 return gcvSTATUS_OK;
1294
1295 OnError:
1296 return status;
1297 }
1298
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months