mailweb.openeuler.org
Manage this list

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

Kernel

Threads by month
  • ----- 2025 -----
  • 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
kernel@openeuler.org

  • 41 participants
  • 19772 discussions
[openeuler:openEuler-1.0-LTS 1753/1753] net/netfilter/nf_nat_proto.c:56:6: warning: no previous prototype for 'nf_nat_csum_recalc'
by kernel test robot 09 Aug '25

09 Aug '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 748957057cef2d3b3e35d749c9a1ade66e2b5e73 commit: 83abe3a3b85762720192809ac8695ff9255cfd23 [1753/1753] netfilter: nat: remove csum_recalc hook config: x86_64-buildonly-randconfig-2002-20250806 (https://download.01.org/0day-ci/archive/20250809/202508091141.LQ39llkM-lkp@…) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250809/202508091141.LQ39llkM-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/202508091141.LQ39llkM-lkp@intel.com/ All warnings (new ones prefixed by >>): >> net/netfilter/nf_nat_proto.c:56:6: warning: no previous prototype for 'nf_nat_csum_recalc' [-Wmissing-prototypes] 56 | void nf_nat_csum_recalc(struct sk_buff *skb, | ^~~~~~~~~~~~~~~~~~ vim +/nf_nat_csum_recalc +56 net/netfilter/nf_nat_proto.c 55 > 56 void nf_nat_csum_recalc(struct sk_buff *skb, -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:openEuler-1.0-LTS 1753/1753] kernel/sched/debug.o: warning: objtool: missing symbol for section .text.unlikely
by kernel test robot 09 Aug '25

09 Aug '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 748957057cef2d3b3e35d749c9a1ade66e2b5e73 commit: acfa0f545c7dd43f959c28e8ab4b139c927ba387 [1753/1753] svm: reduce log of run queue and atomic->atomic64 config: x86_64-buildonly-randconfig-2002-20250806 (https://download.01.org/0day-ci/archive/20250809/202508090931.8saWh06I-lkp@…) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250809/202508090931.8saWh06I-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/202508090931.8saWh06I-lkp@intel.com/ All warnings (new ones prefixed by >>): kernel/sched/debug.c:797:6: warning: no previous prototype for 'sysrq_sched_debug_tidy' [-Wmissing-prototypes] 797 | void sysrq_sched_debug_tidy(void) | ^~~~~~~~~~~~~~~~~~~~~~ >> kernel/sched/debug.o: warning: objtool: missing symbol for section .text.unlikely -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[PATCH OLK-6.6 v2] mm/mem_sampling: preserve kernel subsystem SPE state across perf sampling
by Ze Zuo 09 Aug '25

09 Aug '25
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/ICRXXI CVE: NA -------------------------------- Ensure proper save/restore of SPE state for kernel subsystems (NUMA balancing, DAMON etc.) when perf SPE sampling is enabled/disabled: - Suspend subsystem memory sampling during perf SPE operation - Restore original configurations when perf sampling stops Fixes: 390982f28c57 ("mm/mem_sampling: Add sysctl control for NUMA balancing integration") Signed-off-by: Ze Zuo <zuoze1(a)huawei.com> --- changes since v1: -- add Fixes tag. mm/mem_sampling.c | 124 ++++++++++++++++++++++++++-------------------- 1 file changed, 69 insertions(+), 55 deletions(-) diff --git a/mm/mem_sampling.c b/mm/mem_sampling.c index 74f95e4611fe..8483ebe1a83c 100644 --- a/mm/mem_sampling.c +++ b/mm/mem_sampling.c @@ -41,8 +41,11 @@ DEFINE_PER_CPU(enum arm_spe_user_e, arm_spe_user); EXPORT_PER_CPU_SYMBOL_GPL(arm_spe_user); enum mem_sampling_saved_state_e { - MEM_SAMPLING_STATE_ENABLE, MEM_SAMPLING_STATE_DISABLE, + MEM_SAMPLING_STATE_ENABLE, + MEM_SAMPLING_STATE_NUMA_ENABLE, + MEM_SAMPLING_STATE_DAMON_ENABLE, + MEM_SAMPLING_STATE_NUM_DAMON_ENABLE, MEM_SAMPLING_STATE_EMPTY, }; enum mem_sampling_saved_state_e mem_sampling_saved_state = MEM_SAMPLING_STATE_EMPTY; @@ -416,17 +419,26 @@ static void __set_mem_sampling_state(bool enabled) } } +static enum mem_sampling_saved_state_e get_mem_sampling_saved_state(void) +{ + if (static_branch_likely(&mm_damon_mem_sampling) && + static_branch_likely(&sched_numabalancing_mem_sampling)) + return MEM_SAMPLING_STATE_NUM_DAMON_ENABLE; + if (static_branch_likely(&mm_damon_mem_sampling)) + return MEM_SAMPLING_STATE_DAMON_ENABLE; + if (static_branch_likely(&sched_numabalancing_mem_sampling)) + return MEM_SAMPLING_STATE_NUMA_ENABLE; + if (static_branch_likely(&mem_sampling_access_hints)) + return MEM_SAMPLING_STATE_ENABLE; + + return MEM_SAMPLING_STATE_DISABLE; +} + void set_mem_sampling_state(bool enabled) { if (!mem_sampling_ops.sampling_start || !mm_spe_enabled()) return; - if (mem_sampling_saved_state != MEM_SAMPLING_STATE_EMPTY) { - mem_sampling_saved_state = enabled ? MEM_SAMPLING_STATE_ENABLE : - MEM_SAMPLING_STATE_DISABLE; - return; - } - if (enabled) sysctl_mem_sampling_mode = MEM_SAMPLING_NORMAL; else @@ -434,10 +446,45 @@ void set_mem_sampling_state(bool enabled) __set_mem_sampling_state(enabled); } +static int set_state(int state) +{ + if (mem_sampling_saved_state != MEM_SAMPLING_STATE_EMPTY) { + mem_sampling_saved_state = state; + return -EINVAL; + } + switch (state) { + case 0: + set_mem_sampling_state(false); + break; + case 1: + set_mem_sampling_state(false); + set_mem_sampling_state(true); + break; + case 2: + set_mem_sampling_state(false); + set_mem_sampling_state(true); + set_numabalancing_mem_sampling_state(true); + break; + case 3: + set_mem_sampling_state(false); + set_mem_sampling_state(true); + set_damon_mem_sampling_state(true); + break; + case 4: + set_mem_sampling_state(true); + set_numabalancing_mem_sampling_state(true); + set_damon_mem_sampling_state(true); + break; + default: + return -EINVAL; + } + return 0; +} + void mem_sampling_user_switch_process(enum user_switch_type type) { - bool state, mm_spe_is_perf_user = false; - int cpu; + bool mm_spe_is_perf_user = false; + int cpu, hints; if (type >= USER_SWITCH_TYPE_MAX) { pr_err("user switch type error.\n"); @@ -456,26 +503,27 @@ void mem_sampling_user_switch_process(enum user_switch_type type) if (mem_sampling_saved_state != MEM_SAMPLING_STATE_EMPTY) return; - if (static_branch_unlikely(&mem_sampling_access_hints)) - mem_sampling_saved_state = MEM_SAMPLING_STATE_ENABLE; + hints = get_mem_sampling_saved_state(); + set_state(0); + + if (hints) + mem_sampling_saved_state = hints; else mem_sampling_saved_state = MEM_SAMPLING_STATE_DISABLE; - pr_debug("user switch away from mem_sampling, %s is saved, set to disable.\n", - mem_sampling_saved_state ? "disabled" : "enabled"); + pr_debug("user switch away from mem_sampling, %d is saved, set to disable.\n", + mem_sampling_saved_state); - set_mem_sampling_state(false); } else { /* If the state is not backed up, do not restore it */ if (mem_sampling_saved_state == MEM_SAMPLING_STATE_EMPTY || mm_spe_is_perf_user) return; - state = (mem_sampling_saved_state == MEM_SAMPLING_STATE_ENABLE) ? true : false; - set_mem_sampling_state(state); + hints = mem_sampling_saved_state; mem_sampling_saved_state = MEM_SAMPLING_STATE_EMPTY; + set_state(hints); - pr_debug("user switch back to mem_sampling, set to saved %s.\n", - state ? "enalbe" : "disable"); + pr_debug("user switch back to mem_sampling, set to saved %d.\n", hints); } } EXPORT_SYMBOL_GPL(mem_sampling_user_switch_process); @@ -488,15 +536,7 @@ static int proc_mem_sampling_enable(struct ctl_table *table, int write, int err; int state = 0; - if (static_branch_likely(&mem_sampling_access_hints)) - state = 1; - if (static_branch_likely(&sched_numabalancing_mem_sampling)) - state = 2; - if (static_branch_likely(&mm_damon_mem_sampling)) - state = 3; - if (static_branch_likely(&mm_damon_mem_sampling) && - static_branch_likely(&sched_numabalancing_mem_sampling)) - state = 4; + state = get_mem_sampling_saved_state(); if (write && !capable(CAP_SYS_ADMIN)) return -EPERM; @@ -508,34 +548,8 @@ static int proc_mem_sampling_enable(struct ctl_table *table, int write, err = proc_dointvec_minmax(&t, write, buffer, lenp, ppos); if (err < 0) return err; - if (write) { - switch (state) { - case 0: - set_mem_sampling_state(false); - break; - case 1: - set_mem_sampling_state(false); - set_mem_sampling_state(true); - break; - case 2: - set_mem_sampling_state(false); - set_mem_sampling_state(true); - set_numabalancing_mem_sampling_state(true); - break; - case 3: - set_mem_sampling_state(false); - set_mem_sampling_state(true); - set_damon_mem_sampling_state(true); - break; - case 4: - set_mem_sampling_state(true); - set_numabalancing_mem_sampling_state(true); - set_damon_mem_sampling_state(true); - break; - default: - return -EINVAL; - } - } + if (write) + err = set_state(state); return err; } -- 2.33.0
2 1
0 0
[openeuler:openEuler-1.0-LTS 1753/1753] include/linux/string.h:249:16: warning: '__builtin_strncpy' accessing 80 bytes at offsets 100 and 36 may overlap up to 0 bytes at offset [9223372036854775807, -9223372036854775808]
by kernel test robot 09 Aug '25

09 Aug '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 748957057cef2d3b3e35d749c9a1ade66e2b5e73 commit: a24ec7d8d3462ba48b4bd932960c397d92de8782 [1753/1753] ASoC: dmaengine: Make the pcm->name equal to pcm->id if the name is not set config: x86_64-buildonly-randconfig-2002-20250806 (https://download.01.org/0day-ci/archive/20250809/202508090752.oTu2Do8L-lkp@…) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250809/202508090752.oTu2Do8L-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/202508090752.oTu2Do8L-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/bitmap.h:9, from include/linux/cpumask.h:12, from arch/x86/include/asm/cpumask.h:5, from arch/x86/include/asm/msr.h:11, from arch/x86/include/asm/processor.h:21, from arch/x86/include/asm/cpufeature.h:5, from arch/x86/include/asm/thread_info.h:53, from include/linux/thread_info.h:38, from arch/x86/include/asm/preempt.h:7, from include/linux/preempt.h:81, from include/linux/spinlock.h:51, from include/linux/seqlock.h:36, from include/linux/time.h:6, from include/linux/stat.h:19, from include/linux/module.h:11, from sound/soc/soc-generic-dmaengine-pcm.c:6: In function 'strncpy', inlined from 'dmaengine_pcm_new' at sound/soc/soc-generic-dmaengine-pcm.c:318:4: >> include/linux/string.h:249:16: warning: '__builtin_strncpy' accessing 80 bytes at offsets 100 and 36 may overlap up to 0 bytes at offset [9223372036854775807, -9223372036854775808] [-Wrestrict] 249 | return __builtin_strncpy(p, q, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/__builtin_strncpy +249 include/linux/string.h 6974f0c4555e28 Daniel Micay 2017-07-12 240 6974f0c4555e28 Daniel Micay 2017-07-12 241 #if !defined(__NO_FORTIFY) && defined(__OPTIMIZE__) && defined(CONFIG_FORTIFY_SOURCE) 6974f0c4555e28 Daniel Micay 2017-07-12 242 __FORTIFY_INLINE char *strncpy(char *p, const char *q, __kernel_size_t size) 6974f0c4555e28 Daniel Micay 2017-07-12 243 { 6974f0c4555e28 Daniel Micay 2017-07-12 244 size_t p_size = __builtin_object_size(p, 0); 6974f0c4555e28 Daniel Micay 2017-07-12 245 if (__builtin_constant_p(size) && p_size < size) 6974f0c4555e28 Daniel Micay 2017-07-12 246 __write_overflow(); 6974f0c4555e28 Daniel Micay 2017-07-12 247 if (p_size < size) 6974f0c4555e28 Daniel Micay 2017-07-12 248 fortify_panic(__func__); 6974f0c4555e28 Daniel Micay 2017-07-12 @249 return __builtin_strncpy(p, q, size); 6974f0c4555e28 Daniel Micay 2017-07-12 250 } 6974f0c4555e28 Daniel Micay 2017-07-12 251 :::::: The code at line 249 was first introduced by commit :::::: 6974f0c4555e285ab217cee58b6e874f776ff409 include/linux/string.h: add the option of fortified string.h functions :::::: TO: Daniel Micay <danielmicay(a)gmail.com> :::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[PATCH OLK-5.10 V2 0/7] kernfs performance optimization
by Zizhi Wo 09 Aug '25

09 Aug '25
Changes since V1: Fixed the KABI broken warning. Hou Tao (1): kernfs: also call kernfs_set_rev() for positive dentry Ian Kent (6): kernfs: add a revision to identify directory node changes kernfs: use VFS negative dentry caching kernfs: switch kernfs to use an rwsem kernfs: use i_lock to protect concurrent inode updates kernfs: dont call d_splice_alias() under kernfs node lock kernfs: don't create a negative dentry if inactive node exists fs/kernfs/dir.c | 165 +++++++++++++++++++++--------------- fs/kernfs/file.c | 4 +- fs/kernfs/inode.c | 25 ++++-- fs/kernfs/kernfs-internal.h | 24 +++++- fs/kernfs/mount.c | 12 +-- fs/kernfs/symlink.c | 4 +- include/linux/kernfs.h | 7 +- 7 files changed, 150 insertions(+), 91 deletions(-) -- 2.39.2
2 8
0 0
[openeuler:openEuler-1.0-LTS 1753/1753] drivers/staging/erofs/unzip_vle_lz4.o: warning: objtool: missing symbol for section .text
by kernel test robot 09 Aug '25

09 Aug '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 748957057cef2d3b3e35d749c9a1ade66e2b5e73 commit: 2e59f7a6876bfa6adca4ec9180ab3945e6ede7e1 [1753/1753] staging: erofs: compressed_pages should not be accessed again after freed config: x86_64-buildonly-randconfig-2002-20250806 (https://download.01.org/0day-ci/archive/20250809/202508090402.PMJhGfxB-lkp@…) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250809/202508090402.PMJhGfxB-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/202508090402.PMJhGfxB-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/staging/erofs/unzip_vle_lz4.o: warning: objtool: missing symbol for section .text -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[PATCH OLK-5.10 0/7] kernfs performance optimization
by Zizhi Wo 09 Aug '25

09 Aug '25
Kernfs performance optimization. Hou Tao (1): kernfs: also call kernfs_set_rev() for positive dentry Ian Kent (6): kernfs: add a revision to identify directory node changes kernfs: use VFS negative dentry caching kernfs: switch kernfs to use an rwsem kernfs: use i_lock to protect concurrent inode updates kernfs: dont call d_splice_alias() under kernfs node lock kernfs: don't create a negative dentry if inactive node exists fs/kernfs/dir.c | 165 +++++++++++++++++++++--------------- fs/kernfs/file.c | 4 +- fs/kernfs/inode.c | 25 ++++-- fs/kernfs/kernfs-internal.h | 24 +++++- fs/kernfs/mount.c | 12 +-- fs/kernfs/symlink.c | 4 +- include/linux/kernfs.h | 7 +- 7 files changed, 150 insertions(+), 91 deletions(-) -- 2.39.2
2 8
0 0
[PATCH OLK-5.10 1/7] kernfs: add a revision to identify directory node changes
by Zizhi Wo 09 Aug '25

09 Aug '25
From: Ian Kent <raven(a)themaw.net> mainline inclusion from mainline-v5.15-rc1 commit 895adbec302e92086359e6fd92611ac3be6d92c3 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/ICRD6W Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?… -------------------------------- Add a revision counter to kernfs directory nodes so it can be used to detect if a directory node has changed during negative dentry revalidation. There's an assumption that sizeof(unsigned long) <= sizeof(pointer) on all architectures and as far as I know that assumption holds. So adding a revision counter to the struct kernfs_elem_dir variant of the kernfs_node type union won't increase the size of the kernfs_node struct. This is because struct kernfs_elem_dir is at least sizeof(pointer) smaller than the largest union variant. It's tempting to make the revision counter a u64 but that would increase the size of kernfs_node on archs where sizeof(pointer) is smaller than the revision counter. Reviewed-by: Miklos Szeredi <mszeredi(a)redhat.com> Signed-off-by: Ian Kent <raven(a)themaw.net> Link: https://lore.kernel.org/r/162642769895.63632.8356662784964509867.stgit@web.… Signed-off-by: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org> Signed-off-by: Zizhi Wo <wozizhi(a)huawei.com> --- fs/kernfs/dir.c | 2 ++ fs/kernfs/kernfs-internal.h | 19 +++++++++++++++++++ include/linux/kernfs.h | 5 +++++ 3 files changed, 26 insertions(+) diff --git a/fs/kernfs/dir.c b/fs/kernfs/dir.c index 0ba056e06e48..9bc73c8b6e3f 100644 --- a/fs/kernfs/dir.c +++ b/fs/kernfs/dir.c @@ -380,6 +380,7 @@ static int kernfs_link_sibling(struct kernfs_node *kn) /* successfully added, account subdir number */ if (kernfs_type(kn) == KERNFS_DIR) kn->parent->dir.subdirs++; + kernfs_inc_rev(kn->parent); return 0; } @@ -402,6 +403,7 @@ static bool kernfs_unlink_sibling(struct kernfs_node *kn) if (kernfs_type(kn) == KERNFS_DIR) kn->parent->dir.subdirs--; + kernfs_inc_rev(kn->parent); rb_erase(&kn->rb, &kn->parent->dir.children); RB_CLEAR_NODE(&kn->rb); diff --git a/fs/kernfs/kernfs-internal.h b/fs/kernfs/kernfs-internal.h index 7ee97ef59184..6a8d0ca26d03 100644 --- a/fs/kernfs/kernfs-internal.h +++ b/fs/kernfs/kernfs-internal.h @@ -81,6 +81,25 @@ static inline struct kernfs_node *kernfs_dentry_node(struct dentry *dentry) return d_inode(dentry)->i_private; } +static inline void kernfs_set_rev(struct kernfs_node *parent, + struct dentry *dentry) +{ + dentry->d_time = parent->dir.rev; +} + +static inline void kernfs_inc_rev(struct kernfs_node *parent) +{ + parent->dir.rev++; +} + +static inline bool kernfs_dir_changed(struct kernfs_node *parent, + struct dentry *dentry) +{ + if (parent->dir.rev != dentry->d_time) + return true; + return false; +} + extern const struct super_operations kernfs_sops; extern struct kmem_cache *kernfs_node_cache, *kernfs_iattrs_cache; diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h index e2aa4910365d..236240a17017 100644 --- a/include/linux/kernfs.h +++ b/include/linux/kernfs.h @@ -99,6 +99,11 @@ struct kernfs_elem_dir { * better directly in kernfs_node but is here to save space. */ struct kernfs_root *root; + /* + * Monotonic revision counter, used to identify if a directory + * node has changed during negative dentry revalidation. + */ + unsigned long rev; }; struct kernfs_elem_symlink { -- 2.39.2
2 7
0 0
[openeuler:openEuler-1.0-LTS 1753/1753] net/rxrpc/local_object.c:152:20: warning: this statement may fall through
by kernel test robot 09 Aug '25

09 Aug '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 748957057cef2d3b3e35d749c9a1ade66e2b5e73 commit: 37a675e768d7606fe8a53e0c459c9b53e121ac20 [1753/1753] rxrpc: Fix transport sockopts to get IPv4 errors on an IPv6 socket config: x86_64-buildonly-randconfig-2002-20250806 (https://download.01.org/0day-ci/archive/20250809/202508090248.C7MgyZmS-lkp@…) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250809/202508090248.C7MgyZmS-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/202508090248.C7MgyZmS-lkp@intel.com/ All warnings (new ones prefixed by >>): net/rxrpc/local_object.c: In function 'rxrpc_open_socket': >> net/rxrpc/local_object.c:152:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 152 | if (ret < 0) { | ^ net/rxrpc/local_object.c:161:9: note: here 161 | case AF_INET: | ^~~~ vim +152 net/rxrpc/local_object.c 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 104 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 105 /* 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 106 * create the local socket 4f95dd78a77edc net/rxrpc/local_object.c David Howells 2016-04-04 107 * - must be called with rxrpc_local_mutex locked 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 108 */ 2baec2c3f854d1 net/rxrpc/local_object.c David Howells 2017-05-24 109 static int rxrpc_open_socket(struct rxrpc_local *local, struct net *net) 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 110 { 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 111 struct sock *sock; 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 112 int ret, opt; 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 113 75b54cb57ca34c net/rxrpc/local_object.c David Howells 2016-09-13 114 _enter("%p{%d,%d}", 75b54cb57ca34c net/rxrpc/local_object.c David Howells 2016-09-13 115 local, local->srx.transport_type, local->srx.transport.family); 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 116 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 117 /* create a socket to represent the local endpoint */ 2baec2c3f854d1 net/rxrpc/local_object.c David Howells 2017-05-24 118 ret = sock_create_kern(net, local->srx.transport.family, aaa31cbc667333 net/rxrpc/local_object.c David Howells 2016-09-13 119 local->srx.transport_type, 0, &local->socket); 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 120 if (ret < 0) { 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 121 _leave(" = %d [socket]", ret); 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 122 return ret; 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 123 } 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 124 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 125 /* if a local address was supplied then bind it */ 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 126 if (local->srx.transport_len > sizeof(sa_family_t)) { 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 127 _debug("bind"); 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 128 ret = kernel_bind(local->socket, 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 129 (struct sockaddr *)&local->srx.transport, 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 130 local->srx.transport_len); 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 131 if (ret < 0) { 4f95dd78a77edc net/rxrpc/local_object.c David Howells 2016-04-04 132 _debug("bind failed %d", ret); 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 133 goto error; 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 134 } 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 135 } 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 136 f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 137 switch (local->srx.transport.family) { 37a675e768d760 net/rxrpc/local_object.c David Howells 2018-09-27 138 case AF_INET6: 37a675e768d760 net/rxrpc/local_object.c David Howells 2018-09-27 139 /* we want to receive ICMPv6 errors */ 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 140 opt = 1; 37a675e768d760 net/rxrpc/local_object.c David Howells 2018-09-27 141 ret = kernel_setsockopt(local->socket, SOL_IPV6, IPV6_RECVERR, 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 142 (char *) &opt, sizeof(opt)); 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 143 if (ret < 0) { 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 144 _debug("setsockopt failed"); 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 145 goto error; 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 146 } 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 147 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 148 /* we want to set the don't fragment bit */ 37a675e768d760 net/rxrpc/local_object.c David Howells 2018-09-27 149 opt = IPV6_PMTUDISC_DO; 37a675e768d760 net/rxrpc/local_object.c David Howells 2018-09-27 150 ret = kernel_setsockopt(local->socket, SOL_IPV6, IPV6_MTU_DISCOVER, 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 151 (char *) &opt, sizeof(opt)); 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 @152 if (ret < 0) { 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 153 _debug("setsockopt failed"); 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 154 goto error; 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 155 } f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 156 37a675e768d760 net/rxrpc/local_object.c David Howells 2018-09-27 157 /* Fall through and set IPv4 options too otherwise we don't get 37a675e768d760 net/rxrpc/local_object.c David Howells 2018-09-27 158 * errors from IPv4 packets sent through the IPv6 socket. 37a675e768d760 net/rxrpc/local_object.c David Howells 2018-09-27 159 */ 37a675e768d760 net/rxrpc/local_object.c David Howells 2018-09-27 160 37a675e768d760 net/rxrpc/local_object.c David Howells 2018-09-27 161 case AF_INET: f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 162 /* we want to receive ICMP errors */ f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 163 opt = 1; 37a675e768d760 net/rxrpc/local_object.c David Howells 2018-09-27 164 ret = kernel_setsockopt(local->socket, SOL_IP, IP_RECVERR, f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 165 (char *) &opt, sizeof(opt)); f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 166 if (ret < 0) { f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 167 _debug("setsockopt failed"); f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 168 goto error; f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 169 } f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 170 f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 171 /* we want to set the don't fragment bit */ 37a675e768d760 net/rxrpc/local_object.c David Howells 2018-09-27 172 opt = IP_PMTUDISC_DO; 37a675e768d760 net/rxrpc/local_object.c David Howells 2018-09-27 173 ret = kernel_setsockopt(local->socket, SOL_IP, IP_MTU_DISCOVER, f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 174 (char *) &opt, sizeof(opt)); f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 175 if (ret < 0) { f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 176 _debug("setsockopt failed"); f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 177 goto error; f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 178 } b604dd9883f783 net/rxrpc/local_object.c David Howells 2018-09-27 179 b604dd9883f783 net/rxrpc/local_object.c David Howells 2018-09-27 180 /* We want receive timestamps. */ b604dd9883f783 net/rxrpc/local_object.c David Howells 2018-09-27 181 opt = 1; b604dd9883f783 net/rxrpc/local_object.c David Howells 2018-09-27 182 ret = kernel_setsockopt(local->socket, SOL_SOCKET, SO_TIMESTAMPNS, b604dd9883f783 net/rxrpc/local_object.c David Howells 2018-09-27 183 (char *)&opt, sizeof(opt)); b604dd9883f783 net/rxrpc/local_object.c David Howells 2018-09-27 184 if (ret < 0) { b604dd9883f783 net/rxrpc/local_object.c David Howells 2018-09-27 185 _debug("setsockopt failed"); b604dd9883f783 net/rxrpc/local_object.c David Howells 2018-09-27 186 goto error; b604dd9883f783 net/rxrpc/local_object.c David Howells 2018-09-27 187 } f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 188 break; f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 189 f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 190 default: f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 191 BUG(); f2aeed3a591ff2 net/rxrpc/local_object.c David Howells 2018-05-10 192 } 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 193 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 194 /* set the socket up */ 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 195 sock = local->socket->sk; 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 196 sock->sk_user_data = local; 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 197 sock->sk_data_ready = rxrpc_data_ready; abe89ef0ed1a50 net/rxrpc/local_object.c David Howells 2016-04-04 198 sock->sk_error_report = rxrpc_error_report; 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 199 _leave(" = 0"); 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 200 return 0; 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 201 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 202 error: 91cf45f02af5c8 net/rxrpc/ar-local.c Trond Myklebust 2007-11-12 203 kernel_sock_shutdown(local->socket, SHUT_RDWR); 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 204 local->socket->sk->sk_user_data = NULL; 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 205 sock_release(local->socket); 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 206 local->socket = NULL; 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 207 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 208 _leave(" = %d", ret); 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 209 return ret; 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 210 } 17926a79320afa net/rxrpc/ar-local.c David Howells 2007-04-26 211 :::::: The code at line 152 was first introduced by commit :::::: 17926a79320afa9b95df6b977b40cca6d8713cea [AF_RXRPC]: Provide secure RxRPC sockets for use by userspace and kernel both :::::: TO: David Howells <dhowells(a)redhat.com> :::::: CC: David S. Miller <davem(a)davemloft.net> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 2662/2662] drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le32
by kernel test robot 09 Aug '25

09 Aug '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 9f11838de785067991187f7d0aa9b340abfba381 commit: 97a2bb6ece556f3882263ee8df2b77f10c511311 [2662/2662] SCSI: Linkdata: Supports Linkdata HBA/RAID Controllers config: x86_64-randconfig-121-20250809 (https://download.01.org/0day-ci/archive/20250809/202508090640.BEtBteXt-lkp@…) compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250809/202508090640.BEtBteXt-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/202508090640.BEtBteXt-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le32 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le64 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le16 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le16 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le32 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le32 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le64 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le16 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le16 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le32 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le32 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le64 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le16 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le16 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le32 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le32 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le64 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le16 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le16 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1795:17: sparse: sparse: cast to restricted __le32 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le64 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le16 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le16 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le32 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le64 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le64 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le16 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le16 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le32 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le64 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le64 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le16 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le16 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le32 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le64 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le64 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le16 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le16 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le32 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:1815:17: sparse: sparse: cast to restricted __le64 >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2249:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int length @@ got restricted __le32 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2249:33: sparse: expected unsigned int length drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2249:33: sparse: got restricted __le32 [usertype] >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2250:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long addr @@ got restricted __le64 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2250:31: sparse: expected unsigned long long addr drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2250:31: sparse: got restricted __le64 [usertype] >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2376:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long virtDiskLba @@ got restricted __le64 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2376:27: sparse: expected unsigned long long virtDiskLba drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2376:27: sparse: got restricted __le64 [usertype] >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2377:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int numBlocks @@ got restricted __le32 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2377:25: sparse: expected unsigned int numBlocks drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2377:25: sparse: got restricted __le32 [usertype] >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:3058:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int numLba @@ got restricted __le32 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:3058:28: sparse: expected unsigned int numLba drivers/scsi/linkdata/ps3stor/ps3_scsih.c:3058:28: sparse: got restricted __le32 [usertype] >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:3062:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int sLbaHi @@ got restricted __le32 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:3062:28: sparse: expected unsigned int sLbaHi drivers/scsi/linkdata/ps3stor/ps3_scsih.c:3062:28: sparse: got restricted __le32 [usertype] >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:3064:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int sLbaLo @@ got restricted __le32 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:3064:28: sparse: expected unsigned int sLbaLo drivers/scsi/linkdata/ps3stor/ps3_scsih.c:3064:28: sparse: got restricted __le32 [usertype] >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:3066:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short cID @@ got restricted __le16 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:3066:32: sparse: expected unsigned short cID drivers/scsi/linkdata/ps3stor/ps3_scsih.c:3066:32: sparse: got restricted __le16 [usertype] drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2095:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int length @@ got restricted __le32 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2095:25: sparse: expected unsigned int length drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2095:25: sparse: got restricted __le32 [usertype] drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2096:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long addr @@ got restricted __le64 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2096:23: sparse: expected unsigned long long addr drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2096:23: sparse: got restricted __le64 [usertype] drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2119:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long addr @@ got restricted __le64 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2119:23: sparse: expected unsigned long long addr drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2119:23: sparse: got restricted __le64 [usertype] >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2868:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long dataBaseAddr @@ got restricted __le64 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2868:36: sparse: expected unsigned long long dataBaseAddr drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2868:36: sparse: got restricted __le64 [usertype] >> drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2869:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int dataBufLenDWAlign:24 @@ got restricted __le32 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2869:41: sparse: expected unsigned int dataBufLenDWAlign:24 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2869:41: sparse: got restricted __le32 [usertype] drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2874:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long dataBaseAddr @@ got restricted __le64 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2874:36: sparse: expected unsigned long long dataBaseAddr drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2874:36: sparse: got restricted __le64 [usertype] drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2875:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int dataBufLenDWAlign:24 @@ got restricted __le32 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2875:41: sparse: expected unsigned int dataBufLenDWAlign:24 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2875:41: sparse: got restricted __le32 [usertype] drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2964:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int dataBufLenDWAlign:24 @@ got restricted __le32 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2964:41: sparse: expected unsigned int dataBufLenDWAlign:24 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2964:41: sparse: got restricted __le32 [usertype] drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2966:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long dataBaseAddr @@ got restricted __le64 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2966:36: sparse: expected unsigned long long dataBaseAddr drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2966:36: sparse: got restricted __le64 [usertype] drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2971:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int dataBufLenDWAlign:24 @@ got restricted __le32 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2971:41: sparse: expected unsigned int dataBufLenDWAlign:24 drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2971:41: sparse: got restricted __le32 [usertype] drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2973:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long dataBaseAddr @@ got restricted __le64 [usertype] @@ drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2973:36: sparse: expected unsigned long long dataBaseAddr drivers/scsi/linkdata/ps3stor/ps3_scsih.c:2973:36: sparse: got restricted __le64 [usertype] vim +1795 drivers/scsi/linkdata/ps3stor/ps3_scsih.c 1782 1783 static void ps3_scsih_print_hw_req(struct ps3_cmd *cmd, unsigned char log_level) 1784 { 1785 struct IODT_V1 *req = NULL; 1786 struct ps3_pd_entry *pd_entry = 1787 (struct ps3_pd_entry *)cmd->io_attr.pd_entry; 1788 if (pd_entry == NULL) 1789 return; 1790 ps3_scsih_print_req_head(cmd, log_level); 1791 switch (pd_entry->dev_type) { 1792 case PS3_DEV_TYPE_SAS_HDD: 1793 case PS3_DEV_TYPE_SAS_SSD: 1794 req = &cmd->req_frame->hwReq.sasReqFrame; > 1795 LOG_LEVEL(log_level, 1796 "hno:%u cmdProto:%d cmdType:%d\n" 1797 "\tcmdLen:%d dataAddr:0x%llx sgeMode:%d\n" 1798 "\tdirect:%d function:%d phyDiskID:%d\n" 1799 "\treqFrameID:%d CmdWordType:%d cmdDir:%d\n" 1800 "\tdataBufLenDWAlign:0x%x iuSrc:%d sataCtl:%d\n", 1801 PS3_HOST(cmd->instance), req->protocolType, 1802 req->frameType, le32_to_cpu(req->cmdLen), 1803 le64_to_cpu(req->dataBaseAddr), req->dmaCfg.sgMode, 1804 req->commonWord.direct, req->commonWord.function, 1805 le16_to_cpu(req->commonWord.phyDiskID), 1806 le16_to_cpu(req->commonWord.reqFrameID), 1807 req->commonWord.type, req->cmdDir, 1808 le32_to_cpu(req->dataBufLenDWAlign), req->iuSrc, 1809 req->sasCtl); 1810 ps3_scsih_print_cdb(req->B.cdb); 1811 break; 1812 case PS3_DEV_TYPE_SATA_HDD: 1813 case PS3_DEV_TYPE_SATA_SSD: 1814 req = &cmd->req_frame->hwReq.sasReqFrame; 1815 LOG_LEVEL(log_level, 1816 "hno:%u cmdProto:%d cmdType:%d\n" 1817 "\tdataAddr:0x%llx sgeMode:%d\n" 1818 "\tdirect:%d function:%d phyDiskID:%d\n" 1819 "\treqFrameID:%d CmdWordType:%d cmdDir:%d\n" 1820 "\tdataBufLenDWAlign:0x%x lba:0x%llx\n" 1821 "\topCode:0x%llx iuSrc:%d sataCtl:%d\n", 1822 PS3_HOST(cmd->instance), req->protocolType, 1823 req->frameType, le64_to_cpu(req->dataBaseAddr), 1824 req->dmaCfg.sgMode, req->commonWord.direct, 1825 req->commonWord.function, 1826 le16_to_cpu(req->commonWord.phyDiskID), 1827 le16_to_cpu(req->commonWord.reqFrameID), 1828 req->commonWord.type, req->cmdDir, 1829 le32_to_cpu(req->dataBufLenDWAlign), 1830 le64_to_cpu(req->C.lba), 1831 (unsigned long long)req->C.opCode, req->iuSrc, 1832 req->sataCtl); 1833 break; 1834 case PS3_DEV_TYPE_NVME_SSD: 1835 break; 1836 default: 1837 LOG_LEVEL(log_level, "hno:%u dev_type:%d\n", 1838 PS3_HOST(cmd->instance), pd_entry->dev_type); 1839 break; 1840 } 1841 } 1842 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • ...
  • 1978
  • Older →

HyperKitty Powered by HyperKitty