All of lore.kernel.org
 help / color / mirror / Atom feed
* [arnd-playground:headers-clean-test 22/30] include/linux/sched.h:607:24: error: implicit declaration of function 'bits_per'
@ 2020-06-02 13:14 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-06-02 13:14 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git headers-clean-test
head:   a25b75e508f3199f82d682ff1c5d6968d3286581
commit: 7bad929f95a499324f067b02953a751268f479d3 [22/30] fixup
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 7bad929f95a499324f067b02953a751268f479d3
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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

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

WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86
scripts/Makefile.build:65: 'arch/ia64/kernel/palinfo.ko' 'arch/ia64/kernel/mca_recovery.ko' 'arch/ia64/kernel/err_inject.ko' will not be built even though obj-m is specified.
scripts/Makefile.build:66: You cannot use subdir-y/m to visit a module Makefile. Use obj-y/m instead.
In file included from include/linux/sched/signal.h:7,
from arch/ia64/kernel/asm-offsets.c:10:
>> include/linux/sched.h:607:24: error: implicit declaration of function 'bits_per'
607 | unsigned int value : bits_per(SCHED_CAPACITY_SCALE);
| ^~~~~~~~
>> include/linux/sched.h:607:15: error: bit-field 'value' width not an integer constant
607 | unsigned int value : bits_per(SCHED_CAPACITY_SCALE);
| ^~~~~
>> include/linux/sched.h:608:15: error: bit-field 'bucket_id' width not an integer constant
608 | unsigned int bucket_id : bits_per(UCLAMP_BUCKETS);
| ^~~~~~~~~
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/sched/signal.h:5,
from arch/ia64/kernel/asm-offsets.c:10:
include/linux/sched.h: In function 'task_index_to_char':
>> include/linux/sched.h:1472:19: error: implicit declaration of function 'ilog2'
1472 | BUILD_BUG_ON(1 + ilog2(TASK_REPORT_MAX) != sizeof(state_char) - 1);
| ^~~~~
include/linux/compiler.h:372:9: note: in definition of macro '__compiletime_assert'
372 | if | ^~~~~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
>> include/linux/sched.h:1472:2: note: in expansion of macro 'BUILD_BUG_ON'
1472 | BUILD_BUG_ON(1 + ilog2(TASK_REPORT_MAX) != sizeof(state_char) - 1);
| ^~~~~~~~~~~~
arch/ia64/kernel/asm-offsets.c: At top level:
arch/ia64/kernel/asm-offsets.c:23:6: warning: no previous prototype for 'foo'
23 | void foo(void)
| ^~~
cc1: some warnings being treated as errors
Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net scripts security sound source usr virt [scripts/Makefile.build:110: arch/ia64/kernel/asm-offsets.s] Error 1
Target '__build' not remade because of errors.
Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net scripts security sound source usr virt [Makefile:1177: prepare0] Error 2
Target 'prepare' not remade because of errors.
make: Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net scripts security sound source usr virt [Makefile:185: __sub-make] Error 2

vim +/bits_per +607 include/linux/sched.h

69842cba9ace848 Patrick Bellasi 2019-06-21  582  
69842cba9ace848 Patrick Bellasi 2019-06-21  583  /*
69842cba9ace848 Patrick Bellasi 2019-06-21  584   * Utilization clamp for a scheduling entity
69842cba9ace848 Patrick Bellasi 2019-06-21  585   * @value:		clamp value "assigned" to a se
69842cba9ace848 Patrick Bellasi 2019-06-21  586   * @bucket_id:		bucket index corresponding to the "assigned" value
e8f14172c6b11e9 Patrick Bellasi 2019-06-21  587   * @active:		the se is currently refcounted in a rq's bucket
a509a7cd7974707 Patrick Bellasi 2019-06-21  588   * @user_defined:	the requested clamp value comes from user-space
69842cba9ace848 Patrick Bellasi 2019-06-21  589   *
69842cba9ace848 Patrick Bellasi 2019-06-21  590   * The bucket_id is the index of the clamp bucket matching the clamp value
69842cba9ace848 Patrick Bellasi 2019-06-21  591   * which is pre-computed and stored to avoid expensive integer divisions from
69842cba9ace848 Patrick Bellasi 2019-06-21  592   * the fast path.
e8f14172c6b11e9 Patrick Bellasi 2019-06-21  593   *
e8f14172c6b11e9 Patrick Bellasi 2019-06-21  594   * The active bit is set whenever a task has got an "effective" value assigned,
e8f14172c6b11e9 Patrick Bellasi 2019-06-21  595   * which can be different from the clamp value "requested" from user-space.
e8f14172c6b11e9 Patrick Bellasi 2019-06-21  596   * This allows to know a task is refcounted in the rq's bucket corresponding
e8f14172c6b11e9 Patrick Bellasi 2019-06-21  597   * to the "effective" bucket_id.
a509a7cd7974707 Patrick Bellasi 2019-06-21  598   *
a509a7cd7974707 Patrick Bellasi 2019-06-21  599   * The user_defined bit is set whenever a task has got a task-specific clamp
a509a7cd7974707 Patrick Bellasi 2019-06-21  600   * value requested from userspace, i.e. the system defaults apply to this task
a509a7cd7974707 Patrick Bellasi 2019-06-21  601   * just as a restriction. This allows to relax default clamps when a less
a509a7cd7974707 Patrick Bellasi 2019-06-21  602   * restrictive task-specific value has been requested, thus allowing to
a509a7cd7974707 Patrick Bellasi 2019-06-21  603   * implement a "nice" semantic. For example, a task running with a 20%
a509a7cd7974707 Patrick Bellasi 2019-06-21  604   * default boost can still drop its own boosting to 0%.
69842cba9ace848 Patrick Bellasi 2019-06-21  605   */
69842cba9ace848 Patrick Bellasi 2019-06-21  606  struct uclamp_se {
69842cba9ace848 Patrick Bellasi 2019-06-21 @607  	unsigned int value		: bits_per(SCHED_CAPACITY_SCALE);
69842cba9ace848 Patrick Bellasi 2019-06-21 @608  	unsigned int bucket_id		: bits_per(UCLAMP_BUCKETS);
e8f14172c6b11e9 Patrick Bellasi 2019-06-21  609  	unsigned int active		: 1;
a509a7cd7974707 Patrick Bellasi 2019-06-21  610  	unsigned int user_defined	: 1;
69842cba9ace848 Patrick Bellasi 2019-06-21  611  };
69842cba9ace848 Patrick Bellasi 2019-06-21  612  #endif /* CONFIG_UCLAMP_TASK */
69842cba9ace848 Patrick Bellasi 2019-06-21  613  

:::::: The code at line 607 was first introduced by commit
:::::: 69842cba9ace84849bb9b8edcdf2cefccd97901c sched/uclamp: Add CPU's clamp buckets refcounting

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

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 60480 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-02 13:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02 13:14 [arnd-playground:headers-clean-test 22/30] include/linux/sched.h:607:24: error: implicit declaration of function 'bits_per' kbuild 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.