Re: [RFC PATCH 4/6] fprobe: Add exit_handler support
by kernel test robot
Hi Masami,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on rostedt-trace/for-next]
[also build test WARNING on bpf-next/master bpf/master linus/master v5.16 next-20220112]
[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]
url: https://github.com/0day-ci/linux/commits/Masami-Hiramatsu/fprobe-Add-ftra...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220113/202201130629.IyZ9vaDV-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/c0e0471b58c3c9122bbff7523f97a3635...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Masami-Hiramatsu/fprobe-Add-ftrace-based-probe-APIs/20220112-000050
git checkout c0e0471b58c3c9122bbff7523f97a363558284eb
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/rethook.c:14:23: warning: no previous prototype for 'arch_rethook_trampoline_callback' [-Wmissing-prototypes]
14 | __used __visible void arch_rethook_trampoline_callback(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/arch_rethook_trampoline_callback +14 arch/x86/kernel/rethook.c
3727c0ee2be25c Masami Hiramatsu 2022-01-12 10
3727c0ee2be25c Masami Hiramatsu 2022-01-12 11 /*
3727c0ee2be25c Masami Hiramatsu 2022-01-12 12 * Called from arch_rethook_trampoline
3727c0ee2be25c Masami Hiramatsu 2022-01-12 13 */
3727c0ee2be25c Masami Hiramatsu 2022-01-12 @14 __used __visible void arch_rethook_trampoline_callback(struct pt_regs *regs)
3727c0ee2be25c Masami Hiramatsu 2022-01-12 15 {
3727c0ee2be25c Masami Hiramatsu 2022-01-12 16 unsigned long *frame_pointer;
3727c0ee2be25c Masami Hiramatsu 2022-01-12 17
3727c0ee2be25c Masami Hiramatsu 2022-01-12 18 /* fixup registers */
3727c0ee2be25c Masami Hiramatsu 2022-01-12 19 regs->cs = __KERNEL_CS;
3727c0ee2be25c Masami Hiramatsu 2022-01-12 20 #ifdef CONFIG_X86_32
3727c0ee2be25c Masami Hiramatsu 2022-01-12 21 regs->gs = 0;
3727c0ee2be25c Masami Hiramatsu 2022-01-12 22 #endif
3727c0ee2be25c Masami Hiramatsu 2022-01-12 23 regs->ip = (unsigned long)&arch_rethook_trampoline;
3727c0ee2be25c Masami Hiramatsu 2022-01-12 24 regs->orig_ax = ~0UL;
3727c0ee2be25c Masami Hiramatsu 2022-01-12 25 regs->sp += sizeof(long);
3727c0ee2be25c Masami Hiramatsu 2022-01-12 26 frame_pointer = ®s->sp + 1;
3727c0ee2be25c Masami Hiramatsu 2022-01-12 27
3727c0ee2be25c Masami Hiramatsu 2022-01-12 28 /*
3727c0ee2be25c Masami Hiramatsu 2022-01-12 29 * The return address at 'frame_pointer' is recovered by the
3727c0ee2be25c Masami Hiramatsu 2022-01-12 30 * arch_rethook_fixup_return() which called from this
3727c0ee2be25c Masami Hiramatsu 2022-01-12 31 * rethook_trampoline_handler().
3727c0ee2be25c Masami Hiramatsu 2022-01-12 32 */
3727c0ee2be25c Masami Hiramatsu 2022-01-12 33 rethook_trampoline_handler(regs, (unsigned long)frame_pointer);
3727c0ee2be25c Masami Hiramatsu 2022-01-12 34
3727c0ee2be25c Masami Hiramatsu 2022-01-12 35 /*
3727c0ee2be25c Masami Hiramatsu 2022-01-12 36 * Copy FLAGS to 'pt_regs::sp' so that arch_rethook_trapmoline()
3727c0ee2be25c Masami Hiramatsu 2022-01-12 37 * can do RET right after POPF.
3727c0ee2be25c Masami Hiramatsu 2022-01-12 38 */
3727c0ee2be25c Masami Hiramatsu 2022-01-12 39 regs->sp = regs->flags;
3727c0ee2be25c Masami Hiramatsu 2022-01-12 40 }
3727c0ee2be25c Masami Hiramatsu 2022-01-12 41 NOKPROBE_SYMBOL(arch_rethook_trampoline_callback);
3727c0ee2be25c Masami Hiramatsu 2022-01-12 42
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[mark:treewide/gnu99 1/1] include/asm-generic/fixmap.h:21:46: warning: left shift of negative value
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git treewide/gnu99
head: df0f3c59f076be0ab4a6d8de53fdeef871394594
commit: df0f3c59f076be0ab4a6d8de53fdeef871394594 [1/1] treewide: use -std=gnu99
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20220113/202201130624.MemBkw6f-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id...
git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark treewide/gnu99
git checkout df0f3c59f076be0ab4a6d8de53fdeef871394594
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash arch/um/kernel/ fs/isofs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/um/include/asm/fixmap.h:54,
from arch/um/include/asm/pgtable.h:11,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/memblock.h:13,
from arch/um/kernel/mem.c:8:
arch/um/kernel/mem.c: In function 'paging_init':
>> include/asm-generic/fixmap.h:21:46: warning: left shift of negative value [-Wshift-negative-value]
21 | #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
| ^~
arch/um/kernel/mem.c:167:10: note: in expansion of macro '__fix_to_virt'
167 | vaddr = __fix_to_virt(__end_of_fixed_addresses - 1) & PMD_MASK;
| ^~~~~~~~~~~~~
arch/um/kernel/mem.c: At top level:
arch/um/kernel/mem.c:184:8: warning: no previous prototype for 'pgd_alloc' [-Wmissing-prototypes]
184 | pgd_t *pgd_alloc(struct mm_struct *mm)
| ^~~~~~~~~
arch/um/kernel/mem.c:197:7: warning: no previous prototype for 'uml_kmalloc' [-Wmissing-prototypes]
197 | void *uml_kmalloc(int size, int flags)
| ^~~~~~~~~~~
--
fs/isofs/util.c: In function 'iso_date':
>> fs/isofs/util.c:40:14: warning: left shift of negative value [-Wshift-negative-value]
40 | tz |= (-1 << 8);
| ^~
vim +21 include/asm-generic/fixmap.h
d57c33c5daa4ef Mark Salter 2014-01-23 20
d57c33c5daa4ef Mark Salter 2014-01-23 @21 #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
d57c33c5daa4ef Mark Salter 2014-01-23 22 #define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT)
d57c33c5daa4ef Mark Salter 2014-01-23 23
:::::: The code at line 21 was first introduced by commit
:::::: d57c33c5daa4efa9e4d303bd0faf868080b532be add generic fixmap.h
:::::: TO: Mark Salter <msalter(a)redhat.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
Re: [RFC PATCH 6/6] bpf: Add kprobe link for attaching raw kprobes
by kernel test robot
Hi Masami,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on rostedt-trace/for-next]
[also build test WARNING on bpf-next/master bpf/master linus/master v5.16]
[cannot apply to next-20220112]
[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]
url: https://github.com/0day-ci/linux/commits/Masami-Hiramatsu/fprobe-Add-ftra...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next
config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20220113/202201130621.vPqexP9P-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/ba002e6556acd9e0af16442f4226ddb2a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Masami-Hiramatsu/fprobe-Add-ftrace-based-probe-APIs/20220112-000050
git checkout ba002e6556acd9e0af16442f4226ddb2a8759567
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/bpf/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from kernel/bpf/syscall.c:34:
>> include/linux/fprobes.h:57:22: warning: no previous prototype for 'fprobe_find_entry' [-Wmissing-prototypes]
57 | struct fprobe_entry *fprobe_find_entry(struct fprobe *fp, unsigned long addr)
| ^~~~~~~~~~~~~~~~~
vim +/fprobe_find_entry +57 include/linux/fprobes.h
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 43
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 44 #ifdef CONFIG_FPROBES
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 45 int register_fprobe(struct fprobe *fp);
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 46 int unregister_fprobe(struct fprobe *fp);
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 47 struct fprobe_entry *fprobe_find_entry(struct fprobe *fp, unsigned long addr);
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 48 #else
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 49 static inline int register_fprobe(struct fprobe *fp)
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 50 {
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 51 return -ENOTSUPP;
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 52 }
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 53 static inline int unregister_fprobe(struct fprobe *fp)
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 54 {
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 55 return -ENOTSUPP;
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 56 }
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 @57 struct fprobe_entry *fprobe_find_entry(struct fprobe *fp, unsigned long addr)
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 58 {
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 59 return NULL;
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 60 }
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 61 #endif
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 62
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[xilinx-xlnx:master 248/326] include/linux/mtd/cfi.h:62:2: warning: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx master
head: 6a698dbaaf0e6caa053476c2f661b36885a0ce30
commit: 9b62852ec04b7d48971ce8016b13c27403929908 [248/326] Merge tag 'v5.15' into master
config: arc-randconfig-r043-20220112 (https://download.01.org/0day-ci/archive/20220113/202201130520.jQUd0BWN-lk...)
compiler: arceb-elf-gcc (GCC) 11.2.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
# https://github.com/Xilinx/linux-xlnx/commit/9b62852ec04b7d48971ce8016b13c...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx master
git checkout 9b62852ec04b7d48971ce8016b13c27403929908
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/spi/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/mtd/spi-nor.h:10,
from drivers/spi/spi-zynqmp-gqspi.c:26:
>> include/linux/mtd/cfi.h:62:2: warning: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work. [-Wcpp]
62 | #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
| ^~~~~~~
In file included from drivers/spi/spi-zynqmp-gqspi.c:13:
include/linux/firmware/xlnx-zynqmp.h:1187:12: warning: 'zynqmp_pm_sec_mask_write_reg' defined but not used [-Wunused-function]
1187 | static int zynqmp_pm_sec_mask_write_reg(const u32 node_id, const u32 offset,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/firmware/xlnx-zynqmp.h:1182:12: warning: 'zynqmp_pm_sec_read_reg' defined but not used [-Wunused-function]
1182 | static int zynqmp_pm_sec_read_reg(u32 node_id, u32 offset, u32 *ret_value)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +62 include/linux/mtd/cfi.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 60
241651d04d672f David Woodhouse 2007-09-06 61 #ifndef cfi_interleave
241651d04d672f David Woodhouse 2007-09-06 @62 #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
241651d04d672f David Woodhouse 2007-09-06 63 static inline int cfi_interleave(void *cfi)
241651d04d672f David Woodhouse 2007-09-06 64 {
241651d04d672f David Woodhouse 2007-09-06 65 BUG();
241651d04d672f David Woodhouse 2007-09-06 66 return 0;
241651d04d672f David Woodhouse 2007-09-06 67 }
241651d04d672f David Woodhouse 2007-09-06 68 #endif
241651d04d672f David Woodhouse 2007-09-06 69
:::::: The code at line 62 was first introduced by commit
:::::: 241651d04d672fb685b2874707016cbbf95931e5 [MTD] Fix CFI build error when no map width or interleave supported
:::::: TO: David Woodhouse <dwmw2(a)infradead.org>
:::::: CC: David Woodhouse <dwmw2(a)infradead.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
Re: [RFC 01/28] clk: renesas: rzg2l: Add FOUTPOSTDIV clk support
by kernel test robot
Hi Biju,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on next-20220112]
[cannot apply to pinchartl-media/drm/du/next geert-renesas-drivers/renesas-clk geert-renesas-devel/next v5.16 v5.16-rc8 v5.16-rc7 v5.16]
[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]
url: https://github.com/0day-ci/linux/commits/Biju-Das/Add-RZ-G2L-Display-supp...
base: 32ce2abb03cfae17a9eb42bd6b1b619b72f23f20
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20220113/202201130534.ASefePDv-lk...)
compiler: m68k-linux-gcc (GCC) 11.2.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
# https://github.com/0day-ci/linux/commit/c0b834d1561a902d5f960a18e365d66fb...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Biju-Das/Add-RZ-G2L-Display-support/20220113-014940
git checkout c0b834d1561a902d5f960a18e365d66fbeba0f95
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/clk/renesas/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/clk/renesas/rzg2l-cpg.c:302:9: warning: this decimal constant is unsigned only in ISO C90
302 | { 3000000000, 1, 125, 0, 1, 1, 0, 0, 0, 0 }, /* 3000 MHz */
| ^
drivers/clk/renesas/rzg2l-cpg.c:317:9: warning: this decimal constant is unsigned only in ISO C90
317 | { 3000000000, 1, 125, 0, 1, 1, 0, 0, 0, 0 }, /* 3000 MHz */
| ^
vim +302 drivers/clk/renesas/rzg2l-cpg.c
286
287 static const struct rzg2l_pll5_param dsi_mode_param[] = {
288 { 25175000, 1, 16, 13141593, 1, 1, 2, 3, 16, 0 }, /* VGA 25.175MHz */
289 { 25200000, 1, 16, 13421773, 1, 1, 2, 3, 16, 0 }, /* VGA 25.200MHz */
290 { 27000000, 1, 18, 0, 1, 1, 2, 3, 16, 0 }, /* 480p/576p 27.000MHz */
291 { 27027000, 1, 18, 301990, 1, 1, 2, 3, 16, 0 }, /* 480p 27.027MHz */
292 { 29605000, 1, 19, 12359216, 1, 1, 2, 3, 16, 0 }, /* WVGA 29.605MHz */
293 { 40000000, 2, 80, 0, 2, 1, 1, 2, 6, 0 }, /* SVGA 40.00MHz */
294 { 65000000, 1, 43, 5592405, 1, 1, 2, 3, 16, 0 }, /* XGA 65.00MHz */
295 { 71000000, 2, 71, 0, 1, 1, 1, 2, 6, 0 }, /* WXGA 1280x800 71.0MHz */
296 { 74176000, 1, 49, 7560932, 1, 1, 2, 3, 16, 0 }, /* 720p 74.176MHz */
297 { 74250000, 1, 49, 8388608, 1, 1, 2, 3, 16, 0 }, /* 720p 74.25MHz */
298 { 85500000, 2, 85, 8388608, 1, 1, 1, 2, 6, 0 }, /* FWXGA 1360x768 85.5MHz */
299 { 88750000, 2, 88, 12582912, 1, 1, 1, 2, 6, 1 }, /* WXGA+ 1440x900 88.75MHz */
300 { 108000000, 2, 108, 0, 1, 1, 1, 2, 6, 1 }, /* SXGA 108MHz */
301 { 148500000, 2, 148, 8388608, 1, 1, 1, 2, 6, 1 }, /* 1080p 148.5MHz */
> 302 { 3000000000, 1, 125, 0, 1, 1, 0, 0, 0, 0 }, /* 3000 MHz */
303 };
304
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
Re: [PATCH v2 3/3] sched/core: Force idle accounting per cgroup
by kernel test robot
Hi Cruz,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tip/sched/core]
[also build test ERROR on tip/master linux/master linus/master next-20220112]
[cannot apply to tj-cgroup/for-next v5.16]
[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]
url: https://github.com/0day-ci/linux/commits/Cruz-Zhao/Accounting-forced-idle...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 82762d2af31a60081162890983a83499c9c7dd74
config: ia64-randconfig-r024-20220112 (https://download.01.org/0day-ci/archive/20220113/202201130529.HUZtnC5G-lk...)
compiler: ia64-linux-gcc (GCC) 11.2.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
# https://github.com/0day-ci/linux/commit/363ef949b487441383f2719bdff3dc915...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Cruz-Zhao/Accounting-forced-idle-time-per-cpu-and-per-cgroup/20220111-175754
git checkout 363ef949b487441383f2719bdff3dc9156779565
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/sched/core_sched.c: In function '__sched_core_account_forceidle':
>> kernel/sched/core_sched.c:287:17: error: implicit declaration of function 'cpuacct_account_forceidle'; did you mean 'sched_core_account_forceidle'? [-Werror=implicit-function-declaration]
287 | cpuacct_account_forceidle(i, p, delta);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| sched_core_account_forceidle
cc1: some warnings being treated as errors
vim +287 kernel/sched/core_sched.c
240
241 /* REQUIRES: rq->core's clock recently updated. */
242 void __sched_core_account_forceidle(struct rq *rq)
243 {
244 const struct cpumask *smt_mask = cpu_smt_mask(cpu_of(rq));
245 u64 delta_per_idlecpu, delta, now = rq_clock(rq->core);
246 struct rq *rq_i;
247 struct task_struct *p;
248 int i;
249
250 lockdep_assert_rq_held(rq);
251
252 WARN_ON_ONCE(!rq->core->core_forceidle_count);
253
254 if (rq->core->core_forceidle_start == 0)
255 return;
256
257 delta_per_idlecpu = delta = now - rq->core->core_forceidle_start;
258 if (unlikely((s64)delta <= 0))
259 return;
260
261 rq->core->core_forceidle_start = now;
262
263 if (WARN_ON_ONCE(!rq->core->core_forceidle_occupation)) {
264 /* can't be forced idle without a running task */
265 } else if (rq->core->core_forceidle_count > 1 ||
266 rq->core->core_forceidle_occupation > 1) {
267 /*
268 * For larger SMT configurations, we need to scale the charged
269 * forced idle amount since there can be more than one forced
270 * idle sibling and more than one running cookied task.
271 */
272 delta *= rq->core->core_forceidle_count;
273 delta = div_u64(delta, rq->core->core_forceidle_occupation);
274 }
275
276 for_each_cpu(i, smt_mask) {
277 rq_i = cpu_rq(i);
278 p = rq_i->core_pick ?: rq_i->curr;
279
280 if (rq_i->in_forcedidle)
281 rq->rq_forceidle_time += delta_per_idlecpu;
282
283 if (p == rq_i->idle)
284 continue;
285
286 __schedstat_add(p->stats.core_forceidle_sum, delta);
> 287 cpuacct_account_forceidle(i, p, delta);
288 }
289 }
290
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[freescale-fslc:pr/521 4666/9999] drivers/regulator/scmi-regulator.c:237:13: error: no member named 'of_match_full_name' in 'struct regulator_desc'
by kernel test robot
Hi Cristian,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/521
head: e1200a7e26459892adfac6cb313bd8458b21fa95
commit: 367122823dab7b07ad76fb94a06c7a3030fe57b6 [4666/9999] regulator: add SCMI driver
config: riscv-buildonly-randconfig-r005-20220112 (https://download.01.org/0day-ci/archive/20220113/202201130401.Z5dIs88t-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/Freescale/linux-fslc/commit/367122823dab7b07ad76fb94a0...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/521
git checkout 367122823dab7b07ad76fb94a06c7a3030fe57b6
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/regulator/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/regulator/scmi-regulator.c:237:13: error: no member named 'of_match_full_name' in 'struct regulator_desc'
sreg->desc.of_match_full_name = true;
~~~~~~~~~~ ^
1 error generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for INPUT_POLLDEV
Depends on !UML && INPUT
Selected by
- MXC_MMA8451 && HWMON && I2C
vim +237 drivers/regulator/scmi-regulator.c
203
204 static int scmi_regulator_common_init(struct scmi_regulator *sreg)
205 {
206 int ret;
207 const struct scmi_handle *handle = sreg->sdev->handle;
208 struct device *dev = &sreg->sdev->dev;
209 const struct scmi_voltage_info *vinfo;
210
211 vinfo = handle->voltage_ops->info_get(handle, sreg->id);
212 if (!vinfo) {
213 dev_warn(dev, "Failure to get voltage domain %d\n",
214 sreg->id);
215 return -ENODEV;
216 }
217
218 /*
219 * Regulator framework does not fully support negative voltages
220 * so we discard any voltage domain reported as supporting negative
221 * voltages: as a consequence each levels_uv entry is guaranteed to
222 * be non-negative from here on.
223 */
224 if (vinfo->negative_volts_allowed) {
225 dev_warn(dev, "Negative voltages NOT supported...skip %s\n",
226 sreg->of_node->full_name);
227 return -EOPNOTSUPP;
228 }
229
230 sreg->desc.name = devm_kasprintf(dev, GFP_KERNEL, "%s", vinfo->name);
231 if (!sreg->desc.name)
232 return -ENOMEM;
233
234 sreg->desc.id = sreg->id;
235 sreg->desc.type = REGULATOR_VOLTAGE;
236 sreg->desc.owner = THIS_MODULE;
> 237 sreg->desc.of_match_full_name = true;
238 sreg->desc.of_match = sreg->of_node->full_name;
239 sreg->desc.regulators_node = "regulators";
240 if (vinfo->segmented)
241 ret = scmi_config_linear_regulator_mappings(sreg, vinfo);
242 else
243 ret = scmi_config_discrete_regulator_mappings(sreg, vinfo);
244 if (ret)
245 return ret;
246
247 /*
248 * Using the scmi device here to have DT searched from Voltage
249 * protocol node down.
250 */
251 sreg->conf.dev = dev;
252
253 /* Store for later retrieval via rdev_get_drvdata() */
254 sreg->conf.driver_data = sreg;
255
256 return 0;
257 }
258
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
Re: [PATCH v3] pinctrl: baytrail: Clear direct_irq_en flag on broken configs
by kernel test robot
Hi Hans,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linusw-pinctrl/devel]
[also build test WARNING on v5.16-rc8 next-20220107]
[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]
url: https://github.com/0day-ci/linux/commits/Hans-de-Goede/pinctrl-baytrail-C...
base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
config: i386-randconfig-c001-20220107 (https://download.01.org/0day-ci/archive/20220109/202201090203.kgCw6bSd-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f3a344d2125fa37e59bae1b0874442c650a19607)
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
# https://github.com/0day-ci/linux/commit/fc9eb527f62b0bebde64745ec5b0a838f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Hans-de-Goede/pinctrl-baytrail-Clear-direct_irq_en-flag-on-broken-configs/20220108-074637
git checkout fc9eb527f62b0bebde64745ec5b0a838fde7ef41
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/pinctrl/intel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/pinctrl/intel/pinctrl-baytrail.c:1483:58: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
dev_dbg(vg->dev, "Pin %i: uses direct IRQ %ld\n", pin, match - direct_irq);
~~~ ^~~~~~~~~~~~~~~~~~
%d
include/linux/dev_printk.h:163:47: note: expanded from macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:129:34: note: expanded from macro 'dev_printk'
_dev_printk(level, dev, fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
1 warning generated.
vim +1483 drivers/pinctrl/intel/pinctrl-baytrail.c
1468
1469 static bool byt_direct_irq_sanity_check(struct intel_pinctrl *vg, int pin, u32 value)
1470 {
1471 u8 *match, direct_irq[16];
1472
1473 if (!(value & (BYT_TRIG_POS | BYT_TRIG_NEG))) {
1474 dev_warn(vg->dev,
1475 FW_BUG "pin %i: direct_irq_en set without trigger, clearing\n", pin);
1476 return false;
1477 }
1478
1479 memcpy_fromio(direct_irq, vg->communities->pad_regs + BYT_DIRECT_IRQ_REG,
1480 sizeof(direct_irq));
1481 match = memchr(direct_irq, pin, sizeof(direct_irq));
1482 if (match)
> 1483 dev_dbg(vg->dev, "Pin %i: uses direct IRQ %ld\n", pin, match - direct_irq);
1484 else
1485 dev_warn(vg->dev, FW_BUG "pin %i: direct_irq_en set but no IRQ assigned, clearing\n", pin);
1486
1487 return match;
1488 }
1489
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[tobetter:odroid-5.16.y 10/39] drivers/power/reset/odroid-reboot.c:63:6: warning: no previous prototype for 'odroid_card_reset'
by kernel test robot
tree: https://github.com/tobetter/linux odroid-5.16.y
head: cb59f7f629212302d4136a919ef9822aa9c84aac
commit: 5597e4f1c963e50e1fe7db7ed99c9c9bf4db8893 [10/39] ODROID-COMMON: power:reset: Add odroid support
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220113/202201130405.Toy5ZQv8-lk...)
compiler: aarch64-linux-gcc (GCC) 11.2.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
# https://github.com/tobetter/linux/commit/5597e4f1c963e50e1fe7db7ed99c9c9b...
git remote add tobetter https://github.com/tobetter/linux
git fetch --no-tags tobetter odroid-5.16.y
git checkout 5597e4f1c963e50e1fe7db7ed99c9c9bf4db8893
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/power/reset/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/power/reset/odroid-reboot.c:63:6: warning: no previous prototype for 'odroid_card_reset' [-Wmissing-prototypes]
63 | void odroid_card_reset(void)
| ^~~~~~~~~~~~~~~~~
drivers/power/reset/odroid-reboot.c: In function 'odroid_restart_probe':
drivers/power/reset/odroid-reboot.c:141:17: error: 'arm_pm_restart' undeclared (first use in this function); did you mean 'alarm_restart'?
141 | arm_pm_restart = do_odroid_restart;
| ^~~~~~~~~~~~~~
| alarm_restart
drivers/power/reset/odroid-reboot.c:141:17: note: each undeclared identifier is reported only once for each function it appears in
vim +/odroid_card_reset +63 drivers/power/reset/odroid-reboot.c
62
> 63 void odroid_card_reset(void)
64 {
65 int ret = 0;
66
67 if ((sd_vqsw == 0) && (sd_vmmc == 0))
68 return;
69
70 if (sd_vqen == 0) {
71 gpio_free(sd_vqsw);
72 gpio_free(sd_vmmc);
73 ret = gpio_request_one(sd_vqsw,
74 GPIOF_OUT_INIT_LOW, "REBOOT");
75 CHECK_RET(ret);
76 mdelay(10);
77 ret = gpio_direction_output(sd_vqsw, 1);
78 CHECK_RET(ret);
79 ret = gpio_request_one(sd_vmmc,
80 GPIOF_OUT_INIT_LOW, "REBOOT");
81 CHECK_RET(ret);
82 mdelay(10);
83 ret = gpio_direction_output(sd_vqsw, 0);
84 CHECK_RET(ret);
85 ret = gpio_direction_output(sd_vmmc, 1);
86 CHECK_RET(ret);
87 mdelay(5);
88 gpio_free(sd_vqsw);
89 gpio_free(sd_vmmc);
90 } else {
91 gpio_free(sd_vqsw);
92 gpio_free(sd_vqen);
93 gpio_free(sd_vmmc);
94
95 ret = gpio_request_one(sd_vqsw,
96 GPIOF_OUT_INIT_LOW, "REBOOT");
97 CHECK_RET(ret);
98 ret = gpio_request_one(sd_vqen,
99 GPIOF_OUT_INIT_LOW, "REBOOT");
100 CHECK_RET(ret);
101 ret = gpio_request_one(sd_vmmc,
102 GPIOF_OUT_INIT_LOW, "REBOOT");
103 CHECK_RET(ret);
104 mdelay(100);
105 ret = gpio_direction_input(sd_vqen);
106 CHECK_RET(ret);
107 ret = gpio_direction_input(sd_vmmc);
108 CHECK_RET(ret);
109 ret = gpio_direction_input(sd_vqsw);
110 CHECK_RET(ret);
111 mdelay(5);
112 gpio_free(sd_vqen);
113 gpio_free(sd_vmmc);
114 gpio_free(sd_vqsw);
115 }
116 }
117
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week