[akpm-mm:mm-unstable 262/270] include/linux/memory-tiers.h:143:25: warning: no previous prototype for function 'mt_find_alloc_memory_type'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head:   0cef2c0a2a356137b170c3cb46cb9c1dd2ca3e6b
commit: 57fc2afac84efdb0968e028382023a937bb4d6a0 [262/270] memory tier: dax/kmem: introduce an abstract layer for finding, allocating, and putting memory types
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20240331/202403311754.pBuEzHw6-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240331/202403311754.pBuEzHw6-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403311754.pBuEzHw6-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   In file included from kernel/sched/fair.c:43:
>> include/linux/memory-tiers.h:143:25: warning: no previous prototype for function 'mt_find_alloc_memory_type' [-Wmissing-prototypes]
     143 | struct memory_dev_type *mt_find_alloc_memory_type(int adist, struct list_head *memory_types)
         |                         ^
   include/linux/memory-tiers.h:143:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     143 | struct memory_dev_type *mt_find_alloc_memory_type(int adist, struct list_head *memory_types)
         | ^
         | static 
>> include/linux/memory-tiers.h:148:6: warning: no previous prototype for function 'mt_put_memory_types' [-Wmissing-prototypes]
     148 | void mt_put_memory_types(struct list_head *memory_types)
         |      ^
   include/linux/memory-tiers.h:148:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     148 | void mt_put_memory_types(struct list_head *memory_types)
         | ^
         | static 
   kernel/sched/fair.c:488:20: warning: unused function 'list_del_leaf_cfs_rq' [-Wunused-function]
     488 | static inline void list_del_leaf_cfs_rq(struct cfs_rq *cfs_rq)
         |                    ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:509:19: warning: unused function 'tg_is_idle' [-Wunused-function]
     509 | static inline int tg_is_idle(struct task_group *tg)
         |                   ^~~~~~~~~~
   kernel/sched/fair.c:533:19: warning: unused function 'max_vruntime' [-Wunused-function]
     533 | static inline u64 max_vruntime(u64 max_vruntime, u64 vruntime)
         |                   ^~~~~~~~~~~~
   kernel/sched/fair.c:1308:20: warning: unused function 'is_core_idle' [-Wunused-function]
    1308 | static inline bool is_core_idle(int cpu)
         |                    ^~~~~~~~~~~~
   kernel/sched/fair.c:3561:20: warning: unused function 'account_numa_enqueue' [-Wunused-function]
    3561 | static inline void account_numa_enqueue(struct rq *rq, struct task_struct *p)
         |                    ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:3565:20: warning: unused function 'account_numa_dequeue' [-Wunused-function]
    3565 | static inline void account_numa_dequeue(struct rq *rq, struct task_struct *p)
         |                    ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:3569:20: warning: unused function 'update_scan_period' [-Wunused-function]
    3569 | static inline void update_scan_period(struct task_struct *p, int new_cpu)
         |                    ^~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:5123:20: warning: unused function 'cfs_rq_is_decayed' [-Wunused-function]
    5123 | static inline bool cfs_rq_is_decayed(struct cfs_rq *cfs_rq)
         |                    ^~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:5138:20: warning: unused function 'remove_entity_load_avg' [-Wunused-function]
    5138 | static inline void remove_entity_load_avg(struct sched_entity *se) {}
         |                    ^~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:6568:20: warning: unused function 'cfs_bandwidth_used' [-Wunused-function]
    6568 | static inline bool cfs_bandwidth_used(void)
         |                    ^~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:6576:20: warning: unused function 'sync_throttle' [-Wunused-function]
    6576 | static inline void sync_throttle(struct task_group *tg, int cpu) {}
         |                    ^~~~~~~~~~~~~
   kernel/sched/fair.c:6589:19: warning: unused function 'throttled_lb_pair' [-Wunused-function]
    6589 | static inline int throttled_lb_pair(struct task_group *tg,
         |                   ^~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:6600:37: warning: unused function 'tg_cfs_bandwidth' [-Wunused-function]
    6600 | static inline struct cfs_bandwidth *tg_cfs_bandwidth(struct task_group *tg)
         |                                     ^~~~~~~~~~~~~~~~
   kernel/sched/fair.c:6604:20: warning: unused function 'destroy_cfs_bandwidth' [-Wunused-function]
    6604 | static inline void destroy_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {}
         |                    ^~~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:6605:20: warning: unused function 'update_runtime_enabled' [-Wunused-function]
    6605 | static inline void update_runtime_enabled(struct rq *rq) {}
         |                    ^~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c:6606:20: warning: unused function 'unthrottle_offline_cfs_rqs' [-Wunused-function]
    6606 | static inline void unthrottle_offline_cfs_rqs(struct rq *rq) {}
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
   18 warnings generated.


vim +/mt_find_alloc_memory_type +143 include/linux/memory-tiers.h

   142	
 > 143	struct memory_dev_type *mt_find_alloc_memory_type(int adist, struct list_head *memory_types)
   144	{
   145		return NULL;
   146	}
   147	
 > 148	void mt_put_memory_types(struct list_head *memory_types)
   149	{
   150	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux