[chrome-os:chromeos-5.15 1977/2818] kernel/power/wakeup_reason.c:234:9: error: function '__log_abort_or_abnormal_wake' might be a candidate for 'gnu_printf' format attribute
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.15
head: b4852fbf90916fdc2f1e0e282e100f7e0e889d77
commit: 0ab2a632cc5e8a67c3a365fc2713ff6351546dea [1977/2818] REVISIT: ANDROID: power: wakeup_reason: add an API to log wakeup reasons
config: arm-chromiumos-arm-customedconfig-chrome-os:chromeos-5.15:b4852fbf90916fdc2f1e0e282e100f7e0e889d77 (https://download.01.org/0day-ci/archive/20211212/202112121559.qEw8xpfv-lk...)
compiler: arm-linux-gnueabi-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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.15
git checkout 0ab2a632cc5e8a67c3a365fc2713ff6351546dea
# 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=arm 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/power/wakeup_reason.c: In function '__log_abort_or_abnormal_wake':
>> kernel/power/wakeup_reason.c:234:9: error: function '__log_abort_or_abnormal_wake' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
234 | vsnprintf(non_irq_wake_reason, MAX_SUSPEND_ABORT_LEN, fmt, args);
| ^~~~~~~~~
cc1: all warnings being treated as errors
vim +234 kernel/power/wakeup_reason.c
215
216 static void __log_abort_or_abnormal_wake(bool abort, const char *fmt,
217 va_list args)
218 {
219 unsigned long flags;
220
221 spin_lock_irqsave(&wakeup_reason_lock, flags);
222
223 /* Suspend abort or abnormal wake reason has already been logged. */
224 if (wakeup_reason != RESUME_NONE) {
225 spin_unlock_irqrestore(&wakeup_reason_lock, flags);
226 return;
227 }
228
229 if (abort)
230 wakeup_reason = RESUME_ABORT;
231 else
232 wakeup_reason = RESUME_ABNORMAL;
233
> 234 vsnprintf(non_irq_wake_reason, MAX_SUSPEND_ABORT_LEN, fmt, args);
235
236 spin_unlock_irqrestore(&wakeup_reason_lock, flags);
237 }
238
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[superna9999:amlogic/v5.17/g12-dsi 7/23] drivers/gpu/drm/meson/meson_vclk.c:1035:33: error: 'vid_pll_div' undeclared
by kernel test robot
tree: https://github.com/superna9999/linux amlogic/v5.17/g12-dsi
head: 62dac9179f2937dc08bffe08d15c6846bc4aedb4
commit: cc44c3ce92a63f2c59a3f0ac03e6defd41542940 [7/23] WiP: drm/meson: vclk: add DSI clock config
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20211212/202112121520.P5eMl3xJ-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/superna9999/linux/commit/cc44c3ce92a63f2c59a3f0ac03e6d...
git remote add superna9999 https://github.com/superna9999/linux
git fetch --no-tags superna9999 amlogic/v5.17/g12-dsi
git checkout cc44c3ce92a63f2c59a3f0ac03e6defd41542940
# 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
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the superna9999/amlogic/v5.17/g12-dsi HEAD 62dac9179f2937dc08bffe08d15c6846bc4aedb4 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
drivers/gpu/drm/meson/meson_vclk.c: In function 'meson_dsi_clock_config':
>> drivers/gpu/drm/meson/meson_vclk.c:1035:33: error: 'vid_pll_div' undeclared (first use in this function)
1035 | meson_vid_pll_set(priv, vid_pll_div);
| ^~~~~~~~~~~
drivers/gpu/drm/meson/meson_vclk.c:1035:33: note: each undeclared identifier is reported only once for each function it appears in
vim +/vid_pll_div +1035 drivers/gpu/drm/meson/meson_vclk.c
1029
1030 static void meson_dsi_clock_config(struct meson_drm *priv, unsigned freq)
1031 {
1032 meson_hdmi_pll_generic_set(priv, freq);
1033
1034 /* Setup vid_pll divider */
> 1035 meson_vid_pll_set(priv, vid_pll_div);
1036
1037 /* Disable VCLK2 */
1038 regmap_update_bits(priv->hhi, HHI_VIID_CLK_CNTL, VCLK2_EN, 0);
1039
1040 /* Setup vid_pll to /1 */
1041 meson_vid_pll_set(priv, VID_PLL_DIV_1);
1042
1043 /* Setup the VCLK2 divider value */
1044 regmap_update_bits(priv->hhi, HHI_VIID_CLK_DIV,
1045 VCLK2_DIV_MASK, 0);
1046
1047 /* select vid_pll for vclk2 */
1048 regmap_update_bits(priv->hhi, HHI_VIID_CLK_CNTL,
1049 VCLK2_SEL_MASK, (0 << VCLK2_SEL_SHIFT));
1050
1051 /* enable vclk2 gate */
1052 regmap_update_bits(priv->hhi, HHI_VIID_CLK_CNTL, VCLK2_EN, VCLK2_EN);
1053
1054 /* select vclk2_div1 for encl */
1055 regmap_update_bits(priv->hhi, HHI_VIID_CLK_DIV,
1056 CTS_ENCL_SEL_MASK, (8 << CTS_ENCL_SEL_SHIFT));
1057
1058 /* release vclk2_div_reset and enable vclk2_div */
1059 regmap_update_bits(priv->hhi, HHI_VIID_CLK_DIV,
1060 VCLK2_DIV_EN | VCLK2_DIV_RESET, VCLK2_DIV_EN);
1061
1062 /* enable vclk2_div1 gate */
1063 regmap_update_bits(priv->hhi, HHI_VIID_CLK_CNTL,
1064 VCLK2_DIV1_EN, VCLK2_DIV1_EN);
1065
1066 /* reset vclk2 */
1067 regmap_update_bits(priv->hhi, HHI_VIID_CLK_CNTL,
1068 VCLK2_SOFT_RESET, VCLK2_SOFT_RESET);
1069 regmap_update_bits(priv->hhi, HHI_VIID_CLK_CNTL,
1070 VCLK2_SOFT_RESET, 0);
1071
1072 /* enable encl_clk */
1073 regmap_update_bits(priv->hhi, HHI_VID_CLK_CNTL2,
1074 CTS_ENCL_EN, CTS_ENCL_EN);
1075
1076 usleep_range(10000, 11000);
1077 }
1078
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[android-common:android12-5.10 10120/13830] include/trace/hooks/vmscan.h:28:1: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 2d6a43c0364d3bb0c5c00b0a32b27f4c7740e004
commit: 2699fa478d527f6fa26ef6ba6d70b704fd71841e [10120/13830] ANDROID: mm: vmscan: support equal reclaim for anon and file pages
config: x86_64-randconfig-s021-20211207 (https://download.01.org/0day-ci/archive/20211212/202112121408.Hcj902x1-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout 2699fa478d527f6fa26ef6ba6d70b704fd71841e
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/android/ drivers/media/mc/ drivers/media/v4l2-core/ drivers/pci/ net/core/ net/ipv4/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
include/trace/hooks/sched.h:322:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:322:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:322:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:326:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:326:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:326:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:333:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:333:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:333:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:337:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:337:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:337:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:341:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:341:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:341:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:345:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:345:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:345:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:349:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:349:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:349:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:369:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:369:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:369:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/gic_v3.h):
include/trace/hooks/gic_v3.h:18:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/gic_v3.h:18:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/gic_v3.h:18:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/cpufreq.h):
include/trace/hooks/cpufreq.h:27:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/cpufreq.h:27:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/cpufreq.h:27:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/mm.h):
include/trace/hooks/mm.h:19:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:19:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/mm.h:19:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/mm.h:22:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:22:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/mm.h:22:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/mm.h:25:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:25:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/mm.h:25:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/preemptirq.h):
include/trace/hooks/preemptirq.h:14:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:14:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:14:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/preemptirq.h:18:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:18:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:18:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/preemptirq.h:22:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:22:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:22:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/preemptirq.h:26:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:26:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:26:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/bug.h):
include/trace/hooks/bug.h:14:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/bug.h:14:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/bug.h:14:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/fault.h):
include/trace/hooks/fault.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:15:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/fault.h:19:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:19:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:19:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/fault.h:23:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:23:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:23:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/fault.h:27:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:27:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:27:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/cgroup.h):
include/trace/hooks/cgroup.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/cgroup.h:15:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/cgroup.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/cgroup.h:18:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/cgroup.h:18:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/cgroup.h:18:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/cgroup.h:21:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/cgroup.h:21:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/cgroup.h:21:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/traps.h):
include/trace/hooks/traps.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/traps.h:15:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/traps.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/traps.h:20:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/traps.h:20:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/traps.h:20:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/traps.h:24:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/traps.h:24:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/traps.h:24:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/typec.h):
include/trace/hooks/typec.h:32:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/typec.h:32:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/typec.h:32:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/typec.h:43:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/typec.h:43:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/typec.h:43:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/vmscan.h):
>> include/trace/hooks/vmscan.h:28:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/vmscan.h:28:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/vmscan.h:28:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
vim +28 include/trace/hooks/vmscan.h
12
13 DECLARE_HOOK(android_vh_tune_scan_type,
14 TP_PROTO(char *scan_type),
15 TP_ARGS(scan_type));
16 DECLARE_HOOK(android_vh_tune_swappiness,
17 TP_PROTO(int *swappiness),
18 TP_ARGS(swappiness));
19 DECLARE_HOOK(android_vh_shrink_slab_bypass,
20 TP_PROTO(gfp_t gfp_mask, int nid, struct mem_cgroup *memcg, int priority, bool *bypass),
21 TP_ARGS(gfp_mask, nid, memcg, priority, bypass));
22 DECLARE_HOOK(android_vh_tune_inactive_ratio,
23 TP_PROTO(unsigned long *inactive_ratio, int file),
24 TP_ARGS(inactive_ratio, file))
25 DECLARE_HOOK(android_vh_do_shrink_slab,
26 TP_PROTO(struct shrinker *shrinker, struct shrink_control *shrinkctl, int priority),
27 TP_ARGS(shrinker, shrinkctl, priority));
> 28 DECLARE_RESTRICTED_HOOK(android_rvh_set_balance_anon_file_reclaim,
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[android-common:android12-5.10 9496/13830] include/trace/hooks/gic_v3.h:18:1: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 2d6a43c0364d3bb0c5c00b0a32b27f4c7740e004
commit: 3bd9ad7eb4a7cdd14a08859a1d1edee72883dd7d [9496/13830] ANDROID: gic-v3: Change GIC v3 vendor hook to restricted
config: x86_64-randconfig-s021-20211207 (https://download.01.org/0day-ci/archive/20211212/202112121408.z4eQmKCQ-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout 3bd9ad7eb4a7cdd14a08859a1d1edee72883dd7d
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/android/ drivers/media/mc/ drivers/media/v4l2-core/ drivers/pci/ net/core/ net/ipv4/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
include/trace/hooks/sched.h:165:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:165:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:165:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:169:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:169:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:169:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:173:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:173:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:173:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:177:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:177:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:177:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:182:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:182:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:182:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:186:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:186:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:186:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:190:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:190:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:190:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:194:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:194:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:194:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:199:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:199:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:199:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:203:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:203:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:203:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:208:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:208:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:208:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:212:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:212:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:212:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:216:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:216:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:216:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:220:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:220:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:220:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:224:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:224:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:224:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:242:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:242:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:242:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:246:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:246:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:246:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:251:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:251:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:251:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:256:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:256:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:256:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:273:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:273:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:273:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:281:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:281:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:281:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:286:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:286:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:286:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:289:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:289:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:289:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:294:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:294:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:294:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:306:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:306:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:306:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:310:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:310:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:310:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:322:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:322:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:322:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:326:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:326:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:326:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:333:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:333:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:333:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:337:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:337:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:337:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:341:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:341:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:341:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:345:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:345:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:345:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:349:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:349:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:349:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/gic_v3.h):
>> include/trace/hooks/gic_v3.h:18:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/gic_v3.h:18:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/gic_v3.h:18:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/cpufreq.h):
include/trace/hooks/cpufreq.h:23:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/cpufreq.h:23:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/cpufreq.h:23:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/mm.h):
include/trace/hooks/mm.h:18:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:18:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/mm.h:18:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/mm.h:21:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:21:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/mm.h:21:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/mm.h:24:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:24:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/mm.h:24:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/preemptirq.h):
include/trace/hooks/preemptirq.h:14:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:14:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:14:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/preemptirq.h:18:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:18:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:18:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/preemptirq.h:22:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:22:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:22:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/preemptirq.h:26:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:26:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:26:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/bug.h):
include/trace/hooks/bug.h:14:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/bug.h:14:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/bug.h:14:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/fault.h):
include/trace/hooks/fault.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:15:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/fault.h:19:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:19:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:19:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/fault.h:23:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:23:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:23:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/fault.h:27:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:27:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:27:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/cgroup.h):
include/trace/hooks/cgroup.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/cgroup.h:15:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/cgroup.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/cgroup.h:18:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/cgroup.h:18:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/cgroup.h:18:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/traps.h):
include/trace/hooks/traps.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/traps.h:15:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/traps.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/traps.h:20:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/traps.h:20:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/traps.h:20:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/traps.h:24:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/traps.h:24:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/traps.h:24:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/typec.h):
include/trace/hooks/typec.h:32:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/typec.h:32:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/typec.h:32:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/typec.h:43:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/typec.h:43:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/typec.h:43:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
vim +18 include/trace/hooks/gic_v3.h
> 18 DECLARE_RESTRICTED_HOOK(android_rvh_gic_v3_set_affinity,
19 TP_PROTO(struct irq_data *d, const struct cpumask *mask_val,
20 u64 *affinity, bool force, void __iomem *base),
21 TP_ARGS(d, mask_val, affinity, force, base),
22 1);
23
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[android-common:android12-5.10 7995/13830] include/trace/hooks/cgroup.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 2d6a43c0364d3bb0c5c00b0a32b27f4c7740e004
commit: 295ce88224ff163b6632f74e2255807ae4ab6cd8 [7995/13830] ANDROID: cgroup: Add vendor hook for cpuset.
config: x86_64-randconfig-s021-20211207 (https://download.01.org/0day-ci/archive/20211212/202112121302.uuXUQcL2-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout 295ce88224ff163b6632f74e2255807ae4ab6cd8
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/android/ drivers/media/mc/ drivers/media/v4l2-core/ drivers/pci/ kernel/cgroup/ net/core/ net/ipv4/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
include/trace/hooks/sched.h:190:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:194:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:194:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:194:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:199:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:199:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:199:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:203:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:203:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:203:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:208:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:208:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:208:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:212:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:212:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:212:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:216:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:216:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:216:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:220:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:220:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:220:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:224:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:224:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:224:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:240:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:240:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:240:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:244:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:244:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:244:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:249:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:249:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:249:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:254:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:254:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:254:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:268:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:268:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:268:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:276:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:276:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:276:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:279:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:279:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:279:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:282:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:282:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:282:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:286:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:286:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:286:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:294:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:294:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:294:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/cpufreq.h):
include/trace/hooks/cpufreq.h:23:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/cpufreq.h:23:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/cpufreq.h:23:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/mm.h):
include/trace/hooks/mm.h:18:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:18:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/mm.h:18:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/mm.h:21:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:21:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/mm.h:21:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/mm.h:24:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:24:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/mm.h:24:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/preemptirq.h):
include/trace/hooks/preemptirq.h:14:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:14:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:14:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/preemptirq.h:18:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:18:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:18:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/preemptirq.h:22:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:22:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:22:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/preemptirq.h:26:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:26:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:26:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/bug.h):
include/trace/hooks/bug.h:14:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/bug.h:14:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/bug.h:14:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/fault.h):
include/trace/hooks/fault.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:15:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/fault.h:19:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:19:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:19:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/fault.h:23:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:23:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:23:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/fault.h:27:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:27:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:27:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/cgroup.h):
>> include/trace/hooks/cgroup.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/cgroup.h:15:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/cgroup.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/traps.h):
include/trace/hooks/traps.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/traps.h:15:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/traps.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/traps.h:20:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/traps.h:20:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/traps.h:20:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/traps.h:24:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/traps.h:24:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/traps.h:24:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/typec.h):
include/trace/hooks/typec.h:32:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/typec.h:32:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/typec.h:32:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/typec.h:43:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/typec.h:43:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/typec.h:43:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
vim +15 include/trace/hooks/cgroup.h
10
11 struct task_struct;
12 DECLARE_HOOK(android_vh_cgroup_set_task,
13 TP_PROTO(int ret, struct task_struct *task),
14 TP_ARGS(ret, task));
> 15 DECLARE_RESTRICTED_HOOK(android_rvh_cpuset_fork,
16 TP_PROTO(struct task_struct *p, int *inherit_cpus),
17 TP_ARGS(p, inherit_cpus), 1);
18 #endif
19
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[chrome-os:chromeos-5.15 1676/2818] fs/esdfs/file.c:382:1: error: no previous prototype for 'esdfs_read_iter'
by kernel test robot
Hi Daniel,
First bad commit (maybe != root cause):
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.15
head: b4852fbf90916fdc2f1e0e282e100f7e0e889d77
commit: e5b3b81d1d68b255b8315890a22dcf5d9cf488c6 [1676/2818] CHROMIUM: drivers: Create pkglist for configuration
config: arm-chromiumos-arm-customedconfig-chrome-os:chromeos-5.15:b4852fbf90916fdc2f1e0e282e100f7e0e889d77 (https://download.01.org/0day-ci/archive/20211212/202112121251.RqHvXrTR-lk...)
compiler: arm-linux-gnueabi-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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.15
git checkout e5b3b81d1d68b255b8315890a22dcf5d9cf488c6
# 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=arm 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 >>):
>> fs/esdfs/file.c:382:1: error: no previous prototype for 'esdfs_read_iter' [-Werror=missing-prototypes]
382 | esdfs_read_iter(struct kiocb *iocb, struct iov_iter *iter)
| ^~~~~~~~~~~~~~~
>> fs/esdfs/file.c:410:1: error: no previous prototype for 'esdfs_write_iter' [-Werror=missing-prototypes]
410 | esdfs_write_iter(struct kiocb *iocb, struct iov_iter *iter)
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
fs/esdfs/derive.c: In function 'esdfs_derive_perms':
>> fs/esdfs/derive.c:76:13: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
76 | int ret;
| ^~~
cc1: all warnings being treated as errors
vim +/esdfs_read_iter +382 fs/esdfs/file.c
1704af1484c6d2 Russ W. Knize 2013-04-07 377
1704af1484c6d2 Russ W. Knize 2013-04-07 378 /*
1704af1484c6d2 Russ W. Knize 2013-04-07 379 * Wrapfs read_iter, redirect modified iocb to lower read_iter
1704af1484c6d2 Russ W. Knize 2013-04-07 380 */
1704af1484c6d2 Russ W. Knize 2013-04-07 381 ssize_t
1704af1484c6d2 Russ W. Knize 2013-04-07 @382 esdfs_read_iter(struct kiocb *iocb, struct iov_iter *iter)
1704af1484c6d2 Russ W. Knize 2013-04-07 383 {
1704af1484c6d2 Russ W. Knize 2013-04-07 384 int err;
1704af1484c6d2 Russ W. Knize 2013-04-07 385 struct file *file = iocb->ki_filp, *lower_file;
1704af1484c6d2 Russ W. Knize 2013-04-07 386
1704af1484c6d2 Russ W. Knize 2013-04-07 387 lower_file = esdfs_lower_file(file);
1704af1484c6d2 Russ W. Knize 2013-04-07 388 if (!lower_file->f_op->read_iter) {
1704af1484c6d2 Russ W. Knize 2013-04-07 389 err = -EINVAL;
1704af1484c6d2 Russ W. Knize 2013-04-07 390 goto out;
1704af1484c6d2 Russ W. Knize 2013-04-07 391 }
1704af1484c6d2 Russ W. Knize 2013-04-07 392
1704af1484c6d2 Russ W. Knize 2013-04-07 393 get_file(lower_file); /* prevent lower_file from being released */
1704af1484c6d2 Russ W. Knize 2013-04-07 394 iocb->ki_filp = lower_file;
1704af1484c6d2 Russ W. Knize 2013-04-07 395 err = lower_file->f_op->read_iter(iocb, iter);
1704af1484c6d2 Russ W. Knize 2013-04-07 396 iocb->ki_filp = file;
1704af1484c6d2 Russ W. Knize 2013-04-07 397 fput(lower_file);
1704af1484c6d2 Russ W. Knize 2013-04-07 398 /* update upper inode atime as needed */
1704af1484c6d2 Russ W. Knize 2013-04-07 399 if (err >= 0 || err == -EIOCBQUEUED)
1704af1484c6d2 Russ W. Knize 2013-04-07 400 fsstack_copy_attr_atime(file->f_path.dentry->d_inode,
1704af1484c6d2 Russ W. Knize 2013-04-07 401 file_inode(lower_file));
1704af1484c6d2 Russ W. Knize 2013-04-07 402 out:
1704af1484c6d2 Russ W. Knize 2013-04-07 403 return err;
1704af1484c6d2 Russ W. Knize 2013-04-07 404 }
1704af1484c6d2 Russ W. Knize 2013-04-07 405
1704af1484c6d2 Russ W. Knize 2013-04-07 406 /*
1704af1484c6d2 Russ W. Knize 2013-04-07 407 * Wrapfs write_iter, redirect modified iocb to lower write_iter
1704af1484c6d2 Russ W. Knize 2013-04-07 408 */
1704af1484c6d2 Russ W. Knize 2013-04-07 409 ssize_t
1704af1484c6d2 Russ W. Knize 2013-04-07 @410 esdfs_write_iter(struct kiocb *iocb, struct iov_iter *iter)
1704af1484c6d2 Russ W. Knize 2013-04-07 411 {
1704af1484c6d2 Russ W. Knize 2013-04-07 412 int err;
1704af1484c6d2 Russ W. Knize 2013-04-07 413 struct file *file = iocb->ki_filp, *lower_file;
1704af1484c6d2 Russ W. Knize 2013-04-07 414
1704af1484c6d2 Russ W. Knize 2013-04-07 415 lower_file = esdfs_lower_file(file);
1704af1484c6d2 Russ W. Knize 2013-04-07 416 if (!lower_file->f_op->write_iter) {
1704af1484c6d2 Russ W. Knize 2013-04-07 417 err = -EINVAL;
1704af1484c6d2 Russ W. Knize 2013-04-07 418 goto out;
1704af1484c6d2 Russ W. Knize 2013-04-07 419 }
1704af1484c6d2 Russ W. Knize 2013-04-07 420
1704af1484c6d2 Russ W. Knize 2013-04-07 421 get_file(lower_file); /* prevent lower_file from being released */
1704af1484c6d2 Russ W. Knize 2013-04-07 422 iocb->ki_filp = lower_file;
1704af1484c6d2 Russ W. Knize 2013-04-07 423 err = lower_file->f_op->write_iter(iocb, iter);
1704af1484c6d2 Russ W. Knize 2013-04-07 424 iocb->ki_filp = file;
1704af1484c6d2 Russ W. Knize 2013-04-07 425 fput(lower_file);
1704af1484c6d2 Russ W. Knize 2013-04-07 426 /* update upper inode times/sizes as needed */
1704af1484c6d2 Russ W. Knize 2013-04-07 427 if (err >= 0 || err == -EIOCBQUEUED) {
1704af1484c6d2 Russ W. Knize 2013-04-07 428 fsstack_copy_inode_size(file->f_path.dentry->d_inode,
1704af1484c6d2 Russ W. Knize 2013-04-07 429 file_inode(lower_file));
1704af1484c6d2 Russ W. Knize 2013-04-07 430 fsstack_copy_attr_times(file->f_path.dentry->d_inode,
1704af1484c6d2 Russ W. Knize 2013-04-07 431 file_inode(lower_file));
1704af1484c6d2 Russ W. Knize 2013-04-07 432 }
1704af1484c6d2 Russ W. Knize 2013-04-07 433 out:
1704af1484c6d2 Russ W. Knize 2013-04-07 434 return err;
1704af1484c6d2 Russ W. Knize 2013-04-07 435 }
1704af1484c6d2 Russ W. Knize 2013-04-07 436
:::::: The code at line 382 was first introduced by commit
:::::: 1704af1484c6d2ad8e4452ecedc02acf5b764136 CHROMIUM: fs: Import esdfs code
:::::: TO: Russ W. Knize <Russ.Knize(a)motorola.com>
:::::: CC: Guenter Roeck <groeck(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
arch/arm/mach-socfpga/pm.c:75:25: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
Hi Krzysztof,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a763d5a5abd65797aec3dd1bf01fe2ccbec32967
commit: 4483397b03536506535d611b0cb28a81a69e8edf ARM: socfpga: drop ARCH_SOCFPGA
date: 9 months ago
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20211212/202112121223.N7ibZbQg-lk...)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4483397b03536506535d611b0cb28a81a69e8edf
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/mach-socfpga/ drivers/dma/ drivers/edac/ drivers/gpu/drm/msm/ drivers/gpu/drm/tegra/ drivers/interconnect/qcom/ drivers/net/ethernet/mediatek/ drivers/net/vmxnet3/ drivers/net/wireless/mediatek/mt76/mt7915/ drivers/remoteproc/ drivers/scsi/bnx2fc/ drivers/scsi/lpfc/ drivers/staging/ fs/proc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/arm/mach-socfpga/pm.c:75:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *dest @@ got void [noderef] __iomem *[assigned] suspend_ocram_base @@
arch/arm/mach-socfpga/pm.c:75:25: sparse: expected void *dest
arch/arm/mach-socfpga/pm.c:75:25: sparse: got void [noderef] __iomem *[assigned] suspend_ocram_base
--
>> drivers/edac/altera_edac.c:886:28: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *handle @@
drivers/edac/altera_edac.c:886:28: sparse: expected restricted __be32 const [usertype] *p
drivers/edac/altera_edac.c:886:28: sparse: got unsigned int const [usertype] *handle
vim +75 arch/arm/mach-socfpga/pm.c
44fd8c7d4005f6 Alan Tull 2015-06-05 24
44fd8c7d4005f6 Alan Tull 2015-06-05 25 static int socfpga_setup_ocram_self_refresh(void)
44fd8c7d4005f6 Alan Tull 2015-06-05 26 {
44fd8c7d4005f6 Alan Tull 2015-06-05 27 struct platform_device *pdev;
44fd8c7d4005f6 Alan Tull 2015-06-05 28 phys_addr_t ocram_pbase;
44fd8c7d4005f6 Alan Tull 2015-06-05 29 struct device_node *np;
44fd8c7d4005f6 Alan Tull 2015-06-05 30 struct gen_pool *ocram_pool;
44fd8c7d4005f6 Alan Tull 2015-06-05 31 unsigned long ocram_base;
44fd8c7d4005f6 Alan Tull 2015-06-05 32 void __iomem *suspend_ocram_base;
44fd8c7d4005f6 Alan Tull 2015-06-05 33 int ret = 0;
44fd8c7d4005f6 Alan Tull 2015-06-05 34
44fd8c7d4005f6 Alan Tull 2015-06-05 35 np = of_find_compatible_node(NULL, NULL, "mmio-sram");
44fd8c7d4005f6 Alan Tull 2015-06-05 36 if (!np) {
44fd8c7d4005f6 Alan Tull 2015-06-05 37 pr_err("%s: Unable to find mmio-sram in dtb\n", __func__);
44fd8c7d4005f6 Alan Tull 2015-06-05 38 return -ENODEV;
44fd8c7d4005f6 Alan Tull 2015-06-05 39 }
44fd8c7d4005f6 Alan Tull 2015-06-05 40
44fd8c7d4005f6 Alan Tull 2015-06-05 41 pdev = of_find_device_by_node(np);
44fd8c7d4005f6 Alan Tull 2015-06-05 42 if (!pdev) {
44fd8c7d4005f6 Alan Tull 2015-06-05 43 pr_warn("%s: failed to find ocram device!\n", __func__);
44fd8c7d4005f6 Alan Tull 2015-06-05 44 ret = -ENODEV;
44fd8c7d4005f6 Alan Tull 2015-06-05 45 goto put_node;
44fd8c7d4005f6 Alan Tull 2015-06-05 46 }
44fd8c7d4005f6 Alan Tull 2015-06-05 47
73858173593c31 Vladimir Zapolskiy 2015-09-04 48 ocram_pool = gen_pool_get(&pdev->dev, NULL);
44fd8c7d4005f6 Alan Tull 2015-06-05 49 if (!ocram_pool) {
44fd8c7d4005f6 Alan Tull 2015-06-05 50 pr_warn("%s: ocram pool unavailable!\n", __func__);
44fd8c7d4005f6 Alan Tull 2015-06-05 51 ret = -ENODEV;
3ad7b4e8f89d6b Yu Kuai 2020-07-21 52 goto put_device;
44fd8c7d4005f6 Alan Tull 2015-06-05 53 }
44fd8c7d4005f6 Alan Tull 2015-06-05 54
44fd8c7d4005f6 Alan Tull 2015-06-05 55 ocram_base = gen_pool_alloc(ocram_pool, socfpga_sdram_self_refresh_sz);
44fd8c7d4005f6 Alan Tull 2015-06-05 56 if (!ocram_base) {
44fd8c7d4005f6 Alan Tull 2015-06-05 57 pr_warn("%s: unable to alloc ocram!\n", __func__);
44fd8c7d4005f6 Alan Tull 2015-06-05 58 ret = -ENOMEM;
3ad7b4e8f89d6b Yu Kuai 2020-07-21 59 goto put_device;
44fd8c7d4005f6 Alan Tull 2015-06-05 60 }
44fd8c7d4005f6 Alan Tull 2015-06-05 61
44fd8c7d4005f6 Alan Tull 2015-06-05 62 ocram_pbase = gen_pool_virt_to_phys(ocram_pool, ocram_base);
44fd8c7d4005f6 Alan Tull 2015-06-05 63
44fd8c7d4005f6 Alan Tull 2015-06-05 64 suspend_ocram_base = __arm_ioremap_exec(ocram_pbase,
44fd8c7d4005f6 Alan Tull 2015-06-05 65 socfpga_sdram_self_refresh_sz,
44fd8c7d4005f6 Alan Tull 2015-06-05 66 false);
44fd8c7d4005f6 Alan Tull 2015-06-05 67 if (!suspend_ocram_base) {
44fd8c7d4005f6 Alan Tull 2015-06-05 68 pr_warn("%s: __arm_ioremap_exec failed!\n", __func__);
44fd8c7d4005f6 Alan Tull 2015-06-05 69 ret = -ENOMEM;
3ad7b4e8f89d6b Yu Kuai 2020-07-21 70 goto put_device;
44fd8c7d4005f6 Alan Tull 2015-06-05 71 }
44fd8c7d4005f6 Alan Tull 2015-06-05 72
44fd8c7d4005f6 Alan Tull 2015-06-05 73 /* Copy the code that puts DDR in self refresh to ocram */
44fd8c7d4005f6 Alan Tull 2015-06-05 74 socfpga_sdram_self_refresh_in_ocram =
44fd8c7d4005f6 Alan Tull 2015-06-05 @75 (void *)fncpy(suspend_ocram_base,
44fd8c7d4005f6 Alan Tull 2015-06-05 76 &socfpga_sdram_self_refresh,
44fd8c7d4005f6 Alan Tull 2015-06-05 77 socfpga_sdram_self_refresh_sz);
44fd8c7d4005f6 Alan Tull 2015-06-05 78
44fd8c7d4005f6 Alan Tull 2015-06-05 79 WARN(!socfpga_sdram_self_refresh_in_ocram,
44fd8c7d4005f6 Alan Tull 2015-06-05 80 "could not copy function to ocram");
44fd8c7d4005f6 Alan Tull 2015-06-05 81 if (!socfpga_sdram_self_refresh_in_ocram)
44fd8c7d4005f6 Alan Tull 2015-06-05 82 ret = -EFAULT;
44fd8c7d4005f6 Alan Tull 2015-06-05 83
3ad7b4e8f89d6b Yu Kuai 2020-07-21 84 put_device:
3ad7b4e8f89d6b Yu Kuai 2020-07-21 85 put_device(&pdev->dev);
44fd8c7d4005f6 Alan Tull 2015-06-05 86 put_node:
44fd8c7d4005f6 Alan Tull 2015-06-05 87 of_node_put(np);
44fd8c7d4005f6 Alan Tull 2015-06-05 88
44fd8c7d4005f6 Alan Tull 2015-06-05 89 return ret;
44fd8c7d4005f6 Alan Tull 2015-06-05 90 }
44fd8c7d4005f6 Alan Tull 2015-06-05 91
:::::: The code at line 75 was first introduced by commit
:::::: 44fd8c7d4005f660f48679439f0a54225ba234a4 ARM: socfpga: support suspend to ram
:::::: TO: Alan Tull <atull(a)opensource.altera.com>
:::::: CC: Kevin Hilman <khilman(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[android-common:android12-5.10 7325/13830] kernel/tracepoint.c:683:27: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 2d6a43c0364d3bb0c5c00b0a32b27f4c7740e004
commit: cc6eed90a467a413b9c62fdd76e8f06347266a88 [7325/13830] ANDROID: vendor_hooks: Allow multiple attachments to restricted hooks
config: x86_64-randconfig-s021-20211207 (https://download.01.org/0day-ci/archive/20211212/202112121232.EcEv8ckj-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout cc6eed90a467a413b9c62fdd76e8f06347266a88
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> kernel/tracepoint.c:683:27: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func [noderef] __rcu *funcs @@ got void * @@
kernel/tracepoint.c:683:27: sparse: expected struct tracepoint_func [noderef] __rcu *funcs
kernel/tracepoint.c:683:27: sparse: got void *
>> kernel/tracepoint.c:692:25: sparse: sparse: cast removes address space '__rcu' of expression
>> kernel/tracepoint.c:714:38: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct tracepoint_func *tp_funcs @@ got struct tracepoint_func [noderef] __rcu *funcs @@
kernel/tracepoint.c:714:38: sparse: expected struct tracepoint_func *tp_funcs
kernel/tracepoint.c:714:38: sparse: got struct tracepoint_func [noderef] __rcu *funcs
>> kernel/tracepoint.c:689:31: sparse: sparse: dereference of noderef expression
kernel/tracepoint.c:691:42: sparse: sparse: dereference of noderef expression
vim +683 kernel/tracepoint.c
675
676 #define ANDROID_RVH_NR_PROBES_MAX 2
677 static int rvh_func_add(struct tracepoint *tp, struct tracepoint_func *func)
678 {
679 int i;
680
681 if (!static_key_enabled(&tp->key)) {
682 /* '+ 1' for the last NULL element */
> 683 tp->funcs = rvh_zalloc_funcs(ANDROID_RVH_NR_PROBES_MAX + 1);
684 if (!tp->funcs)
685 return ENOMEM;
686 }
687
688 for (i = 0; i < ANDROID_RVH_NR_PROBES_MAX; i++) {
> 689 if (!tp->funcs[i].func) {
690 if (!static_key_enabled(&tp->key))
691 tp->funcs[i].data = func->data;
> 692 WRITE_ONCE(tp->funcs[i].func, func->func);
693
694 return 0;
695 }
696 }
697
698 return -EBUSY;
699 }
700
701 static int android_rvh_add_func(struct tracepoint *tp, struct tracepoint_func *func)
702 {
703 int ret;
704
705 if (tp->regfunc && !static_key_enabled(&tp->key)) {
706 ret = tp->regfunc();
707 if (ret < 0)
708 return ret;
709 }
710
711 ret = rvh_func_add(tp, func);
712 if (ret)
713 return ret;
> 714 tracepoint_update_call(tp, tp->funcs, false);
715 static_key_enable(&tp->key);
716
717 return 0;
718 }
719
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[chrome-os:chromeos-5.15 994/2818] drivers/input/keyboard/cros_ec_keyb.c:212:6: error: no previous prototype for 'cros_ec_keyb_bs_event'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.15
head: b4852fbf90916fdc2f1e0e282e100f7e0e889d77
commit: a3678c46956afeb8357cb08148bc1057f26f538b [994/2818] CHROMIUM: input: Add walker for buttons/switches map
config: arm-chromiumos-arm-customedconfig-chrome-os:chromeos-5.15:b4852fbf90916fdc2f1e0e282e100f7e0e889d77 (https://download.01.org/0day-ci/archive/20211212/202112121128.Wokvza3l-lk...)
compiler: arm-linux-gnueabi-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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.15
git checkout a3678c46956afeb8357cb08148bc1057f26f538b
# 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=arm 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 >>):
>> drivers/input/keyboard/cros_ec_keyb.c:212:6: error: no previous prototype for 'cros_ec_keyb_bs_event' [-Werror=missing-prototypes]
212 | void cros_ec_keyb_bs_event(struct cros_ec_keyb *ckdev,
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/input/keyboard/cros_ec_keyb.c:224:6: error: no previous prototype for 'cros_ec_keyb_bs_set' [-Werror=missing-prototypes]
224 | void cros_ec_keyb_bs_set(struct cros_ec_keyb *ckdev,
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/cros_ec_keyb_bs_event +212 drivers/input/keyboard/cros_ec_keyb.c
208
209 /**
210 * cros_ec_keyb_bs_event - Report a given button switch event
211 */
> 212 void cros_ec_keyb_bs_event(struct cros_ec_keyb *ckdev,
213 const struct cros_ec_bs_map *map,
214 u32 mask)
215 {
216 input_event(ckdev->bs_idev, map->ev_type, map->code,
217 !!(mask & BIT(map->bit)) ^ map->inverted);
218 }
219
220
221 /**
222 * cros_ec_keyb_bs_set - Set capability for a given button switch
223 */
> 224 void cros_ec_keyb_bs_set(struct cros_ec_keyb *ckdev,
225 const struct cros_ec_bs_map *map,
226 u32 mask)
227 {
228 if (mask & BIT(map->bit))
229 input_set_capability(ckdev->bs_idev, map->ev_type, map->code);
230 }
231
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week