[xlnx:xlnx_rebase_v5.4 458/1762] drivers/media/platform/xilinx/xilinx-multi-scaler.c:361:18: warning: passing argument 1 of 'ioread32' discards 'const' qualifier from pointer target type
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: d128303e4c53bcf7775c46771bf64c71596f3303
commit: 31ff947476b863c4f59eb26baa654631e7b05a7b [458/1762] v4l: xilinx-multi-scaler: Remove volatile
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Xilinx/linux-xlnx/commit/31ff947476b863c4f59eb26baa654...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout 31ff947476b863c4f59eb26baa654631e7b05a7b
# 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 warnings (new ones prefixed by >>):
drivers/media/platform/xilinx/xilinx-multi-scaler.c: In function 'xm2msc_readreg':
>> drivers/media/platform/xilinx/xilinx-multi-scaler.c:361:18: warning: passing argument 1 of 'ioread32' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
361 | return ioread32(addr);
| ^~~~
In file included from arch/x86/include/asm/io.h:229,
from arch/x86/include/asm/realmode.h:15,
from arch/x86/include/asm/acpi.h:16,
from arch/x86/include/asm/fixmap.h:29,
from arch/x86/include/asm/apic.h:11,
from arch/x86/include/asm/smp.h:13,
from include/linux/smp.h:68,
from include/linux/percpu.h:7,
from include/linux/arch_topology.h:9,
from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:18,
from include/linux/fs.h:15,
from drivers/media/platform/xilinx/xilinx-multi-scaler.c:16:
include/asm-generic/iomap.h:32:30: note: expected 'void *' but argument is of type 'const void *'
32 | extern unsigned int ioread32(void __iomem *);
| ^~~~~~~~~~~~~~
In file included from include/linux/printk.h:332,
from include/linux/kernel.h:15,
from include/linux/delay.h:22,
from drivers/media/platform/xilinx/xilinx-multi-scaler.c:15:
drivers/media/platform/xilinx/xilinx-multi-scaler.c: In function 'xm2msc_parse_of':
drivers/media/platform/xilinx/xilinx-multi-scaler.c:1782:15: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
1782 | dev_dbg(dev, "IO Mem 0x%llx mapped at %p\n", res->start, xm2msc->regs);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/device.h:1751:2: note: in expansion of macro 'dynamic_dev_dbg'
1751 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
include/linux/device.h:1751:23: note: in expansion of macro 'dev_fmt'
1751 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/media/platform/xilinx/xilinx-multi-scaler.c:1782:2: note: in expansion of macro 'dev_dbg'
1782 | dev_dbg(dev, "IO Mem 0x%llx mapped at %p\n", res->start, xm2msc->regs);
| ^~~~~~~
drivers/media/platform/xilinx/xilinx-multi-scaler.c:1782:28: note: format string is defined here
1782 | dev_dbg(dev, "IO Mem 0x%llx mapped at %p\n", res->start, xm2msc->regs);
| ~~~^
| |
| long long unsigned int
| %x
vim +361 drivers/media/platform/xilinx/xilinx-multi-scaler.c
f5d1fac4b3ef01 Suresh Gupta 2018-09-17 358
31ff947476b863 Suresh Gupta 2018-10-12 359 static inline u32 xm2msc_readreg(const void __iomem *addr)
f5d1fac4b3ef01 Suresh Gupta 2018-09-17 360 {
f5d1fac4b3ef01 Suresh Gupta 2018-09-17 @361 return ioread32(addr);
f5d1fac4b3ef01 Suresh Gupta 2018-09-17 362 }
f5d1fac4b3ef01 Suresh Gupta 2018-09-17 363
:::::: The code at line 361 was first introduced by commit
:::::: f5d1fac4b3ef01a4f9a489e9be9a65964a5baf57 platform: xilinx: Add mem to mem Multi-Scaler driver (XM2MSC)
:::::: TO: Suresh Gupta <suresh.gupta(a)xilinx.com>
:::::: CC: Michal Simek <michal.simek(a)xilinx.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[jimc:dd-diet-6c2 34/36] lib/dynamic_debug.c:1457:24: sparse: sparse: non size-preserving pointer to integer cast
by kernel test robot
tree: https://github.com/jimc/linux.git dd-diet-6c2
head: c0dcfb4fa5652b5d3f9c95f797ba84f8ec6d809b
commit: d29f2fbe3a2ecb1391e1ed5271f3f0728e963759 [34/36] dyndbg: add print-once and print-ratelimited features. RFC.
config: i386-randconfig-s001-20210615 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/jimc/linux/commit/d29f2fbe3a2ecb1391e1ed5271f3f0728e96...
git remote add jimc https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-diet-6c2
git checkout d29f2fbe3a2ecb1391e1ed5271f3f0728e963759
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=i386
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 >>)
lib/dynamic_debug.c: note: in included file (through include/linux/printk.h, include/linux/kernel.h):
include/linux/dynamic_debug.h:336:1: sparse: sparse: symbol '_LINKONCE_dyndbg_header' was not declared. Should it be static?
include/linux/dynamic_debug.h:336:1: sparse: sparse: symbol '_LINKONCE_dyndbg_site_header' was not declared. Should it be static?
>> lib/dynamic_debug.c:1457:24: sparse: sparse: non size-preserving pointer to integer cast
vim +1457 lib/dynamic_debug.c
1450
1451 /*
1452 * called when enabled callsite has _DPRINTK_FLAGS_RATELIMITED flag
1453 * set (echo +pr >control), it hashes on &table-header+index
1454 */
1455 static struct dd_ratelimit * dd_rl_fetch(struct _ddebug *desc)
1456 {
> 1457 u64 key = (u64)desc;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
make[2]: *** [arch/powerpc/Makefile.postlink:31: vmlinux] Error 1
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 009c9aa5be652675a06d5211e1640e02bbb1c33d
commit: 13150bc5416f45234c955e5bed91623d178c6117 module: use hidden visibility for weak symbol references
date: 8 months ago
config: powerpc-randconfig-c004-20210615 (attached as .config)
compiler: powerpc64-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 13150bc5416f45234c955e5bed91623d178c6117
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
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 >>):
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/oxygen/xonar_wm87x6.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/oxygen/xonar_hdmi.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/pcxhr/pcxhr.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/pcxhr/pcxhr_hwdep.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/pcxhr/pcxhr_mixer.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/pcxhr/pcxhr_core.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/pcxhr/pcxhr_mix22.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/riptide/riptide.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/rme9652/hdspm.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/trident/trident.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/trident/trident_main.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/trident/trident_memory.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/ymfpci/ymfpci.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/ymfpci/ymfpci_main.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/vx222/vx222.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pci/vx222/vx222_ops.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/synth/util_mem.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/synth/emux/emux.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/synth/emux/emux_synth.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/synth/emux/emux_seq.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/synth/emux/emux_nrpn.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/synth/emux/emux_effect.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/synth/emux/emux_hwdep.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/synth/emux/soundfont.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/synth/emux/emux_proc.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/synth/emux/emux_oss.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/midi.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/usx2y/usbusx2y.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/usx2y/usX2Yhwdep.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/usx2y/usx2yhwdeppcm.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/6fire/chip.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/6fire/comm.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/6fire/midi.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/6fire/control.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/6fire/firmware.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/6fire/pcm.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/bcd2000/bcd2000.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/line6/capture.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/line6/driver.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/line6/midi.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/line6/midibuf.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/line6/pcm.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/line6/playback.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/usb/line6/podhd.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pcmcia/vx/vxpocket.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pcmcia/vx/vxp_ops.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pcmcia/vx/vxp_mixer.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pcmcia/pdaudiocf/pdaudiocf.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pcmcia/pdaudiocf/pdaudiocf_core.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pcmcia/pdaudiocf/pdaudiocf_irq.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/pcmcia/pdaudiocf/pdaudiocf_pcm.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/hda/hda_bus_type.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/hda/hdac_bus.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/hda/hdac_device.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/hda/hdac_sysfs.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/hda/hdac_regmap.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/hda/hdac_controller.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/hda/hdac_stream.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/hda/array.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/hda/hdmi_chmap.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/hda/hdac_component.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/hda/intel-dsp-config.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/ac97_bus.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `sound/last.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `virt/lib/irqbypass.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/argv_split.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/bootconfig.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/bug.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/cmdline.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/dec_and_lock.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/decompress.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/decompress_bunzip2.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/decompress_inflate.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/decompress_unlz4.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/decompress_unlzma.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/extable.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/fdt.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/fdt_ro.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/fdt_rw.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/fdt_wip.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/flex_proportions.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/idr.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/is_single_threaded.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/klist.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/kobject.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/kobject_uevent.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/logic_pio.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/nodemask.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/plist.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/radix-tree.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/ratelimit.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/rbtree.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/seq_buf.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/sha1.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/show_mem.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/siphash.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/string.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/timerqueue.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/vsprintf.o' being placed in section `.ctors.65435'
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `lib/xarray.o' being placed in section `.ctors.65435'
>> make[2]: *** [arch/powerpc/Makefile.postlink:31: vmlinux] Error 1
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[staging:staging-testing 388/409] drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c:180:13: warning: variable 'macid' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head: 5b4f167ef3555ec4c334a8dc89c1b44bb2c6bff5
commit: 9a5ad3a2a4e6f948efbc5f4ddde8190dc25d2058 [388/409] staging: rtl8188eu: remove all DBG_88E calls from hal/rtl8188e_cmd.c
config: mips-allyesconfig (attached as .config)
compiler: mips-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/gregkh/staging.git/commit...
git remote add staging https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
git fetch --no-tags staging staging-testing
git checkout 9a5ad3a2a4e6f948efbc5f4ddde8190dc25d2058
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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/staging/rtl8188eu/hal/rtl8188e_cmd.c: In function 'rtl8188e_set_FwMediaStatus_cmd':
>> drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c:180:13: warning: variable 'macid' set but not used [-Wunused-but-set-variable]
180 | u8 opmode, macid;
| ^~~~~
>> drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c:180:5: warning: variable 'opmode' set but not used [-Wunused-but-set-variable]
180 | u8 opmode, macid;
| ^~~~~~
vim +/macid +180 drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c
7ef8ded0cfdb69 Larry Finger 2013-08-21 177
7ef8ded0cfdb69 Larry Finger 2013-08-21 178 void rtl8188e_set_FwMediaStatus_cmd(struct adapter *adapt, __le16 mstatus_rpt)
7ef8ded0cfdb69 Larry Finger 2013-08-21 179 {
7ef8ded0cfdb69 Larry Finger 2013-08-21 @180 u8 opmode, macid;
7ef8ded0cfdb69 Larry Finger 2013-08-21 181 u16 mst_rpt = le16_to_cpu(mstatus_rpt);
fc988e144cca2a Yamanappagouda Patil 2017-02-21 182
7ef8ded0cfdb69 Larry Finger 2013-08-21 183 opmode = (u8)mst_rpt;
7ef8ded0cfdb69 Larry Finger 2013-08-21 184 macid = (u8)(mst_rpt >> 8);
7ef8ded0cfdb69 Larry Finger 2013-08-21 185
7ef8ded0cfdb69 Larry Finger 2013-08-21 186 FillH2CCmd_88E(adapt, H2C_COM_MEDIA_STATUS_RPT, sizeof(mst_rpt), (u8 *)&mst_rpt);
7ef8ded0cfdb69 Larry Finger 2013-08-21 187 }
7ef8ded0cfdb69 Larry Finger 2013-08-21 188
:::::: The code at line 180 was first introduced by commit
:::::: 7ef8ded0cfdb690e37581af85eea35fa67cdb38d staging: r8188eu: Add files for new driver - part 13
:::::: TO: Larry Finger <Larry.Finger(a)lwfinger.net>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[staging:staging-testing 381/409] drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:981:6: warning: variable 'reason' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head: 5b4f167ef3555ec4c334a8dc89c1b44bb2c6bff5
commit: f4a0ab46339c8cab92c38c652e387c0afa1cd435 [381/409] staging: rtl8188eu: remove all DBG_88E calls from os_dep/ioctl_linux.c
config: mips-allyesconfig (attached as .config)
compiler: mips-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/gregkh/staging.git/commit...
git remote add staging https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
git fetch --no-tags staging staging-testing
git checkout f4a0ab46339c8cab92c38c652e387c0afa1cd435
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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/staging/rtl8188eu/os_dep/ioctl_linux.c: In function 'rtw_wx_set_mlme':
>> drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:981:6: warning: variable 'reason' set but not used [-Wunused-but-set-variable]
981 | u16 reason;
| ^~~~~~
vim +/reason +981 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
a2c60d42d97cdb Larry Finger 2013-08-21 975
a2c60d42d97cdb Larry Finger 2013-08-21 976 static int rtw_wx_set_mlme(struct net_device *dev,
a2c60d42d97cdb Larry Finger 2013-08-21 977 struct iw_request_info *info,
a2c60d42d97cdb Larry Finger 2013-08-21 978 union iwreq_data *wrqu, char *extra)
a2c60d42d97cdb Larry Finger 2013-08-21 979 {
a2c60d42d97cdb Larry Finger 2013-08-21 980 int ret = 0;
a2c60d42d97cdb Larry Finger 2013-08-21 @981 u16 reason;
1665c8fdffbb8a Martin Kaiser 2021-03-21 982 struct adapter *padapter = netdev_priv(dev);
a2c60d42d97cdb Larry Finger 2013-08-21 983 struct iw_mlme *mlme = (struct iw_mlme *)extra;
a2c60d42d97cdb Larry Finger 2013-08-21 984
4fe514dc2049b0 Amit Ghadge 2016-09-04 985 if (!mlme)
a2c60d42d97cdb Larry Finger 2013-08-21 986 return -1;
a2c60d42d97cdb Larry Finger 2013-08-21 987
a2c60d42d97cdb Larry Finger 2013-08-21 988 reason = mlme->reason_code;
a2c60d42d97cdb Larry Finger 2013-08-21 989
a2c60d42d97cdb Larry Finger 2013-08-21 990 switch (mlme->cmd) {
a2c60d42d97cdb Larry Finger 2013-08-21 991 case IW_MLME_DEAUTH:
a2c60d42d97cdb Larry Finger 2013-08-21 992 if (!rtw_set_802_11_disassociate(padapter))
a2c60d42d97cdb Larry Finger 2013-08-21 993 ret = -1;
a2c60d42d97cdb Larry Finger 2013-08-21 994 break;
a2c60d42d97cdb Larry Finger 2013-08-21 995 case IW_MLME_DISASSOC:
a2c60d42d97cdb Larry Finger 2013-08-21 996 if (!rtw_set_802_11_disassociate(padapter))
a2c60d42d97cdb Larry Finger 2013-08-21 997 ret = -1;
a2c60d42d97cdb Larry Finger 2013-08-21 998 break;
a2c60d42d97cdb Larry Finger 2013-08-21 999 default:
a2c60d42d97cdb Larry Finger 2013-08-21 1000 return -EOPNOTSUPP;
a2c60d42d97cdb Larry Finger 2013-08-21 1001 }
a2c60d42d97cdb Larry Finger 2013-08-21 1002 return ret;
a2c60d42d97cdb Larry Finger 2013-08-21 1003 }
a2c60d42d97cdb Larry Finger 2013-08-21 1004
:::::: The code at line 981 was first introduced by commit
:::::: a2c60d42d97cdbeee3c7371cd3502fca77f07d39 staging: r8188eu: Add files for new driver - part 16
:::::: TO: Larry Finger <Larry.Finger(a)lwfinger.net>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[staging:staging-testing 373/409] drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1771:6: warning: variable 'passing_time' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head: 5b4f167ef3555ec4c334a8dc89c1b44bb2c6bff5
commit: e83e5dbbf4b79255cbda59522f8bcbda50d26f56 [373/409] staging: rtl8188eu: remove all DBG_88E calls from core/rtw_mlme_ext.c
config: mips-allyesconfig (attached as .config)
compiler: mips-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/gregkh/staging.git/commit...
git remote add staging https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
git fetch --no-tags staging staging-testing
git checkout e83e5dbbf4b79255cbda59522f8bcbda50d26f56
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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/staging/rtl8188eu/core/rtw_mlme_ext.c: In function 'send_beacon':
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1771:6: warning: variable 'passing_time' set but not used [-Wunused-but-set-variable]
1771 | u32 passing_time;
| ^~~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c: In function 'OnAssocReq':
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:2759:16: warning: variable 'reassoc' set but not used [-Wunused-but-set-variable]
2759 | unsigned char reassoc, *p, *pos, *wpa_ie;
| ^~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c: In function 'OnAction_back':
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3400:30: warning: variable 'reason_code' set but not used [-Wunused-but-set-variable]
3400 | unsigned short tid, status, reason_code = 0;
| ^~~~~~~~~~~
vim +/passing_time +1771 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
7b464c9fa5cc27 Larry Finger 2013-08-21 1764
4e102344534354 Luca Ceresoli 2015-06-12 1765 unsigned int send_beacon(struct adapter *padapter)
4e102344534354 Luca Ceresoli 2015-06-12 1766 {
4e102344534354 Luca Ceresoli 2015-06-12 1767 u8 bxmitok = false;
4e102344534354 Luca Ceresoli 2015-06-12 1768 int issue = 0;
4e102344534354 Luca Ceresoli 2015-06-12 1769 int poll = 0;
ed73749426deb2 Rémy Oudompheng 2015-11-02 1770 unsigned long start = jiffies;
0b4d1d0da7e16f Michael Straube 2020-01-18 @1771 u32 passing_time;
4e102344534354 Luca Ceresoli 2015-06-12 1772
4e102344534354 Luca Ceresoli 2015-06-12 1773 rtw_hal_set_hwreg(padapter, HW_VAR_BCN_VALID, NULL);
4e102344534354 Luca Ceresoli 2015-06-12 1774 do {
4e102344534354 Luca Ceresoli 2015-06-12 1775 issue_beacon(padapter, 100);
4e102344534354 Luca Ceresoli 2015-06-12 1776 issue++;
4e102344534354 Luca Ceresoli 2015-06-12 1777 do {
4e102344534354 Luca Ceresoli 2015-06-12 1778 yield();
4e102344534354 Luca Ceresoli 2015-06-12 1779 rtw_hal_get_hwreg(padapter, HW_VAR_BCN_VALID, (u8 *)(&bxmitok));
4e102344534354 Luca Ceresoli 2015-06-12 1780 poll++;
4e102344534354 Luca Ceresoli 2015-06-12 1781 } while ((poll % 10) != 0 && !bxmitok && !padapter->bSurpriseRemoved && !padapter->bDriverStopped);
4e102344534354 Luca Ceresoli 2015-06-12 1782 } while (!bxmitok && issue < 100 && !padapter->bSurpriseRemoved && !padapter->bDriverStopped);
4e102344534354 Luca Ceresoli 2015-06-12 1783
4e102344534354 Luca Ceresoli 2015-06-12 1784 if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
4e102344534354 Luca Ceresoli 2015-06-12 1785 return _FAIL;
e83e5dbbf4b792 Phillip Potter 2021-06-15 1786 if (!bxmitok)
4e102344534354 Luca Ceresoli 2015-06-12 1787 return _FAIL;
0b4d1d0da7e16f Michael Straube 2020-01-18 1788 passing_time = jiffies_to_msecs(jiffies - start);
7b464c9fa5cc27 Larry Finger 2013-08-21 1789
4e102344534354 Luca Ceresoli 2015-06-12 1790 return _SUCCESS;
4e102344534354 Luca Ceresoli 2015-06-12 1791 }
7b464c9fa5cc27 Larry Finger 2013-08-21 1792
:::::: The code at line 1771 was first introduced by commit
:::::: 0b4d1d0da7e16f6faa572a8c7f865ff82e097819 staging: rtl8188eu: remove else after break or return
:::::: TO: Michael Straube <straube.linux(a)gmail.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months