[freescale-fslc:pr/344 10629/18956] 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 pr/344
head: 2cbb55e591febb414b623269d61d4444113c285f
commit: 003e8f969b3267f44e94f0ee4f7167089bb0d800 [10629/18956] MGS-5531 [#imx-1868] Fix VIP Hang isse with HW reet
config: arm-defconfig (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 pr/344
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
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, 4 months
xilinx_dpdma.c:undefined reference to `devm_platform_ioremap_resource'
by kernel test robot
Hi Hyun,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c3d0e3fd41b7f0f5d5d5b6022ab7e813f04ea727
commit: 7cbb0c63de3fc218fd06ecfedb477772a4d12f76 dmaengine: xilinx: dpdma: Add the Xilinx DisplayPort DMA engine driver
date: 10 months ago
config: s390-randconfig-r012-20210519 (attached as .config)
compiler: s390-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://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 7cbb0c63de3fc218fd06ecfedb477772a4d12f76
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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 >>):
s390-linux-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
coherent.c:(.text+0x808): undefined reference to `memremap'
s390-linux-ld: coherent.c:(.text+0x98a): undefined reference to `memunmap'
s390-linux-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
coherent.c:(.text+0xc7c): undefined reference to `memunmap'
s390-linux-ld: drivers/irqchip/irq-al-fic.o: in function `al_fic_init_dt':
irq-al-fic.c:(.init.text+0xa6): undefined reference to `of_iomap'
s390-linux-ld: irq-al-fic.c:(.init.text+0x600): undefined reference to `iounmap'
s390-linux-ld: drivers/dma/altera-msgdma.o: in function `request_and_map':
altera-msgdma.c:(.text+0x1968): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/dma/sf-pdma/sf-pdma.o: in function `sf_pdma_probe':
sf-pdma.c:(.text+0x1408): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/dma/qcom/hidma_mgmt.o: in function `hidma_mgmt_probe':
hidma_mgmt.c:(.text+0x800): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/dma/qcom/hidma_mgmt.o: in function `hidma_mgmt_init':
hidma_mgmt.c:(.init.text+0x15c): undefined reference to `of_address_to_resource'
s390-linux-ld: hidma_mgmt.c:(.init.text+0x1b4): undefined reference to `of_address_to_resource'
s390-linux-ld: drivers/dma/xilinx/xilinx_dpdma.o: in function `xilinx_dpdma_probe':
>> xilinx_dpdma.c:(.text+0x23c6): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_init':
timer-of.c:(.init.text+0xe8): undefined reference to `of_iomap'
s390-linux-ld: timer-of.c:(.init.text+0x842): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_cleanup':
timer-of.c:(.init.text+0xa82): undefined reference to `iounmap'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[frank-w-bpi-r2-4.14:5.4-main 13/14] drivers/net/wireless/mediatek/mt76_new/mt76x02_util.c:300:72: error: cast from pointer to integer of different size
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.4-main
head: b92f0918182955bbfa723c22fb1925e32e41a7f3
commit: 181fd8ff4a9feb40a391eea4957a79274eda157e [13/14] mt76x02: add debug print for possible NULL pointer dereference
config: alpha-randconfig-r021-20210519 (attached as .config)
compiler: alpha-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/frank-w/BPI-R2-4.14/commit/181fd8ff4a9feb40a391eea4957...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.4-main
git checkout 181fd8ff4a9feb40a391eea4957a79274eda157e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
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/net/wireless/mediatek/mt76_new/mt76x02_util.c: In function 'mt76x02_vif_init':
>> drivers/net/wireless/mediatek/mt76_new/mt76x02_util.c:300:72: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
300 | printk(KERN_ALERT "DEBUG: Passed %s %d 0x%x \n",__FUNCTION__,__LINE__,(unsigned int)vif->txq);
| ^
cc1: all warnings being treated as errors
vim +300 drivers/net/wireless/mediatek/mt76_new/mt76x02_util.c
287
288 static void
289 mt76x02_vif_init(struct mt76x02_dev *dev, struct ieee80211_vif *vif,
290 unsigned int idx)
291 {
292 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv;
293 struct mt76_txq *mtxq;
294
295 memset(mvif, 0, sizeof(*mvif));
296
297 mvif->idx = idx;
298 mvif->group_wcid.idx = MT_VIF_WCID(idx);
299 mvif->group_wcid.hw_key_idx = -1;
> 300 printk(KERN_ALERT "DEBUG: Passed %s %d 0x%x \n",__FUNCTION__,__LINE__,(unsigned int)vif->txq);
301 mtxq = (struct mt76_txq *)vif->txq->drv_priv;
302 mtxq->wcid = &mvif->group_wcid;
303
304 mt76_txq_init(&dev->mt76, vif->txq);
305 }
306
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[freescale-fslc:pr/344 15428/18956] include/linux/string.h:399:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter
by kernel test robot
Hi Adrian,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/344
head: 2cbb55e591febb414b623269d61d4444113c285f
commit: a452c44357d9c68c27c39327e50b41e4b6cffe8d [15428/18956] MLK-25015: sound: soc: codecs: pcm512x: set input sclk
config: s390-allyesconfig (attached as .config)
compiler: s390-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/Freescale/linux-fslc/commit/a452c44357d9c68c27c39327e5...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/344
git checkout a452c44357d9c68c27c39327e50b41e4b6cffe8d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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 >>):
In file included from sound/soc/fsl/imx-pcm512x.c:21:
sound/soc/fsl/imx-pcm512x.c:357:23: warning: initialized field overwritten [-Woverride-init]
357 | SND_SOC_DAILINK_REG(hifi),
| ^~~~
include/sound/soc.h:919:13: note: in definition of macro 'SND_SOC_DAILINK_REG3'
919 | .codecs = codec, \
| ^~~~~
include/sound/soc.h:924:53: note: in expansion of macro 'SND_SOC_DAILINK_REG1'
924 | #define SND_SOC_DAILINK_REGx(_1, _2, _3, func, ...) func
| ^~~~
sound/soc/fsl/imx-pcm512x.c:357:3: note: in expansion of macro 'SND_SOC_DAILINK_REG'
357 | SND_SOC_DAILINK_REG(hifi),
| ^~~~~~~~~~~~~~~~~~~
sound/soc/fsl/imx-pcm512x.c:357:23: note: (near initialization for 'imx_pcm512x_dai[0].codecs')
357 | SND_SOC_DAILINK_REG(hifi),
| ^~~~
include/sound/soc.h:919:13: note: in definition of macro 'SND_SOC_DAILINK_REG3'
919 | .codecs = codec, \
| ^~~~~
include/sound/soc.h:924:53: note: in expansion of macro 'SND_SOC_DAILINK_REG1'
924 | #define SND_SOC_DAILINK_REGx(_1, _2, _3, func, ...) func
| ^~~~
sound/soc/fsl/imx-pcm512x.c:357:3: note: in expansion of macro 'SND_SOC_DAILINK_REG'
357 | SND_SOC_DAILINK_REG(hifi),
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/list.h:9,
from include/linux/module.h:9,
from sound/soc/fsl/imx-pcm512x.c:13:
include/linux/kernel.h:47:25: warning: initialized field overwritten [-Woverride-init]
47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^
include/sound/soc.h:920:16: note: in expansion of macro 'ARRAY_SIZE'
920 | .num_codecs = ARRAY_SIZE(codec), \
| ^~~~~~~~~~
include/sound/soc.h:914:37: note: in expansion of macro 'SND_SOC_DAILINK_REG3'
914 | #define SND_SOC_DAILINK_REG1(name) SND_SOC_DAILINK_REG3(name##_cpus, name##_codecs, name##_platforms)
| ^~~~~~~~~~~~~~~~~~~~
include/sound/soc.h:924:53: note: in expansion of macro 'SND_SOC_DAILINK_REG1'
924 | #define SND_SOC_DAILINK_REGx(_1, _2, _3, func, ...) func
| ^~~~
include/sound/soc.h:926:2: note: in expansion of macro 'SND_SOC_DAILINK_REGx'
926 | SND_SOC_DAILINK_REGx(__VA_ARGS__, \
| ^~~~~~~~~~~~~~~~~~~~
sound/soc/fsl/imx-pcm512x.c:357:3: note: in expansion of macro 'SND_SOC_DAILINK_REG'
357 | SND_SOC_DAILINK_REG(hifi),
| ^~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:47:25: note: (near initialization for 'imx_pcm512x_dai[0].num_codecs')
47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^
include/sound/soc.h:920:16: note: in expansion of macro 'ARRAY_SIZE'
920 | .num_codecs = ARRAY_SIZE(codec), \
| ^~~~~~~~~~
include/sound/soc.h:914:37: note: in expansion of macro 'SND_SOC_DAILINK_REG3'
914 | #define SND_SOC_DAILINK_REG1(name) SND_SOC_DAILINK_REG3(name##_cpus, name##_codecs, name##_platforms)
| ^~~~~~~~~~~~~~~~~~~~
include/sound/soc.h:924:53: note: in expansion of macro 'SND_SOC_DAILINK_REG1'
924 | #define SND_SOC_DAILINK_REGx(_1, _2, _3, func, ...) func
| ^~~~
include/sound/soc.h:926:2: note: in expansion of macro 'SND_SOC_DAILINK_REGx'
926 | SND_SOC_DAILINK_REGx(__VA_ARGS__, \
| ^~~~~~~~~~~~~~~~~~~~
sound/soc/fsl/imx-pcm512x.c:357:3: note: in expansion of macro 'SND_SOC_DAILINK_REG'
357 | SND_SOC_DAILINK_REG(hifi),
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/bitmap.h:9,
from include/linux/cpumask.h:12,
from arch/s390/include/asm/processor.h:39,
from arch/s390/include/asm/thread_info.h:27,
from include/linux/thread_info.h:38,
from arch/s390/include/asm/preempt.h:6,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/module.h:10,
from sound/soc/fsl/imx-pcm512x.c:13:
In function 'memcpy',
inlined from 'imx_pcm512x_probe' at sound/soc/fsl/imx-pcm512x.c:429:2:
>> include/linux/string.h:399:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter
399 | __read_overflow2();
| ^~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PCIE_MOBIVEIL_HOST
Depends on PCI && PCI_MSI_IRQ_DOMAIN
Selected by
- PCIE_MOBIVEIL_PLAT && PCI && (ARCH_ZYNQMP || COMPILE_TEST && OF
vim +/__read_overflow2 +399 include/linux/string.h
6974f0c4555e285 Daniel Micay 2017-07-12 390
6974f0c4555e285 Daniel Micay 2017-07-12 391 __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size_t size)
6974f0c4555e285 Daniel Micay 2017-07-12 392 {
6974f0c4555e285 Daniel Micay 2017-07-12 393 size_t p_size = __builtin_object_size(p, 0);
6974f0c4555e285 Daniel Micay 2017-07-12 394 size_t q_size = __builtin_object_size(q, 0);
6974f0c4555e285 Daniel Micay 2017-07-12 395 if (__builtin_constant_p(size)) {
6974f0c4555e285 Daniel Micay 2017-07-12 396 if (p_size < size)
6974f0c4555e285 Daniel Micay 2017-07-12 397 __write_overflow();
6974f0c4555e285 Daniel Micay 2017-07-12 398 if (q_size < size)
6974f0c4555e285 Daniel Micay 2017-07-12 @399 __read_overflow2();
6974f0c4555e285 Daniel Micay 2017-07-12 400 }
6974f0c4555e285 Daniel Micay 2017-07-12 401 if (p_size < size || q_size < size)
6974f0c4555e285 Daniel Micay 2017-07-12 402 fortify_panic(__func__);
b008ae4cc74d3ab Daniel Axtens 2020-06-03 403 return __underlying_memcpy(p, q, size);
6974f0c4555e285 Daniel Micay 2017-07-12 404 }
6974f0c4555e285 Daniel Micay 2017-07-12 405
:::::: The code at line 399 was first introduced by commit
:::::: 6974f0c4555e285ab217cee58b6e874f776ff409 include/linux/string.h: add the option of fortified string.h functions
:::::: TO: Daniel Micay <danielmicay(a)gmail.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[frank-w-bpi-r2-4.14:5.4-mmctest 171/223] net/wireguard/crypto/zinc/chacha20/chacha20.c:169:12: warning: no previous prototype for 'chacha20_mod_init'
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.4-mmctest
head: 3a68e55aefe320dbd684083c35aa1ff263b0f1fd
commit: dabd02495f84488ea48192d40aa013f3749c1bc1 [171/223] added wireguard, tag:0.0.20191219
config: s390-randconfig-r026-20210519 (attached as .config)
compiler: s390-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/frank-w/BPI-R2-4.14/commit/dabd02495f84488ea48192d40aa...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.4-mmctest
git checkout dabd02495f84488ea48192d40aa013f3749c1bc1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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 >>):
>> net/wireguard/crypto/zinc/chacha20/chacha20.c:169:12: warning: no previous prototype for 'chacha20_mod_init' [-Wmissing-prototypes]
169 | int __init chacha20_mod_init(void)
| ^~~~~~~~~~~~~~~~~
--
>> net/wireguard/crypto/zinc/poly1305/poly1305.c:144:12: warning: no previous prototype for 'poly1305_mod_init' [-Wmissing-prototypes]
144 | int __init poly1305_mod_init(void)
| ^~~~~~~~~~~~~~~~~
--
>> net/wireguard/crypto/zinc/chacha20poly1305.c:381:12: warning: no previous prototype for 'chacha20poly1305_mod_init' [-Wmissing-prototypes]
381 | int __init chacha20poly1305_mod_init(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
--
>> net/wireguard/crypto/zinc/blake2s/blake2s.c:252:12: warning: no previous prototype for 'blake2s_mod_init' [-Wmissing-prototypes]
252 | int __init blake2s_mod_init(void)
| ^~~~~~~~~~~~~~~~
--
>> net/wireguard/crypto/zinc/curve25519/curve25519.c:89:12: warning: no previous prototype for 'curve25519_mod_init' [-Wmissing-prototypes]
89 | int __init curve25519_mod_init(void)
| ^~~~~~~~~~~~~~~~~~~
vim +/chacha20_mod_init +169 net/wireguard/crypto/zinc/chacha20/chacha20.c
167
168 #ifndef COMPAT_ZINC_IS_A_MODULE
> 169 int __init chacha20_mod_init(void)
170 #else
171 static int __init mod_init(void)
172 #endif
173 {
174 if (!nosimd)
175 chacha20_fpu_init();
176 if (!selftest_run("chacha20", chacha20_selftest, chacha20_nobs,
177 ARRAY_SIZE(chacha20_nobs)))
178 return -ENOTRECOVERABLE;
179 return 0;
180 }
181
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[frank-w-bpi-r2-4.14:5.4-mmctest 36/223] drivers/net/wireless/mediatek/mt76_new/dma.c:368:6: error: variable 'idx' set but not used
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.4-mmctest
head: 3a68e55aefe320dbd684083c35aa1ff263b0f1fd
commit: bdfab89b8dada94f63f56210817f1376c7fd5dca [36/223] mt76: update driver from openwrt to include mt7622 wifi
config: alpha-randconfig-r021-20210519 (attached as .config)
compiler: alpha-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/frank-w/BPI-R2-4.14/commit/bdfab89b8dada94f63f56210817...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.4-mmctest
git checkout bdfab89b8dada94f63f56210817f1376c7fd5dca
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
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/net/wireless/mediatek/mt76_new/dma.c: In function 'mt76_dma_rx_fill':
>> drivers/net/wireless/mediatek/mt76_new/dma.c:368:6: error: variable 'idx' set but not used [-Werror=unused-but-set-variable]
368 | int idx;
| ^~~
cc1: all warnings being treated as errors
--
>> drivers/net/wireless/mediatek/mt76_new/pci.c:8:6: error: no previous prototype for 'mt76_pci_disable_aspm' [-Werror=missing-prototypes]
8 | void mt76_pci_disable_aspm(struct pci_dev *pdev)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/mediatek/mt76_new/pci.c: In function 'mt76_pci_disable_aspm':
drivers/net/wireless/mediatek/mt76_new/pci.c:31:6: error: "LINUX_VERSION_CODE" is not defined, evaluates to 0 [-Werror=undef]
31 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0))
| ^~~~~~~~~~~~~~~~~~
drivers/net/wireless/mediatek/mt76_new/pci.c:31:28: error: "KERNEL_VERSION" is not defined, evaluates to 0 [-Werror=undef]
31 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0))
| ^~~~~~~~~~~~~~
drivers/net/wireless/mediatek/mt76_new/pci.c:31:42: error: missing binary operator before token "("
31 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0))
| ^
cc1: all warnings being treated as errors
--
drivers/net/wireless/mediatek/mt76_new/mt76x0/phy.c: In function 'mt76x0_phy_rf_init':
>> drivers/net/wireless/mediatek/mt76_new/mt76x0/phy.c:1166:5: warning: variable 'val' set but not used [-Wunused-but-set-variable]
1166 | u8 val;
| ^~~
In file included from drivers/net/wireless/mediatek/mt76_new/mt76x0/phy.c:24:
At top level:
drivers/net/wireless/mediatek/mt76_new/mt76x0/initvals.h:226:35: warning: 'mt76x0_dcoc_tab' defined but not used [-Wunused-const-variable=]
226 | static const struct mt76_reg_pair mt76x0_dcoc_tab[] = {
| ^~~~~~~~~~~~~~~
drivers/net/wireless/mediatek/mt76_new/mt76x0/initvals.h:94:35: warning: 'mt76x0_bbp_init_tab' defined but not used [-Wunused-const-variable=]
94 | static const struct mt76_reg_pair mt76x0_bbp_init_tab[] = {
| ^~~~~~~~~~~~~~~~~~~
drivers/net/wireless/mediatek/mt76_new/mt76x0/initvals.h:56:35: warning: 'mt76x0_mac_reg_table' defined but not used [-Wunused-const-variable=]
56 | static const struct mt76_reg_pair mt76x0_mac_reg_table[] = {
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/mediatek/mt76_new/mt76x0/initvals.h:22:35: warning: 'common_mac_reg_table' defined but not used [-Wunused-const-variable=]
22 | static const struct mt76_reg_pair common_mac_reg_table[] = {
| ^~~~~~~~~~~~~~~~~~~~
vim +/idx +368 drivers/net/wireless/mediatek/mt76_new/dma.c
359
360 static int
361 mt76_dma_rx_fill(struct mt76_dev *dev, struct mt76_queue *q)
362 {
363 dma_addr_t addr;
364 void *buf;
365 int frames = 0;
366 int len = SKB_WITH_OVERHEAD(q->buf_size);
367 int offset = q->buf_offset;
> 368 int idx;
369
370 spin_lock_bh(&q->lock);
371
372 while (q->queued < q->ndesc - 1) {
373 struct mt76_queue_buf qbuf;
374
375 buf = page_frag_alloc(&q->rx_page, q->buf_size, GFP_ATOMIC);
376 if (!buf)
377 break;
378
379 addr = dma_map_single(dev->dev, buf, len, DMA_FROM_DEVICE);
380 if (unlikely(dma_mapping_error(dev->dev, addr))) {
381 skb_free_frag(buf);
382 break;
383 }
384
385 qbuf.addr = addr + offset;
386 qbuf.len = len - offset;
387 idx = mt76_dma_add_buf(dev, q, &qbuf, 1, 0, buf, NULL);
388 frames++;
389 }
390
391 if (frames)
392 mt76_dma_kick_queue(dev, q);
393
394 spin_unlock_bh(&q->lock);
395
396 return frames;
397 }
398
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[ti:ti-rt-linux-5.10.y 4890/4997] drivers/remoteproc/remoteproc_core.c:2104 rproc_boot() warn: inconsistent indenting
by kernel test robot
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: 05ce062dfc56a4d1020fa29837a42f5b76c2dd4c
commit: f84f01271e4e4deffc108645bc543ff9ced6960d [4890/4997] remoteproc: add infrastructure support for userspace driven loading
config: x86_64-randconfig-m001-20210519 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
drivers/remoteproc/remoteproc_core.c:2104 rproc_boot() warn: inconsistent indenting
drivers/remoteproc/remoteproc_core.c:2108 rproc_boot() error: uninitialized symbol 'firmware_p'.
vim +2104 drivers/remoteproc/remoteproc_core.c
4eb45c11141832 Suman Anna 2018-01-15 2049
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2050 /**
1b0ef9068f053d Suman Anna 2017-07-20 2051 * rproc_boot() - boot a remote processor
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2052 * @rproc: handle of a remote processor
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2053 *
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2054 * Boot a remote processor (i.e. load its firmware, power it on, ...).
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2055 *
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2056 * If the remote processor is already powered on, this function immediately
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2057 * returns (successfully).
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2058 *
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2059 * Returns 0 on success, and an appropriate error value otherwise.
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2060 */
1b0ef9068f053d Suman Anna 2017-07-20 2061 int rproc_boot(struct rproc *rproc)
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2062 {
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2063 const struct firmware *firmware_p;
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2064 struct device *dev;
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2065 int ret;
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2066
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2067 if (!rproc) {
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2068 pr_err("invalid rproc handle\n");
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2069 return -EINVAL;
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2070 }
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2071
b5ab5e24e960b9 Ohad Ben-Cohen 2012-05-30 2072 dev = &rproc->dev;
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2073
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2074 ret = mutex_lock_interruptible(&rproc->lock);
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2075 if (ret) {
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2076 dev_err(dev, "can't lock rproc %s: %d\n", rproc->name, ret);
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2077 return ret;
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2078 }
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2079
2099c77d4af7d1 Sarangdhar Joshi 2017-01-23 2080 if (rproc->state == RPROC_DELETED) {
2099c77d4af7d1 Sarangdhar Joshi 2017-01-23 2081 ret = -ENODEV;
2099c77d4af7d1 Sarangdhar Joshi 2017-01-23 2082 dev_err(dev, "can't boot deleted rproc %s\n", rproc->name);
2099c77d4af7d1 Sarangdhar Joshi 2017-01-23 2083 goto unlock_mutex;
2099c77d4af7d1 Sarangdhar Joshi 2017-01-23 2084 }
2099c77d4af7d1 Sarangdhar Joshi 2017-01-23 2085
0f9dc562b721aa Mathieu Poirier 2020-07-14 2086 /* skip the boot or attach process if rproc is already powered up */
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2087 if (atomic_inc_return(&rproc->power) > 1) {
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2088 ret = 0;
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2089 goto unlock_mutex;
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2090 }
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2091
0f9dc562b721aa Mathieu Poirier 2020-07-14 2092 if (rproc->state == RPROC_DETACHED) {
0f9dc562b721aa Mathieu Poirier 2020-07-14 2093 dev_info(dev, "attaching to %s\n", rproc->name);
0f9dc562b721aa Mathieu Poirier 2020-07-14 2094
978f5ec648b16f Mathieu Poirier 2021-03-12 2095 ret = rproc_attach(rproc);
0f9dc562b721aa Mathieu Poirier 2020-07-14 2096 } else {
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2097 dev_info(dev, "powering up %s\n", rproc->name);
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2098
f84f01271e4e4d Suman Anna 2021-04-21 2099 if (!rproc->skip_firmware_load) {
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2100 /* load firmware */
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2101 ret = request_firmware(&firmware_p, rproc->firmware, dev);
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2102 if (ret < 0) {
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2103 dev_err(dev, "request_firmware failed: %d\n", ret);
400e64df6b237e Ohad Ben-Cohen 2011-10-20 @2104 goto downref_rproc;
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2105 }
f84f01271e4e4d Suman Anna 2021-04-21 2106 }
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2107
400e64df6b237e Ohad Ben-Cohen 2011-10-20 @2108 ret = rproc_fw_boot(rproc, firmware_p);
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2109
f84f01271e4e4d Suman Anna 2021-04-21 2110 if (!rproc->skip_firmware_load)
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2111 release_firmware(firmware_p);
0f9dc562b721aa Mathieu Poirier 2020-07-14 2112 }
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2113
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2114 downref_rproc:
fbb6aacb078285 Bjorn Andersson 2016-10-02 2115 if (ret)
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2116 atomic_dec(&rproc->power);
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2117 unlock_mutex:
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2118 mutex_unlock(&rproc->lock);
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2119 return ret;
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2120 }
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2121 EXPORT_SYMBOL(rproc_boot);
400e64df6b237e Ohad Ben-Cohen 2011-10-20 2122
:::::: The code at line 2104 was first introduced by commit
:::::: 400e64df6b237eb36b127efd72000a2794f9eec1 remoteproc: add framework for controlling remote processors
:::::: TO: Ohad Ben-Cohen <ohad(a)wizery.com>
:::::: CC: Ohad Ben-Cohen <ohad(a)wizery.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[ti:ti-rt-linux-5.10.y 4414/4997] drivers/pci/controller/dwc/pci-keystone.c:299:6: warning: no previous prototype for function 'ks_pcie_irq_eoi'
by kernel test robot
Hi Kishon,
FYI, the error/warning still remains.
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: 05ce062dfc56a4d1020fa29837a42f5b76c2dd4c
commit: f765f578153d8bfc7a035b1fce2c09d2c41bd980 [4414/4997] PCI: keystone: Convert to using hierarchy domain for legacy interrupts
config: arm64-randconfig-r002-20210519 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8e93d10633d751a3e9169bf9fa68326925ffa097)
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
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 f765f578153d8bfc7a035b1fce2c09d2c41bd980
# 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/pci/controller/dwc/pci-keystone.c:299:6: warning: no previous prototype for function 'ks_pcie_irq_eoi' [-Wmissing-prototypes]
void ks_pcie_irq_eoi(struct irq_data *data)
^
drivers/pci/controller/dwc/pci-keystone.c:299:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void ks_pcie_irq_eoi(struct irq_data *data)
^
static
>> drivers/pci/controller/dwc/pci-keystone.c:308:6: warning: no previous prototype for function 'ks_pcie_irq_enable' [-Wmissing-prototypes]
void ks_pcie_irq_enable(struct irq_data *data)
^
drivers/pci/controller/dwc/pci-keystone.c:308:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void ks_pcie_irq_enable(struct irq_data *data)
^
static
>> drivers/pci/controller/dwc/pci-keystone.c:317:6: warning: no previous prototype for function 'ks_pcie_irq_disable' [-Wmissing-prototypes]
void ks_pcie_irq_disable(struct irq_data *data)
^
drivers/pci/controller/dwc/pci-keystone.c:317:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void ks_pcie_irq_disable(struct irq_data *data)
^
static
3 warnings generated.
vim +/ks_pcie_irq_eoi +299 drivers/pci/controller/dwc/pci-keystone.c
298
> 299 void ks_pcie_irq_eoi(struct irq_data *data)
300 {
301 struct keystone_pcie *ks_pcie = irq_data_get_irq_chip_data(data);
302 irq_hw_number_t hwirq = data->hwirq;
303
304 ks_pcie_app_writel(ks_pcie, IRQ_EOI, hwirq);
305 irq_chip_eoi_parent(data);
306 }
307
> 308 void ks_pcie_irq_enable(struct irq_data *data)
309 {
310 struct keystone_pcie *ks_pcie = irq_data_get_irq_chip_data(data);
311 irq_hw_number_t hwirq = data->hwirq;
312
313 ks_pcie_app_writel(ks_pcie, IRQ_ENABLE_SET(hwirq), INTx_EN);
314 irq_chip_enable_parent(data);
315 }
316
> 317 void ks_pcie_irq_disable(struct irq_data *data)
318 {
319 struct keystone_pcie *ks_pcie = irq_data_get_irq_chip_data(data);
320 irq_hw_number_t hwirq = data->hwirq;
321
322 ks_pcie_app_writel(ks_pcie, IRQ_ENABLE_CLR(hwirq), INTx_EN);
323 irq_chip_disable_parent(data);
324 }
325
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months