pcie-rcar-host.c:undefined reference to `__clk_is_enabled'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cb690f5238d71f543f4ce874aa59237cf53a877c
commit: a115b1bd3af0c2963e72f6e47143724c59251be6 PCI: rcar: Add L1 link state fix into data abort hook
date: 3 months ago
config: arm-randconfig-r011-20211018 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# 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 a115b1bd3af0c2963e72f6e47143724c59251be6
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arm-linux-gnueabi-ld: drivers/pci/controller/pcie-rcar-host.o: in function `rcar_pcie_aarch32_abort_handler':
>> pcie-rcar-host.c:(.text+0x1050): undefined reference to `__clk_is_enabled'
arm-linux-gnueabi-ld: drivers/firmware/qcom_scm-smc.o: in function `__scm_smc_do_quirk':
qcom_scm-smc.c:(.text+0x5c): undefined reference to `__arm_smccc_smc'
arm-linux-gnueabi-ld: drivers/firmware/qcom_scm-legacy.o: in function `scm_legacy_call':
qcom_scm-legacy.c:(.text+0x160): undefined reference to `__arm_smccc_smc'
arm-linux-gnueabi-ld: drivers/firmware/qcom_scm-legacy.o: in function `scm_legacy_call_atomic':
qcom_scm-legacy.c:(.text+0x3d8): undefined reference to `__arm_smccc_smc'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for QCOM_SCM
Depends on (ARM || ARM64) && HAVE_ARM_SMCCC
Selected by
- ARM_QCOM_SPM_CPUIDLE && CPU_IDLE && (ARM || ARM64) && (ARCH_QCOM || COMPILE_TEST && !ARM64 && MMU
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
drivers/gpu/drm/qxl/qxl_object.c:172:29: sparse: sparse: cast removes address space '__iomem' of expression
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cb690f5238d71f543f4ce874aa59237cf53a877c
commit: 49a3f51dfeeecb52c5aa28c5cb9592fe5e39bf95 drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends
date: 1 year ago
config: riscv-randconfig-s032-20211109 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 11.2.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.4-dirty
# 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 49a3f51dfeeecb52c5aa28c5cb9592fe5e39bf95
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/kernel/ drivers/clk/qcom/ drivers/clocksource/ drivers/firmware/arm_scmi/ drivers/firmware/efi/test/ drivers/gpu/drm/kmb/ drivers/gpu/drm/qxl/ drivers/mmc/host/ drivers/mtd/nand/onenand/ drivers/mtd/nand/raw/ drivers/pci/endpoint/functions/ drivers/phy/marvell/ drivers/pwm/ drivers/soc/bcm/bcm63xx/ drivers/staging/vc04_services/ drivers/uio/ drivers/usb/gadget/function/ drivers/video/fbdev/ fs/ kernel/ lib/
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/gpu/drm/qxl/qxl_object.c:172:29: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/qxl/qxl_object.c:198:40: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void * @@ got void [noderef] __iomem * @@
drivers/gpu/drm/qxl/qxl_object.c:198:40: sparse: expected void *
drivers/gpu/drm/qxl/qxl_object.c:198:40: sparse: got void [noderef] __iomem *
drivers/gpu/drm/qxl/qxl_object.c:232:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __iomem *vaddr @@ got void *pmap @@
drivers/gpu/drm/qxl/qxl_object.c:232:33: sparse: expected void [noderef] __iomem *vaddr
drivers/gpu/drm/qxl/qxl_object.c:232:33: sparse: got void *pmap
vim +/__iomem +172 drivers/gpu/drm/qxl/qxl_object.c
156
157 int qxl_bo_kmap(struct qxl_bo *bo, struct dma_buf_map *map)
158 {
159 int r;
160
161 if (bo->kptr) {
162 bo->map_count++;
163 goto out;
164 }
165 r = ttm_bo_vmap(&bo->tbo, &bo->map);
166 if (r)
167 return r;
168 bo->map_count = 1;
169
170 /* TODO: Remove kptr in favor of map everywhere. */
171 if (bo->map.is_iomem)
> 172 bo->kptr = (void *)bo->map.vaddr_iomem;
173 else
174 bo->kptr = bo->map.vaddr;
175
176 out:
177 *map = bo->map;
178 return 0;
179 }
180
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
arch/mips/kernel/relocate.c:41:12: warning: no previous prototype for 'plat_post_relocation'
by kernel test robot
Hi Jinyang,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cb690f5238d71f543f4ce874aa59237cf53a877c
commit: a307a4ce9ecd2e23c71318201330d9d648b3f818 MIPS: Loongson64: Add KASLR support
date: 12 months ago
config: mips-randconfig-r005-20211002 (attached as .config)
compiler: mips64el-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# 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 a307a4ce9ecd2e23c71318201330d9d648b3f818
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.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 >>):
>> arch/mips/kernel/relocate.c:41:12: warning: no previous prototype for 'plat_post_relocation' [-Wmissing-prototypes]
41 | int __weak plat_post_relocation(long offset)
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/relocate.c:135:12: warning: no previous prototype for 'do_relocations' [-Wmissing-prototypes]
135 | int __init do_relocations(void *kbase_old, void *kbase_new, long offset)
| ^~~~~~~~~~~~~~
>> arch/mips/kernel/relocate.c:304:14: warning: no previous prototype for 'relocate_kernel' [-Wmissing-prototypes]
304 | void *__init relocate_kernel(void)
| ^~~~~~~~~~~~~~~
arch/mips/kernel/relocate.c:415:6: warning: no previous prototype for 'show_kernel_relocation' [-Wmissing-prototypes]
415 | void show_kernel_relocation(const char *level)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/plat_post_relocation +41 arch/mips/kernel/relocate.c
4c9fff362261d6 Marcin Nowakowski 2016-11-23 35
8cc709d7d4f013 Steven J. Hill 2016-12-09 36 /*
8cc709d7d4f013 Steven J. Hill 2016-12-09 37 * This function may be defined for a platform to perform any post-relocation
8cc709d7d4f013 Steven J. Hill 2016-12-09 38 * fixup necessary.
8cc709d7d4f013 Steven J. Hill 2016-12-09 39 * Return non-zero to abort relocation
8cc709d7d4f013 Steven J. Hill 2016-12-09 40 */
8cc709d7d4f013 Steven J. Hill 2016-12-09 @41 int __weak plat_post_relocation(long offset)
8cc709d7d4f013 Steven J. Hill 2016-12-09 42 {
8cc709d7d4f013 Steven J. Hill 2016-12-09 43 return 0;
8cc709d7d4f013 Steven J. Hill 2016-12-09 44 }
8cc709d7d4f013 Steven J. Hill 2016-12-09 45
:::::: The code at line 41 was first introduced by commit
:::::: 8cc709d7d4f013f51d38ceb2e3c8c82d230cf457 MIPS: Relocatable: Provide plat_post_relocation hook
:::::: TO: Steven J. Hill <Steven.Hill(a)cavium.com>
:::::: CC: Ralf Baechle <ralf(a)linux-mips.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[mchinth:sep_socwatch_linux_5_15 57/59] drivers/platform/x86/sepdk/sep/sys_info.c:320:6: error: variable 'model' set but not used
by kernel test robot
tree: https://github.com/mchinth/linux sep_socwatch_linux_5_15
head: 3af50f40725e78c505cbf840fb0be424c2f33e5e
commit: 6622fb2e6554a0edd0ebbbd582565bbe84ca9dfe [57/59] Merge branch 'master' into sep_socwatch_linux_5_15
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/mchinth/linux/commit/6622fb2e6554a0edd0ebbbd582565bbe8...
git remote add mchinth https://github.com/mchinth/linux
git fetch --no-tags mchinth sep_socwatch_linux_5_15
git checkout 6622fb2e6554a0edd0ebbbd582565bbe84ca9dfe
# 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>
Note: the mchinth/sep_socwatch_linux_5_15 HEAD 3af50f40725e78c505cbf840fb0be424c2f33e5e builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
drivers/platform/x86/sepdk/sep/sys_info.c: In function 'sys_info_Fill_CPUID':
>> drivers/platform/x86/sepdk/sep/sys_info.c:320:6: error: variable 'model' set but not used [-Werror=unused-but-set-variable]
320 | U32 model = 0;
| ^~~~~
cc1: all warnings being treated as errors
--
drivers/platform/x86/sepdk/sep/utility.c: In function 'utility_Log_Write':
>> drivers/platform/x86/sepdk/sep/utility.c:702:3: error: function 'utility_Log_Write' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
702 | DRV_VSNPRINTF(DRV_LOG_ENTRY_message(entry),
| ^~~~~~~~~~~~~
drivers/platform/x86/sepdk/sep/utility.c: In function 'UTILITY_Log':
>> drivers/platform/x86/sepdk/sep/utility.c:845:4: error: function 'UTILITY_Log' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
845 | nb_written_characters += DRV_VSNPRINTF(
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/platform/x86/sepdk/sep/utility.c:859:22: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context]
858 | if ((category_verbosity & LOG_CHANNEL_PRINTK) *
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
859 | !in_interrupt * !in_notification) {
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/platform/x86/sepdk/sep/pebs.c: In function 'PEBS_Flush_Buffer':
>> drivers/platform/x86/sepdk/sep/pebs.c:977:6: error: variable 'cur_grp' set but not used [-Werror=unused-but-set-variable]
977 | U32 cur_grp;
| ^~~~~~~
cc1: all warnings being treated as errors
--
In file included from drivers/platform/x86/sepdk/sep/unc_mmio.c:38:
drivers/platform/x86/sepdk/sep/unc_mmio.c: In function 'unc_mmio_Write_PMU':
>> drivers/platform/x86/sepdk/inc/utility.h:56:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
56 | ((base) ? readl((void __iomem *)(base) + (offset)) : 0)
| ^
drivers/platform/x86/sepdk/sep/unc_mmio.c:201:16: note: in expansion of macro 'SYS_MMIO_Read32'
201 | tmp_value = SYS_MMIO_Read32(virtual_addr, offset_delta);
| ^~~~~~~~~~~~~~~
drivers/platform/x86/sepdk/sep/unc_mmio.c: In function 'unc_mmio_Enable_PMU':
>> drivers/platform/x86/sepdk/inc/utility.h:56:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
56 | ((base) ? readl((void __iomem *)(base) + (offset)) : 0)
| ^
drivers/platform/x86/sepdk/sep/unc_mmio.c:365:18: note: in expansion of macro 'SYS_MMIO_Read32'
365 | buffer[j] = SYS_MMIO_Read32(
| ^~~~~~~~~~~~~~~
drivers/platform/x86/sepdk/sep/unc_mmio.c: In function 'unc_mmio_Trigger_Read':
>> drivers/platform/x86/sepdk/inc/utility.h:56:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
56 | ((base) ? readl((void __iomem *)(base) + (offset)) : 0)
| ^
drivers/platform/x86/sepdk/sep/unc_mmio.c:573:12: note: in expansion of macro 'SYS_MMIO_Read32'
573 | value = SYS_MMIO_Read32(virtual_addr, offset_delta);
| ^~~~~~~~~~~~~~~
drivers/platform/x86/sepdk/sep/unc_mmio.c: In function 'unc_mmio_Read_PMU_Data':
>> drivers/platform/x86/sepdk/inc/utility.h:56:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
56 | ((base) ? readl((void __iomem *)(base) + (offset)) : 0)
| ^
drivers/platform/x86/sepdk/sep/unc_mmio.c:736:17: note: in expansion of macro 'SYS_MMIO_Read32'
736 | tmp_value = SYS_MMIO_Read32(virtual_addr,
| ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/platform/x86/sepdk/sep/unc_common.c: In function 'UNC_COMMON_Get_Platform_Topology':
>> drivers/platform/x86/sepdk/sep/unc_common.c:280:6: error: variable 'device_id' set but not used [-Werror=unused-but-set-variable]
280 | U32 device_id;
| ^~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/platform/x86/sepdk/sep/unc_pci.c: In function 'unc_pci_Write_PMU':
>> drivers/platform/x86/sepdk/sep/unc_pci.c:57:6: error: variable 'device_id' set but not used [-Werror=unused-but-set-variable]
57 | U32 device_id;
| ^~~~~~~~~
cc1: all warnings being treated as errors
vim +/model +320 drivers/platform/x86/sepdk/sep/sys_info.c
d605aabab41663 Jon Moeller 2018-11-13 289
d605aabab41663 Jon Moeller 2018-11-13 290 /* ------------------------------------------------------------------------- */
d605aabab41663 Jon Moeller 2018-11-13 291 /*!
d605aabab41663 Jon Moeller 2018-11-13 292 * @fn extern void sys_info_Fill_CPUID(...)
d605aabab41663 Jon Moeller 2018-11-13 293 *
d605aabab41663 Jon Moeller 2018-11-13 294 * @param num_cpuids,
d605aabab41663 Jon Moeller 2018-11-13 295 * @param basic_funcs,
d605aabab41663 Jon Moeller 2018-11-13 296 * @param extended_funcs,
d605aabab41663 Jon Moeller 2018-11-13 297 * @param cpu,
d605aabab41663 Jon Moeller 2018-11-13 298 * @param *current_cpuid
d605aabab41663 Jon Moeller 2018-11-13 299 * @param *gen_per_cpu,
d605aabab41663 Jon Moeller 2018-11-13 300 * @param *local_gpc
d605aabab41663 Jon Moeller 2018-11-13 301 *
d605aabab41663 Jon Moeller 2018-11-13 302 * @return None
d605aabab41663 Jon Moeller 2018-11-13 303 *
d605aabab41663 Jon Moeller 2018-11-13 304 * @brief This routine is called to build per cpu information.
d605aabab41663 Jon Moeller 2018-11-13 305 * @brief Fills in the cpuid for the processor in the right location in the buffer
d605aabab41663 Jon Moeller 2018-11-13 306 *
d605aabab41663 Jon Moeller 2018-11-13 307 */
d605aabab41663 Jon Moeller 2018-11-13 308 static void sys_info_Fill_CPUID(U32 num_cpuids, U32 basic_funcs,
d605aabab41663 Jon Moeller 2018-11-13 309 U32 extended_funcs, U32 cpu,
d605aabab41663 Jon Moeller 2018-11-13 310 VTSA_CPUID *current_cpuid,
d605aabab41663 Jon Moeller 2018-11-13 311 VTSA_GEN_PER_CPU *gen_per_cpu,
d605aabab41663 Jon Moeller 2018-11-13 312 VTSA_GEN_PER_CPU *local_gpc)
d605aabab41663 Jon Moeller 2018-11-13 313 {
d605aabab41663 Jon Moeller 2018-11-13 314 U32 i, index, j;
d605aabab41663 Jon Moeller 2018-11-13 315 U64 cpuid_function;
d605aabab41663 Jon Moeller 2018-11-13 316 U64 rax, rbx, rcx, rdx;
d605aabab41663 Jon Moeller 2018-11-13 317 VTSA_CPUID *cpuid_el;
d605aabab41663 Jon Moeller 2018-11-13 318 U32 shift_nbits_core = 0;
d605aabab41663 Jon Moeller 2018-11-13 319 U32 shift_nbits_pkg = 0;
d605aabab41663 Jon Moeller 2018-11-13 @320 U32 model = 0;
d605aabab41663 Jon Moeller 2018-11-13 321 DRV_BOOL ht_supported = FALSE;
d605aabab41663 Jon Moeller 2018-11-13 322 U32 apic_id = 0;
d605aabab41663 Jon Moeller 2018-11-13 323 U32 num_logical_per_physical = 0;
d605aabab41663 Jon Moeller 2018-11-13 324 U32 cores_per_die = 1;
d605aabab41663 Jon Moeller 2018-11-13 325 U32 thread_id = 0;
d605aabab41663 Jon Moeller 2018-11-13 326 U32 core_id = 0;
d605aabab41663 Jon Moeller 2018-11-13 327 U32 package_id = 0;
d605aabab41663 Jon Moeller 2018-11-13 328 U32 module_id = 0;
d605aabab41663 Jon Moeller 2018-11-13 329 U32 cores_sharing_cache = 0;
d605aabab41663 Jon Moeller 2018-11-13 330 U32 cache_mask_width = 0;
d605aabab41663 Jon Moeller 2018-11-13 331 U32 num_cores = 0;
d605aabab41663 Jon Moeller 2018-11-13 332
d605aabab41663 Jon Moeller 2018-11-13 333 SEP_DRV_LOG_TRACE_IN("CPU: %x.", cpu);
d605aabab41663 Jon Moeller 2018-11-13 334
d605aabab41663 Jon Moeller 2018-11-13 335 apic_id = CPU_STATE_apic_id(&pcb[cpu]);
d605aabab41663 Jon Moeller 2018-11-13 336 SEP_DRV_LOG_TRACE("Cpu %x: apic_id = %d.", cpu, apic_id);
d605aabab41663 Jon Moeller 2018-11-13 337
d605aabab41663 Jon Moeller 2018-11-13 338 for (i = 0, index = 0; index < num_cpuids; i++) {
d605aabab41663 Jon Moeller 2018-11-13 339 cpuid_function =
d605aabab41663 Jon Moeller 2018-11-13 340 (i < basic_funcs) ? i : (0x80000000 + i - basic_funcs);
d605aabab41663 Jon Moeller 2018-11-13 341
d605aabab41663 Jon Moeller 2018-11-13 342 if (cpuid_function == 0x4) {
d605aabab41663 Jon Moeller 2018-11-13 343 for (j = 0, rax = (U64)-1; (rax & 0x1f) != 0; j++) {
d605aabab41663 Jon Moeller 2018-11-13 344 rcx = j;
d605aabab41663 Jon Moeller 2018-11-13 345 UTILITY_Read_Cpuid(cpuid_function, &rax, &rbx,
d605aabab41663 Jon Moeller 2018-11-13 346 &rcx, &rdx);
d605aabab41663 Jon Moeller 2018-11-13 347 cpuid_el = ¤t_cpuid[index];
d605aabab41663 Jon Moeller 2018-11-13 348 index++;
d605aabab41663 Jon Moeller 2018-11-13 349
:::::: The code at line 320 was first introduced by commit
:::::: d605aabab41663c9be9e8c549042933189adbf2f platform/x86: add sep and socwatch drivers without socperf.
:::::: TO: Jon Moeller <jon.moeller(a)intel.com>
:::::: CC: Faycal Benmlih <faycal.benmlih(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[android-common:android-4.19-stable 15304/24059] drivers/gpu/drm/drm_dp_mst_topology.c:1843 drm_dp_mst_update_dsc_info() warn: inconsistent indenting
by kernel test robot
tree: https://android.googlesource.com/kernel/common android-4.19-stable
head: 45c480b553c90178bf1cc30fd9054c75a31bf599
commit: b572376bedc67f334d005dabd7727dd318eeba44 [15304/24059] ANDROID: GKI: Add 'dsc_info' to struct drm_dp_mst_port
config: i386-randconfig-m021-20210930 (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/gpu/drm/drm_dp_mst_topology.c:1843 drm_dp_mst_update_dsc_info() warn: inconsistent indenting
vim +1843 drivers/gpu/drm/drm_dp_mst_topology.c
1830
1831 int drm_dp_mst_update_dsc_info(struct drm_dp_mst_topology_mgr *mgr,
1832 struct drm_dp_mst_port *port,
1833 struct drm_dp_mst_dsc_info *dsc_info)
1834 {
1835 if (!dsc_info)
1836 return -EINVAL;
1837
1838 port = drm_dp_get_validated_port_ref(mgr, port);
1839 if (!port)
1840 return -EINVAL;
1841
1842 memcpy(&port->dsc_info, dsc_info, sizeof(struct drm_dp_mst_dsc_info));
> 1843 drm_dp_put_port(port);
1844
1845 return 0;
1846 }
1847 EXPORT_SYMBOL_GPL(drm_dp_mst_update_dsc_info);
1848
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
Re: [PATCH] lib/bch:using swap() instead of tmp variable
by kernel test robot
Hi Yihao,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.15 next-20211110]
[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/Yihao-Han/lib-bch-using-swap-ins...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d2f38a3c6507b2520101f9a3807ed98f1bdc545a
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/67120a42a5dc4e4a08d998ae4dc41d9bf...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Yihao-Han/lib-bch-using-swap-instead-of-tmp-variable/20211109-143502
git checkout 67120a42a5dc4e4a08d998ae4dc41d9bf31946b5
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
lib/bch.c: In function 'solve_linear_system':
>> lib/bch.c:525:25: error: 'tmp' undeclared (first use in this function); did you mean 'tm'?
525 | tmp = rows[p];
| ^~~
| tm
lib/bch.c:525:25: note: each undeclared identifier is reported only once for each function it appears in
vim +525 lib/bch.c
437aa565e265677 Ivan Djelic 2011-03-11 494
437aa565e265677 Ivan Djelic 2011-03-11 495 /*
437aa565e265677 Ivan Djelic 2011-03-11 496 * solve a m x m linear system in GF(2) with an expected number of solutions,
437aa565e265677 Ivan Djelic 2011-03-11 497 * and return the number of found solutions
437aa565e265677 Ivan Djelic 2011-03-11 498 */
437aa565e265677 Ivan Djelic 2011-03-11 499 static int solve_linear_system(struct bch_control *bch, unsigned int *rows,
437aa565e265677 Ivan Djelic 2011-03-11 500 unsigned int *sol, int nsol)
437aa565e265677 Ivan Djelic 2011-03-11 501 {
437aa565e265677 Ivan Djelic 2011-03-11 502 const int m = GF_M(bch);
67120a42a5dc4e4 Yihao Han 2021-11-08 503 unsigned int mask;
02361bc7788852f Kees Cook 2018-05-31 504 int rem, c, r, p, k, param[BCH_MAX_M];
437aa565e265677 Ivan Djelic 2011-03-11 505
437aa565e265677 Ivan Djelic 2011-03-11 506 k = 0;
437aa565e265677 Ivan Djelic 2011-03-11 507 mask = 1 << m;
437aa565e265677 Ivan Djelic 2011-03-11 508
437aa565e265677 Ivan Djelic 2011-03-11 509 /* Gaussian elimination */
437aa565e265677 Ivan Djelic 2011-03-11 510 for (c = 0; c < m; c++) {
437aa565e265677 Ivan Djelic 2011-03-11 511 rem = 0;
437aa565e265677 Ivan Djelic 2011-03-11 512 p = c-k;
437aa565e265677 Ivan Djelic 2011-03-11 513 /* find suitable row for elimination */
437aa565e265677 Ivan Djelic 2011-03-11 514 for (r = p; r < m; r++) {
437aa565e265677 Ivan Djelic 2011-03-11 515 if (rows[r] & mask) {
437aa565e265677 Ivan Djelic 2011-03-11 516 if (r != p) {
67120a42a5dc4e4 Yihao Han 2021-11-08 517 swap(rows[r], rows[p]);
437aa565e265677 Ivan Djelic 2011-03-11 518 }
437aa565e265677 Ivan Djelic 2011-03-11 519 rem = r+1;
437aa565e265677 Ivan Djelic 2011-03-11 520 break;
437aa565e265677 Ivan Djelic 2011-03-11 521 }
437aa565e265677 Ivan Djelic 2011-03-11 522 }
437aa565e265677 Ivan Djelic 2011-03-11 523 if (rem) {
437aa565e265677 Ivan Djelic 2011-03-11 524 /* perform elimination on remaining rows */
437aa565e265677 Ivan Djelic 2011-03-11 @525 tmp = rows[p];
437aa565e265677 Ivan Djelic 2011-03-11 526 for (r = rem; r < m; r++) {
437aa565e265677 Ivan Djelic 2011-03-11 527 if (rows[r] & mask)
437aa565e265677 Ivan Djelic 2011-03-11 528 rows[r] ^= tmp;
437aa565e265677 Ivan Djelic 2011-03-11 529 }
437aa565e265677 Ivan Djelic 2011-03-11 530 } else {
437aa565e265677 Ivan Djelic 2011-03-11 531 /* elimination not needed, store defective row index */
437aa565e265677 Ivan Djelic 2011-03-11 532 param[k++] = c;
437aa565e265677 Ivan Djelic 2011-03-11 533 }
437aa565e265677 Ivan Djelic 2011-03-11 534 mask >>= 1;
437aa565e265677 Ivan Djelic 2011-03-11 535 }
437aa565e265677 Ivan Djelic 2011-03-11 536 /* rewrite system, inserting fake parameter rows */
437aa565e265677 Ivan Djelic 2011-03-11 537 if (k > 0) {
437aa565e265677 Ivan Djelic 2011-03-11 538 p = k;
437aa565e265677 Ivan Djelic 2011-03-11 539 for (r = m-1; r >= 0; r--) {
437aa565e265677 Ivan Djelic 2011-03-11 540 if ((r > m-1-k) && rows[r])
437aa565e265677 Ivan Djelic 2011-03-11 541 /* system has no solution */
437aa565e265677 Ivan Djelic 2011-03-11 542 return 0;
437aa565e265677 Ivan Djelic 2011-03-11 543
437aa565e265677 Ivan Djelic 2011-03-11 544 rows[r] = (p && (r == param[p-1])) ?
437aa565e265677 Ivan Djelic 2011-03-11 545 p--, 1u << (m-r) : rows[r-p];
437aa565e265677 Ivan Djelic 2011-03-11 546 }
437aa565e265677 Ivan Djelic 2011-03-11 547 }
437aa565e265677 Ivan Djelic 2011-03-11 548
437aa565e265677 Ivan Djelic 2011-03-11 549 if (nsol != (1 << k))
437aa565e265677 Ivan Djelic 2011-03-11 550 /* unexpected number of solutions */
437aa565e265677 Ivan Djelic 2011-03-11 551 return 0;
437aa565e265677 Ivan Djelic 2011-03-11 552
437aa565e265677 Ivan Djelic 2011-03-11 553 for (p = 0; p < nsol; p++) {
437aa565e265677 Ivan Djelic 2011-03-11 554 /* set parameters for p-th solution */
437aa565e265677 Ivan Djelic 2011-03-11 555 for (c = 0; c < k; c++)
437aa565e265677 Ivan Djelic 2011-03-11 556 rows[param[c]] = (rows[param[c]] & ~1)|((p >> c) & 1);
437aa565e265677 Ivan Djelic 2011-03-11 557
437aa565e265677 Ivan Djelic 2011-03-11 558 /* compute unique solution */
437aa565e265677 Ivan Djelic 2011-03-11 559 tmp = 0;
437aa565e265677 Ivan Djelic 2011-03-11 560 for (r = m-1; r >= 0; r--) {
437aa565e265677 Ivan Djelic 2011-03-11 561 mask = rows[r] & (tmp|1);
437aa565e265677 Ivan Djelic 2011-03-11 562 tmp |= parity(mask) << (m-r);
437aa565e265677 Ivan Djelic 2011-03-11 563 }
437aa565e265677 Ivan Djelic 2011-03-11 564 sol[p] = tmp >> 1;
437aa565e265677 Ivan Djelic 2011-03-11 565 }
437aa565e265677 Ivan Djelic 2011-03-11 566 return nsol;
437aa565e265677 Ivan Djelic 2011-03-11 567 }
437aa565e265677 Ivan Djelic 2011-03-11 568
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
Re: [PATCH] iwlwifi: mvm: retry init flow if failed
by kernel test robot
Hi Luca,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on kvalo-wireless-drivers-next/master]
[also build test ERROR on kvalo-wireless-drivers/master v5.15 next-20211110]
[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/Luca-Coelho/iwlwifi-mvm-retry-in...
base: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-ne... master
config: powerpc-allmodconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/71e548532c8247fa57b9e952895bba060...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Luca-Coelho/iwlwifi-mvm-retry-init-flow-if-failed/20211110-013343
git checkout 71e548532c8247fa57b9e952895bba06002eddb0
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/net/wireless/intel/iwlwifi/
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/intel/iwlwifi/iwl-drv.c: In function '_iwl_op_mode_start':
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1342:13: error: invalid storage class for function '_iwl_op_mode_stop'
1342 | static void _iwl_op_mode_stop(struct iwl_drv *drv)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1342:1: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
1342 | static void _iwl_op_mode_stop(struct iwl_drv *drv)
| ^~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1362:13: error: invalid storage class for function 'iwl_req_fw_callback'
1362 | static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context)
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/linkage.h:7,
from include/linux/kernel.h:8,
from include/linux/list.h:9,
from include/linux/swait.h:5,
from include/linux/completion.h:12,
from drivers/net/wireless/intel/iwlwifi/iwl-drv.c:7:
>> drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1754:19: error: extern declaration of 'iwlwifi_mod_params' follows declaration with no linkage
1754 | IWL_EXPORT_SYMBOL(iwlwifi_mod_params);
| ^~~~~~~~~~~~~~~~~~
include/linux/export.h:98:28: note: in definition of macro '___EXPORT_SYMBOL'
98 | extern typeof(sym) sym; \
| ^~~
include/linux/export.h:160:41: note: in expansion of macro '__EXPORT_SYMBOL'
160 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:164:41: note: in expansion of macro '_EXPORT_SYMBOL'
164 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.h:87:33: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
87 | #define IWL_EXPORT_SYMBOL(sym) EXPORT_SYMBOL_GPL(sym)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1754:1: note: in expansion of macro 'IWL_EXPORT_SYMBOL'
1754 | IWL_EXPORT_SYMBOL(iwlwifi_mod_params);
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1746:23: note: previous definition of 'iwlwifi_mod_params' with type 'struct iwl_mod_params'
1746 | struct iwl_mod_params iwlwifi_mod_params = {
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/linkage.h:7,
from include/linux/kernel.h:8,
from include/linux/list.h:9,
from include/linux/swait.h:5,
from include/linux/completion.h:12,
from drivers/net/wireless/intel/iwlwifi/iwl-drv.c:7:
>> include/linux/export.h:67:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
67 | static const struct kernel_symbol __ksymtab_##sym \
| ^~~~~~
include/linux/export.h:108:9: note: in expansion of macro '__KSYMTAB_ENTRY'
108 | __KSYMTAB_ENTRY(sym, sec)
| ^~~~~~~~~~~~~~~
include/linux/export.h:152:41: note: in expansion of macro '___EXPORT_SYMBOL'
152 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
| ^~~~~~~~~~~~~~~~
include/linux/export.h:160:41: note: in expansion of macro '__EXPORT_SYMBOL'
160 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:164:41: note: in expansion of macro '_EXPORT_SYMBOL'
164 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.h:87:33: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
87 | #define IWL_EXPORT_SYMBOL(sym) EXPORT_SYMBOL_GPL(sym)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1754:1: note: in expansion of macro 'IWL_EXPORT_SYMBOL'
1754 | IWL_EXPORT_SYMBOL(iwlwifi_mod_params);
| ^~~~~~~~~~~~~~~~~
>> drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1778:19: error: non-static declaration of 'iwl_opmode_register' follows static declaration
1778 | IWL_EXPORT_SYMBOL(iwl_opmode_register);
| ^~~~~~~~~~~~~~~~~~~
include/linux/export.h:98:28: note: in definition of macro '___EXPORT_SYMBOL'
98 | extern typeof(sym) sym; \
| ^~~
include/linux/export.h:160:41: note: in expansion of macro '__EXPORT_SYMBOL'
160 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:164:41: note: in expansion of macro '_EXPORT_SYMBOL'
164 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.h:87:33: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
87 | #define IWL_EXPORT_SYMBOL(sym) EXPORT_SYMBOL_GPL(sym)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1778:1: note: in expansion of macro 'IWL_EXPORT_SYMBOL'
1778 | IWL_EXPORT_SYMBOL(iwl_opmode_register);
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1756:5: note: previous definition of 'iwl_opmode_register' with type 'int(const char *, const struct iwl_op_mode_ops *)'
1756 | int iwl_opmode_register(const char *name, const struct iwl_op_mode_ops *ops)
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/linkage.h:7,
from include/linux/kernel.h:8,
from include/linux/list.h:9,
from include/linux/swait.h:5,
from include/linux/completion.h:12,
from drivers/net/wireless/intel/iwlwifi/iwl-drv.c:7:
>> include/linux/export.h:67:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
67 | static const struct kernel_symbol __ksymtab_##sym \
| ^~~~~~
include/linux/export.h:108:9: note: in expansion of macro '__KSYMTAB_ENTRY'
108 | __KSYMTAB_ENTRY(sym, sec)
| ^~~~~~~~~~~~~~~
include/linux/export.h:152:41: note: in expansion of macro '___EXPORT_SYMBOL'
152 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
| ^~~~~~~~~~~~~~~~
include/linux/export.h:160:41: note: in expansion of macro '__EXPORT_SYMBOL'
160 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:164:41: note: in expansion of macro '_EXPORT_SYMBOL'
164 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.h:87:33: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
87 | #define IWL_EXPORT_SYMBOL(sym) EXPORT_SYMBOL_GPL(sym)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1778:1: note: in expansion of macro 'IWL_EXPORT_SYMBOL'
1778 | IWL_EXPORT_SYMBOL(iwl_opmode_register);
| ^~~~~~~~~~~~~~~~~
>> drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1800:19: error: non-static declaration of 'iwl_opmode_deregister' follows static declaration
1800 | IWL_EXPORT_SYMBOL(iwl_opmode_deregister);
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/export.h:98:28: note: in definition of macro '___EXPORT_SYMBOL'
98 | extern typeof(sym) sym; \
| ^~~
include/linux/export.h:160:41: note: in expansion of macro '__EXPORT_SYMBOL'
160 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:164:41: note: in expansion of macro '_EXPORT_SYMBOL'
164 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.h:87:33: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
87 | #define IWL_EXPORT_SYMBOL(sym) EXPORT_SYMBOL_GPL(sym)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1800:1: note: in expansion of macro 'IWL_EXPORT_SYMBOL'
1800 | IWL_EXPORT_SYMBOL(iwl_opmode_deregister);
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1780:6: note: previous definition of 'iwl_opmode_deregister' with type 'void(const char *)'
1780 | void iwl_opmode_deregister(const char *name)
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/linkage.h:7,
from include/linux/kernel.h:8,
from include/linux/list.h:9,
from include/linux/swait.h:5,
from include/linux/completion.h:12,
from drivers/net/wireless/intel/iwlwifi/iwl-drv.c:7:
>> include/linux/export.h:67:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
67 | static const struct kernel_symbol __ksymtab_##sym \
| ^~~~~~
include/linux/export.h:108:9: note: in expansion of macro '__KSYMTAB_ENTRY'
108 | __KSYMTAB_ENTRY(sym, sec)
| ^~~~~~~~~~~~~~~
include/linux/export.h:152:41: note: in expansion of macro '___EXPORT_SYMBOL'
152 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
| ^~~~~~~~~~~~~~~~
include/linux/export.h:160:41: note: in expansion of macro '__EXPORT_SYMBOL'
160 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:164:41: note: in expansion of macro '_EXPORT_SYMBOL'
164 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.h:87:33: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
87 | #define IWL_EXPORT_SYMBOL(sym) EXPORT_SYMBOL_GPL(sym)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1800:1: note: in expansion of macro 'IWL_EXPORT_SYMBOL'
1800 | IWL_EXPORT_SYMBOL(iwl_opmode_deregister);
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1802:19: error: invalid storage class for function 'iwl_drv_init'
1802 | static int __init iwl_drv_init(void)
| ^~~~~~~~~~~~
In file included from drivers/net/wireless/intel/iwlwifi/iwl-drv.c:10:
>> include/linux/module.h:131:49: error: invalid storage class for function '__inittest'
131 | static inline initcall_t __maybe_unused __inittest(void) \
| ^~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1828:1: note: in expansion of macro 'module_init'
1828 | module_init(iwl_drv_init);
| ^~~~~~~~~~~
>> drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1828:1: error: 'alias' attribute ignored [-Werror=attributes]
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1830:20: error: invalid storage class for function 'iwl_drv_exit'
1830 | static void __exit iwl_drv_exit(void)
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1830:1: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
1830 | static void __exit iwl_drv_exit(void)
| ^~~~~~
In file included from drivers/net/wireless/intel/iwlwifi/iwl-drv.c:10:
>> include/linux/module.h:139:49: error: invalid storage class for function '__exittest'
139 | static inline exitcall_t __maybe_unused __exittest(void) \
| ^~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1838:1: note: in expansion of macro 'module_exit'
1838 | module_exit(iwl_drv_exit);
| ^~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1838:1: error: 'alias' attribute ignored [-Werror=attributes]
In file included from include/linux/module.h:22,
from drivers/net/wireless/intel/iwlwifi/iwl-drv.c:10:
include/linux/moduleparam.h:409:45: error: invalid storage class for function '__check_debug'
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~~~
include/linux/moduleparam.h:436:35: note: in expansion of macro '__param_check'
436 | #define param_check_uint(name, p) __param_check(name, p, unsigned int)
| ^~~~~~~~~~~~~
include/linux/moduleparam.h:150:9: note: in expansion of macro 'param_check_uint'
150 | param_check_##type(name, &(value)); \
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1841:1: note: in expansion of macro 'module_param_named'
1841 | module_param_named(debug, iwlwifi_mod_params.debug_level, uint, 0644);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:409:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~
include/linux/moduleparam.h:436:35: note: in expansion of macro '__param_check'
436 | #define param_check_uint(name, p) __param_check(name, p, unsigned int)
| ^~~~~~~~~~~~~
include/linux/moduleparam.h:150:9: note: in expansion of macro 'param_check_uint'
150 | param_check_##type(name, &(value)); \
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1841:1: note: in expansion of macro 'module_param_named'
1841 | module_param_named(debug, iwlwifi_mod_params.debug_level, uint, 0644);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:289:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
289 | static const char __param_str_##name[] = prefix #name; \
| ^~~~~~
include/linux/moduleparam.h:176:9: note: in expansion of macro '__module_param_call'
176 | __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
| ^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1841:1: note: in expansion of macro 'module_param_named'
1841 | module_param_named(debug, iwlwifi_mod_params.debug_level, uint, 0644);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:409:45: error: invalid storage class for function '__check_swcrypto'
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~~~
include/linux/moduleparam.h:429:34: note: in expansion of macro '__param_check'
429 | #define param_check_int(name, p) __param_check(name, p, int)
| ^~~~~~~~~~~~~
include/linux/moduleparam.h:150:9: note: in expansion of macro 'param_check_int'
150 | param_check_##type(name, &(value)); \
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1845:1: note: in expansion of macro 'module_param_named'
1845 | module_param_named(swcrypto, iwlwifi_mod_params.swcrypto, int, 0444);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:289:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
289 | static const char __param_str_##name[] = prefix #name; \
| ^~~~~~
include/linux/moduleparam.h:176:9: note: in expansion of macro '__module_param_call'
176 | __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
| ^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1845:1: note: in expansion of macro 'module_param_named'
1845 | module_param_named(swcrypto, iwlwifi_mod_params.swcrypto, int, 0444);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:409:45: error: invalid storage class for function '__check_11n_disable'
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~~~
include/linux/moduleparam.h:436:35: note: in expansion of macro '__param_check'
436 | #define param_check_uint(name, p) __param_check(name, p, unsigned int)
| ^~~~~~~~~~~~~
include/linux/moduleparam.h:150:9: note: in expansion of macro 'param_check_uint'
150 | param_check_##type(name, &(value)); \
| ^~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1847:1: note: in expansion of macro 'module_param_named'
1847 | module_param_named(11n_disable, iwlwifi_mod_params.disable_11n, uint, 0444);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:289:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
289 | static const char __param_str_##name[] = prefix #name; \
| ^~~~~~
include/linux/moduleparam.h:176:9: note: in expansion of macro '__module_param_call'
176 | __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
| ^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:151:9: note: in expansion of macro 'module_param_cb'
151 | module_param_cb(name, ¶m_ops_##type, &value, perm); \
| ^~~~~~~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1847:1: note: in expansion of macro 'module_param_named'
1847 | module_param_named(11n_disable, iwlwifi_mod_params.disable_11n, uint, 0444);
| ^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:409:45: error: invalid storage class for function '__check_amsdu_size'
409 | static inline type __always_unused *__check_##name(void) { return(p); }
| ^~~~~~~~
include/linux/moduleparam.h:429:34: note: in expansion of macro '__param_check'
429 | #define param_check_int(name, p) __param_check(name, p, int)
| ^~~~~~~~~~~~~
include/linux/moduleparam.h:150:9: note: in expansion of macro 'param_check_int'
150 | param_check_##type(name, &(value)); \
vim +/iwlwifi_mod_params +1754 drivers/net/wireless/intel/iwlwifi/iwl-drv.c
65de7e84fdc71a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-04-17 1743
65de7e84fdc71a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-04-17 1744
65de7e84fdc71a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-04-17 1745 /* shared module parameters */
65de7e84fdc71a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-04-17 1746 struct iwl_mod_params iwlwifi_mod_params = {
3b37f4c99c93ab drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2017-05-30 1747 .fw_restart = true,
65de7e84fdc71a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-04-17 1748 .bt_coex_active = true,
65de7e84fdc71a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-04-17 1749 .power_level = IWL_POWER_INDEX_1,
11dee0b4946bc8 drivers/net/wireless/intel/iwlwifi/iwl-drv.c Emmanuel Grumbach 2016-03-15 1750 .uapsd_disable = IWL_DISABLE_UAPSD_BSS | IWL_DISABLE_UAPSD_P2P_CLIENT,
b0d8d2c27007da drivers/net/wireless/intel/iwlwifi/iwl-drv.c Luca Coelho 2019-11-07 1751 .enable_ini = true,
65de7e84fdc71a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-04-17 1752 /* the rest are 0 by default */
65de7e84fdc71a drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-04-17 1753 };
48e29340d54104 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2013-03-01 @1754 IWL_EXPORT_SYMBOL(iwlwifi_mod_params);
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1755
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1756 int iwl_opmode_register(const char *name, const struct iwl_op_mode_ops *ops)
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1757 {
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1758 int i;
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1759 struct iwl_drv *drv;
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1760 struct iwlwifi_opmode_table *op;
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1761
ff1ffb850b7ac6 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-06 1762 mutex_lock(&iwlwifi_opmode_table_mtx);
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1763 for (i = 0; i < ARRAY_SIZE(iwlwifi_opmode_table); i++) {
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1764 op = &iwlwifi_opmode_table[i];
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1765 if (strcmp(op->name, name))
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1766 continue;
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1767 op->ops = ops;
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1768 /* TODO: need to handle exceptional case */
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1769 list_for_each_entry(drv, &op->drv, list)
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1770 drv->op_mode = _iwl_op_mode_start(drv, op);
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1771
ff1ffb850b7ac6 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-06 1772 mutex_unlock(&iwlwifi_opmode_table_mtx);
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1773 return 0;
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1774 }
ff1ffb850b7ac6 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-06 1775 mutex_unlock(&iwlwifi_opmode_table_mtx);
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1776 return -EIO;
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1777 }
48e29340d54104 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2013-03-01 @1778 IWL_EXPORT_SYMBOL(iwl_opmode_register);
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1779
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1780 void iwl_opmode_deregister(const char *name)
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1781 {
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1782 int i;
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1783 struct iwl_drv *drv;
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1784
ff1ffb850b7ac6 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-06 1785 mutex_lock(&iwlwifi_opmode_table_mtx);
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1786 for (i = 0; i < ARRAY_SIZE(iwlwifi_opmode_table); i++) {
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1787 if (strcmp(iwlwifi_opmode_table[i].name, name))
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1788 continue;
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1789 iwlwifi_opmode_table[i].ops = NULL;
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1790
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1791 /* call the stop routine for all devices */
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1792 list_for_each_entry(drv, &iwlwifi_opmode_table[i].drv, list)
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1793 _iwl_op_mode_stop(drv);
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1794
ff1ffb850b7ac6 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-06 1795 mutex_unlock(&iwlwifi_opmode_table_mtx);
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1796 return;
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1797 }
ff1ffb850b7ac6 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2012-06-06 1798 mutex_unlock(&iwlwifi_opmode_table_mtx);
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1799 }
48e29340d54104 drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2013-03-01 @1800 IWL_EXPORT_SYMBOL(iwl_opmode_deregister);
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1801
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1802 static int __init iwl_drv_init(void)
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1803 {
ee3399e5230c5a drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2019-05-10 1804 int i, err;
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1805
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1806 for (i = 0; i < ARRAY_SIZE(iwlwifi_opmode_table); i++)
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1807 INIT_LIST_HEAD(&iwlwifi_opmode_table[i].drv);
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1808
e32ec12fd11fbc drivers/net/wireless/iwlwifi/iwl-drv.c Johannes Berg 2014-10-22 1809 pr_info(DRV_DESCRIPTION "\n");
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1810
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1811 #ifdef CONFIG_IWLWIFI_DEBUGFS
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1812 /* Create the root of iwlwifi debugfs subsystem. */
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1813 iwl_dbgfs_root = debugfs_create_dir(DRV_NAME, NULL);
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1814 #endif
9da987ac2b88b4 drivers/net/wireless/iwlwifi/iwl-drv.c Meenakshi Venkataraman 2012-07-16 1815
ee3399e5230c5a drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2019-05-10 1816 err = iwl_pci_register_driver();
ee3399e5230c5a drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2019-05-10 1817 if (err)
ee3399e5230c5a drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2019-05-10 1818 goto cleanup_debugfs;
ee3399e5230c5a drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2019-05-10 1819
ee3399e5230c5a drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2019-05-10 1820 return 0;
ee3399e5230c5a drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2019-05-10 1821
ee3399e5230c5a drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2019-05-10 1822 cleanup_debugfs:
ee3399e5230c5a drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2019-05-10 1823 #ifdef CONFIG_IWLWIFI_DEBUGFS
ee3399e5230c5a drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2019-05-10 1824 debugfs_remove_recursive(iwl_dbgfs_root);
ee3399e5230c5a drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2019-05-10 1825 #endif
ee3399e5230c5a drivers/net/wireless/intel/iwlwifi/iwl-drv.c Johannes Berg 2019-05-10 1826 return err;
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1827 }
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 @1828 module_init(iwl_drv_init);
cc5f7e39761382 drivers/net/wireless/iwlwifi/iwl-drv.c Don Fry 2012-05-16 1829
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
Re: [PATCH] [RFC] dt-bindings: clk: Introduce 'critical-clocks' property
by kernel test robot
Hi Marek,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on clk/clk-next]
[also build test ERROR on v5.15 next-20211110]
[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/Marek-Vasut/dt-bindings-clk-Intr...
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/6f73b7f399440eee282d746b1907e28f4...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Marek-Vasut/dt-bindings-clk-Introduce-critical-clocks-property/20211109-064424
git checkout 6f73b7f399440eee282d746b1907e28f45b81a14
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
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/clk/clk.c: In function '__clk_register':
>> drivers/clk/clk.c:3852:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
3852 | struct of_phandle_args clkspec;
| ^~~~~~
In file included from include/linux/perf_event.h:25,
from include/linux/trace_events.h:10,
from include/trace/trace_events.h:21,
from include/trace/define_trace.h:102,
from include/trace/events/clk.h:270,
from drivers/clk/clk.c:95:
At top level:
arch/arc/include/asm/perf_event.h:126:27: error: 'arc_pmu_cache_map' defined but not used [-Werror=unused-const-variable=]
126 | static const unsigned int arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/perf_event.h:91:27: error: 'arc_pmu_ev_hw_map' defined but not used [-Werror=unused-const-variable=]
91 | static const char * const arc_pmu_ev_hw_map[] = {
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/clk/clk-bd718x7.c: In function 'bd71837_match_clkspec':
>> drivers/clk/clk-bd718x7.c:75:29: error: unused variable 'c' [-Werror=unused-variable]
75 | struct bd718xx_clk *c = container_of(hw, struct bd718xx_clk, hw);
| ^
cc1: all warnings being treated as errors
vim +3852 drivers/clk/clk.c
3806
3807 static struct clk *
3808 __clk_register(struct device *dev, struct device_node *np, struct clk_hw *hw)
3809 {
3810 int ret;
3811 struct clk_core *core;
3812 const struct clk_init_data *init = hw->init;
3813
3814 /*
3815 * The init data is not supposed to be used outside of registration path.
3816 * Set it to NULL so that provider drivers can't use it either and so that
3817 * we catch use of hw->init early on in the core.
3818 */
3819 hw->init = NULL;
3820
3821 core = kzalloc(sizeof(*core), GFP_KERNEL);
3822 if (!core) {
3823 ret = -ENOMEM;
3824 goto fail_out;
3825 }
3826
3827 core->name = kstrdup_const(init->name, GFP_KERNEL);
3828 if (!core->name) {
3829 ret = -ENOMEM;
3830 goto fail_name;
3831 }
3832
3833 if (WARN_ON(!init->ops)) {
3834 ret = -EINVAL;
3835 goto fail_ops;
3836 }
3837 core->ops = init->ops;
3838
3839 if (dev && pm_runtime_enabled(dev))
3840 core->rpm_enabled = true;
3841 core->dev = dev;
3842 core->of_node = np;
3843 if (dev && dev->driver)
3844 core->owner = dev->driver->owner;
3845 core->hw = hw;
3846 core->flags = init->flags;
3847 core->num_parents = init->num_parents;
3848 core->min_rate = 0;
3849 core->max_rate = ULONG_MAX;
3850 hw->core = core;
3851
> 3852 struct of_phandle_args clkspec;
3853 u32 clksize, clktotal;
3854 int i, index;
3855
3856 if (np && core->ops->match_clkspec && !of_property_read_u32(np, "#clock-cells", &clksize)) {
3857 if (clksize == 0) {
3858 if (of_property_read_bool(np, "critical-clocks"))
3859 core->flags |= CLK_IS_CRITICAL;
3860 clktotal = 0;
3861 } else {
3862 clkspec.np = np;
3863 clktotal = of_property_count_u32_elems(np, "critical-clocks");
3864 clktotal /= clksize;
3865 for (index = 0; index < clktotal; index++) {
3866 for (i = 0; i < clksize; i++) {
3867 ret = of_property_read_u32_index(np, "critical-clocks",
3868 (index * clksize) + i,
3869 &(clkspec.args[i]));
3870 }
3871 if (!core->ops->match_clkspec(hw, &clkspec))
3872 core->flags |= CLK_IS_CRITICAL;
3873 }
3874 }
3875 }
3876
3877 ret = clk_core_populate_parent_map(core, init);
3878 if (ret)
3879 goto fail_parents;
3880
3881 INIT_HLIST_HEAD(&core->clks);
3882
3883 /*
3884 * Don't call clk_hw_create_clk() here because that would pin the
3885 * provider module to itself and prevent it from ever being removed.
3886 */
3887 hw->clk = alloc_clk(core, NULL, NULL);
3888 if (IS_ERR(hw->clk)) {
3889 ret = PTR_ERR(hw->clk);
3890 goto fail_create_clk;
3891 }
3892
3893 clk_core_link_consumer(hw->core, hw->clk);
3894
3895 ret = __clk_core_init(core);
3896 if (!ret)
3897 return hw->clk;
3898
3899 clk_prepare_lock();
3900 clk_core_unlink_consumer(hw->clk);
3901 clk_prepare_unlock();
3902
3903 free_clk(hw->clk);
3904 hw->clk = NULL;
3905
3906 fail_create_clk:
3907 clk_core_free_parent_map(core);
3908 fail_parents:
3909 fail_ops:
3910 kfree_const(core->name);
3911 fail_name:
3912 kfree(core);
3913 fail_out:
3914 return ERR_PTR(ret);
3915 }
3916
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[leon-rdma:devlink 4/16] drivers/net/ethernet/intel/ice/ice_devlink.c:501:17: error: variable 'dev' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git devlink
head: 75088f5c533815580092fd7dca787c06e75ba7ba
commit: 3c73f365d81cf18adf846a4ef36e605ad52acd0a [4/16] devlink: Clean registration of devlink port
config: x86_64-buildonly-randconfig-r002-20211109 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 0d182d9d1e09dea0f78bcc3afa91946c6f97c23e)
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/leon/linux-rdma.git/commi...
git remote add leon-rdma https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git
git fetch --no-tags leon-rdma devlink
git checkout 3c73f365d81cf18adf846a4ef36e605ad52acd0a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/net/ethernet/intel/ice/ice_devlink.c:501:17: error: variable 'dev' set but not used [-Werror,-Wunused-but-set-variable]
struct device *dev;
^
drivers/net/ethernet/intel/ice/ice_devlink.c:550:17: error: variable 'dev' set but not used [-Werror,-Wunused-but-set-variable]
struct device *dev;
^
2 errors generated.
vim +/dev +501 drivers/net/ethernet/intel/ice/ice_devlink.c
1adf7ead820409 Jacob Keller 2020-03-11 486
1adf7ead820409 Jacob Keller 2020-03-11 487 /**
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 488 * ice_devlink_create_pf_port - Create a devlink port for this PF
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 489 * @pf: the PF to create a devlink port for
1adf7ead820409 Jacob Keller 2020-03-11 490 *
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 491 * Create and register a devlink_port for this PF.
1adf7ead820409 Jacob Keller 2020-03-11 492 *
1adf7ead820409 Jacob Keller 2020-03-11 493 * Return: zero on success or an error code on failure.
1adf7ead820409 Jacob Keller 2020-03-11 494 */
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 495 int ice_devlink_create_pf_port(struct ice_pf *pf)
1adf7ead820409 Jacob Keller 2020-03-11 496 {
71ad8d55f8e5ea Danielle Ratson 2020-07-09 497 struct devlink_port_attrs attrs = {};
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 498 struct devlink_port *devlink_port;
48d40025b5392d Jacob Keller 2020-10-07 499 struct devlink *devlink;
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 500 struct ice_vsi *vsi;
48d40025b5392d Jacob Keller 2020-10-07 @501 struct device *dev;
1adf7ead820409 Jacob Keller 2020-03-11 502
48d40025b5392d Jacob Keller 2020-10-07 503 dev = ice_pf_to_dev(pf);
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 504
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 505 devlink_port = &pf->devlink_port;
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 506
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 507 vsi = ice_get_main_vsi(pf);
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 508 if (!vsi)
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 509 return -EIO;
1adf7ead820409 Jacob Keller 2020-03-11 510
71ad8d55f8e5ea Danielle Ratson 2020-07-09 511 attrs.flavour = DEVLINK_PORT_FLAVOUR_PHYSICAL;
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 512 attrs.phys.port_number = pf->hw.bus.func;
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 513 devlink_port_attrs_set(devlink_port, &attrs);
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 514 devlink = priv_to_devlink(pf);
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 515
3c73f365d81cf1 Leon Romanovsky 2021-11-03 516 devlink_port_register(devlink, devlink_port, vsi->idx);
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 517 return 0;
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 518 }
2ae0aa4758b0f4 Wojciech Drewek 2021-08-19 519
:::::: The code at line 501 was first introduced by commit
:::::: 48d40025b5392dc9010eec3c99a5a4b6e5a29d1e ice: refactor devlink_port to be per-VSI
:::::: TO: Jacob Keller <jacob.e.keller(a)intel.com>
:::::: CC: Jakub Kicinski <kuba(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks