Re: [PATCH] drivers: staging: media: atomisp: pci: css_2401_system: host: csi_rx.c: fixed a sparse warning by making undeclared symbols static
by kernel test robot
In-Reply-To: <20200714132350.naekk4zqivpuaedi@pesu-pes-edu>
References: <20200714132350.naekk4zqivpuaedi@pesu-pes-edu>
TO: B K Karthik <bkkarthik(a)pesu.pes.edu>
TO: Mauro Carvalho Chehab <mchehab(a)kernel.org>
CC: linux-media(a)vger.kernel.org
TO: Sakari Ailus <sakari.ailus(a)linux.intel.com>
TO: "Greg Kroah-Hartman" <gregkh(a)linuxfoundation.org>
TO: devel(a)driverdev.osuosl.org
TO: linux-kernel(a)vger.kernel.org
Hi K,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/B-K-Karthik/drivers-staging-medi...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git caaba08f8c0dbe5c8fcb497faa7e3b394c21ff39
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>):
>> ld.lld: error: undefined symbol: N_CSI_RX_FE_CTRL_DLANES
>>> referenced by ia_css_debug.c
>>> staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.o:(ia_css_debug_dump_isys_state) in archive drivers/built-in.a
>>> referenced by ia_css_debug.c
>>> staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.o:(ia_css_debug_dump_isys_state) in archive drivers/built-in.a
>>> referenced by ia_css_debug.c
>>> staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.o:(ia_css_debug_dump_isys_state) in archive drivers/built-in.a
>>> referenced 1 more times
--
>> ld.lld: error: undefined symbol: N_SHORT_PACKET_LUT_ENTRIES
>>> referenced by ia_css_debug.c
>>> staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.o:(ia_css_debug_dump_isys_state) in archive drivers/built-in.a
>>> referenced by ia_css_debug.c
>>> staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.o:(ia_css_debug_dump_isys_state) in archive drivers/built-in.a
>>> referenced by ia_css_debug.c
>>> staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.o:(ia_css_debug_dump_isys_state) in archive drivers/built-in.a
>>> referenced 3 more times
--
>> ld.lld: error: undefined symbol: N_LONG_PACKET_LUT_ENTRIES
>>> referenced by ia_css_debug.c
>>> staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.o:(ia_css_debug_dump_isys_state) in archive drivers/built-in.a
>>> referenced by ia_css_debug.c
>>> staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.o:(ia_css_debug_dump_isys_state) in archive drivers/built-in.a
>>> referenced by ia_css_debug.c
>>> staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.o:(ia_css_debug_dump_isys_state) in archive drivers/built-in.a
>>> referenced 3 more times
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [Intel-gfx] [PATCH] drm/i915/fbc: Limit cfb to the first 256MiB of stolen on g4x+
by kernel test robot
Hi Ville,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip v5.8-rc5 next-20200714]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Ville-Syrjala/drm-i915-fbc-Limit...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=i386
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/bits.h:6,
from include/linux/bitops.h:5,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:19,
from arch/x86/include/asm/bug.h:86,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from include/linux/io-mapping.h:10,
from drivers/gpu/drm/i915/i915_drv.h:36,
from drivers/gpu/drm/i915/display/intel_fbc.c:43:
drivers/gpu/drm/i915/display/intel_fbc.c: In function 'intel_fbc_cfb_base_max':
>> include/vdso/bits.h:7:26: warning: left shift count >= width of type [-Wshift-count-overflow]
7 | #define BIT(nr) (UL(1) << (nr))
| ^~
drivers/gpu/drm/i915/display/intel_fbc.c:432:10: note: in expansion of macro 'BIT'
432 | return BIT(32);
| ^~~
vim +7 include/vdso/bits.h
3945ff37d2f48d Vincenzo Frascino 2020-03-20 6
3945ff37d2f48d Vincenzo Frascino 2020-03-20 @7 #define BIT(nr) (UL(1) << (nr))
3945ff37d2f48d Vincenzo Frascino 2020-03-20 8
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[brauner:mount_setattr 3/4] ./usr/include/linux/mount.h:124:2: error: unknown type name '__u64'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git mount_setattr
head: 604fb5cc1864b64fb74c76679f3d099552210cfd
commit: ae04f172df5d207dbf185c2ae5c293306ca6a143 [3/4] fs: add mount_setattr()
config: x86_64-randconfig-s021-20200714 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-41-g14e84ffc-dirty
git checkout ae04f172df5d207dbf185c2ae5c293306ca6a143
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
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 >>):
In file included from <command-line>:32:
>> ./usr/include/linux/mount.h:124:2: error: unknown type name '__u64'
124 | __u64 attr_set;
| ^~~~~
./usr/include/linux/mount.h:125:2: error: unknown type name '__u64'
125 | __u64 attr_clr;
| ^~~~~
>> ./usr/include/linux/mount.h:126:2: error: unknown type name '__u32'
126 | __u32 propagation;
| ^~~~~
./usr/include/linux/mount.h:127:2: error: unknown type name '__u32'
127 | __u32 atime;
| ^~~~~
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[peterz-queue:sched/wip 9/13] kernel//rcu/tree.c:1292:4: error: implicit declaration of function 'irq_work_queue_on'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/wip
head: edd802a64c93706df4fae4a89f8e1a204bf705ea
commit: 1827ed53b4b8de9d5a215cf55d6b2c5315b14ff2 [9/13] irq_work: Provide irq_work_queue_remote()
config: s390-allnoconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 1827ed53b4b8de9d5a215cf55d6b2c5315b14ff2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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//rcu/tree.c: In function 'rcu_implicit_dynticks_qs':
>> kernel//rcu/tree.c:1292:4: error: implicit declaration of function 'irq_work_queue_on'; did you mean 'irq_work_queue_remote'? [-Werror=implicit-function-declaration]
1292 | irq_work_queue_on(&rdp->rcu_iw, rdp->cpu);
| ^~~~~~~~~~~~~~~~~
| irq_work_queue_remote
cc1: some warnings being treated as errors
vim +1292 kernel//rcu/tree.c
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1184
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1185 /*
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1186 * Return true if the specified CPU has passed through a quiescent
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1187 * state by virtue of being in or having passed through an dynticks
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1188 * idle state since the last call to dyntick_save_progress_counter()
a82dcc76021e22 kernel/rcutree.c Paul E. McKenney 2012-08-01 1189 * for this same CPU, or by virtue of having been offline.
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1190 */
fe5ac724d81a3c kernel/rcu/tree.c Paul E. McKenney 2017-05-11 1191 static int rcu_implicit_dynticks_qs(struct rcu_data *rdp)
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1192 {
3a19b46a5c17b1 kernel/rcu/tree.c Paul E. McKenney 2016-11-30 1193 unsigned long jtsq;
0f9be8cabbc343 kernel/rcu/tree.c Paul E. McKenney 2017-01-27 1194 bool *rnhqp;
9226b10d78ffe7 kernel/rcu/tree.c Paul E. McKenney 2017-01-27 1195 bool *ruqp;
9b9500da815027 kernel/rcu/tree.c Paul E. McKenney 2017-08-17 1196 struct rcu_node *rnp = rdp->mynode;
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1197
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1198 /*
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1199 * If the CPU passed through or entered a dynticks idle phase with
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1200 * no active irq/NMI handlers, then we can safely pretend that the CPU
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1201 * already acknowledged the request to pass through a quiescent
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1202 * state. Either way, that CPU cannot possibly be in an RCU
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1203 * read-side critical section that started before the beginning
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1204 * of the current RCU grace period.
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1205 */
dc5a4f2932f185 kernel/rcu/tree.c Paul E. McKenney 2018-08-03 1206 if (rcu_dynticks_in_eqs_since(rdp, rdp->dynticks_snap)) {
88d1bead858d88 kernel/rcu/tree.c Paul E. McKenney 2018-07-04 1207 trace_rcu_fqs(rcu_state.name, rdp->gp_seq, rdp->cpu, TPS("dti"));
9b9500da815027 kernel/rcu/tree.c Paul E. McKenney 2017-08-17 1208 rcu_gpnum_ovf(rnp, rdp);
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1209 return 1;
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1210 }
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1211
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1212 /* If waiting too long on an offline CPU, complain. */
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1213 if (!(rdp->grpmask & rcu_rnp_online_cpus(rnp)) &&
88d1bead858d88 kernel/rcu/tree.c Paul E. McKenney 2018-07-04 1214 time_after(jiffies, rcu_state.gp_start + HZ)) {
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1215 bool onl;
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1216 struct rcu_node *rnp1;
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1217
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1218 WARN_ON(1); /* Offline CPUs are supposed to report QS! */
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1219 pr_info("%s: grp: %d-%d level: %d ->gp_seq %ld ->completedqs %ld\n",
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1220 __func__, rnp->grplo, rnp->grphi, rnp->level,
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1221 (long)rnp->gp_seq, (long)rnp->completedqs);
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1222 for (rnp1 = rnp; rnp1; rnp1 = rnp1->parent)
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1223 pr_info("%s: %d:%d ->qsmask %#lx ->qsmaskinit %#lx ->qsmaskinitnext %#lx ->rcu_gp_init_mask %#lx\n",
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1224 __func__, rnp1->grplo, rnp1->grphi, rnp1->qsmask, rnp1->qsmaskinit, rnp1->qsmaskinitnext, rnp1->rcu_gp_init_mask);
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1225 onl = !!(rdp->grpmask & rcu_rnp_online_cpus(rnp));
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1226 pr_info("%s %d: %c online: %ld(%d) offline: %ld(%d)\n",
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1227 __func__, rdp->cpu, ".o"[onl],
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1228 (long)rdp->rcu_onl_gp_seq, rdp->rcu_onl_gp_flags,
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1229 (long)rdp->rcu_ofl_gp_seq, rdp->rcu_ofl_gp_flags);
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1230 return 1; /* Break things loose after complaining. */
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1231 }
f2e2df59786d7b kernel/rcu/tree.c Paul E. McKenney 2018-05-15 1232
65d798f0f9339a kernel/rcutree.c Paul E. McKenney 2013-04-12 1233 /*
4a81e8328d3791 kernel/rcu/tree.c Paul E. McKenney 2014-06-20 1234 * A CPU running for an extended time within the kernel can
c06aed0e31008a kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1235 * delay RCU grace periods: (1) At age jiffies_to_sched_qs,
c06aed0e31008a kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1236 * set .rcu_urgent_qs, (2) At age 2*jiffies_to_sched_qs, set
7e28c5af4ef6b5 kernel/rcu/tree.c Paul E. McKenney 2018-07-11 1237 * both .rcu_need_heavy_qs and .rcu_urgent_qs. Note that the
7e28c5af4ef6b5 kernel/rcu/tree.c Paul E. McKenney 2018-07-11 1238 * unsynchronized assignments to the per-CPU rcu_need_heavy_qs
7e28c5af4ef6b5 kernel/rcu/tree.c Paul E. McKenney 2018-07-11 1239 * variable are safe because the assignments are repeated if this
7e28c5af4ef6b5 kernel/rcu/tree.c Paul E. McKenney 2018-07-11 1240 * CPU failed to pass through a quiescent state. This code
c06aed0e31008a kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1241 * also checks .jiffies_resched in case jiffies_to_sched_qs
7e28c5af4ef6b5 kernel/rcu/tree.c Paul E. McKenney 2018-07-11 1242 * is set way high.
4a81e8328d3791 kernel/rcu/tree.c Paul E. McKenney 2014-06-20 1243 */
c06aed0e31008a kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1244 jtsq = READ_ONCE(jiffies_to_sched_qs);
2dba13f0b6c2b2 kernel/rcu/tree.c Paul E. McKenney 2018-08-03 1245 ruqp = per_cpu_ptr(&rcu_data.rcu_urgent_qs, rdp->cpu);
2dba13f0b6c2b2 kernel/rcu/tree.c Paul E. McKenney 2018-08-03 1246 rnhqp = &per_cpu(rcu_data.rcu_need_heavy_qs, rdp->cpu);
0f9be8cabbc343 kernel/rcu/tree.c Paul E. McKenney 2017-01-27 1247 if (!READ_ONCE(*rnhqp) &&
7e28c5af4ef6b5 kernel/rcu/tree.c Paul E. McKenney 2018-07-11 1248 (time_after(jiffies, rcu_state.gp_start + jtsq * 2) ||
b2b00ddf193bf8 kernel/rcu/tree.c Paul E. McKenney 2019-10-30 1249 time_after(jiffies, rcu_state.jiffies_resched) ||
b2b00ddf193bf8 kernel/rcu/tree.c Paul E. McKenney 2019-10-30 1250 rcu_state.cbovld)) {
0f9be8cabbc343 kernel/rcu/tree.c Paul E. McKenney 2017-01-27 1251 WRITE_ONCE(*rnhqp, true);
9226b10d78ffe7 kernel/rcu/tree.c Paul E. McKenney 2017-01-27 1252 /* Store rcu_need_heavy_qs before rcu_urgent_qs. */
9226b10d78ffe7 kernel/rcu/tree.c Paul E. McKenney 2017-01-27 1253 smp_store_release(ruqp, true);
7e28c5af4ef6b5 kernel/rcu/tree.c Paul E. McKenney 2018-07-11 1254 } else if (time_after(jiffies, rcu_state.gp_start + jtsq)) {
7e28c5af4ef6b5 kernel/rcu/tree.c Paul E. McKenney 2018-07-11 1255 WRITE_ONCE(*ruqp, true);
6193c76aba8ec3 kernel/rcu/tree.c Paul E. McKenney 2013-09-23 1256 }
6193c76aba8ec3 kernel/rcu/tree.c Paul E. McKenney 2013-09-23 1257
28053bc72c0e58 kernel/rcu/tree.c Paul E. McKenney 2016-12-01 1258 /*
c98cac603f1ce7 kernel/rcu/tree.c Paul E. McKenney 2018-11-21 1259 * NO_HZ_FULL CPUs can run in-kernel without rcu_sched_clock_irq!
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1260 * The above code handles this, but only for straight cond_resched().
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1261 * And some in-kernel loops check need_resched() before calling
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1262 * cond_resched(), which defeats the above code for CPUs that are
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1263 * running in-kernel with scheduling-clock interrupts disabled.
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1264 * So hit them over the head with the resched_cpu() hammer!
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1265 */
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1266 if (tick_nohz_full_cpu(rdp->cpu) &&
b2b00ddf193bf8 kernel/rcu/tree.c Paul E. McKenney 2019-10-30 1267 (time_after(jiffies, READ_ONCE(rdp->last_fqs_resched) + jtsq * 3) ||
b2b00ddf193bf8 kernel/rcu/tree.c Paul E. McKenney 2019-10-30 1268 rcu_state.cbovld)) {
05ef9e9eb3dade kernel/rcu/tree.c Joel Fernandes (Google 2019-08-15 1269) WRITE_ONCE(*ruqp, true);
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1270 resched_cpu(rdp->cpu);
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1271 WRITE_ONCE(rdp->last_fqs_resched, jiffies);
6193c76aba8ec3 kernel/rcu/tree.c Paul E. McKenney 2013-09-23 1272 }
6193c76aba8ec3 kernel/rcu/tree.c Paul E. McKenney 2013-09-23 1273
28053bc72c0e58 kernel/rcu/tree.c Paul E. McKenney 2016-12-01 1274 /*
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1275 * If more than halfway to RCU CPU stall-warning time, invoke
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1276 * resched_cpu() more frequently to try to loosen things up a bit.
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1277 * Also check to see if the CPU is getting hammered with interrupts,
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1278 * but only once per grace period, just to keep the IPIs down to
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1279 * a dull roar.
28053bc72c0e58 kernel/rcu/tree.c Paul E. McKenney 2016-12-01 1280 */
7e28c5af4ef6b5 kernel/rcu/tree.c Paul E. McKenney 2018-07-11 1281 if (time_after(jiffies, rcu_state.jiffies_resched)) {
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1282 if (time_after(jiffies,
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1283 READ_ONCE(rdp->last_fqs_resched) + jtsq)) {
28053bc72c0e58 kernel/rcu/tree.c Paul E. McKenney 2016-12-01 1284 resched_cpu(rdp->cpu);
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1285 WRITE_ONCE(rdp->last_fqs_resched, jiffies);
d3052109c0bc9e kernel/rcu/tree.c Paul E. McKenney 2018-07-25 1286 }
9b9500da815027 kernel/rcu/tree.c Paul E. McKenney 2017-08-17 1287 if (IS_ENABLED(CONFIG_IRQ_WORK) &&
8aa670cdacc182 kernel/rcu/tree.c Paul E. McKenney 2018-04-28 1288 !rdp->rcu_iw_pending && rdp->rcu_iw_gp_seq != rnp->gp_seq &&
9b9500da815027 kernel/rcu/tree.c Paul E. McKenney 2017-08-17 1289 (rnp->ffmask & rdp->grpmask)) {
9b9500da815027 kernel/rcu/tree.c Paul E. McKenney 2017-08-17 1290 rdp->rcu_iw_pending = true;
8aa670cdacc182 kernel/rcu/tree.c Paul E. McKenney 2018-04-28 1291 rdp->rcu_iw_gp_seq = rnp->gp_seq;
9b9500da815027 kernel/rcu/tree.c Paul E. McKenney 2017-08-17 @1292 irq_work_queue_on(&rdp->rcu_iw, rdp->cpu);
9b9500da815027 kernel/rcu/tree.c Paul E. McKenney 2017-08-17 1293 }
9b9500da815027 kernel/rcu/tree.c Paul E. McKenney 2017-08-17 1294 }
4914950aaa12de kernel/rcu/tree.c Paul E. McKenney 2015-12-11 1295
a82dcc76021e22 kernel/rcutree.c Paul E. McKenney 2012-08-01 1296 return 0;
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1297 }
64db4cfff99c04 kernel/rcutree.c Paul E. McKenney 2008-12-18 1298
:::::: The code at line 1292 was first introduced by commit
:::::: 9b9500da81502738efa1b485a8835f174ff7be6d rcu: Make RCU CPU stall warnings check for irq-disabled CPUs
:::::: TO: Paul E. McKenney <paulmck(a)linux.vnet.ibm.com>
:::::: CC: Paul E. McKenney <paulmck(a)linux.vnet.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[linux-next:master 3856/7832] arch/arc/include/asm/bug.h:22:2: error: implicit declaration of function 'pr_warn'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5fb3d60423873c969058f16b94bca3ef304a68fb
commit: 55084d7f4022439de3077b239eed1eb7515fe3ed [3856/7832] drm/amd/powerplay: forbid to use pr_err/warn/info/debug
config: arc-randconfig-r005-20200714 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 55084d7f4022439de3077b239eed1eb7515fe3ed
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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 >>):
In file included from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/firmware.h:7,
from drivers/gpu/drm/amd/amdgpu/../powerplay/smu_v11_0.c:23:
drivers/gpu/drm/amd/amdgpu/../powerplay/smu_v11_0.c: In function 'smu_v11_0_init_microcode':
>> arch/arc/include/asm/bug.h:22:2: error: implicit declaration of function 'pr_warn'; did you mean 'pci_warn'? [-Werror=implicit-function-declaration]
22 | pr_warn("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \
| ^~~~~~~
drivers/gpu/drm/amd/amdgpu/../powerplay/smu_v11_0.c:176:3: note: in expansion of macro 'BUG'
176 | BUG();
| ^~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/smu_v11_0.c:30:
At top level:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:190:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
190 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/../powerplay/smu_v11_0.c:30:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../powerplay/arcturus_ppt.c: In function 'arcturus_is_dpm_running':
drivers/gpu/drm/amd/amdgpu/../powerplay/arcturus_ppt.c:2112:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
2112 | int ret = 0;
| ^~~
In file included from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/firmware.h:7,
from drivers/gpu/drm/amd/amdgpu/../powerplay/arcturus_ppt.c:24:
drivers/gpu/drm/amd/amdgpu/../powerplay/arcturus_ppt.c: In function 'arcturus_fill_eeprom_i2c_req':
>> arch/arc/include/asm/bug.h:22:2: error: implicit declaration of function 'pr_warn'; did you mean 'pci_warn'? [-Werror=implicit-function-declaration]
22 | pr_warn("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \
| ^~~~~~~
include/asm-generic/bug.h:62:57: note: in expansion of macro 'BUG'
62 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
| ^~~
drivers/gpu/drm/amd/amdgpu/../powerplay/arcturus_ppt.c:2157:2: note: in expansion of macro 'BUG_ON'
2157 | BUG_ON(numbytes > MAX_SW_I2C_COMMANDS);
| ^~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/arcturus_ppt.c:30:
At top level:
drivers/gpu/drm/amd/amdgpu/../powerplay/inc/smu_v11_0.h:68:43: warning: 'smu11_thermal_policy' defined but not used [-Wunused-const-variable=]
68 | static const struct smu_temperature_range smu11_thermal_policy[] =
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/arcturus_ppt.c:25:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:190:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
190 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/../powerplay/arcturus_ppt.c:25:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +22 arch/arc/include/asm/bug.h
3be80aaef861a6 Vineet Gupta 2013-01-18 20
3be80aaef861a6 Vineet Gupta 2013-01-18 21 #define BUG() do { \
3872d05299b5ab Vineet Gupta 2014-09-24 @22 pr_warn("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \
173a3efd3edb2e Arnd Bergmann 2018-02-21 23 barrier_before_unreachable(); \
173a3efd3edb2e Arnd Bergmann 2018-02-21 24 __builtin_trap(); \
3be80aaef861a6 Vineet Gupta 2013-01-18 25 } while (0)
3be80aaef861a6 Vineet Gupta 2013-01-18 26
:::::: The code at line 22 was first introduced by commit
:::::: 3872d05299b5ab58446f484df18f71cab4628c50 ARC: BUG() dumps stack after @msg (@msg now same as in generic BUG))
:::::: TO: Vineet Gupta <vgupta(a)synopsys.com>
:::::: CC: Vineet Gupta <vgupta(a)synopsys.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH 1/2] mm: pgtable: Make generic pgprot_* macros available for no-MMU
by kernel test robot
Hi Pekka,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.8-rc5 next-20200714]
[cannot apply to mmotm/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Pekka-Enberg/mm-pgtable-Make-gen...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 0dc589da873b58b70f4caf4b070fb0cf70fdd1dc
config: arm-randconfig-r033-20200714 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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 >>):
In file included from include/linux/mm.h:32,
from include/linux/scatterlist.h:8,
from include/linux/dma-mapping.h:11,
from drivers/gpu/drm/tilcdc/tilcdc_crtc.c:8:
include/linux/pgtable.h: In function 'pgprot_modify':
>> include/linux/pgtable.h:834:26: error: self-comparison always evaluates to true [-Werror=tautological-compare]
834 | if (pgprot_val(oldprot) == pgprot_val(pgprot_noncached(oldprot)))
| ^~
include/linux/pgtable.h:836:26: error: self-comparison always evaluates to true [-Werror=tautological-compare]
836 | if (pgprot_val(oldprot) == pgprot_val(pgprot_writecombine(oldprot)))
| ^~
include/linux/pgtable.h:838:26: error: self-comparison always evaluates to true [-Werror=tautological-compare]
838 | if (pgprot_val(oldprot) == pgprot_val(pgprot_device(oldprot)))
| ^~
cc1: all warnings being treated as errors
vim +834 include/linux/pgtable.h
829
830 #ifndef pgprot_modify
831 #define pgprot_modify pgprot_modify
832 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)
833 {
> 834 if (pgprot_val(oldprot) == pgprot_val(pgprot_noncached(oldprot)))
835 newprot = pgprot_noncached(newprot);
836 if (pgprot_val(oldprot) == pgprot_val(pgprot_writecombine(oldprot)))
837 newprot = pgprot_writecombine(newprot);
838 if (pgprot_val(oldprot) == pgprot_val(pgprot_device(oldprot)))
839 newprot = pgprot_device(newprot);
840 return newprot;
841 }
842 #endif
843
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[tegra:for-5.9/firmware 4/5] drivers/firmware/tegra/bpmp-debugfs.c:422:4: warning: 'strncat' output truncated before terminating nul copying as many bytes from a string as its length
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-5.9/firmware
head: 4e87189912bd2167998d82c95bb68f73185069e2
commit: 5e37b9c137ee5a3a9dc2815ca51f71746c2609a6 [4/5] firmware: tegra: Add support for in-band debug
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5e37b9c137ee5a3a9dc2815ca51f71746c2609a6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
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/firmware/tegra/bpmp-debugfs.c: In function 'bpmp_populate_debugfs_inband':
>> drivers/firmware/tegra/bpmp-debugfs.c:422:4: warning: 'strncat' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
422 | strncat(pathbuf, name, strlen(name));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/strncat +422 drivers/firmware/tegra/bpmp-debugfs.c
364
365 static int bpmp_populate_debugfs_inband(struct tegra_bpmp *bpmp,
366 struct dentry *parent,
367 char *ppath)
368 {
369 const size_t pathlen = SZ_256;
370 const size_t bufsize = SZ_16K;
371 uint32_t dsize, attrs = 0;
372 struct dentry *dentry;
373 struct seqbuf seqbuf;
374 char *buf, *pathbuf;
375 const char *name;
376 int err = 0;
377
378 if (!bpmp || !parent || !ppath)
379 return -EINVAL;
380
381 buf = kmalloc(bufsize, GFP_KERNEL);
382 if (!buf)
383 return -ENOMEM;
384
385 pathbuf = kzalloc(pathlen, GFP_KERNEL);
386 if (!pathbuf) {
387 kfree(buf);
388 return -ENOMEM;
389 }
390
391 err = mrq_debug_read(bpmp, ppath, buf, bufsize, &dsize);
392 if (err)
393 goto out;
394
395 seqbuf_init(&seqbuf, buf, dsize);
396
397 while (!seqbuf_eof(&seqbuf)) {
398 err = seqbuf_read_u32(&seqbuf, &attrs);
399 if (err)
400 goto out;
401
402 err = seqbuf_read_str(&seqbuf, &name);
403 if (err < 0)
404 goto out;
405
406 if (attrs & DEBUGFS_S_ISDIR) {
407 size_t len;
408
409 dentry = debugfs_create_dir(name, parent);
410 if (IS_ERR(dentry)) {
411 err = PTR_ERR(dentry);
412 goto out;
413 }
414
415 len = strlen(ppath) + strlen(name) + 1;
416 if (len >= pathlen) {
417 err = -EINVAL;
418 goto out;
419 }
420
421 strncpy(pathbuf, ppath, pathlen);
> 422 strncat(pathbuf, name, strlen(name));
423 strcat(pathbuf, "/");
424
425 err = bpmp_populate_debugfs_inband(bpmp, dentry,
426 pathbuf);
427 if (err < 0)
428 goto out;
429 } else {
430 umode_t mode;
431
432 mode = attrs & DEBUGFS_S_IRUSR ? 0400 : 0;
433 mode |= attrs & DEBUGFS_S_IWUSR ? 0200 : 0;
434 dentry = debugfs_create_file(name, mode, parent, bpmp,
435 &bpmp_debug_fops);
436 if (!dentry) {
437 err = -ENOMEM;
438 goto out;
439 }
440 }
441 }
442
443 out:
444 kfree(pathbuf);
445 kfree(buf);
446
447 return err;
448 }
449
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[linux-next:master 6540/7824] net/xfrm/xfrm_interface.c:900: undefined reference to `xfrm4_tunnel_deregister'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: be978f8feb1d4678b941a3ccf181eea1039110e2
commit: da9bbf0598c9e66b8a46ceabaa6172596795acf2 [6540/7824] xfrm: interface: support IPIP and IPIP6 tunnels processing with .cb_handler
config: ia64-randconfig-r002-20200713 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout da9bbf0598c9e66b8a46ceabaa6172596795acf2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ia64-linux-ld: arch/ia64/kernel/elfcore.o: in function `elf_core_write_extra_phdrs':
arch/ia64/kernel/elfcore.c:22: undefined reference to `dump_emit'
ia64-linux-ld: arch/ia64/kernel/elfcore.o: in function `elf_core_write_extra_data':
arch/ia64/kernel/elfcore.c:55: undefined reference to `dump_emit'
ia64-linux-ld: net/xfrm/xfrm_interface.o: in function `xfrmi4_fini':
>> net/xfrm/xfrm_interface.c:900: undefined reference to `xfrm4_tunnel_deregister'
>> ia64-linux-ld: net/xfrm/xfrm_interface.c:901: undefined reference to `xfrm4_tunnel_deregister'
ia64-linux-ld: net/xfrm/xfrm_interface.o: in function `xfrmi4_init':
>> net/xfrm/xfrm_interface.c:873: undefined reference to `xfrm4_tunnel_register'
>> ia64-linux-ld: net/xfrm/xfrm_interface.c:876: undefined reference to `xfrm4_tunnel_register'
ia64-linux-ld: net/xfrm/xfrm_interface.c:885: undefined reference to `xfrm4_tunnel_deregister'
vim +900 net/xfrm/xfrm_interface.c
858
859 static int __init xfrmi4_init(void)
860 {
861 int err;
862
863 err = xfrm4_protocol_register(&xfrmi_esp4_protocol, IPPROTO_ESP);
864 if (err < 0)
865 goto xfrm_proto_esp_failed;
866 err = xfrm4_protocol_register(&xfrmi_ah4_protocol, IPPROTO_AH);
867 if (err < 0)
868 goto xfrm_proto_ah_failed;
869 err = xfrm4_protocol_register(&xfrmi_ipcomp4_protocol, IPPROTO_COMP);
870 if (err < 0)
871 goto xfrm_proto_comp_failed;
872 #if IS_ENABLED(CONFIG_INET_XFRM_TUNNEL)
> 873 err = xfrm4_tunnel_register(&xfrmi_ipip_handler, AF_INET);
874 if (err < 0)
875 goto xfrm_tunnel_ipip_failed;
> 876 err = xfrm4_tunnel_register(&xfrmi_ipip_handler, AF_INET6);
877 if (err < 0)
878 goto xfrm_tunnel_ipip6_failed;
879 #endif
880
881 return 0;
882
883 #if IS_ENABLED(CONFIG_INET_XFRM_TUNNEL)
884 xfrm_tunnel_ipip6_failed:
885 xfrm4_tunnel_deregister(&xfrmi_ipip_handler, AF_INET);
886 xfrm_tunnel_ipip_failed:
887 xfrm4_protocol_deregister(&xfrmi_ipcomp4_protocol, IPPROTO_COMP);
888 #endif
889 xfrm_proto_comp_failed:
890 xfrm4_protocol_deregister(&xfrmi_ah4_protocol, IPPROTO_AH);
891 xfrm_proto_ah_failed:
892 xfrm4_protocol_deregister(&xfrmi_esp4_protocol, IPPROTO_ESP);
893 xfrm_proto_esp_failed:
894 return err;
895 }
896
897 static void xfrmi4_fini(void)
898 {
899 #if IS_ENABLED(CONFIG_INET_XFRM_TUNNEL)
> 900 xfrm4_tunnel_deregister(&xfrmi_ipip_handler, AF_INET6);
> 901 xfrm4_tunnel_deregister(&xfrmi_ipip_handler, AF_INET);
902 #endif
903 xfrm4_protocol_deregister(&xfrmi_ipcomp4_protocol, IPPROTO_COMP);
904 xfrm4_protocol_deregister(&xfrmi_ah4_protocol, IPPROTO_AH);
905 xfrm4_protocol_deregister(&xfrmi_esp4_protocol, IPPROTO_ESP);
906 }
907
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[jirislaby:devel 19/43] arch/x86/kernel/paravirt.c:198:9: sparse: sparse: too long token expansion
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: 0894ff5eb82865f50565a1186db5970da0aa00dd
commit: 5e6fa3cf7bef3bf4d3f0564c7c27022753a43bf2 [19/43] include condition in the BUG_ON/WARN_ON output
config: i386-randconfig-s002-20200714 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-41-g14e84ffc-dirty
git checkout 5e6fa3cf7bef3bf4d3f0564c7c27022753a43bf2
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
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/x86/kernel/paravirt.c:198:9: sparse: sparse: too long token expansion
arch/x86/kernel/paravirt.c:205:9: sparse: sparse: too long token expansion
--
>> arch/x86/mm/tlb.c:304:9: sparse: sparse: too long token expansion
--
>> arch/x86/events/intel/ds.c:1680:9: sparse: sparse: too long token expansion
--
>> arch/x86/kernel/cpu/microcode/intel.c:801:13: sparse: sparse: too long token expansion
--
>> arch/x86/kernel/cpu/microcode/amd.c:678:9: sparse: sparse: too long token expansion
vim +198 arch/x86/kernel/paravirt.c
8965c1c0950d45 arch/x86/kernel/paravirt_32.c Jeremy Fitzhardinge 2007-10-16 195
8965c1c0950d45 arch/x86/kernel/paravirt_32.c Jeremy Fitzhardinge 2007-10-16 196 static inline void enter_lazy(enum paravirt_lazy_mode mode)
8965c1c0950d45 arch/x86/kernel/paravirt_32.c Jeremy Fitzhardinge 2007-10-16 197 {
c6ae41e7d469f0 arch/x86/kernel/paravirt.c Alex Shi 2012-05-11 @198 BUG_ON(this_cpu_read(paravirt_lazy_mode) != PARAVIRT_LAZY_NONE);
8965c1c0950d45 arch/x86/kernel/paravirt_32.c Jeremy Fitzhardinge 2007-10-16 199
c6ae41e7d469f0 arch/x86/kernel/paravirt.c Alex Shi 2012-05-11 200 this_cpu_write(paravirt_lazy_mode, mode);
8965c1c0950d45 arch/x86/kernel/paravirt_32.c Jeremy Fitzhardinge 2007-10-16 201 }
8965c1c0950d45 arch/x86/kernel/paravirt_32.c Jeremy Fitzhardinge 2007-10-16 202
:::::: The code at line 198 was first introduced by commit
:::::: c6ae41e7d469f00d9c92a2b2887c7235d121c009 x86: replace percpu_xxx funcs with this_cpu_xxx
:::::: TO: Alex Shi <alex.shi(a)intel.com>
:::::: CC: Tejun Heo <tj(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH v4 75/75] x86/sev-es: Check required CPU features for SEV-ES
by kernel test robot
Hi Joerg,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on v5.8-rc5]
[cannot apply to tip/x86/core kvm/linux-next tip/x86/mm next-20200714]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Joerg-Roedel/x86-SEV-ES-Guest-Su...
base: 11ba468877bb23f28956a35e896356252d63c983
config: x86_64-randconfig-s021-20200714 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-41-g14e84ffc-dirty
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/x86/boot/compressed/sev-es.c:122:
arch/x86/boot/compressed/../../kernel/sev-es-shared.c: In function 'sev_es_check_cpu_features':
>> arch/x86/boot/compressed/../../kernel/sev-es-shared.c:19:7: warning: implicit declaration of function 'has_cpuflag' [-Wimplicit-function-declaration]
19 | if (!has_cpuflag(X86_FEATURE_RDRAND)) {
| ^~~~~~~~~~~
--
ld: arch/x86/boot/compressed/sev-es.o: in function `sev_es_shutdown_ghcb':
>> sev-es.c:(.text+0xf66): undefined reference to `has_cpuflag'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months