Kernel
Threads by month
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- 50 participants
- 22088 discussions
[openeuler:OLK-5.10 3415/3415] fs/fscache/main.c:51:21: warning: unused variable 'fscache_min_object_max_active'
by kernel test robot 20 Dec '25
by kernel test robot 20 Dec '25
20 Dec '25
Hi Baokun,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 1588d318a9e388d05b6cf5e2a63134c8beb6a355
commit: c55fa11d134b40dbe1a4a5512a7fe43497cb6d5e [3415/3415] fscache: limit fscache_object_max_active to avoid blocking
config: x86_64-buildonly-randconfig-006-20251215 (https://download.01.org/0day-ci/archive/20251220/202512202356.o0JDRNMp-lkp@…)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251220/202512202356.o0JDRNMp-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512202356.o0JDRNMp-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from <built-in>:2:
In file included from include/linux/compiler_types.h:69:
include/linux/compiler-clang.h:34:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined]
34 | #define __SANITIZE_ADDRESS__
| ^
<built-in>:352:9: note: previous definition is here
352 | #define __SANITIZE_ADDRESS__ 1
| ^
>> fs/fscache/main.c:51:21: warning: unused variable 'fscache_min_object_max_active' [-Wunused-variable]
51 | static unsigned int fscache_min_object_max_active = FSCACHE_MIN_OBJECT_MAX_ACTIVE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> fs/fscache/main.c:52:21: warning: unused variable 'fscache_min_op_max_active' [-Wunused-variable]
52 | static unsigned int fscache_min_op_max_active = FSCACHE_MIN_OBJECT_MAX_ACTIVE / 2;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
vim +/fscache_min_object_max_active +51 fs/fscache/main.c
46
47 /* these values serve as lower bounds, will be adjusted in fscache_init() */
48 #define FSCACHE_MIN_OBJECT_MAX_ACTIVE 4
49 static unsigned int fscache_object_max_active = FSCACHE_MIN_OBJECT_MAX_ACTIVE;
50 static unsigned int fscache_op_max_active = FSCACHE_MIN_OBJECT_MAX_ACTIVE / 2;
> 51 static unsigned int fscache_min_object_max_active = FSCACHE_MIN_OBJECT_MAX_ACTIVE;
> 52 static unsigned int fscache_min_op_max_active = FSCACHE_MIN_OBJECT_MAX_ACTIVE / 2;
53
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:OLK-6.6 3544/3544] arch/arm64/kernel/cpufeature.c:2129:13: warning: 'enable_pseudo_nmi' defined but not used
by kernel test robot 20 Dec '25
by kernel test robot 20 Dec '25
20 Dec '25
Hi caijian,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 04473ee9ed912a16fff0d8846ad565bbf3d63c77
commit: c6ce2becb89528f83c1ad3c0607ad05baecebc0a [3544/3544] arm64/cpufeature: Fix pseudo nmi identifier undeclaration complilation error
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20251220/202512202332.cPVupLsK-lkp@…)
compiler: aarch64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251220/202512202332.cPVupLsK-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512202332.cPVupLsK-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/arm64/kernel/cpufeature.c:2129:13: warning: 'enable_pseudo_nmi' defined but not used [-Wunused-variable]
2129 | static bool enable_pseudo_nmi;
| ^~~~~~~~~~~~~~~~~
vim +/enable_pseudo_nmi +2129 arch/arm64/kernel/cpufeature.c
3e6c69a058deaa Mark Brown 2019-12-09 2127
f72387e1f8bc99 Mark Brown 2022-11-03 2128 #if IS_ENABLED(CONFIG_ARM64_PSEUDO_NMI) || IS_ENABLED(CONFIG_ARM64_NMI)
bc3c03ccb4641f Julien Thierry 2019-01-31 @2129 static bool enable_pseudo_nmi;
f72387e1f8bc99 Mark Brown 2022-11-03 2130 #endif
bc3c03ccb4641f Julien Thierry 2019-01-31 2131
:::::: The code at line 2129 was first introduced by commit
:::::: bc3c03ccb4641fb940b27a0d369431876923a8fe arm64: Enable the support of pseudo-NMIs
:::::: TO: Julien Thierry <julien.thierry(a)arm.com>
:::::: CC: Catalin Marinas <catalin.marinas(a)arm.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:OLK-6.6 1/1] kismet: WARNING: unmet direct dependencies detected for ACPI_HOTPLUG_IGNORE_OSC when selected by X86
by kernel test robot 20 Dec '25
by kernel test robot 20 Dec '25
20 Dec '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 04473ee9ed912a16fff0d8846ad565bbf3d63c77
commit: 362f33cba6a04a09bcfc47ade55ace95e8a51c5b [1/1] ACPI: Add _OSC bits to advertise OS support for toggling CPU present/enabled
config: x86_64-kismet-CONFIG_ACPI_HOTPLUG_IGNORE_OSC-CONFIG_X86-0-0 (https://download.01.org/0day-ci/archive/20251220/202512201612.K3fc9gHn-lkp@…)
reproduce: (https://download.01.org/0day-ci/archive/20251220/202512201612.K3fc9gHn-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512201612.K3fc9gHn-lkp@intel.com/
kismet warnings: (new ones prefixed by >>)
>> kismet: WARNING: unmet direct dependencies detected for ACPI_HOTPLUG_IGNORE_OSC when selected by X86
WARNING: unmet direct dependencies detected for PGP_PRELOAD
Depends on [n]: CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=n]
Selected by [y]:
- PGP_PRELOAD_PUBLIC_KEYS [=y] && CRYPTO [=y]
WARNING: unmet direct dependencies detected for ACPI_HOTPLUG_IGNORE_OSC
Depends on [n]: ACPI [=y] && ACPI_HOTPLUG_PRESENT_CPU [=n]
Selected by [y]:
- X86 [=y] && ACPI [=y] && HOTPLUG_CPU [=y]
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:OLK-5.10 3418/3418] arch/arm64/include/asm/stack_pointer.h:8:51: error: register 'sp' unsuitable for global register variables on this target
by kernel test robot 20 Dec '25
by kernel test robot 20 Dec '25
20 Dec '25
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 1588d318a9e388d05b6cf5e2a63134c8beb6a355
commit: 68ee705da160d123656dcbf9ebd449fb77b54bc0 [3418/3418] scripts: kernel-doc: Fix syntax error due to undeclared args variable
config: arm64-randconfig-002-20251217 (https://download.01.org/0day-ci/archive/20251221/202512210112.1in1n759-lkp@…)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251221/202512210112.1in1n759-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512210112.1in1n759-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/arm64/Makefile:44: Detected assembler with broken .inst; disassembly will be unreliable
scripts/genksyms/parse.y: warning: 9 shift/reduce conflicts [-Wconflicts-sr]
scripts/genksyms/parse.y: warning: 5 reduce/reduce conflicts [-Wconflicts-rr]
scripts/genksyms/parse.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:17:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:102:
In file included from include/linux/preempt.h:78:
In file included from arch/arm64/include/asm/preempt.h:5:
In file included from include/linux/thread_info.h:14:
In file included from include/linux/thread_bits.h:32:
In file included from arch/arm64/include/asm/thread_info.h:18:
>> arch/arm64/include/asm/stack_pointer.h:8:51: error: register 'sp' unsuitable for global register variables on this target
8 | register unsigned long current_stack_pointer asm ("sp");
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:19:
In file included from arch/arm64/include/asm/processor.h:38:
In file included from arch/arm64/include/asm/pointer_auth.h:6:
In file included from include/linux/random.h:104:
>> arch/arm64/include/asm/archrandom.h:20:2: error: unknown register name 'r0' in asm
20 | arm_smccc_1_1_invoke(ARM_SMCCC_TRNG_VERSION, &res);
| ^
include/linux/arm-smccc.h:487:4: note: expanded from macro 'arm_smccc_1_1_invoke'
487 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:453:32: note: expanded from macro 'arm_smccc_1_1_hvc'
453 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:410:33: note: expanded from macro '__arm_smccc_1_1'
410 | register unsigned long r0 asm("r0"); \
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:19:
In file included from arch/arm64/include/asm/processor.h:38:
In file included from arch/arm64/include/asm/pointer_auth.h:6:
In file included from include/linux/random.h:104:
>> arch/arm64/include/asm/archrandom.h:20:2: error: unknown register name 'r1' in asm
include/linux/arm-smccc.h:487:4: note: expanded from macro 'arm_smccc_1_1_invoke'
487 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:453:32: note: expanded from macro 'arm_smccc_1_1_hvc'
453 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:411:33: note: expanded from macro '__arm_smccc_1_1'
411 | register unsigned long r1 asm("r1"); \
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:19:
In file included from arch/arm64/include/asm/processor.h:38:
In file included from arch/arm64/include/asm/pointer_auth.h:6:
In file included from include/linux/random.h:104:
>> arch/arm64/include/asm/archrandom.h:20:2: error: unknown register name 'r2' in asm
include/linux/arm-smccc.h:487:4: note: expanded from macro 'arm_smccc_1_1_invoke'
487 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:453:32: note: expanded from macro 'arm_smccc_1_1_hvc'
453 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:412:33: note: expanded from macro '__arm_smccc_1_1'
412 | register unsigned long r2 asm("r2"); \
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:19:
In file included from arch/arm64/include/asm/processor.h:38:
In file included from arch/arm64/include/asm/pointer_auth.h:6:
In file included from include/linux/random.h:104:
>> arch/arm64/include/asm/archrandom.h:20:2: error: unknown register name 'r3' in asm
include/linux/arm-smccc.h:487:4: note: expanded from macro 'arm_smccc_1_1_invoke'
487 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:453:32: note: expanded from macro 'arm_smccc_1_1_hvc'
453 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:413:33: note: expanded from macro '__arm_smccc_1_1'
413 | register unsigned long r3 asm("r3"); \
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:19:
In file included from arch/arm64/include/asm/processor.h:38:
In file included from arch/arm64/include/asm/pointer_auth.h:6:
In file included from include/linux/random.h:104:
>> arch/arm64/include/asm/archrandom.h:20:2: error: unknown register name 'r0' in asm
include/linux/arm-smccc.h:487:4: note: expanded from macro 'arm_smccc_1_1_invoke'
487 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:453:32: note: expanded from macro 'arm_smccc_1_1_hvc'
453 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:414:3: note: expanded from macro '__arm_smccc_1_1'
414 | __declare_args(__count_args(__VA_ARGS__), __VA_ARGS__); \
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/arm-smccc.h:395:37: note: expanded from macro '___declare_args'
395 | #define ___declare_args(count, ...) __declare_arg_ ## count(__VA_ARGS__)
| ^
<scratch space>:13:1: note: expanded from here
13 | __declare_arg_0
| ^
include/linux/arm-smccc.h:349:34: note: expanded from macro '__declare_arg_0'
349 | register unsigned long arg0 asm("r0") = (u32)a0
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:19:
In file included from arch/arm64/include/asm/processor.h:38:
In file included from arch/arm64/include/asm/pointer_auth.h:6:
In file included from include/linux/random.h:104:
>> arch/arm64/include/asm/archrandom.h:20:2: error: unknown register name 'r0' in asm
include/linux/arm-smccc.h:490:4: note: expanded from macro 'arm_smccc_1_1_invoke'
490 | arm_smccc_1_1_smc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:437:32: note: expanded from macro 'arm_smccc_1_1_smc'
437 | #define arm_smccc_1_1_smc(...) __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:410:33: note: expanded from macro '__arm_smccc_1_1'
410 | register unsigned long r0 asm("r0"); \
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:19:
In file included from arch/arm64/include/asm/processor.h:38:
In file included from arch/arm64/include/asm/pointer_auth.h:6:
In file included from include/linux/random.h:104:
>> arch/arm64/include/asm/archrandom.h:20:2: error: unknown register name 'r1' in asm
include/linux/arm-smccc.h:490:4: note: expanded from macro 'arm_smccc_1_1_invoke'
490 | arm_smccc_1_1_smc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:437:32: note: expanded from macro 'arm_smccc_1_1_smc'
437 | #define arm_smccc_1_1_smc(...) __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:411:33: note: expanded from macro '__arm_smccc_1_1'
411 | register unsigned long r1 asm("r1"); \
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:19:
In file included from arch/arm64/include/asm/processor.h:38:
In file included from arch/arm64/include/asm/pointer_auth.h:6:
In file included from include/linux/random.h:104:
>> arch/arm64/include/asm/archrandom.h:20:2: error: unknown register name 'r2' in asm
include/linux/arm-smccc.h:490:4: note: expanded from macro 'arm_smccc_1_1_invoke'
490 | arm_smccc_1_1_smc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:437:32: note: expanded from macro 'arm_smccc_1_1_smc'
437 | #define arm_smccc_1_1_smc(...) __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:412:33: note: expanded from macro '__arm_smccc_1_1'
412 | register unsigned long r2 asm("r2"); \
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:19:
In file included from arch/arm64/include/asm/processor.h:38:
In file included from arch/arm64/include/asm/pointer_auth.h:6:
In file included from include/linux/random.h:104:
>> arch/arm64/include/asm/archrandom.h:20:2: error: unknown register name 'r3' in asm
include/linux/arm-smccc.h:490:4: note: expanded from macro 'arm_smccc_1_1_invoke'
490 | arm_smccc_1_1_smc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:437:32: note: expanded from macro 'arm_smccc_1_1_smc'
437 | #define arm_smccc_1_1_smc(...) __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:413:33: note: expanded from macro '__arm_smccc_1_1'
413 | register unsigned long r3 asm("r3"); \
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:19:
In file included from arch/arm64/include/asm/processor.h:38:
In file included from arch/arm64/include/asm/pointer_auth.h:6:
In file included from include/linux/random.h:104:
>> arch/arm64/include/asm/archrandom.h:20:2: error: unknown register name 'r0' in asm
include/linux/arm-smccc.h:490:4: note: expanded from macro 'arm_smccc_1_1_invoke'
490 | arm_smccc_1_1_smc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:437:32: note: expanded from macro 'arm_smccc_1_1_smc'
437 | #define arm_smccc_1_1_smc(...) __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:414:3: note: expanded from macro '__arm_smccc_1_1'
414 | __declare_args(__count_args(__VA_ARGS__), __VA_ARGS__); \
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/arm-smccc.h:395:37: note: expanded from macro '___declare_args'
395 | #define ___declare_args(count, ...) __declare_arg_ ## count(__VA_ARGS__)
| ^
<scratch space>:15:1: note: expanded from here
15 | __declare_arg_0
| ^
include/linux/arm-smccc.h:349:34: note: expanded from macro '__declare_arg_0'
349 | register unsigned long arg0 asm("r0") = (u32)a0
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:19:
In file included from arch/arm64/include/asm/processor.h:38:
In file included from arch/arm64/include/asm/pointer_auth.h:6:
In file included from include/linux/random.h:104:
>> arch/arm64/include/asm/archrandom.h:20:2: error: unknown register name 'r0' in asm
include/linux/arm-smccc.h:493:4: note: expanded from macro 'arm_smccc_1_1_invoke'
493 | __fail_smccc_1_1(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:462:3: note: expanded from macro '__fail_smccc_1_1'
462 | __declare_args(__count_args(__VA_ARGS__), __VA_ARGS__); \
| ^
include/linux/arm-smccc.h:396:37: note: expanded from macro '__declare_args'
396 | #define __declare_args(count, ...) ___declare_args(count, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:395:37: note: expanded from macro '___declare_args'
395 | #define ___declare_args(count, ...) __declare_arg_ ## count(__VA_ARGS__)
| ^
<scratch space>:17:1: note: expanded from here
17 | __declare_arg_0
| ^
include/linux/arm-smccc.h:349:34: note: expanded from macro '__declare_arg_0'
349 | register unsigned long arg0 asm("r0") = (u32)a0
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:19:
In file included from arch/arm64/include/asm/processor.h:38:
In file included from arch/arm64/include/asm/pointer_auth.h:6:
In file included from include/linux/random.h:104:
arch/arm64/include/asm/archrandom.h:66:3: error: unknown register name 'r0' in asm
66 | arm_smccc_1_1_invoke(ARM_SMCCC_TRNG_RND64, 64, &res);
| ^
include/linux/arm-smccc.h:487:4: note: expanded from macro 'arm_smccc_1_1_invoke'
487 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:453:32: note: expanded from macro 'arm_smccc_1_1_hvc'
453 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:410:33: note: expanded from macro '__arm_smccc_1_1'
410 | register unsigned long r0 asm("r0"); \
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:19:
In file included from arch/arm64/include/asm/processor.h:38:
In file included from arch/arm64/include/asm/pointer_auth.h:6:
In file included from include/linux/random.h:104:
arch/arm64/include/asm/archrandom.h:66:3: error: unknown register name 'r1' in asm
include/linux/arm-smccc.h:487:4: note: expanded from macro 'arm_smccc_1_1_invoke'
487 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:453:32: note: expanded from macro 'arm_smccc_1_1_hvc'
453 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:411:33: note: expanded from macro '__arm_smccc_1_1'
411 | register unsigned long r1 asm("r1"); \
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
In file included from include/linux/sysfs.h:17:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:19:
In file included from arch/arm64/include/asm/processor.h:38:
In file included from arch/arm64/include/asm/pointer_auth.h:6:
In file included from include/linux/random.h:104:
arch/arm64/include/asm/archrandom.h:66:3: error: unknown register name 'r2' in asm
include/linux/arm-smccc.h:487:4: note: expanded from macro 'arm_smccc_1_1_invoke'
487 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:453:32: note: expanded from macro 'arm_smccc_1_1_hvc'
453 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:412:33: note: expanded from macro '__arm_smccc_1_1'
412 | register unsigned long r2 asm("r2"); \
| ^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:21:
vim +/sp +8 arch/arm64/include/asm/stack_pointer.h
a9ea0017ebe888 Mark Rutland 2016-11-03 4
a9ea0017ebe888 Mark Rutland 2016-11-03 5 /*
a9ea0017ebe888 Mark Rutland 2016-11-03 6 * how to get the current stack pointer from C
a9ea0017ebe888 Mark Rutland 2016-11-03 7 */
a9ea0017ebe888 Mark Rutland 2016-11-03 @8 register unsigned long current_stack_pointer asm ("sp");
a9ea0017ebe888 Mark Rutland 2016-11-03 9
:::::: The code at line 8 was first introduced by commit
:::::: a9ea0017ebe8889dfa136cac2aa7ae0ee6915e1f arm64: factor out current_stack_pointer
:::::: TO: Mark Rutland <mark.rutland(a)arm.com>
:::::: CC: Catalin Marinas <catalin.marinas(a)arm.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:OLK-6.6 3547/3547] include/net/sock.h:392:45: error: 'struct sock_common' has no member named 'skc_v6_daddr'; did you mean 'skc_daddr'?
by kernel test robot 20 Dec '25
by kernel test robot 20 Dec '25
20 Dec '25
Hi nebula_matrix_driver,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 04473ee9ed912a16fff0d8846ad565bbf3d63c77
commit: 468b0cd7b1e1c131b3ee7d2ea8b96521d3faad8b [3547/3547] net:nebula-matrix:Add S1000 SNIC driver support
config: x86_64-randconfig-074-20251216 (https://download.01.org/0day-ci/archive/20251220/202512202305.zGRxHl6E-lkp@…)
compiler: gcc-12 (Debian 12.4.0-5) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251220/202512202305.zGRxHl6E-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512202305.zGRxHl6E-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/net/ethernet/nebula-matrix/nbl/nbl_core.h:15,
from drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.h:12,
from drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_ktls.h:10,
from drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_ktls.c:7:
drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_def_service.h:348:62: warning: 'struct ieee_ets' declared inside parameter list will not be visible outside of this definition or declaration
348 | int (*ieee_setets)(struct net_device *netdev, struct ieee_ets *ets);
| ^~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_def_service.h:349:62: warning: 'struct ieee_ets' declared inside parameter list will not be visible outside of this definition or declaration
349 | int (*ieee_getets)(struct net_device *netdev, struct ieee_ets *ets);
| ^~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_def_service.h:350:62: warning: 'struct ieee_pfc' declared inside parameter list will not be visible outside of this definition or declaration
350 | int (*ieee_setpfc)(struct net_device *netdev, struct ieee_pfc *pfc);
| ^~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_def_service.h:351:62: warning: 'struct ieee_pfc' declared inside parameter list will not be visible outside of this definition or declaration
351 | int (*ieee_getpfc)(struct net_device *netdev, struct ieee_pfc *pfc);
| ^~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_def_service.h:352:62: warning: 'struct dcb_app' declared inside parameter list will not be visible outside of this definition or declaration
352 | int (*ieee_setapp)(struct net_device *netdev, struct dcb_app *app);
| ^~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_def_service.h:353:62: warning: 'struct dcb_app' declared inside parameter list will not be visible outside of this definition or declaration
353 | int (*ieee_delapp)(struct net_device *netdev, struct dcb_app *app);
| ^~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.h:285:24: error: array type has incomplete element type 'struct dcb_app'
285 | struct dcb_app app[NBL_DSCP_MAX];
| ^~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.h:287:25: error: field 'ets' has incomplete type
287 | struct ieee_ets ets;
| ^~~
In file included from include/linux/tcp.h:19,
from include/linux/ipv6.h:100,
from drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_include.h:17,
from drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_product_base.h:10,
from drivers/net/ethernet/nebula-matrix/nbl/nbl_core.h:10:
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_ktls.c: In function 'nbl_ktls_add_rx_flow':
>> include/net/sock.h:392:45: error: 'struct sock_common' has no member named 'skc_v6_daddr'; did you mean 'skc_daddr'?
392 | #define sk_v6_daddr __sk_common.skc_v6_daddr
| ^~~~~~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_ktls.c:230:44: note: in expansion of macro 'sk_v6_daddr'
230 | be32_to_cpu_array(sip, sk->sk_v6_daddr.s6_addr32, NBL_KTLS_FLOW_IP_LEN);
| ^~~~~~~~~~~
vim +392 include/net/sock.h
4dc6dc7162c08b Eric Dumazet 2009-07-15 372
68835aba4d9b74 Eric Dumazet 2010-11-30 373 #define sk_dontcopy_begin __sk_common.skc_dontcopy_begin
68835aba4d9b74 Eric Dumazet 2010-11-30 374 #define sk_dontcopy_end __sk_common.skc_dontcopy_end
4dc6dc7162c08b Eric Dumazet 2009-07-15 375 #define sk_hash __sk_common.skc_hash
5080546682bae3 Eric Dumazet 2013-10-02 376 #define sk_portpair __sk_common.skc_portpair
05dbc7b59481ca Eric Dumazet 2013-10-03 377 #define sk_num __sk_common.skc_num
05dbc7b59481ca Eric Dumazet 2013-10-03 378 #define sk_dport __sk_common.skc_dport
5080546682bae3 Eric Dumazet 2013-10-02 379 #define sk_addrpair __sk_common.skc_addrpair
5080546682bae3 Eric Dumazet 2013-10-02 380 #define sk_daddr __sk_common.skc_daddr
5080546682bae3 Eric Dumazet 2013-10-02 381 #define sk_rcv_saddr __sk_common.skc_rcv_saddr
^1da177e4c3f41 Linus Torvalds 2005-04-16 382 #define sk_family __sk_common.skc_family
^1da177e4c3f41 Linus Torvalds 2005-04-16 383 #define sk_state __sk_common.skc_state
^1da177e4c3f41 Linus Torvalds 2005-04-16 384 #define sk_reuse __sk_common.skc_reuse
055dc21a1d1d21 Tom Herbert 2013-01-22 385 #define sk_reuseport __sk_common.skc_reuseport
9fe516ba3fb29b Eric Dumazet 2014-06-27 386 #define sk_ipv6only __sk_common.skc_ipv6only
26abe14379f8e2 Eric W. Biederman 2015-05-08 387 #define sk_net_refcnt __sk_common.skc_net_refcnt
^1da177e4c3f41 Linus Torvalds 2005-04-16 388 #define sk_bound_dev_if __sk_common.skc_bound_dev_if
^1da177e4c3f41 Linus Torvalds 2005-04-16 389 #define sk_bind_node __sk_common.skc_bind_node
8feaf0c0a5488b Arnaldo Carvalho de Melo 2005-08-09 390 #define sk_prot __sk_common.skc_prot
07feaebfcc10cd Eric W. Biederman 2007-09-12 391 #define sk_net __sk_common.skc_net
efe4208f47f907 Eric Dumazet 2013-10-03 @392 #define sk_v6_daddr __sk_common.skc_v6_daddr
efe4208f47f907 Eric Dumazet 2013-10-03 393 #define sk_v6_rcv_saddr __sk_common.skc_v6_rcv_saddr
33cf7c90fe2f97 Eric Dumazet 2015-03-11 394 #define sk_cookie __sk_common.skc_cookie
70da268b569d32 Eric Dumazet 2015-10-08 395 #define sk_incoming_cpu __sk_common.skc_incoming_cpu
8e5eb54d303b7c Eric Dumazet 2015-10-08 396 #define sk_flags __sk_common.skc_flags
ed53d0ab761f5c Eric Dumazet 2015-10-08 397 #define sk_rxhash __sk_common.skc_rxhash
efe4208f47f907 Eric Dumazet 2013-10-03 398
43f51df4172955 Eric Dumazet 2021-11-15 399 /* early demux fields */
8b3f91332291fa Jakub Kicinski 2021-12-23 400 struct dst_entry __rcu *sk_rx_dst;
43f51df4172955 Eric Dumazet 2021-11-15 401 int sk_rx_dst_ifindex;
43f51df4172955 Eric Dumazet 2021-11-15 402 u32 sk_rx_dst_cookie;
43f51df4172955 Eric Dumazet 2021-11-15 403
^1da177e4c3f41 Linus Torvalds 2005-04-16 404 socket_lock_t sk_lock;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 405 atomic_t sk_drops;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 406 int sk_rcvlowat;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 407 struct sk_buff_head sk_error_queue;
b178bb3dfc30d9 Eric Dumazet 2010-11-16 408 struct sk_buff_head sk_receive_queue;
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 409 /*
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 410 * The backlog queue is special, it is always used with
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 411 * the per-socket spinlock held and requires low latency
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 412 * access. Therefore we special case it's implementation.
b178bb3dfc30d9 Eric Dumazet 2010-11-16 413 * Note : rmem_alloc is in this structure to fill a hole
b178bb3dfc30d9 Eric Dumazet 2010-11-16 414 * on 64bit arches, not because its logically part of
b178bb3dfc30d9 Eric Dumazet 2010-11-16 415 * backlog.
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 416 */
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 417 struct {
b178bb3dfc30d9 Eric Dumazet 2010-11-16 418 atomic_t rmem_alloc;
b178bb3dfc30d9 Eric Dumazet 2010-11-16 419 int len;
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 420 struct sk_buff *head;
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 421 struct sk_buff *tail;
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 422 } sk_backlog;
f35f821935d8df Eric Dumazet 2021-11-15 423
:::::: The code at line 392 was first introduced by commit
:::::: efe4208f47f907b86f528788da711e8ab9dea44d ipv6: make lookups simpler and faster
:::::: TO: Eric Dumazet <edumazet(a)google.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:OLK-6.6 3547/3547] drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:127:25: sparse: sparse: cast to restricted __be64
by kernel test robot 20 Dec '25
by kernel test robot 20 Dec '25
20 Dec '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 04473ee9ed912a16fff0d8846ad565bbf3d63c77
commit: b0381d106c64a4e0d4e737badd78e7d15aa917f1 [3547/3547] crypto: ccp: Support SM2 algorithm for hygon ccp.
config: x86_64-randconfig-122-20251217 (https://download.01.org/0day-ci/archive/20251220/202512202220.cTtDMo8F-lkp@…)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251220/202512202220.cTtDMo8F-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512202220.cTtDMo8F-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:127:25: sparse: sparse: cast to restricted __be64
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:128:25: sparse: sparse: cast to restricted __be64
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:146:25: sparse: sparse: cast to restricted __be64
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:147:25: sparse: sparse: cast to restricted __be64
>> drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:150:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] @@ got restricted __be64 [usertype] @@
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:150:22: sparse: expected unsigned long long [usertype]
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:150:22: sparse: got restricted __be64 [usertype]
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:171:25: sparse: sparse: cast to restricted __be64
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:173:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] @@ got restricted __be64 [usertype] @@
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:173:22: sparse: expected unsigned long long [usertype]
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:173:22: sparse: got restricted __be64 [usertype]
>> drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:202:25: sparse: sparse: cast to restricted __be32
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:208:33: sparse: sparse: cast to restricted __be32
>> drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:212:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:212:32: sparse: expected unsigned int [usertype]
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:212:32: sparse: got restricted __be32 [usertype]
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:215:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:215:24: sparse: expected unsigned int [usertype]
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:215:24: sparse: got restricted __be32 [usertype]
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:296:28: sparse: sparse: cast to restricted __be64
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:582:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:582:24: sparse: expected unsigned int [usertype]
drivers/crypto/ccp/ccp-crypto-sm2-hygon.c:582:24: sparse: got restricted __be32 [usertype]
vim +127 drivers/crypto/ccp/ccp-crypto-sm2-hygon.c
115
116 /* Return:
117 * 1: a > b
118 * -1: a < b
119 * 0: a = b
120 */
121 static int ccp_sm2_fp_cmp(const u64 *a, const u64 *b, u32 count)
122 {
123 u64 a_cpu, b_cpu;
124 u32 i;
125
126 for (i = 0; i < count; i++) {
> 127 a_cpu = be64_to_cpu(a[i]);
128 b_cpu = be64_to_cpu(b[i]);
129 if (a_cpu > b_cpu)
130 return 1;
131 else if (a_cpu < b_cpu)
132 return -1;
133 }
134
135 return 0;
136 }
137
138 /* a = a + b */
139 static void ccp_sm2_fp_add(u64 *a, const u64 *b, u32 count)
140 {
141 u64 a_cpu, b_cpu, c_cpu, d_cpu;
142 u32 carry = 0;
143 s32 i;
144
145 for (i = count - 1; i >= 0; i--) {
146 a_cpu = be64_to_cpu(a[i]);
147 b_cpu = be64_to_cpu(b[i]);
148 c_cpu = a_cpu + b_cpu;
149 d_cpu = c_cpu + carry;
> 150 a[i] = cpu_to_be64(d_cpu);
151
152 if (c_cpu < a_cpu)
153 carry = 1;
154 else if (carry && !d_cpu)
155 carry = 1;
156 else
157 carry = 0;
158 }
159 }
160
161 /* a = -a */
162 static void ccp_sm2_fp_neg(u64 *a, u32 count)
163 {
164 u64 a_cpu, c_cpu;
165 s32 i;
166
167 for (i = 0; i <= count - 1; i++)
168 a[i] = ~a[i];
169
170 for (i = count - 1; i >= 0; i--) {
171 a_cpu = be64_to_cpu(a[i]);
172 c_cpu = a_cpu + 1;
173 a[i] = cpu_to_be64(c_cpu);
174
175 if (a_cpu < c_cpu)
176 break;
177 }
178 }
179
180 /* a = a - b */
181 static void ccp_sm2_fp_sub(u64 *a, u64 *b, u32 count)
182 {
183 ccp_sm2_fp_neg(b, count);
184 ccp_sm2_fp_add(a, b, count);
185 }
186
187 /* a and tmp must be 64B, b and c must be 32B
188 * a = b * c
189 */
190 static void ccp_sm2_fp_mmul32(u8 *a, const u32 *b, const u32 *c, u8 *tmp)
191 {
192 u64 b_cpu, c_cpu, m_cpu;
193 u32 rem_cpu;
194 u32 *base, *m_cur;
195 int i, j, iter;
196
197 memset(a, 0, CCP_SM2_MMUL_LEN);
198
199 iter = 7;
200 base = (u32 *)(tmp + CCP_SM2_MMUL_LEN - sizeof(u32));
201 for (i = iter; i >= 0; i--) {
> 202 b_cpu = be32_to_cpu(b[i]);
203 memset(tmp, 0, CCP_SM2_MMUL_LEN);
204
205 rem_cpu = 0;
206 m_cur = base;
207 for (j = iter; j >= 0; j--) {
208 c_cpu = be32_to_cpu(c[j]);
209
210 m_cpu = b_cpu * c_cpu + rem_cpu;
211 rem_cpu = (u32)(m_cpu >> 32);
> 212 *m_cur = cpu_to_be32((u32)(m_cpu));
213 m_cur--;
214 }
215 *m_cur = cpu_to_be32(rem_cpu);
216 ccp_sm2_fp_add((u64 *)a, (u64 *)tmp,
217 CCP_SM2_MMUL_LEN / sizeof(u64));
218
219 base--;
220 }
221 }
222
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:OLK-6.6 3547/3547] drivers/net/ethernet/huawei/hinic/hinic_qp.c:49:26: sparse: sparse: cast to restricted __be32
by kernel test robot 20 Dec '25
by kernel test robot 20 Dec '25
20 Dec '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 04473ee9ed912a16fff0d8846ad565bbf3d63c77
commit: 9c1c9598010fbb9daa1e2a67d23830092fb6246a [3547/3547] net/hinic: Update Huawei Intelligent Network Card Driver: hinic
config: x86_64-randconfig-123-20251217 (https://download.01.org/0day-ci/archive/20251220/202512202204.UJ7VQphR-lkp@…)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251220/202512202204.UJ7VQphR-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512202204.UJ7VQphR-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/huawei/hinic/hinic_qp.c:49:26: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_qp.c:62:28: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_qp.c:70:18: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/huawei/hinic/hinic_qp.c:85:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] status @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_qp.c:85:21: sparse: expected unsigned int [usertype] status
drivers/net/ethernet/huawei/hinic/hinic_qp.c:85:21: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_qp.c:96:20: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_qp.c:107:24: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_qp.c:114:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_qp.c:122:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_qp.c:191:33: sparse: sparse: cast to restricted __be32
--
>> drivers/net/ethernet/huawei/hinic/hinic_nic_dbg.c:102:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected unsigned short @@ got restricted __be16 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_nic_dbg.c:102:24: sparse: expected unsigned short
drivers/net/ethernet/huawei/hinic/hinic_nic_dbg.c:102:24: sparse: got restricted __be16 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_nic_dbg.c:161:22: sparse: sparse: cast removes address space '__iomem' of expression
--
>> drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:158:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] val32 @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:158:28: sparse: expected unsigned int [assigned] [usertype] val32
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:158:28: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:160:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] val32 @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:160:28: sparse: expected unsigned int [assigned] [usertype] val32
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:160:28: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:195:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] val32 @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:195:28: sparse: expected unsigned int [assigned] [usertype] val32
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:195:28: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:197:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] val32 @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:197:28: sparse: expected unsigned int [assigned] [usertype] val32
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:197:28: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:233:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] val32 @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:233:28: sparse: expected unsigned int [assigned] [usertype] val32
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:233:28: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:235:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] val32 @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:235:28: sparse: expected unsigned int [assigned] [usertype] val32
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:235:28: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:271:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] val32 @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:271:28: sparse: expected unsigned int [assigned] [usertype] val32
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:271:28: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:273:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] val32 @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:273:28: sparse: expected unsigned int [assigned] [usertype] val32
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:273:28: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:274:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] csr_write_data_h @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:274:35: sparse: expected unsigned int [assigned] [usertype] csr_write_data_h
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:274:35: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:275:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] csr_write_data_l @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:275:35: sparse: expected unsigned int [assigned] [usertype] csr_write_data_l
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:275:35: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:68:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] index @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:68:20: sparse: expected unsigned int [usertype] index
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:68:20: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:56:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:56:21: sparse: expected unsigned int [usertype] value
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:56:21: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:84:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] index @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:84:24: sparse: expected unsigned int [usertype] index
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:84:24: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:87:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:87:26: sparse: expected unsigned int
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:87:26: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:88:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:88:26: sparse: expected unsigned int
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:88:26: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:56:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:56:21: sparse: expected unsigned int [usertype] value
drivers/net/ethernet/huawei/hinic/hinic_sml_lt.c:56:21: sparse: got restricted __be32 [usertype]
--
>> drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:28:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:28:23: sparse: expected unsigned int [usertype]
drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:28:23: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:41:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:41:25: sparse: expected unsigned int [usertype] value
drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:41:25: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:44:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ctr_id @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:44:21: sparse: expected unsigned int [usertype] ctr_id
drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:44:21: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:58:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:58:25: sparse: expected unsigned int [usertype] value
drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:58:25: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:61:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ctr_id @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:61:21: sparse: expected unsigned int [usertype] ctr_id
drivers/net/ethernet/huawei/hinic/hinic_sml_counter.c:61:21: sparse: got restricted __be32 [usertype]
--
>> drivers/net/ethernet/huawei/hinic/hinic_hwif.c:40:16: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/huawei/hinic/hinic_hwif.c:46:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int val @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:46:16: sparse: expected unsigned int val
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:46:16: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_hwif.c:592:29: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] [usertype] __iomem *cfg_regs_base @@ got void *cfg_reg_base @@
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:592:29: sparse: expected unsigned char [noderef] [usertype] __iomem *cfg_regs_base
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:592:29: sparse: got void *cfg_reg_base
>> drivers/net/ethernet/huawei/hinic/hinic_hwif.c:593:30: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] [usertype] __iomem *intr_regs_base @@ got void *intr_reg_base @@
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:593:30: sparse: expected unsigned char [noderef] [usertype] __iomem *intr_regs_base
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:593:30: sparse: got void *intr_reg_base
>> drivers/net/ethernet/huawei/hinic/hinic_hwif.c:596:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] [usertype] __iomem *db_base @@ got void *db_base @@
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:596:23: sparse: expected unsigned char [noderef] [usertype] __iomem *db_base
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:596:23: sparse: got void *db_base
>> drivers/net/ethernet/huawei/hinic/hinic_hwif.c:664:64: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted gfp_t [usertype] gfp @@ got unsigned int flag @@
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:664:64: sparse: expected restricted gfp_t [usertype] gfp
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:664:64: sparse: got unsigned int flag
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:679:64: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted gfp_t [usertype] gfp @@ got unsigned int flag @@
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:679:64: sparse: expected restricted gfp_t [usertype] gfp
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:679:64: sparse: got unsigned int flag
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:984:17: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_hwif.c:993:17: sparse: sparse: cast to restricted __be32
--
>> drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:205:51: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got unsigned char [usertype] *cmd @@
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:205:51: sparse: expected void const [noderef] __user *from
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:205:51: sparse: got unsigned char [usertype] *cmd
>> drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:219:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got void *ack @@
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:219:44: sparse: expected void [noderef] __user *to
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:219:44: sparse: got void *ack
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:270:51: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got unsigned char [usertype] *cmd @@
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:270:51: sparse: expected void const [noderef] __user *from
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:270:51: sparse: got unsigned char [usertype] *cmd
>> drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:375:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got struct pf_dev_info *dev_info @@
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:375:37: sparse: expected void [noderef] __user *to
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:375:37: sparse: got struct pf_dev_info *dev_info
>> drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:394:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got struct ffm_record_info *ffm_rd @@
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:394:37: sparse: expected void [noderef] __user *to
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:394:37: sparse: got struct ffm_record_info *ffm_rd
>> drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:459:54: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void *buf_in @@
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:459:54: sparse: expected void const [noderef] __user *from
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:459:54: sparse: got void *buf_in
>> drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:480:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got unsigned short [usertype] *out_size @@
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:480:44: sparse: expected void [noderef] __user *to
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:480:44: sparse: got unsigned short [usertype] *out_size
>> drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:487:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got void *buf_out @@
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:487:44: sparse: expected void [noderef] __user *to
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:487:44: sparse: got void *buf_out
>> drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:548:37: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void * @@
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:548:37: sparse: expected void const [noderef] __user *from
drivers/net/ethernet/huawei/hinic/hinic_dbgtool_knl.c:548:37: sparse: got void *
--
>> drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:362:6: sparse: sparse: symbol 'hinic_qp_prepare_cmdq_header' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:395:24: sparse: sparse: cast to restricted __be64
>> drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:381:6: sparse: sparse: symbol 'hinic_sq_prepare_ctxt' was not declared. Should it be static?
drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:457:24: sparse: sparse: cast to restricted __be64
>> drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:443:6: sparse: sparse: symbol 'hinic_rq_prepare_ctxt' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:897:16: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:967:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [addressable] [usertype] db_info @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:967:23: sparse: expected unsigned int [addressable] [usertype] db_info
drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:967:23: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:971:31: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:971:31: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned long long [usertype] * @@
drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:971:31: sparse: expected void volatile [noderef] __iomem *addr
drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:971:31: sparse: got unsigned long long [usertype] *
>> drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:1028:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] @@ got restricted __be16 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:1028:27: sparse: expected unsigned short [usertype]
drivers/net/ethernet/huawei/hinic/hinic_nic_io.c:1028:27: sparse: got restricted __be16 [usertype]
--
>> drivers/net/ethernet/huawei/hinic/hinic_multi_host_mgmt.c:629:6: sparse: sparse: symbol 'comm_ppf_to_pf_handler' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_multi_host_mgmt.c:647:5: sparse: sparse: symbol 'hinic_nic_ppf_mbox_handler' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_multi_host_mgmt.c:656:6: sparse: sparse: symbol 'hinic_nic_ppf_to_pf_handler' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_multi_host_mgmt.c:665:5: sparse: sparse: symbol 'hinic_register_slave_ppf' was not declared. Should it be static?
--
>> drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:161:31: sparse: sparse: cast to restricted __be64
>> drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:244:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] @@ got restricted __be64 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:244:20: sparse: expected unsigned long long [usertype]
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:244:20: sparse: got restricted __be64 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:305:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] desc @@ got restricted __be64 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:305:20: sparse: expected unsigned long long [usertype] desc
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:305:20: sparse: got restricted __be64 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:355:20: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:359:25: sparse: sparse: cast to restricted __be64
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:419:31: sparse: sparse: cast to restricted __be64
>> drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:783:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] hw_cmd_paddr @@ got restricted __be64 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:783:41: sparse: expected unsigned long long [usertype] hw_cmd_paddr
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:783:41: sparse: got restricted __be64 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:789:42: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] hw_cmd_paddr @@ got restricted __be64 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:789:42: sparse: expected unsigned long long [usertype] hw_cmd_paddr
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:789:42: sparse: got restricted __be64 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:816:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] hw_wb_resp_paddr @@ got restricted __be64 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:816:37: sparse: expected unsigned long long [usertype] hw_wb_resp_paddr
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:816:37: sparse: got restricted __be64 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:894:43: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] next_cell_paddr @@ got restricted __be64 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:894:43: sparse: expected unsigned long long [usertype] next_cell_paddr
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:894:43: sparse: got restricted __be64 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:937:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] next_cell_paddr @@ got restricted __be64 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:937:31: sparse: expected unsigned long long [usertype] next_cell_paddr
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:937:31: sparse: got restricted __be64 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:1001:46: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected unsigned int flag @@ got restricted gfp_t @@
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:1001:46: sparse: expected unsigned int flag
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:1001:46: sparse: got restricted gfp_t
drivers/net/ethernet/huawei/hinic/hinic_api_cmd.c:522:17: sparse: sparse: context imbalance in 'api_cmd' - different lock contexts for basic block
--
>> drivers/net/ethernet/huawei/hinic/hinic_wq.c:206:54: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected unsigned int flag @@ got restricted gfp_t @@
drivers/net/ethernet/huawei/hinic/hinic_wq.c:206:54: sparse: expected unsigned int flag
drivers/net/ethernet/huawei/hinic/hinic_wq.c:206:54: sparse: got restricted gfp_t
>> drivers/net/ethernet/huawei/hinic/hinic_wq.c:212:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] @@ got restricted __be64 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_wq.c:212:24: sparse: expected unsigned long long [usertype]
drivers/net/ethernet/huawei/hinic/hinic_wq.c:212:24: sparse: got restricted __be64 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_wq.c:583:16: sparse: sparse: cast to restricted __be64
--
>> drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:369:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [addressable] [usertype] db_info @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:369:20: sparse: expected unsigned int [addressable] [usertype] db_info
drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:369:20: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:372:28: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:372:28: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned char [usertype] * @@
drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:372:28: sparse: expected void volatile [noderef] __iomem *addr
drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:372:28: sparse: got unsigned char [usertype] *
>> drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:513:31: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:519:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] @@ got restricted __be64 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:519:40: sparse: expected unsigned long long [usertype]
drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:519:40: sparse: got restricted __be64 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:533:21: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:1124:27: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:1196:25: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:1262:37: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:1297:31: sparse: sparse: cast to restricted __be64
drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:1367:26: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:1367:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] [usertype] __iomem *db_base @@ got unsigned char [usertype] * @@
drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:1367:23: sparse: expected unsigned char [noderef] [usertype] __iomem *db_base
drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:1367:23: sparse: got unsigned char [usertype] *
>> drivers/net/ethernet/huawei/hinic/hinic_cmdq.c:1384:5: sparse: sparse: symbol 'hinic_set_cmdq_ctxts' was not declared. Should it be static?
--
>> drivers/net/ethernet/huawei/hinic/hinic_rx.c:149:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_high @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_rx.c:149:44: sparse: expected unsigned int [usertype] addr_high
drivers/net/ethernet/huawei/hinic/hinic_rx.c:149:44: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_rx.c:151:43: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_low @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_rx.c:151:43: sparse: expected unsigned int [usertype] addr_low
drivers/net/ethernet/huawei/hinic/hinic_rx.c:151:43: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_rx.c:171:6: sparse: sparse: symbol 'hinic_rx_free_buffers' was not declared. Should it be static?
drivers/net/ethernet/huawei/hinic/hinic_rx.c:533:24: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/huawei/hinic/hinic_rx.c:560:6: sparse: sparse: symbol 'rx_pass_super_cqe' was not declared. Should it be static?
drivers/net/ethernet/huawei/hinic/hinic_rx.c:633:26: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_rx.c:641:28: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_rx.c:642:28: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_rx.c:662:46: sparse: sparse: cast to restricted __be32
--
>> drivers/net/ethernet/huawei/hinic/hinic_tx.c:551:35: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_tx.c:552:35: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_tx.c:553:35: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/huawei/hinic/hinic_tx.c:913:5: sparse: sparse: symbol 'hinic_setup_tx_wqe' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_tx.c:1100:5: sparse: sparse: symbol 'hinic_stop_sq' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_tx.c:112:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] hi_addr @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_tx.c:112:28: sparse: expected unsigned int [usertype] hi_addr
drivers/net/ethernet/huawei/hinic/hinic_tx.c:112:28: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_tx.c:113:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] lo_addr @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_tx.c:113:28: sparse: expected unsigned int [usertype] lo_addr
drivers/net/ethernet/huawei/hinic/hinic_tx.c:113:28: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_tx.c:114:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] len @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_tx.c:114:25: sparse: expected unsigned int [usertype] len
drivers/net/ethernet/huawei/hinic/hinic_tx.c:114:25: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_tx.c:112:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] hi_addr @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_tx.c:112:28: sparse: expected unsigned int [usertype] hi_addr
drivers/net/ethernet/huawei/hinic/hinic_tx.c:112:28: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_tx.c:113:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] lo_addr @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_tx.c:113:28: sparse: expected unsigned int [usertype] lo_addr
drivers/net/ethernet/huawei/hinic/hinic_tx.c:113:28: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_tx.c:114:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] len @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_tx.c:114:25: sparse: expected unsigned int [usertype] len
drivers/net/ethernet/huawei/hinic/hinic_tx.c:114:25: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_tx.c:112:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] hi_addr @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_tx.c:112:28: sparse: expected unsigned int [usertype] hi_addr
drivers/net/ethernet/huawei/hinic/hinic_tx.c:112:28: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_tx.c:113:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] lo_addr @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_tx.c:113:28: sparse: expected unsigned int [usertype] lo_addr
drivers/net/ethernet/huawei/hinic/hinic_tx.c:113:28: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_tx.c:114:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] len @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_tx.c:114:25: sparse: expected unsigned int [usertype] len
drivers/net/ethernet/huawei/hinic/hinic_tx.c:114:25: sparse: got restricted __be32 [usertype]
--
>> drivers/net/ethernet/huawei/hinic/hinic_mbox.c:796:5: sparse: sparse: symbol 'set_vf_mbox_random_id' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_mbox.c:872:21: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/huawei/hinic/hinic_mbox.c:846:6: sparse: sparse: symbol 'check_vf_mbox_random_id' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_mbox.c:951:54: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned char [usertype] * @@
drivers/net/ethernet/huawei/hinic/hinic_mbox.c:951:54: sparse: expected void volatile [noderef] __iomem *addr
drivers/net/ethernet/huawei/hinic/hinic_mbox.c:951:54: sparse: got unsigned char [usertype] *
drivers/net/ethernet/huawei/hinic/hinic_mbox.c:974:58: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned char [usertype] * @@
drivers/net/ethernet/huawei/hinic/hinic_mbox.c:974:58: sparse: expected void volatile [noderef] __iomem *addr
drivers/net/ethernet/huawei/hinic/hinic_mbox.c:974:58: sparse: got unsigned char [usertype] *
>> drivers/net/ethernet/huawei/hinic/hinic_mbox.c:1009:6: sparse: sparse: symbol 'dump_mox_reg' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_mbox.c:1024:22: sparse: sparse: cast to restricted __be64
>> drivers/net/ethernet/huawei/hinic/hinic_mbox.c:1567:25: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [usertype] *data @@ got unsigned char [noderef] [usertype] __iomem * @@
drivers/net/ethernet/huawei/hinic/hinic_mbox.c:1567:25: sparse: expected unsigned char [usertype] *data
drivers/net/ethernet/huawei/hinic/hinic_mbox.c:1567:25: sparse: got unsigned char [noderef] [usertype] __iomem *
--
>> drivers/net/ethernet/huawei/hinic/hinic_eqs.c:524:29: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/huawei/hinic/hinic_eqs.c:544:37: sparse: sparse: cast to restricted __be64
drivers/net/ethernet/huawei/hinic/hinic_eqs.c:603:24: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/huawei/hinic/hinic_eqs.c:902:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_eqs.c:902:25: sparse: expected unsigned int [usertype]
drivers/net/ethernet/huawei/hinic/hinic_eqs.c:902:25: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_eqs.c:920:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] desc @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_eqs.c:920:28: sparse: expected unsigned int [usertype] desc
drivers/net/ethernet/huawei/hinic/hinic_eqs.c:920:28: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_eqs.c:1435:17: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_eqs.c:1453:17: sparse: sparse: cast to restricted __be32
--
>> drivers/net/ethernet/huawei/hinic/hinic_nictool.c:115:43: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void *in_buff @@
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:115:43: sparse: expected void const [noderef] __user *from
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:115:43: sparse: got void *in_buff
>> drivers/net/ethernet/huawei/hinic/hinic_nictool.c:182:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got void *out_buf @@
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:182:32: sparse: expected void [noderef] __user *to
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:182:32: sparse: got void *out_buf
>> drivers/net/ethernet/huawei/hinic/hinic_nictool.c:698:5: sparse: sparse: symbol 'get_pfc_info' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_nictool.c:720:5: sparse: sparse: symbol 'set_pfc_control' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_nictool.c:752:5: sparse: sparse: symbol 'set_ets' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_nictool.c:827:5: sparse: sparse: symbol 'get_support_up' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_nictool.c:855:5: sparse: sparse: symbol 'get_support_tc' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_nictool.c:875:5: sparse: sparse: symbol 'get_ets_info' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_nictool.c:893:5: sparse: sparse: symbol 'set_pfc_priority' was not declared. Should it be static?
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:1386:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got void *out_buf @@
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:1386:32: sparse: expected void [noderef] __user *to
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:1386:32: sparse: got void *out_buf
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:1468:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got void *out_buf @@
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:1468:32: sparse: expected void [noderef] __user *to
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:1468:32: sparse: got void *out_buf
>> drivers/net/ethernet/huawei/hinic/hinic_nictool.c:1714:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void * @@
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:1714:35: sparse: expected void const [noderef] __user *from
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:1714:35: sparse: got void *
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:2068:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got void *out_buf @@
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:2068:32: sparse: expected void [noderef] __user *to
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:2068:32: sparse: got void *out_buf
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:2157:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got void *out_buf @@
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:2157:32: sparse: expected void [noderef] __user *to
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:2157:32: sparse: got void *out_buf
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:2294:38: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void * @@
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:2294:38: sparse: expected void const [noderef] __user *from
drivers/net/ethernet/huawei/hinic/hinic_nictool.c:2294:38: sparse: got void *
--
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:38:6: sparse: sparse: symbol 'g_rdma_mtts_num' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:39:6: sparse: sparse: symbol 'g_rdma_qps_num' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:40:6: sparse: sparse: symbol 'g_rdma_mpts_num' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:41:6: sparse: sparse: symbol 'g_vfs_num' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:55:6: sparse: sparse: symbol 'g_test_qpc_num' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:56:6: sparse: sparse: symbol 'g_test_qpc_resvd_num' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:57:6: sparse: sparse: symbol 'g_test_pagesize_reorder' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:58:6: sparse: sparse: symbol 'g_test_xid_alloc_mode' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:59:6: sparse: sparse: symbol 'g_test_gpa_check_enable' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:60:6: sparse: sparse: symbol 'g_test_qpc_alloc_mode' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:61:6: sparse: sparse: symbol 'g_test_scqc_alloc_mode' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:62:6: sparse: sparse: symbol 'g_test_max_conn' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:63:6: sparse: sparse: symbol 'g_test_max_cache_conn' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:64:6: sparse: sparse: symbol 'g_test_scqc_num' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:65:6: sparse: sparse: symbol 'g_test_mpt_num' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:66:6: sparse: sparse: symbol 'g_test_mpt_resvd' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:67:6: sparse: sparse: symbol 'g_test_scq_resvd' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:68:6: sparse: sparse: symbol 'g_test_hash_num' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:69:6: sparse: sparse: symbol 'g_test_reorder_num' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:1823:5: sparse: sparse: symbol 'cfg_set_func_sf_en' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_cfg.c:1866:5: sparse: sparse: symbol 'cfg_get_func_sf_en' was not declared. Should it be static?
--
>> drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:1858:6: sparse: sparse: symbol 'hinic_lp_test' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:2271:54: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:2271:54: sparse: expected unsigned int [usertype]
drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:2271:54: sparse: got restricted __be32 [usertype]
--
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:133:1: sparse: sparse: symbol 'g_hinic_chip_list' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:447:6: sparse: sparse: symbol 'hinic_init_syncfw_timer' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:462:6: sparse: sparse: symbol 'hinic_destroy_syncfw_timer' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:505:31: sparse: sparse: symbol 'ver_incompat_table' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:550:5: sparse: sparse: symbol 'hinic_version_cmp' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:744:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] manufacture_id @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_lld.c:744:29: sparse: expected unsigned int [usertype] manufacture_id
drivers/net/ethernet/huawei/hinic/hinic_lld.c:744:29: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:745:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] resp_code @@ got restricted __be16 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_lld.c:745:24: sparse: expected unsigned short [usertype] resp_code
drivers/net/ethernet/huawei/hinic/hinic_lld.c:745:24: sparse: got restricted __be16 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:746:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] reason_code @@ got restricted __be16 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_lld.c:746:26: sparse: expected unsigned short [usertype] reason_code
drivers/net/ethernet/huawei/hinic/hinic_lld.c:746:26: sparse: got restricted __be16 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:1139:6: sparse: sparse: symbol 'hinic_get_ppf_hwdev_by_pdev' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:1448:19: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:1785:57: sparse: sparse: Using plain integer as NULL pointer
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:1896:6: sparse: sparse: symbol 'hinic_event_process' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:1950:53: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *cfg_reg_base @@ got void [noderef] __iomem *cfg_reg_base @@
drivers/net/ethernet/huawei/hinic/hinic_lld.c:1950:53: sparse: expected void *cfg_reg_base
drivers/net/ethernet/huawei/hinic/hinic_lld.c:1950:53: sparse: got void [noderef] __iomem *cfg_reg_base
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:2381:32: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *[assigned] cfg_reg_base @@ got void [noderef] __iomem *cfg_reg_base @@
drivers/net/ethernet/huawei/hinic/hinic_lld.c:2381:32: sparse: expected void *[assigned] cfg_reg_base
drivers/net/ethernet/huawei/hinic/hinic_lld.c:2381:32: sparse: got void [noderef] __iomem *cfg_reg_base
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:2382:33: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *[assigned] intr_reg_base @@ got void [noderef] __iomem *intr_reg_base @@
drivers/net/ethernet/huawei/hinic/hinic_lld.c:2382:33: sparse: expected void *[assigned] intr_reg_base
drivers/net/ethernet/huawei/hinic/hinic_lld.c:2382:33: sparse: got void [noderef] __iomem *intr_reg_base
>> drivers/net/ethernet/huawei/hinic/hinic_lld.c:2383:27: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *[assigned] db_base @@ got void [noderef] __iomem *db_base @@
drivers/net/ethernet/huawei/hinic/hinic_lld.c:2383:27: sparse: expected void *[assigned] db_base
drivers/net/ethernet/huawei/hinic/hinic_lld.c:2383:27: sparse: got void [noderef] __iomem *db_base
--
>> drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:98:28: sparse: sparse: symbol 'nic_cmd_support_vf' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:531:5: sparse: sparse: symbol 'hinic_hiovs_set_cpath_vlan' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:557:5: sparse: sparse: symbol 'hinic_hiovs_del_cpath_vlan' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1740:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] group_index @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1740:30: sparse: expected unsigned int [usertype] group_index
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1740:30: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1743:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] size @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1743:23: sparse: expected unsigned int [usertype] size
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1743:23: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1745:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ctx @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1745:22: sparse: expected unsigned int [usertype] ctx
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1745:22: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1942:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] group_index @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1942:32: sparse: expected unsigned int [usertype] group_index
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1942:32: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1949:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1949:31: sparse: expected unsigned int [usertype]
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1949:31: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1956:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] size @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1956:25: sparse: expected unsigned int [usertype] size
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1956:25: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1968:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] offset @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1968:27: sparse: expected unsigned int [usertype] offset
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1968:27: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1969:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] size @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1969:25: sparse: expected unsigned int [usertype] size
drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:1969:25: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:2622:5: sparse: sparse: symbol 'nic_pf_mbox_handler' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c:3623:5: sparse: sparse: symbol 'hw_speed_convert' was not declared. Should it be static?
--
>> drivers/net/ethernet/huawei/hinic/hinic_dcb.c:62:6: sparse: sparse: symbol 'hinic_dcb_config_init' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_dcb.c:95:6: sparse: sparse: symbol 'hinic_init_ieee_settings' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_dcb.c:258:6: sparse: sparse: symbol 'hinic_set_prio_tc_map' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_dcb.c:1201:4: sparse: sparse: symbol 'hinic_dcbnl_set_all' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_dcb.c:1601:5: sparse: sparse: symbol '__set_cos_up_map' was not declared. Should it be static?
--
>> drivers/net/ethernet/huawei/hinic/hinic_main.c:182:5: sparse: sparse: symbol 'hinic_netdev_event' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_main.c:230:1: sparse: sparse: symbol 'g_hinic_netdev_notifiers_mutex' was not declared. Should it be static?
--
>> drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:227:5: sparse: sparse: symbol 'hinic_hw_rx_buf_size' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:583:28: sparse: sparse: symbol 'hw_cmd_support_vf' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:1061:5: sparse: sparse: symbol 'hinic_msg_to_mgmt_no_ack' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:1153:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:1153:22: sparse: expected unsigned int [usertype]
drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:1153:22: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:1175:24: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:1978:5: sparse: sparse: symbol 'comm_pf_mbox_handler' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:2749:5: sparse: sparse: symbol 'hinic_ppf_ht_gpa_init' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:2795:6: sparse: sparse: symbol 'hinic_ppf_ht_gpa_deinit' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:4581:5: sparse: sparse: symbol '_set_led_status' was not declared. Should it be static?
>> drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:4667:5: sparse: sparse: symbol 'hinic_get_phy_init_status' was not declared. Should it be static?
drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:4928:23: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:4934:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [addressable] [assigned] [usertype] val @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:4934:21: sparse: expected unsigned int [addressable] [assigned] [usertype] val
drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:4934:21: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:4987:9: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:4991:13: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:4994:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] udp_port @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:4994:18: sparse: expected unsigned int [usertype] udp_port
drivers/net/ethernet/huawei/hinic/hinic_hwdev.c:4994:18: sparse: got restricted __be32 [usertype]
vim +49 drivers/net/ethernet/huawei/hinic/hinic_qp.c
33
34 void hinic_prepare_sq_ctrl(struct hinic_sq_ctrl *ctrl, u32 queue_info,
35 int nr_descs, u8 owner)
36 {
37 u32 ctrl_size, task_size, bufdesc_size;
38
39 ctrl_size = SIZE_8BYTES(sizeof(struct hinic_sq_ctrl));
40 task_size = SIZE_8BYTES(sizeof(struct hinic_sq_task));
41 bufdesc_size = BUF_DESC_SIZE(nr_descs);
42
43 ctrl->ctrl_fmt = SQ_CTRL_SET(bufdesc_size, BUFDESC_SECT_LEN) |
44 SQ_CTRL_SET(task_size, TASKSECT_LEN) |
45 SQ_CTRL_SET(SQ_NORMAL_WQE, DATA_FORMAT) |
46 SQ_CTRL_SET(ctrl_size, LEN) |
47 SQ_CTRL_SET(owner, OWNER);
48
> 49 ctrl->ctrl_fmt = be32_to_cpu(ctrl->ctrl_fmt);
50
51 ctrl->queue_info = queue_info;
52 ctrl->queue_info |= SQ_CTRL_QUEUE_INFO_SET(1U, UC);
53
54 if (!SQ_CTRL_QUEUE_INFO_GET(ctrl->queue_info, MSS)) {
55 ctrl->queue_info |= SQ_CTRL_QUEUE_INFO_SET(TX_MSS_DEFAULT, MSS);
56 } else if (SQ_CTRL_QUEUE_INFO_GET(ctrl->queue_info, MSS) < TX_MSS_MIN) {
57 /* mss should not less than 80 */
58 ctrl->queue_info = SQ_CTRL_QUEUE_INFO_CLEAR(ctrl->queue_info,
59 MSS);
60 ctrl->queue_info |= SQ_CTRL_QUEUE_INFO_SET(TX_MSS_MIN, MSS);
61 }
62 ctrl->queue_info = be32_to_cpu(ctrl->queue_info);
63 }
64
65 int hinic_get_rx_done(struct hinic_rq_cqe *cqe)
66 {
67 u32 status;
68 int rx_done;
69
70 status = be32_to_cpu(cqe->status);
71
72 rx_done = RQ_CQE_STATUS_GET(status, RXDONE);
73 if (!rx_done)
74 return 0;
75
76 return 1;
77 }
78
79 void hinic_clear_rx_done(struct hinic_rq_cqe *cqe, u32 status_old)
80 {
81 u32 status;
82
83 status = RQ_CQE_STATUS_CLEAR(status_old, RXDONE);
84
> 85 cqe->status = cpu_to_be32(status);
86
87 /* Make sure Rxdone has been set */
88 wmb();
89 }
90
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:OLK-6.6 3547/3547] security/integrity/ima/ima_tpm.c:19:6: warning: no previous prototype for 'ima_pcrread'
by kernel test robot 20 Dec '25
by kernel test robot 20 Dec '25
20 Dec '25
Hi GONG,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 04473ee9ed912a16fff0d8846ad565bbf3d63c77
commit: 40151ef24c1a0f35c5e0442834eb776877e66683 [3547/3547] ima: rot: Prepare TPM as an RoT
config: x86_64-randconfig-006-20251216 (https://download.01.org/0day-ci/archive/20251220/202512202204.7yVczgx9-lkp@…)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251220/202512202204.7yVczgx9-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512202204.7yVczgx9-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> security/integrity/ima/ima_tpm.c:19:6: warning: no previous prototype for 'ima_pcrread' [-Wmissing-prototypes]
19 | void ima_pcrread(u32 idx, struct tpm_digest *d)
| ^~~~~~~~~~~
security/integrity/ima/ima_tpm.c:28:5: warning: no previous prototype for 'ima_pcr_extend' [-Wmissing-prototypes]
28 | int ima_pcr_extend(struct tpm_digest *digests_arg, int pcr)
| ^~~~~~~~~~~~~~
>> security/integrity/ima/ima_tpm.c:41:5: warning: no previous prototype for 'ima_tpm_init' [-Wmissing-prototypes]
41 | int ima_tpm_init(struct ima_rot *rot)
| ^~~~~~~~~~~~
>> security/integrity/ima/ima_tpm.c:53:5: warning: no previous prototype for 'ima_tpm_extend' [-Wmissing-prototypes]
53 | int ima_tpm_extend(struct tpm_digest *digests_arg, const void *args)
| ^~~~~~~~~~~~~~
>> security/integrity/ima/ima_tpm.c:60:5: warning: no previous prototype for 'ima_tpm_calc_boot_aggregate' [-Wmissing-prototypes]
60 | int ima_tpm_calc_boot_aggregate(struct ima_digest_data *hash)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/ima_pcrread +19 security/integrity/ima/ima_tpm.c
18
> 19 void ima_pcrread(u32 idx, struct tpm_digest *d)
20 {
21 if (!ima_tpm_chip)
22 return;
23
24 if (tpm_pcr_read(ima_tpm_chip, idx, d) != 0)
25 pr_err("Error Communicating to TPM chip\n");
26 }
27
28 int ima_pcr_extend(struct tpm_digest *digests_arg, int pcr)
29 {
30 int result = 0;
31
32 if (!ima_tpm_chip)
33 return result;
34
35 result = tpm_pcr_extend(ima_tpm_chip, pcr, digests_arg);
36 if (result != 0)
37 pr_err("Error Communicating to TPM chip, result: %d\n", result);
38 return result;
39 }
40
> 41 int ima_tpm_init(struct ima_rot *rot)
42 {
43 ima_tpm_chip = tpm_default_chip();
44 if (!ima_tpm_chip)
45 return -ENODEV;
46
47 rot->nr_allocated_banks = ima_tpm_chip->nr_allocated_banks;
48 rot->allocated_banks = ima_tpm_chip->allocated_banks;
49
50 return 0;
51 }
52
> 53 int ima_tpm_extend(struct tpm_digest *digests_arg, const void *args)
54 {
55 const int pcr = *(const int *)args;
56
57 return ima_pcr_extend(digests_arg, pcr);
58 }
59
> 60 int ima_tpm_calc_boot_aggregate(struct ima_digest_data *hash)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:OLK-6.6 3557/3557] drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:2528:38: sparse: sparse: incorrect type in argument 2 (different address spaces)
by kernel test robot 20 Dec '25
by kernel test robot 20 Dec '25
20 Dec '25
Hi Bennie,
First bad commit (maybe != root cause):
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 04473ee9ed912a16fff0d8846ad565bbf3d63c77
commit: 69181c3c9413ccaa4dab458057d13efda520cb60 [3557/3557] Net: nebula_matrix: fix ci build warning
config: x86_64-randconfig-123-20251218 (https://download.01.org/0day-ci/archive/20251220/202512202249.7ZNqNGWi-lkp@…)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251220/202512202249.7ZNqNGWi-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512202249.7ZNqNGWi-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:32:5: sparse: sparse: symbol 'nbl_serv_setup_queues' was not declared. Should it be static?
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:68:6: sparse: sparse: symbol 'nbl_serv_flush_rx_queues' was not declared. Should it be static?
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:77:5: sparse: sparse: symbol 'nbl_serv_setup_rings' was not declared. Should it be static?
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:124:6: sparse: sparse: symbol 'nbl_serv_stop_rings' was not declared. Should it be static?
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:2116:6: sparse: sparse: symbol 'nbl_serv_pldmfw_op_pci_match_record' was not declared. Should it be static?
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:2528:38: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void * @@
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:2528:38: sparse: expected void const [noderef] __user *from
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:2528:38: sparse: got void *
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:2540:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got void * @@
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:2540:29: sparse: expected void [noderef] __user *to
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:2540:29: sparse: got void *
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:2851:5: sparse: sparse: symbol 'nbl_serv_get_vf_base_vsi_id' was not declared. Should it be static?
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c: note: in included file (through arch/x86/include/asm/uaccess.h, include/linux/uaccess.h, include/linux/sched/task.h, ...):
arch/x86/include/asm/uaccess_64.h:88:24: sparse: sparse: cast removes address space '__user' of expression
arch/x86/include/asm/uaccess_64.h:88:24: sparse: sparse: cast removes address space '__user' of expression
vim +2528 drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c
bad535d287c9c10 Bennie Yan 2024-09-24 2511
bad535d287c9c10 Bennie Yan 2024-09-24 2512 static int nbl_serv_process_passthrough(struct nbl_service_mgt *serv_mgt,
bad535d287c9c10 Bennie Yan 2024-09-24 2513 unsigned int cmd, unsigned long arg)
bad535d287c9c10 Bennie Yan 2024-09-24 2514 {
bad535d287c9c10 Bennie Yan 2024-09-24 2515 struct nbl_dispatch_ops *disp_ops = NBL_SERV_MGT_TO_DISP_OPS(serv_mgt);
bad535d287c9c10 Bennie Yan 2024-09-24 2516 struct nbl_common_info *common = NBL_SERV_MGT_TO_COMMON(serv_mgt);
bad535d287c9c10 Bennie Yan 2024-09-24 2517 struct nbl_passthrough_fw_cmd_param *param = NULL, *result = NULL;
bad535d287c9c10 Bennie Yan 2024-09-24 2518 int ret = 0;
bad535d287c9c10 Bennie Yan 2024-09-24 2519
bad535d287c9c10 Bennie Yan 2024-09-24 2520 param = kzalloc(sizeof(*param), GFP_KERNEL);
bad535d287c9c10 Bennie Yan 2024-09-24 2521 if (!param)
bad535d287c9c10 Bennie Yan 2024-09-24 2522 goto alloc_param_fail;
bad535d287c9c10 Bennie Yan 2024-09-24 2523
bad535d287c9c10 Bennie Yan 2024-09-24 2524 result = kzalloc(sizeof(*result), GFP_KERNEL);
bad535d287c9c10 Bennie Yan 2024-09-24 2525 if (!result)
bad535d287c9c10 Bennie Yan 2024-09-24 2526 goto alloc_result_fail;
bad535d287c9c10 Bennie Yan 2024-09-24 2527
bad535d287c9c10 Bennie Yan 2024-09-24 @2528 ret = copy_from_user(param, (void *)arg, _IOC_SIZE(cmd));
bad535d287c9c10 Bennie Yan 2024-09-24 2529 if (ret) {
bad535d287c9c10 Bennie Yan 2024-09-24 2530 nbl_err(common, NBL_DEBUG_ST, "Bad access %d.\n", ret);
bad535d287c9c10 Bennie Yan 2024-09-24 2531 return ret;
bad535d287c9c10 Bennie Yan 2024-09-24 2532 }
bad535d287c9c10 Bennie Yan 2024-09-24 2533
bad535d287c9c10 Bennie Yan 2024-09-24 2534 nbl_debug(common, NBL_DEBUG_ST, "Passthough opcode: %d\n", param->opcode);
bad535d287c9c10 Bennie Yan 2024-09-24 2535
bad535d287c9c10 Bennie Yan 2024-09-24 2536 ret = disp_ops->passthrough_fw_cmd(NBL_SERV_MGT_TO_DISP_PRIV(serv_mgt), param, result);
bad535d287c9c10 Bennie Yan 2024-09-24 2537 if (ret)
bad535d287c9c10 Bennie Yan 2024-09-24 2538 goto passthrough_fail;
bad535d287c9c10 Bennie Yan 2024-09-24 2539
bad535d287c9c10 Bennie Yan 2024-09-24 2540 ret = copy_to_user((void *)arg, result, _IOC_SIZE(cmd));
bad535d287c9c10 Bennie Yan 2024-09-24 2541
bad535d287c9c10 Bennie Yan 2024-09-24 2542 passthrough_fail:
bad535d287c9c10 Bennie Yan 2024-09-24 2543 kfree(result);
bad535d287c9c10 Bennie Yan 2024-09-24 2544 alloc_result_fail:
bad535d287c9c10 Bennie Yan 2024-09-24 2545 kfree(param);
bad535d287c9c10 Bennie Yan 2024-09-24 2546 alloc_param_fail:
bad535d287c9c10 Bennie Yan 2024-09-24 2547 return ret;
bad535d287c9c10 Bennie Yan 2024-09-24 2548 }
bad535d287c9c10 Bennie Yan 2024-09-24 2549
:::::: The code at line 2528 was first introduced by commit
:::::: bad535d287c9c1056d99de3666be7da84de4a8fc Net:nbl_core: Add nbl_core-driver for nebula-matrix S1055AS series smart NIC.
:::::: TO: Bennie Yan <bennie.yan(a)nebula-matrix.com>
:::::: CC: Bennie Yan <bennie.yan(a)nebula-matrix.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:OLK-6.6 3547/3547] drivers/cpufreq/cppc_cpufreq.c:852:19: error: invalid use of undefined type 'struct fb_ctr_pair'
by kernel test robot 20 Dec '25
by kernel test robot 20 Dec '25
20 Dec '25
Hi Zeng,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 04473ee9ed912a16fff0d8846ad565bbf3d63c77
commit: 12f136b2134d4ded731c3ef23ac08c85b9c0b1fa [3547/3547] cpufreq: CPPC: Keep the target core awake when reading its cpufreq rate
config: arm64-randconfig-003-20251216 (https://download.01.org/0day-ci/archive/20251220/202512202208.UvUcLQzT-lkp@…)
compiler: aarch64-linux-gcc (GCC) 10.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251220/202512202208.UvUcLQzT-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512202208.UvUcLQzT-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
drivers/cpufreq/cppc_cpufreq.c: In function 'cppc_get_perf_ctrs_pair':
>> drivers/cpufreq/cppc_cpufreq.c:852:19: error: invalid use of undefined type 'struct fb_ctr_pair'
852 | int cpu = fb_ctrs->cpu;
| ^~
drivers/cpufreq/cppc_cpufreq.c:855:40: error: invalid use of undefined type 'struct fb_ctr_pair'
855 | ret = cppc_get_perf_ctrs(cpu, &fb_ctrs->fb_ctrs_t0);
| ^~
drivers/cpufreq/cppc_cpufreq.c:861:41: error: invalid use of undefined type 'struct fb_ctr_pair'
861 | return cppc_get_perf_ctrs(cpu, &fb_ctrs->fb_ctrs_t1);
| ^~
drivers/cpufreq/cppc_cpufreq.c: In function 'cppc_cpufreq_get_rate':
>> drivers/cpufreq/cppc_cpufreq.c:866:9: error: variable 'fb_ctrs' has initializer but incomplete type
866 | struct fb_ctr_pair fb_ctrs = { .cpu = cpu, };
| ^~~~~~~~~~~
>> drivers/cpufreq/cppc_cpufreq.c:866:34: error: 'struct fb_ctr_pair' has no member named 'cpu'
866 | struct fb_ctr_pair fb_ctrs = { .cpu = cpu, };
| ^~~
>> drivers/cpufreq/cppc_cpufreq.c:866:40: warning: excess elements in struct initializer
866 | struct fb_ctr_pair fb_ctrs = { .cpu = cpu, };
| ^~~
drivers/cpufreq/cppc_cpufreq.c:866:40: note: (near initialization for 'fb_ctrs')
drivers/cpufreq/cppc_cpufreq.c:866:21: error: storage size of 'fb_ctrs' isn't known
866 | struct fb_ctr_pair fb_ctrs = { .cpu = cpu, };
| ^~~~~~~
>> drivers/cpufreq/cppc_cpufreq.c:866:21: warning: unused variable 'fb_ctrs' [-Wunused-variable]
vim +852 drivers/cpufreq/cppc_cpufreq.c
848
849 static int cppc_get_perf_ctrs_pair(void *val)
850 {
851 struct fb_ctr_pair *fb_ctrs = val;
> 852 int cpu = fb_ctrs->cpu;
853 int ret;
854
855 ret = cppc_get_perf_ctrs(cpu, &fb_ctrs->fb_ctrs_t0);
856 if (ret)
857 return ret;
858
859 udelay(2); /* 2usec delay between sampling */
860
861 return cppc_get_perf_ctrs(cpu, &fb_ctrs->fb_ctrs_t1);
862 }
863
864 static unsigned int cppc_cpufreq_get_rate(unsigned int cpu)
865 {
> 866 struct fb_ctr_pair fb_ctrs = { .cpu = cpu, };
867 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu);
868 struct cppc_cpudata *cpu_data = policy->driver_data;
869 u64 delivered_perf;
870 int ret;
871
872 cpufreq_cpu_put(policy);
873
874 if (cpu_has_amu_feat(cpu))
875 ret = smp_call_on_cpu(cpu, cppc_get_perf_ctrs_pair,
876 &fb_ctrs, false);
877 else
878 ret = cppc_get_perf_ctrs_pair(&fb_ctrs);
879
880 if (ret)
881 return 0;
882
883 delivered_perf = cppc_perf_from_fbctrs(cpu_data,
884 &fb_ctrs.fb_ctrs_t0,
885 &fb_ctrs.fb_ctrs_t1);
886
887 return cppc_cpufreq_perf_to_khz(cpu_data, delivered_perf);
888 }
889
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0