All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/base/memory.c:1057:32: warning: Parameter 'excluded' can be declared with const [constParameter]
@ 2022-04-02 21:17 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-04-02 21:17 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2039 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: David Hildenbrand <david@redhat.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   6f34f8c3d6178527d4c02aa3a53c370cc70cb91e
commit: 3fcebf90209a7f52d384ad7701425aa91be309ab mm/memory_hotplug: improved dynamic memory group aware "auto-movable" online policy
date:   7 months ago
:::::: branch date: 3 hours ago
:::::: commit date: 7 months ago
compiler: s390-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> drivers/base/memory.c:1057:32: warning: Parameter 'excluded' can be declared with const [constParameter]
             struct memory_group *excluded, void *arg)
                                  ^
--
>> drivers/bus/mhi/core/pm.c:748:4: warning: Uninitialized variable: itr->state [uninitvar]
      TO_DEV_STATE_TRANS_STR(itr->state));
      ^

vim +/excluded +1057 drivers/base/memory.c

3fcebf90209a7f David Hildenbrand 2021-09-07  1050  
3fcebf90209a7f David Hildenbrand 2021-09-07  1051  /*
3fcebf90209a7f David Hildenbrand 2021-09-07  1052   * This is an internal helper only to be used in core memory hotplug code to
3fcebf90209a7f David Hildenbrand 2021-09-07  1053   * walk all dynamic memory groups excluding a given memory group, either
3fcebf90209a7f David Hildenbrand 2021-09-07  1054   * belonging to a specific node, or belonging to any node.
3fcebf90209a7f David Hildenbrand 2021-09-07  1055   */
3fcebf90209a7f David Hildenbrand 2021-09-07  1056  int walk_dynamic_memory_groups(int nid, walk_memory_groups_func_t func,
3fcebf90209a7f David Hildenbrand 2021-09-07 @1057  			       struct memory_group *excluded, void *arg)

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/base/memory.c:1057:32: warning: Parameter 'excluded' can be declared with const [constParameter]
@ 2022-05-14  4:30 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-05-14  4:30 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2104 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: David Hildenbrand <david@redhat.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ec7f49619d8ee13e108740c82f942cd401b989e9
commit: 3fcebf90209a7f52d384ad7701425aa91be309ab mm/memory_hotplug: improved dynamic memory group aware "auto-movable" online policy
date:   8 months ago
:::::: branch date: 5 hours ago
:::::: commit date: 8 months ago
compiler: s390-linux-gcc (GCC) 11.3.0
reproduce (cppcheck warning):
        # apt-get install cppcheck
        git checkout 3fcebf90209a7f52d384ad7701425aa91be309ab
        cppcheck --quiet --enable=style,performance,portability --template=gcc FILE

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> drivers/base/memory.c:1057:32: warning: Parameter 'excluded' can be declared with const [constParameter]
             struct memory_group *excluded, void *arg)
                                  ^

vim +/excluded +1057 drivers/base/memory.c

3fcebf90209a7f David Hildenbrand 2021-09-07  1050  
3fcebf90209a7f David Hildenbrand 2021-09-07  1051  /*
3fcebf90209a7f David Hildenbrand 2021-09-07  1052   * This is an internal helper only to be used in core memory hotplug code to
3fcebf90209a7f David Hildenbrand 2021-09-07  1053   * walk all dynamic memory groups excluding a given memory group, either
3fcebf90209a7f David Hildenbrand 2021-09-07  1054   * belonging to a specific node, or belonging to any node.
3fcebf90209a7f David Hildenbrand 2021-09-07  1055   */
3fcebf90209a7f David Hildenbrand 2021-09-07  1056  int walk_dynamic_memory_groups(int nid, walk_memory_groups_func_t func,
3fcebf90209a7f David Hildenbrand 2021-09-07 @1057  			       struct memory_group *excluded, void *arg)

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-14  4:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-02 21:17 drivers/base/memory.c:1057:32: warning: Parameter 'excluded' can be declared with const [constParameter] kernel test robot
2022-05-14  4:30 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.