All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: aubrey.li@linux.intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [anolis-intel-cloud:devel-6.6 66/66] kernel/sched/sched.h:2575:9: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '17580779487' to '400910303'
Date: Fri, 12 Sep 2025 15:49:13 +0800	[thread overview]
Message-ID: <202509121509.Eh330lqW-lkp@intel.com> (raw)

tree:   https://gitee.com/anolis/intel-cloud-kernel.git devel-6.6
head:   b5892828e17dc790129accddd7b4c537452cd391
commit: d293a754cf1338f5f03897c4b2322ee6accfe3c0 [66/66] anolis: sched: increase the maximum number of supported sched features
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20250912/202509121509.Eh330lqW-lkp@intel.com/config)
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/20250912/202509121509.Eh330lqW-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202509121509.Eh330lqW-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from kernel/sched/core.c:87:
>> kernel/sched/sched.h:2575:9: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '17580779487' to '400910303' [-Woverflow]
    2575 |         (1UL << __SCHED_FEAT_##name) * enabled |
         |         ^
   kernel/sched/features.h:7:1: note: in expansion of macro 'SCHED_FEAT'
       7 | SCHED_FEAT(PLACE_LAG, true)
         | ^~~~~~~~~~
--
   In file included from kernel/sched/fair.c:56:
>> kernel/sched/sched.h:2575:9: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '17580779487' to '400910303' [-Woverflow]
    2575 |         (1UL << __SCHED_FEAT_##name) * enabled |
         |         ^
   kernel/sched/features.h:7:1: note: in expansion of macro 'SCHED_FEAT'
       7 | SCHED_FEAT(PLACE_LAG, true)
         | ^~~~~~~~~~
   kernel/sched/fair.c:4264:6: warning: no previous prototype for 'set_group_prefer_node' [-Wmissing-prototypes]
    4264 | void set_group_prefer_node(struct task_group *tg)
         |      ^~~~~~~~~~~~~~~~~~~~~
   kernel/sched/fair.c: In function 'set_group_prefer_node':
   kernel/sched/fair.c:4293:33: error: implicit declaration of function 'cpu_load'; did you mean 'cpu_of'? [-Wimplicit-function-declaration]
    4293 |                         load += cpu_load(cpu_rq(cpu));
         |                                 ^~~~~~~~
         |                                 cpu_of
   kernel/sched/fair.c: At top level:
   kernel/sched/fair.c:7451:22: error: conflicting types for 'cpu_load'; have 'long unsigned int(struct rq *)'
    7451 | static unsigned long cpu_load(struct rq *rq)
         |                      ^~~~~~~~
   kernel/sched/fair.c:4293:33: note: previous implicit declaration of 'cpu_load' with type 'int()'
    4293 |                         load += cpu_load(cpu_rq(cpu));
         |                                 ^~~~~~~~
   kernel/sched/fair.c:9186:6: warning: no previous prototype for 'id_can_stop_tick' [-Wmissing-prototypes]
    9186 | bool id_can_stop_tick(struct rq *rq)
         |      ^~~~~~~~~~~~~~~~
--
   In file included from kernel/sched/build_utility.c:53:
>> kernel/sched/sched.h:2575:9: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '17580779487' to '400910303' [-Woverflow]
    2575 |         (1UL << __SCHED_FEAT_##name) * enabled |
         |         ^
   kernel/sched/features.h:7:1: note: in expansion of macro 'SCHED_FEAT'
       7 | SCHED_FEAT(PLACE_LAG, true)
         | ^~~~~~~~~~
   In file included from kernel/sched/build_utility.c:105:
   kernel/sched/isolation.c:324:6: warning: no previous prototype for 'update_wilds_cpumask' [-Wmissing-prototypes]
     324 | void update_wilds_cpumask(cpumask_var_t new_allowed, cpumask_var_t old_allowed)
         |      ^~~~~~~~~~~~~~~~~~~~


vim +2575 kernel/sched/sched.h

765cc3a4b224e2 Patrick Bellasi 2017-11-08  2568  
765cc3a4b224e2 Patrick Bellasi 2017-11-08  2569  /*
765cc3a4b224e2 Patrick Bellasi 2017-11-08  2570   * Each translation unit has its own copy of sysctl_sched_features to allow
765cc3a4b224e2 Patrick Bellasi 2017-11-08  2571   * constants propagation at compile time and compiler optimization based on
765cc3a4b224e2 Patrick Bellasi 2017-11-08  2572   * features default.
765cc3a4b224e2 Patrick Bellasi 2017-11-08  2573   */
765cc3a4b224e2 Patrick Bellasi 2017-11-08  2574  #define SCHED_FEAT(name, enabled)	\
765cc3a4b224e2 Patrick Bellasi 2017-11-08 @2575  	(1UL << __SCHED_FEAT_##name) * enabled |
765cc3a4b224e2 Patrick Bellasi 2017-11-08  2576  static const_debug __maybe_unused unsigned int sysctl_sched_features =
765cc3a4b224e2 Patrick Bellasi 2017-11-08  2577  #include "features.h"
765cc3a4b224e2 Patrick Bellasi 2017-11-08  2578  	0;
765cc3a4b224e2 Patrick Bellasi 2017-11-08  2579  #undef SCHED_FEAT
765cc3a4b224e2 Patrick Bellasi 2017-11-08  2580  

:::::: The code at line 2575 was first introduced by commit
:::::: 765cc3a4b224e22bf524fabe40284a524f37cdd0 sched/core: Optimize sched_feat() for !CONFIG_SCHED_DEBUG builds

:::::: TO: Patrick Bellasi <patrick.bellasi@arm.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>

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

                 reply	other threads:[~2025-09-12  7:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202509121509.Eh330lqW-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aubrey.li@linux.intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.