lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202504300020.lYdm2Yud-lkp@intel.com>
Date: Wed, 30 Apr 2025 00:37:33 +0800
From: kernel test robot <lkp@...el.com>
To: Donet Tom <donettom@...ux.ibm.com>, Mike Rapoport <rppt@...nel.org>,
	David Hildenbrand <david@...hat.com>,
	Oscar Salvador <osalvador@...e.de>,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	Andrew Morton <akpm@...ux-foundation.org>, rafael@...nel.org,
	Danilo Krummrich <dakr@...nel.org>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	Linux Memory Management List <linux-mm@...ck.org>,
	Ritesh Harjani <ritesh.list@...il.com>,
	Jonathan Cameron <Jonathan.Cameron@...wei.com>,
	Alison Schofield <alison.schofield@...el.com>,
	Yury Norov <yury.norov@...il.com>,
	Dave Jiang <dave.jiang@...el.com>, linux-kernel@...r.kernel.org,
	Donet Tom <donettom@...ux.ibm.com>
Subject: Re: [PATCH v2 1/2] driver/base: Optimize memory block registration
 to reduce boot time

Hi Donet,

kernel test robot noticed the following build errors:

[auto build test ERROR on akpm-mm/mm-everything]
[also build test ERROR on linus/master v6.15-rc4 next-20250429]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Donet-Tom/driver-base-Remove-unused-functions/20250429-010442
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/fbe1e0c7d91bf3fa9a64ff5d84b53ded1d0d5ac7.1745852397.git.donettom%40linux.ibm.com
patch subject: [PATCH v2 1/2] driver/base: Optimize memory block registration to reduce boot time
config: s390-randconfig-001-20250429 (https://download.01.org/0day-ci/archive/20250430/202504300020.lYdm2Yud-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250430/202504300020.lYdm2Yud-lkp@intel.com/reproduce)

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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504300020.lYdm2Yud-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from fs/attr.c:18:
   In file included from include/linux/security.h:35:
   In file included from include/linux/bpf.h:30:
   In file included from include/linux/static_call.h:135:
   In file included from include/linux/cpu.h:17:
>> include/linux/node.h:124:6: warning: no previous prototype for function 'register_memory_blocks_under_node_early' [-Wmissing-prototypes]
     124 | void register_memory_blocks_under_node_early(int nid)
         |      ^
   include/linux/node.h:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     124 | void register_memory_blocks_under_node_early(int nid)
         | ^
         | static 
   1 warning generated.
--
   In file included from mm/slub.c:14:
   In file included from include/linux/swap.h:11:
>> include/linux/node.h:124:6: warning: no previous prototype for function 'register_memory_blocks_under_node_early' [-Wmissing-prototypes]
     124 | void register_memory_blocks_under_node_early(int nid)
         |      ^
   include/linux/node.h:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     124 | void register_memory_blocks_under_node_early(int nid)
         | ^
         | static 
   mm/slub.c:414:6: warning: unused function 'stat_add' [-Wunused-function]
     414 | void stat_add(const struct kmem_cache *s, enum stat_item si, int v)
         |      ^~~~~~~~
   mm/slub.c:527:21: warning: unused function 'get_freepointer_safe' [-Wunused-function]
     527 | static inline void *get_freepointer_safe(struct kmem_cache *s, void *object)
         |                     ^~~~~~~~~~~~~~~~~~~~
   mm/slub.c:627:1: warning: unused function 'slub_set_cpu_partial' [-Wunused-function]
     627 | slub_set_cpu_partial(struct kmem_cache *s, unsigned int nr_objects)
         | ^~~~~~~~~~~~~~~~~~~~
   mm/slub.c:691:20: warning: unused function '__slab_update_freelist' [-Wunused-function]
     691 | static inline bool __slab_update_freelist(struct kmem_cache *s, struct slab *slab,
         |                    ^~~~~~~~~~~~~~~~~~~~~~
   mm/slub.c:1889:20: warning: unused function 'set_track' [-Wunused-function]
    1889 | static inline void set_track(struct kmem_cache *s, void *object,
         |                    ^~~~~~~~~
   mm/slub.c:3429:19: warning: unused function 'node_match' [-Wunused-function]
    3429 | static inline int node_match(struct slab *slab, int node)
         |                   ^~~~~~~~~~
   7 warnings generated.
--
   In file included from mm/mremap.c:12:
   In file included from include/linux/mm_inline.h:8:
   In file included from include/linux/swap.h:11:
>> include/linux/node.h:124:6: warning: no previous prototype for function 'register_memory_blocks_under_node_early' [-Wmissing-prototypes]
     124 | void register_memory_blocks_under_node_early(int nid)
         |      ^
   include/linux/node.h:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     124 | void register_memory_blocks_under_node_early(int nid)
         | ^
         | static 
   mm/mremap.c:288:20: warning: unused function 'arch_supports_page_table_move' [-Wunused-function]
     288 | static inline bool arch_supports_page_table_move(void)
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   mm/mremap.c:287:39: note: expanded from macro 'arch_supports_page_table_move'
     287 | #define arch_supports_page_table_move arch_supports_page_table_move
         |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 warnings generated.
--
   In file included from kernel/jump_label.c:9:
   In file included from include/linux/memory.h:19:
>> include/linux/node.h:124:6: warning: no previous prototype for function 'register_memory_blocks_under_node_early' [-Wmissing-prototypes]
     124 | void register_memory_blocks_under_node_early(int nid)
         |      ^
   include/linux/node.h:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     124 | void register_memory_blocks_under_node_early(int nid)
         | ^
         | static 
   kernel/jump_label.c:415:20: warning: unused function 'static_key_type' [-Wunused-function]
     415 | static inline bool static_key_type(struct static_key *key)
         |                    ^~~~~~~~~~~~~~~
   kernel/jump_label.c:420:20: warning: unused function 'static_key_linked' [-Wunused-function]
     420 | static inline bool static_key_linked(struct static_key *key)
         |                    ^~~~~~~~~~~~~~~~~
   kernel/jump_label.c:425:20: warning: unused function 'static_key_clear_linked' [-Wunused-function]
     425 | static inline void static_key_clear_linked(struct static_key *key)
         |                    ^~~~~~~~~~~~~~~~~~~~~~~
   kernel/jump_label.c:430:20: warning: unused function 'static_key_set_linked' [-Wunused-function]
     430 | static inline void static_key_set_linked(struct static_key *key)
         |                    ^~~~~~~~~~~~~~~~~~~~~
   5 warnings generated.
--
   In file included from io_uring/uring_cmd.c:7:
   In file included from include/linux/security.h:35:
   In file included from include/linux/bpf.h:30:
   In file included from include/linux/static_call.h:135:
   In file included from include/linux/cpu.h:17:
>> include/linux/node.h:124:6: warning: no previous prototype for function 'register_memory_blocks_under_node_early' [-Wmissing-prototypes]
     124 | void register_memory_blocks_under_node_early(int nid)
         |      ^
   include/linux/node.h:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     124 | void register_memory_blocks_under_node_early(int nid)
         | ^
         | static 
   io_uring/uring_cmd.c:306:19: warning: unused function 'io_uring_cmd_getsockopt' [-Wunused-function]
     306 | static inline int io_uring_cmd_getsockopt(struct socket *sock,
         |                   ^~~~~~~~~~~~~~~~~~~~~~~
   io_uring/uring_cmd.c:333:19: warning: unused function 'io_uring_cmd_setsockopt' [-Wunused-function]
     333 | static inline int io_uring_cmd_setsockopt(struct socket *sock,
         |                   ^~~~~~~~~~~~~~~~~~~~~~~
   3 warnings generated.
--
   In file included from kernel/trace/ftrace.c:17:
   In file included from include/linux/stop_machine.h:5:
   In file included from include/linux/cpu.h:17:
>> include/linux/node.h:124:6: warning: no previous prototype for function 'register_memory_blocks_under_node_early' [-Wmissing-prototypes]
     124 | void register_memory_blocks_under_node_early(int nid)
         |      ^
   include/linux/node.h:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     124 | void register_memory_blocks_under_node_early(int nid)
         | ^
         | static 
   kernel/trace/ftrace.c:4354:19: warning: unused function 'test_for_valid_rec' [-Wunused-function]
    4354 | static inline int test_for_valid_rec(struct dyn_ftrace *rec)
         |                   ^~~~~~~~~~~~~~~~~~
   2 warnings generated.
--
   In file included from kernel/sched/fair.c:57:
   In file included from kernel/sched/sched.h:31:
   In file included from include/linux/cpufreq.h:12:
   In file included from include/linux/cpu.h:17:
>> include/linux/node.h:124:6: warning: no previous prototype for function 'register_memory_blocks_under_node_early' [-Wmissing-prototypes]
     124 | void register_memory_blocks_under_node_early(int nid)
         |      ^
   include/linux/node.h:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     124 | void register_memory_blocks_under_node_early(int nid)
         | ^
         | static 
   kernel/sched/fair.c:484:20: warning: unused function 'list_del_leaf_cfs_rq' [-Wunused-function]
     484 | static inline void list_del_leaf_cfs_rq(struct cfs_rq *cfs_rq)
         |                    ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:505:19: warning: unused function 'tg_is_idle' [-Wunused-function]
     505 | static inline int tg_is_idle(struct task_group *tg)
         |                   ^~~~~~~~~~
   kernel/sched/fair.c:6747:20: warning: unused function 'sync_throttle' [-Wunused-function]
    6747 | static inline void sync_throttle(struct task_group *tg, int cpu) {}
         |                    ^~~~~~~~~~~~~
   kernel/sched/fair.c:6771:37: warning: unused function 'tg_cfs_bandwidth' [-Wunused-function]
    6771 | static inline struct cfs_bandwidth *tg_cfs_bandwidth(struct task_group *tg)
         |                                     ^~~~~~~~~~~~~~~~
   kernel/sched/fair.c:6775:20: warning: unused function 'destroy_cfs_bandwidth' [-Wunused-function]
    6775 | static inline void destroy_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {}
         |                    ^~~~~~~~~~~~~~~~~~~~~
   6 warnings generated.
--
   In file included from kernel/sched/core.c:14:
   In file included from include/linux/syscalls_api.h:1:
   In file included from include/linux/syscalls.h:94:
   In file included from include/trace/syscall.h:5:
   In file included from include/linux/tracepoint.h:22:
   In file included from include/linux/static_call.h:135:
   In file included from include/linux/cpu.h:17:
>> include/linux/node.h:124:6: warning: no previous prototype for function 'register_memory_blocks_under_node_early' [-Wmissing-prototypes]
     124 | void register_memory_blocks_under_node_early(int nid)
         |      ^
   include/linux/node.h:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     124 | void register_memory_blocks_under_node_early(int nid)
         | ^
         | static 
   kernel/sched/core.c:6444:1: warning: unused function 'class_core_lock_lock_ptr' [-Wunused-function]
    6444 | DEFINE_LOCK_GUARD_1(core_lock, int,
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    6445 |                     sched_core_lock(*_T->lock, &_T->flags),
         |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    6446 |                     sched_core_unlock(*_T->lock, &_T->flags),
         |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    6447 |                     unsigned long flags)
         |                     ~~~~~~~~~~~~~~~~~~~~
   include/linux/cleanup.h:408:49: note: expanded from macro 'DEFINE_LOCK_GUARD_1'
     408 | __DEFINE_CLASS_IS_CONDITIONAL(_name, false);                            \
         |                                                                         ^
     409 | __DEFINE_UNLOCK_GUARD(_name, _type, _unlock, __VA_ARGS__)               \
         | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cleanup.h:387:10: note: expanded from macro '\
   __DEFINE_UNLOCK_GUARD'
     387 |                                                                         \
         |                                                                         ^
     388 | __DEFINE_GUARD_LOCK_PTR(_name, &_T->lock)
         | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cleanup.h:295:23: note: expanded from macro '\
   __DEFINE_GUARD_LOCK_PTR'
     295 |         static inline void * class_##_name##_lock_ptr(class_##_name##_t *_T) \
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:36:1: note: expanded from here
      36 | class_core_lock_lock_ptr
         | ^~~~~~~~~~~~~~~~~~~~~~~~
   2 warnings generated.
--
   In file included from kernel/trace/rv/monitors/snep/snep.c:3:
   In file included from include/linux/tracepoint.h:22:
   In file included from include/linux/static_call.h:135:
   In file included from include/linux/cpu.h:17:
>> include/linux/node.h:124:6: warning: no previous prototype for function 'register_memory_blocks_under_node_early' [-Wmissing-prototypes]
     124 | void register_memory_blocks_under_node_early(int nid)
         |      ^
   include/linux/node.h:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     124 | void register_memory_blocks_under_node_early(int nid)
         | ^
         | static 
   kernel/trace/rv/monitors/snep/snep.c:21:1: warning: unused function 'da_handle_start_run_event_snep' [-Wunused-function]
      21 | DECLARE_DA_MON_PER_CPU(snep, unsigned char);
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/rv/da_monitor.h:536:48: note: expanded from macro 'DECLARE_DA_MON_PER_CPU'
     536 | DECLARE_DA_MON_INIT_PER_CPU(name, type)                                                         \
         |                                                                                                 ^
     537 | DECLARE_DA_MON_MONITOR_HANDLER_IMPLICIT(name, type)
         | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/rv/da_monitor.h:438:20: note: expanded from macro '\
   DECLARE_DA_MON_MONITOR_HANDLER_IMPLICIT'
     438 | static inline bool da_handle_start_run_event_##name(enum events_##name event)                   \
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:2:1: note: expanded from here
       2 | da_handle_start_run_event_snep
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 warnings generated.
--
   In file included from kernel/trace/rv/monitors/scpd/scpd.c:3:
   In file included from include/linux/tracepoint.h:22:
   In file included from include/linux/static_call.h:135:
   In file included from include/linux/cpu.h:17:
>> include/linux/node.h:124:6: warning: no previous prototype for function 'register_memory_blocks_under_node_early' [-Wmissing-prototypes]
     124 | void register_memory_blocks_under_node_early(int nid)
         |      ^
   include/linux/node.h:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     124 | void register_memory_blocks_under_node_early(int nid)
         | ^
         | static 
   kernel/trace/rv/monitors/scpd/scpd.c:21:1: warning: unused function 'da_handle_start_run_event_scpd' [-Wunused-function]
      21 | DECLARE_DA_MON_PER_CPU(scpd, unsigned char);
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/rv/da_monitor.h:536:48: note: expanded from macro 'DECLARE_DA_MON_PER_CPU'
     536 | DECLARE_DA_MON_INIT_PER_CPU(name, type)                                                         \
         |                                                                                                 ^
     537 | DECLARE_DA_MON_MONITOR_HANDLER_IMPLICIT(name, type)
         | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/rv/da_monitor.h:438:20: note: expanded from macro '\
   DECLARE_DA_MON_MONITOR_HANDLER_IMPLICIT'
     438 | static inline bool da_handle_start_run_event_##name(enum events_##name event)                   \
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:2:1: note: expanded from here
       2 | da_handle_start_run_event_scpd
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 warnings generated.
--
   In file included from kernel/trace/rv/monitors/wip/wip.c:3:
   In file included from include/linux/tracepoint.h:22:
   In file included from include/linux/static_call.h:135:
   In file included from include/linux/cpu.h:17:
>> include/linux/node.h:124:6: warning: no previous prototype for function 'register_memory_blocks_under_node_early' [-Wmissing-prototypes]
     124 | void register_memory_blocks_under_node_early(int nid)
         |      ^
   include/linux/node.h:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     124 | void register_memory_blocks_under_node_early(int nid)
         | ^
         | static 
   kernel/trace/rv/monitors/wip/wip.c:20:1: warning: unused function 'da_handle_start_run_event_wip' [-Wunused-function]
      20 | DECLARE_DA_MON_PER_CPU(wip, unsigned char);
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/rv/da_monitor.h:536:48: note: expanded from macro 'DECLARE_DA_MON_PER_CPU'
     536 | DECLARE_DA_MON_INIT_PER_CPU(name, type)                                                         \
         |                                                                                                 ^
     537 | DECLARE_DA_MON_MONITOR_HANDLER_IMPLICIT(name, type)
         | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/rv/da_monitor.h:438:20: note: expanded from macro '\
   DECLARE_DA_MON_MONITOR_HANDLER_IMPLICIT'
     438 | static inline bool da_handle_start_run_event_##name(enum events_##name event)                   \
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:172:1: note: expanded from here
     172 | da_handle_start_run_event_wip
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 warnings generated.
..

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ