drivers/usb/host/ehci-hcd.c:1286: warning: "PLATFORM_DRIVER" redefined
by kernel test robot
Hi Krzysztof,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f01c30de86f1047e9bae1b1b1417b0ce8dcd15b1
commit: 88eaaecc44461f9fb147bf7ee6ccc6d4e9fc23e0 usb: host: Enable compile testing for some of drivers
date: 11 months ago
config: sparc-randconfig-r023-20201115 (attached as .config)
compiler: sparc-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 88eaaecc44461f9fb147bf7ee6ccc6d4e9fc23e0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
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/usb/host/ehci-hcd.c:1286: warning: "PLATFORM_DRIVER" redefined
1286 | #define PLATFORM_DRIVER ehci_grlib_driver
|
drivers/usb/host/ehci-hcd.c:1261: note: this is the location of the previous definition
1261 | #define PLATFORM_DRIVER ehci_hcd_sh_driver
|
In file included from drivers/usb/host/ehci-hcd.c:1260:
drivers/usb/host/ehci-sh.c:173:31: warning: 'ehci_hcd_sh_driver' defined but not used [-Wunused-variable]
173 | static struct platform_driver ehci_hcd_sh_driver = {
| ^~~~~~~~~~~~~~~~~~
vim +/PLATFORM_DRIVER +1286 drivers/usb/host/ehci-hcd.c
22ced6874fc47bb Anoop 2011-02-24 1283
9be039298930636 Jan Andersson 2011-05-03 1284 #ifdef CONFIG_SPARC_LEON
9be039298930636 Jan Andersson 2011-05-03 1285 #include "ehci-grlib.c"
9be039298930636 Jan Andersson 2011-05-03 @1286 #define PLATFORM_DRIVER ehci_grlib_driver
9be039298930636 Jan Andersson 2011-05-03 1287 #endif
9be039298930636 Jan Andersson 2011-05-03 1288
:::::: The code at line 1286 was first introduced by commit
:::::: 9be0392989306361d4a63a06a8ee281efbead548 USB: EHCI: Add bus glue for GRLIB GRUSBHC controller
:::::: TO: Jan Andersson <jan(a)gaisler.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH 20/32] riscv: Add Kendryte K210 FPIOA pinctrl driver
by kernel test robot
Hi Damien,
I love your patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on spi/for-next pza/reset/next v5.10-rc3]
[cannot apply to linus/master next-20201113]
[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/Damien-Le-Moal/RISC-V-Kendryte-K...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: riscv-randconfig-r026-20201109 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 09ec07827b1128504457a93dee80b2ceee1af600)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/0day-ci/linux/commit/b53c7c4d3b5b4658b4951955fd69c0ceb...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Damien-Le-Moal/RISC-V-Kendryte-K210-support-improvments/20201109-095540
git checkout b53c7c4d3b5b4658b4951955fd69c0ceb4bfac4d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/pinctrl/pinctrl-k210.c:6:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:556:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inb(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:55:76: note: expanded from macro 'inb'
#define inb(c) ({ u8 __v; __io_pbr(); __v = readb_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:87:48: note: expanded from macro 'readb_cpu'
#define readb_cpu(c) ({ u8 __r = __raw_readb(c); __r; })
^
In file included from drivers/pinctrl/pinctrl-k210.c:6:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:564:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inw(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:56:76: note: expanded from macro 'inw'
#define inw(c) ({ u16 __v; __io_pbr(); __v = readw_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:88:76: note: expanded from macro 'readw_cpu'
#define readw_cpu(c) ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from drivers/pinctrl/pinctrl-k210.c:6:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:572:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inl(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:57:76: note: expanded from macro 'inl'
#define inl(c) ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:89:76: note: expanded from macro 'readl_cpu'
#define readl_cpu(c) ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from drivers/pinctrl/pinctrl-k210.c:6:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:580:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outb(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:59:68: note: expanded from macro 'outb'
#define outb(v,c) ({ __io_pbw(); writeb_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:91:52: note: expanded from macro 'writeb_cpu'
#define writeb_cpu(v, c) ((void)__raw_writeb((v), (c)))
^
In file included from drivers/pinctrl/pinctrl-k210.c:6:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:588:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outw(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outw'
#define outw(v,c) ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
#define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
^
In file included from drivers/pinctrl/pinctrl-k210.c:6:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:596:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outl(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:61:68: note: expanded from macro 'outl'
#define outl(v,c) ({ __io_pbw(); writel_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:93:76: note: expanded from macro 'writel_cpu'
#define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
^
In file included from drivers/pinctrl/pinctrl-k210.c:6:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:1005:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
drivers/pinctrl/pinctrl-k210.c:135:2: error: initializer element is not a compile-time constant
K210_PIN_NAME(0), K210_PIN_NAME(1), K210_PIN_NAME(2),
^~~~~~~~~~~~~~~~
drivers/pinctrl/pinctrl-k210.c:132:45: note: expanded from macro 'K210_PIN_NAME'
#define K210_PIN_NAME(i) [i] = k210_pins[i].name
~~~~~~~~~~~~~^~~~
>> drivers/pinctrl/pinctrl-k210.c:848:5: warning: no previous prototype for function 'k210_pinctrl_dt_node_to_map' [-Wmissing-prototypes]
int k210_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev,
^
drivers/pinctrl/pinctrl-k210.c:848:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int k210_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev,
^
static
8 warnings and 1 error generated.
vim +/k210_pinctrl_dt_node_to_map +848 drivers/pinctrl/pinctrl-k210.c
847
> 848 int k210_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev,
849 struct device_node *np_config,
850 struct pinctrl_map **map, unsigned int *num_maps)
851 {
852 unsigned int reserved_maps;
853 struct device_node *np;
854 int ret;
855
856 reserved_maps = 0;
857 *map = NULL;
858 *num_maps = 0;
859
860 ret = k210_pinctrl_dt_subnode_to_map(pctldev, np_config, map,
861 &reserved_maps, num_maps);
862 if (ret < 0)
863 goto err;
864
865 for_each_available_child_of_node(np_config, np) {
866 ret = k210_pinctrl_dt_subnode_to_map(pctldev, np, map,
867 &reserved_maps, num_maps);
868 if (ret < 0)
869 goto err;
870 }
871 return 0;
872
873 err:
874 pinctrl_utils_free_map(pctldev, *map, *num_maps);
875 return ret;
876 }
877
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[linux-next:master 3817/5794] drivers/gpu/drm/msm/msm_gem.c:1014:10: error: initialization of 'int drm_gem_object struct dma_buf_map from incompatible pointer type 'void COPYING CREDITS Documentation Kbuild Kconfig LICENSES MAINTAINERS Makefile README arch block certs crypto drivers fs include init ipc kernel lib mm net samples scripts security sound tools usr virt drm_gem_object
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 92edc4aef86780a8ad01b092c6d6630bb3cb423d
commit: 49a3f51dfeeecb52c5aa28c5cb9592fe5e39bf95 [3817/5794] drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends
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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 49a3f51dfeeecb52c5aa28c5cb9592fe5e39bf95
# 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>
Note: the linux-next/master HEAD 92edc4aef86780a8ad01b092c6d6630bb3cb423d builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/msm/msm_gem.c:1014:10: error: initialization of 'int (*)(struct drm_gem_object *, struct dma_buf_map *)' from incompatible pointer type 'void * (*)(struct drm_gem_object *)' [-Werror=incompatible-pointer-types]
1014 | .vmap = msm_gem_prime_vmap,
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/msm/msm_gem.c:1014:10: note: (near initialization for 'msm_gem_object_funcs.vmap')
>> drivers/gpu/drm/msm/msm_gem.c:1015:12: error: initialization of 'void (*)(struct drm_gem_object *, struct dma_buf_map *)' from incompatible pointer type 'void (*)(struct drm_gem_object *, void *)' [-Werror=incompatible-pointer-types]
1015 | .vunmap = msm_gem_prime_vunmap,
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/msm/msm_gem.c:1015:12: note: (near initialization for 'msm_gem_object_funcs.vunmap')
cc1: some warnings being treated as errors
vim +1014 drivers/gpu/drm/msm/msm_gem.c
3c9edd9c85f53e Thomas Zimmermann 2020-09-23 1008
3c9edd9c85f53e Thomas Zimmermann 2020-09-23 1009 static const struct drm_gem_object_funcs msm_gem_object_funcs = {
3c9edd9c85f53e Thomas Zimmermann 2020-09-23 1010 .free = msm_gem_free_object,
3c9edd9c85f53e Thomas Zimmermann 2020-09-23 1011 .pin = msm_gem_prime_pin,
3c9edd9c85f53e Thomas Zimmermann 2020-09-23 1012 .unpin = msm_gem_prime_unpin,
3c9edd9c85f53e Thomas Zimmermann 2020-09-23 1013 .get_sg_table = msm_gem_prime_get_sg_table,
3c9edd9c85f53e Thomas Zimmermann 2020-09-23 @1014 .vmap = msm_gem_prime_vmap,
3c9edd9c85f53e Thomas Zimmermann 2020-09-23 @1015 .vunmap = msm_gem_prime_vunmap,
3c9edd9c85f53e Thomas Zimmermann 2020-09-23 1016 .vm_ops = &vm_ops,
3c9edd9c85f53e Thomas Zimmermann 2020-09-23 1017 };
3c9edd9c85f53e Thomas Zimmermann 2020-09-23 1018
:::::: The code at line 1014 was first introduced by commit
:::::: 3c9edd9c85f53e047dad867da63e54e78e6f7b6d drm/msm: Introduce GEM object funcs
:::::: TO: Thomas Zimmermann <tzimmermann(a)suse.de>
:::::: CC: Thomas Zimmermann <tzimmermann(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
sun6i-msgbox.c:undefined reference to `devm_ioremap_resource'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f01c30de86f1047e9bae1b1b1417b0ce8dcd15b1
commit: 25831c44b0b79ac6261d36d7e777a52bdf92f239 mailbox: sun6i-msgbox: Add a new mailbox driver
date: 8 months ago
config: s390-randconfig-r014-20201115 (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 25831c44b0b79ac6261d36d7e777a52bdf92f239
# 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: renesas-soc.c:(.init.text+0xf4): undefined reference to `ioremap'
s390-linux-ld: renesas-soc.c:(.init.text+0x108): undefined reference to `iounmap'
s390-linux-ld: drivers/soc/renesas/rcar-sysc.o: in function `rcar_sysc_pd_init':
rcar-sysc.c:(.init.text+0x7c): undefined reference to `of_iomap'
s390-linux-ld: drivers/regulator/stm32-vrefbuf.o: in function `stm32_vrefbuf_probe':
stm32-vrefbuf.c:(.text+0x290): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/regulator/stm32-pwr.o: in function `stm32_pwr_regulator_probe':
stm32-pwr.c:(.text+0x250): undefined reference to `of_iomap'
s390-linux-ld: drivers/regulator/uniphier-regulator.o: in function `uniphier_regulator_probe':
uniphier-regulator.c:(.text+0xd0): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/reset/reset-ath79.o: in function `ath79_reset_probe':
reset-ath79.c:(.text+0x8c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-lpc18xx.o: in function `lpc18xx_rgu_probe':
reset-lpc18xx.c:(.text+0x106): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-meson.o: in function `meson_reset_probe':
reset-meson.c:(.text+0x86): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-meson-audio-arb.o: in function `meson_audio_arb_probe':
reset-meson-audio-arb.c:(.text+0xd6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-npcm.o: in function `npcm_rc_probe':
reset-npcm.c:(.text+0x254): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/reset/reset-qcom-pdc.o: in function `qcom_pdc_reset_probe':
reset-qcom-pdc.c:(.text+0x116): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-simple.o: in function `reset_simple_probe':
reset-simple.c:(.text+0xa8): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-stm32mp1.o: in function `stm32_reset_probe':
reset-stm32mp1.c:(.text+0x11a): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-sunxi.o: in function `sun6i_reset_init':
reset-sunxi.c:(.init.text+0x6a): undefined reference to `of_address_to_resource'
s390-linux-ld: reset-sunxi.c:(.init.text+0xb6): undefined reference to `ioremap'
s390-linux-ld: drivers/reset/reset-uniphier-glue.o: in function `uniphier_glue_reset_probe':
reset-uniphier-glue.c:(.text+0x11a): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mfd/syscon.o: in function `syscon_probe':
syscon.c:(.text+0x96): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/mfd/syscon.o: in function `of_syscon_register.isra.0':
syscon.c:(.text+0x1a6): undefined reference to `of_address_to_resource'
s390-linux-ld: syscon.c:(.text+0x1e6): undefined reference to `ioremap'
s390-linux-ld: syscon.c:(.text+0x374): undefined reference to `iounmap'
s390-linux-ld: drivers/mtd/nand/raw/mxic_nand.o: in function `mxic_nfc_probe':
mxic_nand.c:(.text+0x1fc): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mtd/nand/raw/stm32_fmc2_nand.o: in function `stm32_fmc2_probe':
stm32_fmc2_nand.c:(.text+0x19ce): undefined reference to `devm_ioremap_resource'
s390-linux-ld: stm32_fmc2_nand.c:(.text+0x1a3e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: stm32_fmc2_nand.c:(.text+0x1a88): undefined reference to `devm_ioremap_resource'
s390-linux-ld: stm32_fmc2_nand.c:(.text+0x1ac6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mtd/nand/raw/meson_nand.o: in function `meson_nfc_probe':
meson_nand.c:(.text+0x44e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `set_cis_map':
cistpl.c:(.text+0xac4): undefined reference to `iounmap'
s390-linux-ld: cistpl.c:(.text+0xad6): undefined reference to `ioremap'
s390-linux-ld: cistpl.c:(.text+0xb38): undefined reference to `ioremap'
s390-linux-ld: cistpl.c:(.text+0xb52): undefined reference to `iounmap'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `release_cis_mem':
cistpl.c:(.text+0xcf8): undefined reference to `iounmap'
s390-linux-ld: drivers/input/serio/apbps2.o: in function `apbps2_of_probe':
apbps2.c:(.text+0x246): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/input/serio/olpc_apsp.o: in function `olpc_apsp_probe':
olpc_apsp.c:(.text+0x2dc): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/input/serio/sun4i-ps2.o: in function `sun4i_ps2_remove':
sun4i-ps2.c:(.text+0x40): undefined reference to `iounmap'
s390-linux-ld: drivers/input/serio/sun4i-ps2.o: in function `sun4i_ps2_probe':
sun4i-ps2.c:(.text+0x350): undefined reference to `ioremap'
s390-linux-ld: sun4i-ps2.c:(.text+0x4f2): undefined reference to `iounmap'
s390-linux-ld: drivers/crypto/atmel-aes.o: in function `atmel_aes_probe':
atmel-aes.c:(.text+0x7be): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/atmel-tdes.o: in function `atmel_tdes_probe':
atmel-tdes.c:(.text+0x856): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/img-hash.o: in function `img_hash_probe':
img-hash.c:(.text+0xd70): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: img-hash.c:(.text+0xda8): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/mediatek/mtk-platform.o: in function `mtk_crypto_probe':
mtk-platform.c:(.text+0x6f4): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/crypto/qcom-rng.o: in function `qcom_rng_probe':
qcom-rng.c:(.text+0x11c): 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+0x38): undefined reference to `of_iomap'
s390-linux-ld: timer-of.c:(.init.text+0x1f2): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_cleanup':
timer-of.c:(.init.text+0x276): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-davinci.o: in function `of_davinci_timer_register':
timer-davinci.c:(.init.text+0x2a): undefined reference to `of_address_to_resource'
s390-linux-ld: drivers/clocksource/timer-davinci.o: in function `davinci_timer_register':
timer-davinci.c:(.init.text+0x11e): undefined reference to `ioremap'
s390-linux-ld: drivers/clocksource/clps711x-timer.o: in function `clps711x_timer_init':
clps711x-timer.c:(.init.text+0x32): undefined reference to `of_iomap'
s390-linux-ld: drivers/clocksource/timer-zevio.o: in function `zevio_timer_init':
timer-zevio.c:(.init.text+0x44): undefined reference to `of_iomap'
s390-linux-ld: timer-zevio.c:(.init.text+0x86): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/bcm_kona_timer.o: in function `kona_timer_init':
bcm_kona_timer.c:(.init.text+0x60): undefined reference to `of_iomap'
s390-linux-ld: drivers/mailbox/imx-mailbox.o: in function `imx_mu_probe':
imx-mailbox.c:(.text+0x12c): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mailbox/rockchip-mailbox.o: in function `rockchip_mbox_probe':
rockchip-mailbox.c:(.text+0x40e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mailbox/bcm-pdc-mailbox.o: in function `pdc_probe':
bcm-pdc-mailbox.c:(.text+0x788): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mailbox/qcom-apcs-ipc-mailbox.o: in function `qcom_apcs_ipc_probe':
qcom-apcs-ipc-mailbox.c:(.text+0x102): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mailbox/mtk-cmdq-mailbox.o: in function `cmdq_probe':
mtk-cmdq-mailbox.c:(.text+0x196): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mailbox/sun6i-msgbox.o: in function `sun6i_msgbox_probe':
>> sun6i-msgbox.c:(.text+0x5f0): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/rpmsg/qcom_smd.o: in function `qcom_smd_channel_peek':
qcom_smd.c:(.text+0x680): undefined reference to `__ioread32_copy'
s390-linux-ld: qcom_smd.c:(.text+0x6aa): undefined reference to `__ioread32_copy'
s390-linux-ld: drivers/rpmsg/qcom_smd.o: in function `qcom_smd_write_fifo':
qcom_smd.c:(.text+0xc18): undefined reference to `__iowrite32_copy'
s390-linux-ld: qcom_smd.c:(.text+0xc3c): undefined reference to `__iowrite32_copy'
s390-linux-ld: drivers/fpga/socfpga-a10.o: in function `socfpga_a10_fpga_probe':
socfpga-a10.c:(.text+0x346): undefined reference to `devm_ioremap_resource'
s390-linux-ld: socfpga-a10.c:(.text+0x374): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/fpga/zynq-fpga.o: in function `zynq_fpga_probe':
zynq-fpga.c:(.text+0x53c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/counter/ti-eqep.o: in function `ti_eqep_probe':
ti-eqep.c:(.text+0x464): undefined reference to `devm_platform_ioremap_resource'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH v5 3/9] lib: zstd: Upgrade to latest upstream zstd version 1.4.6
by kernel test robot
Hi Nick,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on cryptodev/master]
[also build test WARNING on kdave/for-next f2fs/dev-test linus/master v5.10-rc3 next-20201113]
[cannot apply to crypto/master squashfs/master]
[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/Nick-Terrell/lib-zstd-Add-zstd-c...
base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: h8300-randconfig-r033-20201104 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/667e96565ce79ec24e0ced9ec4093e926...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Nick-Terrell/lib-zstd-Add-zstd-compatibility-wrapper/20201103-150617
git checkout 667e96565ce79ec24e0ced9ec4093e92647e4163
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
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 >>):
lib/zstd/compress/zstd_double_fast.c: In function 'ZSTD_compressBlock_doubleFast_extDict_generic':
>> lib/zstd/compress/zstd_double_fast.c:501:1: warning: the frame size of 1256 bytes is larger than 1024 bytes [-Wframe-larger-than=]
501 | }
| ^
lib/zstd/compress/zstd_double_fast.c: In function 'ZSTD_compressBlock_doubleFast':
lib/zstd/compress/zstd_double_fast.c:336:1: warning: the frame size of 1224 bytes is larger than 1024 bytes [-Wframe-larger-than=]
336 | }
| ^
lib/zstd/compress/zstd_double_fast.c: In function 'ZSTD_compressBlock_doubleFast_dictMatchState':
lib/zstd/compress/zstd_double_fast.c:356:1: warning: the frame size of 1320 bytes is larger than 1024 bytes [-Wframe-larger-than=]
356 | }
| ^
--
lib/zstd/compress/zstd_fast.c: In function 'ZSTD_compressBlock_fast_extDict_generic':
>> lib/zstd/compress/zstd_fast.c:476:1: warning: the frame size of 1156 bytes is larger than 1024 bytes [-Wframe-larger-than=]
476 | }
| ^
vim +501 lib/zstd/compress/zstd_double_fast.c
357
358
359 static size_t ZSTD_compressBlock_doubleFast_extDict_generic(
360 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
361 void const* src, size_t srcSize,
362 U32 const mls /* template */)
363 {
364 ZSTD_compressionParameters const* cParams = &ms->cParams;
365 U32* const hashLong = ms->hashTable;
366 U32 const hBitsL = cParams->hashLog;
367 U32* const hashSmall = ms->chainTable;
368 U32 const hBitsS = cParams->chainLog;
369 const BYTE* const istart = (const BYTE*)src;
370 const BYTE* ip = istart;
371 const BYTE* anchor = istart;
372 const BYTE* const iend = istart + srcSize;
373 const BYTE* const ilimit = iend - 8;
374 const BYTE* const base = ms->window.base;
375 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize);
376 const U32 lowLimit = ZSTD_getLowestMatchIndex(ms, endIndex, cParams->windowLog);
377 const U32 dictStartIndex = lowLimit;
378 const U32 dictLimit = ms->window.dictLimit;
379 const U32 prefixStartIndex = (dictLimit > lowLimit) ? dictLimit : lowLimit;
380 const BYTE* const prefixStart = base + prefixStartIndex;
381 const BYTE* const dictBase = ms->window.dictBase;
382 const BYTE* const dictStart = dictBase + dictStartIndex;
383 const BYTE* const dictEnd = dictBase + prefixStartIndex;
384 U32 offset_1=rep[0], offset_2=rep[1];
385
386 DEBUGLOG(5, "ZSTD_compressBlock_doubleFast_extDict_generic (srcSize=%zu)", srcSize);
387
388 /* if extDict is invalidated due to maxDistance, switch to "regular" variant */
389 if (prefixStartIndex == dictStartIndex)
390 return ZSTD_compressBlock_doubleFast_generic(ms, seqStore, rep, src, srcSize, mls, ZSTD_noDict);
391
392 /* Search Loop */
393 while (ip < ilimit) { /* < instead of <=, because (ip+1) */
394 const size_t hSmall = ZSTD_hashPtr(ip, hBitsS, mls);
395 const U32 matchIndex = hashSmall[hSmall];
396 const BYTE* const matchBase = matchIndex < prefixStartIndex ? dictBase : base;
397 const BYTE* match = matchBase + matchIndex;
398
399 const size_t hLong = ZSTD_hashPtr(ip, hBitsL, 8);
400 const U32 matchLongIndex = hashLong[hLong];
401 const BYTE* const matchLongBase = matchLongIndex < prefixStartIndex ? dictBase : base;
402 const BYTE* matchLong = matchLongBase + matchLongIndex;
403
404 const U32 curr = (U32)(ip-base);
405 const U32 repIndex = curr + 1 - offset_1; /* offset_1 expected <= curr +1 */
406 const BYTE* const repBase = repIndex < prefixStartIndex ? dictBase : base;
407 const BYTE* const repMatch = repBase + repIndex;
408 size_t mLength;
409 hashSmall[hSmall] = hashLong[hLong] = curr; /* update hash table */
410
411 if ((((U32)((prefixStartIndex-1) - repIndex) >= 3) /* intentional underflow : ensure repIndex doesn't overlap dict + prefix */
412 & (repIndex > dictStartIndex))
413 && (MEM_read32(repMatch) == MEM_read32(ip+1)) ) {
414 const BYTE* repMatchEnd = repIndex < prefixStartIndex ? dictEnd : iend;
415 mLength = ZSTD_count_2segments(ip+1+4, repMatch+4, iend, repMatchEnd, prefixStart) + 4;
416 ip++;
417 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, 0, mLength-MINMATCH);
418 } else {
419 if ((matchLongIndex > dictStartIndex) && (MEM_read64(matchLong) == MEM_read64(ip))) {
420 const BYTE* const matchEnd = matchLongIndex < prefixStartIndex ? dictEnd : iend;
421 const BYTE* const lowMatchPtr = matchLongIndex < prefixStartIndex ? dictStart : prefixStart;
422 U32 offset;
423 mLength = ZSTD_count_2segments(ip+8, matchLong+8, iend, matchEnd, prefixStart) + 8;
424 offset = curr - matchLongIndex;
425 while (((ip>anchor) & (matchLong>lowMatchPtr)) && (ip[-1] == matchLong[-1])) { ip--; matchLong--; mLength++; } /* catch up */
426 offset_2 = offset_1;
427 offset_1 = offset;
428 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATCH);
429
430 } else if ((matchIndex > dictStartIndex) && (MEM_read32(match) == MEM_read32(ip))) {
431 size_t const h3 = ZSTD_hashPtr(ip+1, hBitsL, 8);
432 U32 const matchIndex3 = hashLong[h3];
433 const BYTE* const match3Base = matchIndex3 < prefixStartIndex ? dictBase : base;
434 const BYTE* match3 = match3Base + matchIndex3;
435 U32 offset;
436 hashLong[h3] = curr + 1;
437 if ( (matchIndex3 > dictStartIndex) && (MEM_read64(match3) == MEM_read64(ip+1)) ) {
438 const BYTE* const matchEnd = matchIndex3 < prefixStartIndex ? dictEnd : iend;
439 const BYTE* const lowMatchPtr = matchIndex3 < prefixStartIndex ? dictStart : prefixStart;
440 mLength = ZSTD_count_2segments(ip+9, match3+8, iend, matchEnd, prefixStart) + 8;
441 ip++;
442 offset = curr+1 - matchIndex3;
443 while (((ip>anchor) & (match3>lowMatchPtr)) && (ip[-1] == match3[-1])) { ip--; match3--; mLength++; } /* catch up */
444 } else {
445 const BYTE* const matchEnd = matchIndex < prefixStartIndex ? dictEnd : iend;
446 const BYTE* const lowMatchPtr = matchIndex < prefixStartIndex ? dictStart : prefixStart;
447 mLength = ZSTD_count_2segments(ip+4, match+4, iend, matchEnd, prefixStart) + 4;
448 offset = curr - matchIndex;
449 while (((ip>anchor) & (match>lowMatchPtr)) && (ip[-1] == match[-1])) { ip--; match--; mLength++; } /* catch up */
450 }
451 offset_2 = offset_1;
452 offset_1 = offset;
453 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATCH);
454
455 } else {
456 ip += ((ip-anchor) >> kSearchStrength) + 1;
457 continue;
458 } }
459
460 /* move to next sequence start */
461 ip += mLength;
462 anchor = ip;
463
464 if (ip <= ilimit) {
465 /* Complementary insertion */
466 /* done after iLimit test, as candidates could be > iend-8 */
467 { U32 const indexToInsert = curr+2;
468 hashLong[ZSTD_hashPtr(base+indexToInsert, hBitsL, 8)] = indexToInsert;
469 hashLong[ZSTD_hashPtr(ip-2, hBitsL, 8)] = (U32)(ip-2-base);
470 hashSmall[ZSTD_hashPtr(base+indexToInsert, hBitsS, mls)] = indexToInsert;
471 hashSmall[ZSTD_hashPtr(ip-1, hBitsS, mls)] = (U32)(ip-1-base);
472 }
473
474 /* check immediate repcode */
475 while (ip <= ilimit) {
476 U32 const current2 = (U32)(ip-base);
477 U32 const repIndex2 = current2 - offset_2;
478 const BYTE* repMatch2 = repIndex2 < prefixStartIndex ? dictBase + repIndex2 : base + repIndex2;
479 if ( (((U32)((prefixStartIndex-1) - repIndex2) >= 3) /* intentional overflow : ensure repIndex2 doesn't overlap dict + prefix */
480 & (repIndex2 > dictStartIndex))
481 && (MEM_read32(repMatch2) == MEM_read32(ip)) ) {
482 const BYTE* const repEnd2 = repIndex2 < prefixStartIndex ? dictEnd : iend;
483 size_t const repLength2 = ZSTD_count_2segments(ip+4, repMatch2+4, iend, repEnd2, prefixStart) + 4;
484 U32 const tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; /* swap offset_2 <=> offset_1 */
485 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, repLength2-MINMATCH);
486 hashSmall[ZSTD_hashPtr(ip, hBitsS, mls)] = current2;
487 hashLong[ZSTD_hashPtr(ip, hBitsL, 8)] = current2;
488 ip += repLength2;
489 anchor = ip;
490 continue;
491 }
492 break;
493 } } }
494
495 /* save reps for next block */
496 rep[0] = offset_1;
497 rep[1] = offset_2;
498
499 /* Return the last literals size */
500 return (size_t)(iend - anchor);
> 501 }
502
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
drivers/usb/musb/musbhsdma.c:324:8: warning: variable 'devctl' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f01c30de86f1047e9bae1b1b1417b0ce8dcd15b1
commit: 0990366bab3c6afb93b276106e1e24d4bc69db7b usb: musb: Add support for MediaTek musb controller
date: 10 months ago
config: microblaze-randconfig-r001-20201115 (attached as .config)
compiler: microblaze-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 0990366bab3c6afb93b276106e1e24d4bc69db7b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
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/usb/musb/musbhsdma.c: In function 'dma_controller_irq':
>> drivers/usb/musb/musbhsdma.c:324:8: warning: variable 'devctl' set but not used [-Wunused-but-set-variable]
324 | u8 devctl;
| ^~~~~~
vim +/devctl +324 drivers/usb/musb/musbhsdma.c
550a7375fe7209 Felipe Balbi 2008-07-24 265
edce61776c7e21 Min Guo 2020-01-15 266 irqreturn_t dma_controller_irq(int irq, void *private_data)
550a7375fe7209 Felipe Balbi 2008-07-24 267 {
458e6a511f9dc9 Felipe Balbi 2008-09-11 268 struct musb_dma_controller *controller = private_data;
458e6a511f9dc9 Felipe Balbi 2008-09-11 269 struct musb *musb = controller->private_data;
458e6a511f9dc9 Felipe Balbi 2008-09-11 270 struct musb_dma_channel *musb_channel;
458e6a511f9dc9 Felipe Balbi 2008-09-11 271 struct dma_channel *channel;
458e6a511f9dc9 Felipe Balbi 2008-09-11 272
458e6a511f9dc9 Felipe Balbi 2008-09-11 273 void __iomem *mbase = controller->base;
458e6a511f9dc9 Felipe Balbi 2008-09-11 274
550a7375fe7209 Felipe Balbi 2008-07-24 275 irqreturn_t retval = IRQ_NONE;
458e6a511f9dc9 Felipe Balbi 2008-09-11 276
550a7375fe7209 Felipe Balbi 2008-07-24 277 unsigned long flags;
550a7375fe7209 Felipe Balbi 2008-07-24 278
458e6a511f9dc9 Felipe Balbi 2008-09-11 279 u8 bchannel;
458e6a511f9dc9 Felipe Balbi 2008-09-11 280 u8 int_hsdma;
458e6a511f9dc9 Felipe Balbi 2008-09-11 281
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 282 u32 addr, count;
458e6a511f9dc9 Felipe Balbi 2008-09-11 283 u16 csr;
458e6a511f9dc9 Felipe Balbi 2008-09-11 284
550a7375fe7209 Felipe Balbi 2008-07-24 285 spin_lock_irqsave(&musb->lock, flags);
550a7375fe7209 Felipe Balbi 2008-07-24 286
9c93d7fd464e7a Min Guo 2020-01-15 287 int_hsdma = musb_clearb(mbase, MUSB_HSDMA_INTR);
550a7375fe7209 Felipe Balbi 2008-07-24 288
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 289 if (!int_hsdma) {
b99d3659b309b3 Bin Liu 2016-06-30 290 musb_dbg(musb, "spurious DMA irq");
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 291
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 292 for (bchannel = 0; bchannel < MUSB_HSDMA_CHANNELS; bchannel++) {
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 293 musb_channel = (struct musb_dma_channel *)
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 294 &(controller->channel[bchannel]);
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 295 channel = &musb_channel->channel;
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 296 if (channel->status == MUSB_DMA_STATUS_BUSY) {
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 297 count = musb_read_hsdma_count(mbase, bchannel);
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 298
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 299 if (count == 0)
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 300 int_hsdma |= (1 << bchannel);
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 301 }
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 302 }
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 303
b99d3659b309b3 Bin Liu 2016-06-30 304 musb_dbg(musb, "int_hsdma = 0x%x", int_hsdma);
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 305
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 306 if (!int_hsdma)
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 307 goto done;
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 308 }
f933a0c0fe0ea5 Anand Gadiyar 2009-12-28 309
458e6a511f9dc9 Felipe Balbi 2008-09-11 310 for (bchannel = 0; bchannel < MUSB_HSDMA_CHANNELS; bchannel++) {
458e6a511f9dc9 Felipe Balbi 2008-09-11 311 if (int_hsdma & (1 << bchannel)) {
458e6a511f9dc9 Felipe Balbi 2008-09-11 312 musb_channel = (struct musb_dma_channel *)
458e6a511f9dc9 Felipe Balbi 2008-09-11 313 &(controller->channel[bchannel]);
458e6a511f9dc9 Felipe Balbi 2008-09-11 314 channel = &musb_channel->channel;
550a7375fe7209 Felipe Balbi 2008-07-24 315
550a7375fe7209 Felipe Balbi 2008-07-24 316 csr = musb_readw(mbase,
458e6a511f9dc9 Felipe Balbi 2008-09-11 317 MUSB_HSDMA_CHANNEL_OFFSET(bchannel,
550a7375fe7209 Felipe Balbi 2008-07-24 318 MUSB_HSDMA_CONTROL));
550a7375fe7209 Felipe Balbi 2008-07-24 319
458e6a511f9dc9 Felipe Balbi 2008-09-11 320 if (csr & (1 << MUSB_HSDMA_BUSERROR_SHIFT)) {
458e6a511f9dc9 Felipe Balbi 2008-09-11 321 musb_channel->channel.status =
550a7375fe7209 Felipe Balbi 2008-07-24 322 MUSB_DMA_STATUS_BUS_ABORT;
458e6a511f9dc9 Felipe Balbi 2008-09-11 323 } else {
550a7375fe7209 Felipe Balbi 2008-07-24 @324 u8 devctl;
550a7375fe7209 Felipe Balbi 2008-07-24 325
6995eb68aab70e Bryan Wu 2008-12-02 326 addr = musb_read_hsdma_addr(mbase,
6995eb68aab70e Bryan Wu 2008-12-02 327 bchannel);
458e6a511f9dc9 Felipe Balbi 2008-09-11 328 channel->actual_len = addr
458e6a511f9dc9 Felipe Balbi 2008-09-11 329 - musb_channel->start_addr;
550a7375fe7209 Felipe Balbi 2008-07-24 330
b99d3659b309b3 Bin Liu 2016-06-30 331 musb_dbg(musb, "ch %p, 0x%x -> 0x%x (%zu / %d) %s",
458e6a511f9dc9 Felipe Balbi 2008-09-11 332 channel, musb_channel->start_addr,
458e6a511f9dc9 Felipe Balbi 2008-09-11 333 addr, channel->actual_len,
458e6a511f9dc9 Felipe Balbi 2008-09-11 334 musb_channel->len,
458e6a511f9dc9 Felipe Balbi 2008-09-11 335 (channel->actual_len
458e6a511f9dc9 Felipe Balbi 2008-09-11 336 < musb_channel->len) ?
550a7375fe7209 Felipe Balbi 2008-07-24 337 "=> reconfig 0" : "=> complete");
550a7375fe7209 Felipe Balbi 2008-07-24 338
550a7375fe7209 Felipe Balbi 2008-07-24 339 devctl = musb_readb(mbase, MUSB_DEVCTL);
550a7375fe7209 Felipe Balbi 2008-07-24 340
458e6a511f9dc9 Felipe Balbi 2008-09-11 341 channel->status = MUSB_DMA_STATUS_FREE;
550a7375fe7209 Felipe Balbi 2008-07-24 342
550a7375fe7209 Felipe Balbi 2008-07-24 343 /* completed */
c418fd6c01fbc5 Paul Elder 2019-01-30 344 if (musb_channel->transmit &&
c418fd6c01fbc5 Paul Elder 2019-01-30 345 (!channel->desired_mode ||
c418fd6c01fbc5 Paul Elder 2019-01-30 346 (channel->actual_len %
c418fd6c01fbc5 Paul Elder 2019-01-30 347 musb_channel->max_packet_sz))) {
b6e434a5404b9c Sergei Shtylyov 2009-03-26 348 u8 epnum = musb_channel->epnum;
d026e9c76aac36 Tony Lindgren 2014-11-24 349 int offset = musb->io.ep_offset(epnum,
b6e434a5404b9c Sergei Shtylyov 2009-03-26 350 MUSB_TXCSR);
b6e434a5404b9c Sergei Shtylyov 2009-03-26 351 u16 txcsr;
b6e434a5404b9c Sergei Shtylyov 2009-03-26 352
b6e434a5404b9c Sergei Shtylyov 2009-03-26 353 /*
b6e434a5404b9c Sergei Shtylyov 2009-03-26 354 * The programming guide says that we
b6e434a5404b9c Sergei Shtylyov 2009-03-26 355 * must clear DMAENAB before DMAMODE.
b6e434a5404b9c Sergei Shtylyov 2009-03-26 356 */
b6e434a5404b9c Sergei Shtylyov 2009-03-26 357 musb_ep_select(mbase, epnum);
b6e434a5404b9c Sergei Shtylyov 2009-03-26 358 txcsr = musb_readw(mbase, offset);
c418fd6c01fbc5 Paul Elder 2019-01-30 359 if (channel->desired_mode == 1) {
b6e434a5404b9c Sergei Shtylyov 2009-03-26 360 txcsr &= ~(MUSB_TXCSR_DMAENAB
b6e434a5404b9c Sergei Shtylyov 2009-03-26 361 | MUSB_TXCSR_AUTOSET);
b6e434a5404b9c Sergei Shtylyov 2009-03-26 362 musb_writew(mbase, offset, txcsr);
550a7375fe7209 Felipe Balbi 2008-07-24 363 /* Send out the packet */
b6e434a5404b9c Sergei Shtylyov 2009-03-26 364 txcsr &= ~MUSB_TXCSR_DMAMODE;
c418fd6c01fbc5 Paul Elder 2019-01-30 365 txcsr |= MUSB_TXCSR_DMAENAB;
c418fd6c01fbc5 Paul Elder 2019-01-30 366 }
b6e434a5404b9c Sergei Shtylyov 2009-03-26 367 txcsr |= MUSB_TXCSR_TXPKTRDY;
b6e434a5404b9c Sergei Shtylyov 2009-03-26 368 musb_writew(mbase, offset, txcsr);
458e6a511f9dc9 Felipe Balbi 2008-09-11 369 }
c7bbc056a92476 Sergei Shtylyov 2009-03-26 370 musb_dma_completion(musb, musb_channel->epnum,
c7bbc056a92476 Sergei Shtylyov 2009-03-26 371 musb_channel->transmit);
550a7375fe7209 Felipe Balbi 2008-07-24 372 }
550a7375fe7209 Felipe Balbi 2008-07-24 373 }
550a7375fe7209 Felipe Balbi 2008-07-24 374 }
6995eb68aab70e Bryan Wu 2008-12-02 375
550a7375fe7209 Felipe Balbi 2008-07-24 376 retval = IRQ_HANDLED;
550a7375fe7209 Felipe Balbi 2008-07-24 377 done:
550a7375fe7209 Felipe Balbi 2008-07-24 378 spin_unlock_irqrestore(&musb->lock, flags);
550a7375fe7209 Felipe Balbi 2008-07-24 379 return retval;
550a7375fe7209 Felipe Balbi 2008-07-24 380 }
edce61776c7e21 Min Guo 2020-01-15 381 EXPORT_SYMBOL_GPL(dma_controller_irq);
550a7375fe7209 Felipe Balbi 2008-07-24 382
:::::: The code at line 324 was first introduced by commit
:::::: 550a7375fe720924241f0eb76e4a5c1a3eb8c32f USB: Add MUSB and TUSB support
:::::: TO: Felipe Balbi <felipe.balbi(a)nokia.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[linux-next:master 1703/5794] hppa-linux-ld: undefined reference to `init_net'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 92edc4aef86780a8ad01b092c6d6630bb3cb423d
commit: f54ec58fee837ec847cb8b50593e81bfaa46107f [1703/5794] wimax: move out to staging
config: parisc-randconfig-r014-20201115 (attached as .config)
compiler: hppa-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/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout f54ec58fee837ec847cb8b50593e81bfaa46107f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-next/master HEAD 92edc4aef86780a8ad01b092c6d6630bb3cb423d builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
hppa-linux-ld: drivers/staging/wimax/stack.o: in function `wimax_gnl_re_state_change_send':
(.text+0x19c): undefined reference to `init_net'
>> hppa-linux-ld: (.text+0x1b4): undefined reference to `init_net'
>> hppa-linux-ld: (.text+0x1c4): undefined reference to `netlink_broadcast'
hppa-linux-ld: drivers/staging/wimax/stack.o: in function `wimax_gnl_re_state_change_alloc.constprop.0':
(.text+0x308): undefined reference to `__alloc_skb'
>> hppa-linux-ld: (.text+0x348): undefined reference to `genlmsg_put'
>> hppa-linux-ld: (.text+0x380): undefined reference to `nla_put'
hppa-linux-ld: (.text+0x3ac): undefined reference to `nla_put'
hppa-linux-ld: (.text+0x3e8): undefined reference to `nla_put'
>> hppa-linux-ld: (.text+0x45c): undefined reference to `kfree_skb'
hppa-linux-ld: drivers/staging/wimax/stack.o: in function `.L106':
(.text+0x76c): undefined reference to `netif_carrier_off'
>> hppa-linux-ld: (.text+0x7cc): undefined reference to `netif_carrier_on'
>> hppa-linux-ld: (.text+0x7d8): undefined reference to `netif_tx_wake_queue'
hppa-linux-ld: drivers/staging/wimax/stack.o: in function `wimax_subsys_exit':
(.exit.text+0x20): undefined reference to `genl_unregister_family'
hppa-linux-ld: drivers/staging/wimax/stack.o: in function `wimax_subsys_init':
(.init.text+0x70): undefined reference to `genl_register_family'
hppa-linux-ld: drivers/staging/wimax/op-msg.o: in function `wimax_msg_alloc':
(.text+0x10c): undefined reference to `__alloc_skb'
hppa-linux-ld: (.text+0x134): undefined reference to `genlmsg_put'
hppa-linux-ld: (.text+0x170): undefined reference to `nla_put'
hppa-linux-ld: (.text+0x1a4): undefined reference to `nla_put'
hppa-linux-ld: (.text+0x1d0): undefined reference to `nla_put'
hppa-linux-ld: (.text+0x214): undefined reference to `kfree_skb'
hppa-linux-ld: drivers/staging/wimax/op-msg.o: in function `wimax_msg_data_len':
(.text+0x280): undefined reference to `nla_find'
hppa-linux-ld: drivers/staging/wimax/op-msg.o: in function `wimax_msg_data':
(.text+0x2f0): undefined reference to `nla_find'
hppa-linux-ld: drivers/staging/wimax/op-msg.o: in function `wimax_msg_len':
(.text+0x350): undefined reference to `nla_find'
hppa-linux-ld: drivers/staging/wimax/op-msg.o: in function `wimax_msg_send':
(.text+0x48c): undefined reference to `init_net'
hppa-linux-ld: (.text+0x490): undefined reference to `init_net'
hppa-linux-ld: (.text+0x49c): undefined reference to `netlink_broadcast'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[linux-next:master 3635/5794] drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c:3547:23: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 92edc4aef86780a8ad01b092c6d6630bb3cb423d
commit: d56fd83cf99c5e4b257f5be46531420509ba5066 [3635/5794] brcmfmac: fix SDIO access for big-endian host
config: powerpc-randconfig-s032-20201115 (attached as .config)
compiler: powerpc64-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-107-gaf3512a6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout d56fd83cf99c5e4b257f5be46531420509ba5066
# 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__' ARCH=powerpc
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/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c:3547:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [addressable] [assigned] [usertype] value @@ got restricted __le32 [usertype] @@
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c:3547:23: sparse: expected unsigned int [addressable] [assigned] [usertype] value
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c:3547:23: sparse: got restricted __le32 [usertype]
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c:3558:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [addressable] [assigned] [usertype] value @@ got restricted __le32 [usertype] @@
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c:3558:23: sparse: expected unsigned int [addressable] [assigned] [usertype] value
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c:3558:23: sparse: got restricted __le32 [usertype]
vim +3547 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
3511
3512
3513 static int brcmf_sdio_bus_preinit(struct device *dev)
3514 {
3515 struct brcmf_bus *bus_if = dev_get_drvdata(dev);
3516 struct brcmf_sdio_dev *sdiodev = bus_if->bus_priv.sdio;
3517 struct brcmf_sdio *bus = sdiodev->bus;
3518 struct brcmf_core *core = bus->sdio_core;
3519 u32 value;
3520 int err;
3521
3522 /* maxctl provided by common layer */
3523 if (WARN_ON(!bus_if->maxctl))
3524 return -EINVAL;
3525
3526 /* Allocate control receive buffer */
3527 bus_if->maxctl += bus->roundup;
3528 value = roundup((bus_if->maxctl + SDPCM_HDRLEN), ALIGNMENT);
3529 value += bus->head_align;
3530 bus->rxbuf = kmalloc(value, GFP_ATOMIC);
3531 if (bus->rxbuf)
3532 bus->rxblen = value;
3533
3534 /* the commands below use the terms tx and rx from
3535 * a device perspective, ie. bus:txglom affects the
3536 * bus transfers from device to host.
3537 */
3538 if (core->rev < 12) {
3539 /* for sdio core rev < 12, disable txgloming */
3540 value = 0;
3541 err = brcmf_iovar_data_set(dev, "bus:txglom", &value,
3542 sizeof(u32));
3543 } else {
3544 /* otherwise, set txglomalign */
3545 value = sdiodev->settings->bus.sdio.sd_sgentry_align;
3546 /* SDIO ADMA requires at least 32 bit alignment */
> 3547 value = cpu_to_le32(max_t(u32, value, ALIGNMENT));
3548 err = brcmf_iovar_data_set(dev, "bus:txglomalign", &value,
3549 sizeof(u32));
3550 }
3551
3552 if (err < 0)
3553 goto done;
3554
3555 bus->tx_hdrlen = SDPCM_HWHDR_LEN + SDPCM_SWHDR_LEN;
3556 if (sdiodev->sg_support) {
3557 bus->txglom = false;
3558 value = cpu_to_le32(1);
3559 err = brcmf_iovar_data_set(bus->sdiodev->dev, "bus:rxglom",
3560 &value, sizeof(u32));
3561 if (err < 0) {
3562 /* bus:rxglom is allowed to fail */
3563 err = 0;
3564 } else {
3565 bus->txglom = true;
3566 bus->tx_hdrlen += SDPCM_HWEXT_LEN;
3567 }
3568 }
3569 brcmf_bus_add_txhdrlen(bus->sdiodev->dev, bus->tx_hdrlen);
3570
3571 done:
3572 return err;
3573 }
3574
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
<重要>【三井住友カード】ご利用確認のお願い
by 三井住友カード
いつも弊社カードをご利用いただきありがとうございます。
昨今の第三者不正利用の急増に伴い、弊社では「不正利用監視システム」を導入し、24時間365日体制でカードのご利用に対するモニタリングを行っております。
このたび、ご本人様のご利用かどうかを確認させていただきたいお取引がありましたので、誠に勝手ながら、カードのご利用を一部制限させていただき、ご連絡させていただきました。
つきましては、以下へアクセスの上、カードのご利用確認にご協力をお願い致します。
ご回答をいただけない場合、カードのご利用制限が継続されることもございますので、予めご了承下さい。
■ご利用確認はこちら
http://smcc-cacc.sacc.space/
■発行者■
三井住友カード株式会社
http://smcc-cacc.sacc.space/
〒105-8011 東京都港区海岸1丁目2番20号 汐留ビルディング
...
1 year, 10 months