include/linux/compiler_types.h:319:38: error: call to '__compiletime_assert_235' declared with attribute error: BUILD_BUG_ON failed: FIX_KMAP_SLOTS > PTRS_PER_PTE
by kernel test robot
Hi Thomas,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1c273e10bc0cc7efb933e0ca10e260cdfc9f0b8c
commit: 39cac191ff37939544af80d5d2af6b870fd94c9b arc/mm/highmem: Use generic kmap atomic implementation
date: 4 months ago
config: arc-randconfig-r003-20210320 (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
# 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 39cac191ff37939544af80d5d2af6b870fd94c9b
# 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 <command-line>:
arch/arc/mm/highmem.c: In function 'kmap_init':
>> include/linux/compiler_types.h:319:38: error: call to '__compiletime_assert_235' declared with attribute error: BUILD_BUG_ON failed: FIX_KMAP_SLOTS > PTRS_PER_PTE
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:300:4: note: in definition of macro '__compiletime_assert'
300 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
arch/arc/mm/highmem.c:69:2: note: in expansion of macro 'BUILD_BUG_ON'
69 | BUILD_BUG_ON(FIX_KMAP_SLOTS > PTRS_PER_PTE);
| ^~~~~~~~~~~~
vim +/__compiletime_assert_235 +319 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 305
eb5c2d4b45e3d2 Will Deacon 2020-07-21 306 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 307 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 308
eb5c2d4b45e3d2 Will Deacon 2020-07-21 309 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 310 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 311 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 312 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 313 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 314 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 315 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 316 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 317 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 318 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @319 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 320
:::::: The code at line 319 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
:::::: TO: Will Deacon <will(a)kernel.org>
:::::: CC: Will Deacon <will(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.4 82/132] drivers/gpu/drm/i915/display/intel_ddi.c:3559:2: error: implicit declaration of function 'intel_ddi_power_up_lanes'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: 6e9866706daac7dd4f69905954f8a662d7b173dd [82/132] drm/i915: Power up combo PHY lanes for for HDMI as well
config: x86_64-randconfig-a005-20210318 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 436c6c9c20cc522c92a923440a5fc509c342a7db)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 6e9866706daac7dd4f69905954f8a662d7b173dd
# 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 >>):
>> drivers/gpu/drm/i915/display/intel_ddi.c:3559:2: error: implicit declaration of function 'intel_ddi_power_up_lanes' [-Werror,-Wimplicit-function-declaration]
intel_ddi_power_up_lanes(encoder, crtc_state);
^
1 error generated.
vim +/intel_ddi_power_up_lanes +3559 drivers/gpu/drm/i915/display/intel_ddi.c
3508
3509 static void intel_enable_ddi_hdmi(struct intel_encoder *encoder,
3510 const struct intel_crtc_state *crtc_state,
3511 const struct drm_connector_state *conn_state)
3512 {
3513 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
3514 struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base);
3515 struct drm_connector *connector = conn_state->connector;
3516 enum port port = encoder->port;
3517
3518 if (!intel_hdmi_handle_sink_scrambling(encoder, connector,
3519 crtc_state->hdmi_high_tmds_clock_ratio,
3520 crtc_state->hdmi_scrambling))
3521 DRM_ERROR("[CONNECTOR:%d:%s] Failed to configure sink scrambling/TMDS bit clock ratio\n",
3522 connector->base.id, connector->name);
3523
3524 /* Display WA #1143: skl,kbl,cfl */
3525 if (IS_GEN9_BC(dev_priv)) {
3526 /*
3527 * For some reason these chicken bits have been
3528 * stuffed into a transcoder register, event though
3529 * the bits affect a specific DDI port rather than
3530 * a specific transcoder.
3531 */
3532 i915_reg_t reg = gen9_chicken_trans_reg_by_port(dev_priv, port);
3533 u32 val;
3534
3535 val = I915_READ(reg);
3536
3537 if (port == PORT_E)
3538 val |= DDIE_TRAINING_OVERRIDE_ENABLE |
3539 DDIE_TRAINING_OVERRIDE_VALUE;
3540 else
3541 val |= DDI_TRAINING_OVERRIDE_ENABLE |
3542 DDI_TRAINING_OVERRIDE_VALUE;
3543
3544 I915_WRITE(reg, val);
3545 POSTING_READ(reg);
3546
3547 udelay(1);
3548
3549 if (port == PORT_E)
3550 val &= ~(DDIE_TRAINING_OVERRIDE_ENABLE |
3551 DDIE_TRAINING_OVERRIDE_VALUE);
3552 else
3553 val &= ~(DDI_TRAINING_OVERRIDE_ENABLE |
3554 DDI_TRAINING_OVERRIDE_VALUE);
3555
3556 I915_WRITE(reg, val);
3557 }
3558
> 3559 intel_ddi_power_up_lanes(encoder, crtc_state);
3560
3561 /* In HDMI/DVI mode, the port width, and swing/emphasis values
3562 * are ignored so nothing special needs to be done besides
3563 * enabling the port.
3564 */
3565 I915_WRITE(DDI_BUF_CTL(port),
3566 dig_port->saved_port_bits | DDI_BUF_CTL_ENABLE);
3567
3568 if (crtc_state->has_audio)
3569 intel_audio_codec_enable(encoder, crtc_state, conn_state);
3570 }
3571
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[peterz-queue:sched/cleanup 4/4] kernel/rcu/tree.c:1385:5: error: implicit declaration of function 'irq_work_queue_remote'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/cleanup
head: 644dd66bc31599c1fcd32953024013020aa3a671
commit: 644dd66bc31599c1fcd32953024013020aa3a671 [4/4] rcu/tree: Use irq_work_queue_remote()
config: arm-randconfig-r023-20210318 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project fcc1ce00931751ac02498986feb37744e9ace8de)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/cleanup
git checkout 644dd66bc31599c1fcd32953024013020aa3a671
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 >>):
>> kernel/rcu/tree.c:1385:5: error: implicit declaration of function 'irq_work_queue_remote' [-Werror,-Wimplicit-function-declaration]
irq_work_queue_remote(rdp->cpu, &rdp->rcu_iw);
^
kernel/rcu/tree.c:1385:5: note: did you mean 'irq_work_queue_on'?
include/linux/irq_work.h:52:6: note: 'irq_work_queue_on' declared here
bool irq_work_queue_on(struct irq_work *work, int cpu);
^
1 error generated.
vim +/irq_work_queue_remote +1385 kernel/rcu/tree.c
1260
1261 /*
1262 * Return true if the specified CPU has passed through a quiescent
1263 * state by virtue of being in or having passed through an dynticks
1264 * idle state since the last call to dyntick_save_progress_counter()
1265 * for this same CPU, or by virtue of having been offline.
1266 */
1267 static int rcu_implicit_dynticks_qs(struct rcu_data *rdp)
1268 {
1269 unsigned long jtsq;
1270 bool *rnhqp;
1271 bool *ruqp;
1272 struct rcu_node *rnp = rdp->mynode;
1273
1274 raw_lockdep_assert_held_rcu_node(rnp);
1275
1276 /*
1277 * If the CPU passed through or entered a dynticks idle phase with
1278 * no active irq/NMI handlers, then we can safely pretend that the CPU
1279 * already acknowledged the request to pass through a quiescent
1280 * state. Either way, that CPU cannot possibly be in an RCU
1281 * read-side critical section that started before the beginning
1282 * of the current RCU grace period.
1283 */
1284 if (rcu_dynticks_in_eqs_since(rdp, rdp->dynticks_snap)) {
1285 trace_rcu_fqs(rcu_state.name, rdp->gp_seq, rdp->cpu, TPS("dti"));
1286 rcu_gpnum_ovf(rnp, rdp);
1287 return 1;
1288 }
1289
1290 /*
1291 * Complain if a CPU that is considered to be offline from RCU's
1292 * perspective has not yet reported a quiescent state. After all,
1293 * the offline CPU should have reported a quiescent state during
1294 * the CPU-offline process, or, failing that, by rcu_gp_init()
1295 * if it ran concurrently with either the CPU going offline or the
1296 * last task on a leaf rcu_node structure exiting its RCU read-side
1297 * critical section while all CPUs corresponding to that structure
1298 * are offline. This added warning detects bugs in any of these
1299 * code paths.
1300 *
1301 * The rcu_node structure's ->lock is held here, which excludes
1302 * the relevant portions the CPU-hotplug code, the grace-period
1303 * initialization code, and the rcu_read_unlock() code paths.
1304 *
1305 * For more detail, please refer to the "Hotplug CPU" section
1306 * of RCU's Requirements documentation.
1307 */
1308 if (WARN_ON_ONCE(!(rdp->grpmask & rcu_rnp_online_cpus(rnp)))) {
1309 bool onl;
1310 struct rcu_node *rnp1;
1311
1312 pr_info("%s: grp: %d-%d level: %d ->gp_seq %ld ->completedqs %ld\n",
1313 __func__, rnp->grplo, rnp->grphi, rnp->level,
1314 (long)rnp->gp_seq, (long)rnp->completedqs);
1315 for (rnp1 = rnp; rnp1; rnp1 = rnp1->parent)
1316 pr_info("%s: %d:%d ->qsmask %#lx ->qsmaskinit %#lx ->qsmaskinitnext %#lx ->rcu_gp_init_mask %#lx\n",
1317 __func__, rnp1->grplo, rnp1->grphi, rnp1->qsmask, rnp1->qsmaskinit, rnp1->qsmaskinitnext, rnp1->rcu_gp_init_mask);
1318 onl = !!(rdp->grpmask & rcu_rnp_online_cpus(rnp));
1319 pr_info("%s %d: %c online: %ld(%d) offline: %ld(%d)\n",
1320 __func__, rdp->cpu, ".o"[onl],
1321 (long)rdp->rcu_onl_gp_seq, rdp->rcu_onl_gp_flags,
1322 (long)rdp->rcu_ofl_gp_seq, rdp->rcu_ofl_gp_flags);
1323 return 1; /* Break things loose after complaining. */
1324 }
1325
1326 /*
1327 * A CPU running for an extended time within the kernel can
1328 * delay RCU grace periods: (1) At age jiffies_to_sched_qs,
1329 * set .rcu_urgent_qs, (2) At age 2*jiffies_to_sched_qs, set
1330 * both .rcu_need_heavy_qs and .rcu_urgent_qs. Note that the
1331 * unsynchronized assignments to the per-CPU rcu_need_heavy_qs
1332 * variable are safe because the assignments are repeated if this
1333 * CPU failed to pass through a quiescent state. This code
1334 * also checks .jiffies_resched in case jiffies_to_sched_qs
1335 * is set way high.
1336 */
1337 jtsq = READ_ONCE(jiffies_to_sched_qs);
1338 ruqp = per_cpu_ptr(&rcu_data.rcu_urgent_qs, rdp->cpu);
1339 rnhqp = &per_cpu(rcu_data.rcu_need_heavy_qs, rdp->cpu);
1340 if (!READ_ONCE(*rnhqp) &&
1341 (time_after(jiffies, rcu_state.gp_start + jtsq * 2) ||
1342 time_after(jiffies, rcu_state.jiffies_resched) ||
1343 rcu_state.cbovld)) {
1344 WRITE_ONCE(*rnhqp, true);
1345 /* Store rcu_need_heavy_qs before rcu_urgent_qs. */
1346 smp_store_release(ruqp, true);
1347 } else if (time_after(jiffies, rcu_state.gp_start + jtsq)) {
1348 WRITE_ONCE(*ruqp, true);
1349 }
1350
1351 /*
1352 * NO_HZ_FULL CPUs can run in-kernel without rcu_sched_clock_irq!
1353 * The above code handles this, but only for straight cond_resched().
1354 * And some in-kernel loops check need_resched() before calling
1355 * cond_resched(), which defeats the above code for CPUs that are
1356 * running in-kernel with scheduling-clock interrupts disabled.
1357 * So hit them over the head with the resched_cpu() hammer!
1358 */
1359 if (tick_nohz_full_cpu(rdp->cpu) &&
1360 (time_after(jiffies, READ_ONCE(rdp->last_fqs_resched) + jtsq * 3) ||
1361 rcu_state.cbovld)) {
1362 WRITE_ONCE(*ruqp, true);
1363 resched_cpu(rdp->cpu);
1364 WRITE_ONCE(rdp->last_fqs_resched, jiffies);
1365 }
1366
1367 /*
1368 * If more than halfway to RCU CPU stall-warning time, invoke
1369 * resched_cpu() more frequently to try to loosen things up a bit.
1370 * Also check to see if the CPU is getting hammered with interrupts,
1371 * but only once per grace period, just to keep the IPIs down to
1372 * a dull roar.
1373 */
1374 if (time_after(jiffies, rcu_state.jiffies_resched)) {
1375 if (time_after(jiffies,
1376 READ_ONCE(rdp->last_fqs_resched) + jtsq)) {
1377 resched_cpu(rdp->cpu);
1378 WRITE_ONCE(rdp->last_fqs_resched, jiffies);
1379 }
1380 if (!rdp->rcu_iw_pending && rdp->rcu_iw_gp_seq != rnp->gp_seq &&
1381 (rnp->ffmask & rdp->grpmask)) {
1382 rdp->rcu_iw_gp_seq = rnp->gp_seq;
1383 if (likely(rdp->cpu != smp_processor_id())) {
1384 rdp->rcu_iw_pending = true;
> 1385 irq_work_queue_remote(rdp->cpu, &rdp->rcu_iw);
1386 }
1387 }
1388 }
1389
1390 return 0;
1391 }
1392
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[linux-next:master 4258/5787] fs/cifsd/smbacl.c:786:6: warning: variable 'total_ace_size' set but not used
by kernel test robot
Hi Namjae,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: f00397ee41c79b6155b9b44abd0055b2c0621349
commit: 001c10aa51b4deb76eb074442ad1eac6df042f97 [4258/5787] cifsd: add Kconfig and Makefile
config: h8300-randconfig-r006-20210320 (attached as .config)
compiler: h8300-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
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 001c10aa51b4deb76eb074442ad1eac6df042f97
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
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 >>):
fs/cifsd/smbacl.c: In function 'parse_sec_desc':
>> fs/cifsd/smbacl.c:786:6: warning: variable 'total_ace_size' set but not used [-Wunused-but-set-variable]
786 | int total_ace_size = 0, pntsd_type;
| ^~~~~~~~~~~~~~
--
fs/cifsd/smb2pdu.c: In function 'smb2_open':
>> fs/cifsd/smb2pdu.c:3285:26: warning: variable 'posix_ccontext' set but not used [-Wunused-but-set-variable]
3285 | struct create_context *posix_ccontext;
| ^~~~~~~~~~~~~~
--
fs/cifsd/smb_common.c:119: warning: Function parameter or member 'work' not described in 'ksmbd_verify_smb_message'
>> fs/cifsd/smb_common.c:119: warning: expecting prototype for check_message(). Prototype was for ksmbd_verify_smb_message() instead
>> fs/cifsd/smb_common.c:136: warning: expecting prototype for is_smb_request(). Prototype was for ksmbd_smb_request() instead
--
fs/cifsd/server.c:94: warning: Function parameter or member 'work' not described in 'check_conn_state'
fs/cifsd/server.c:94: warning: Excess function parameter 'ksmbd_work' description in 'check_conn_state'
fs/cifsd/server.c:258: warning: Function parameter or member 'wk' not described in 'handle_ksmbd_work'
fs/cifsd/server.c:258: warning: Excess function parameter 'ksmbd_work' description in 'handle_ksmbd_work'
>> fs/cifsd/server.c:612: warning: expecting prototype for exit_smb_server(). Prototype was for ksmbd_server_exit() instead
--
fs/cifsd/transport_tcp.c:184: warning: Function parameter or member 'client_sk' not described in 'ksmbd_tcp_new_connection'
fs/cifsd/transport_tcp.c:184: warning: Excess function parameter 'sock' description in 'ksmbd_tcp_new_connection'
fs/cifsd/transport_tcp.c:264: warning: Function parameter or member 'iface' not described in 'ksmbd_tcp_run_kthread'
>> fs/cifsd/transport_tcp.c:264: warning: expecting prototype for ksmbd_create_ksmbd_kthread(). Prototype was for ksmbd_tcp_run_kthread() instead
fs/cifsd/transport_tcp.c:398: warning: Function parameter or member 'iface' not described in 'create_socket'
--
fs/cifsd/oplock.c:34: warning: Function parameter or member 'work' not described in 'alloc_opinfo'
>> fs/cifsd/oplock.c:34: warning: expecting prototype for get_new_opinfo(). Prototype was for alloc_opinfo() instead
fs/cifsd/oplock.c:475: warning: Function parameter or member 'opinfo' not described in 'compare_guid_key'
>> fs/cifsd/oplock.c:475: warning: expecting prototype for find_opinfo(). Prototype was for compare_guid_key() instead
fs/cifsd/oplock.c:623: warning: Function parameter or member 'wk' not described in '__smb2_oplock_break_noti'
>> fs/cifsd/oplock.c:623: warning: expecting prototype for smb2_oplock_break_noti(). Prototype was for __smb2_oplock_break_noti() instead
>> fs/cifsd/oplock.c:697: warning: expecting prototype for smb2_oplock_break(). Prototype was for smb2_oplock_break_noti() instead
fs/cifsd/oplock.c:740: warning: Function parameter or member 'wk' not described in '__smb2_lease_break_noti'
fs/cifsd/oplock.c:740: warning: Excess function parameter 'work' description in '__smb2_lease_break_noti'
>> fs/cifsd/oplock.c:801: warning: expecting prototype for smb2_break_lease(). Prototype was for smb2_lease_break_noti() instead
fs/cifsd/oplock.c:1104: warning: Function parameter or member 'work' not described in 'smb_grant_oplock'
fs/cifsd/oplock.c:1104: warning: Function parameter or member 'req_op_level' not described in 'smb_grant_oplock'
fs/cifsd/oplock.c:1104: warning: Function parameter or member 'pid' not described in 'smb_grant_oplock'
fs/cifsd/oplock.c:1104: warning: Function parameter or member 'tid' not described in 'smb_grant_oplock'
fs/cifsd/oplock.c:1104: warning: Function parameter or member 'share_ret' not described in 'smb_grant_oplock'
fs/cifsd/oplock.c:1104: warning: Excess function parameter 'oplock' description in 'smb_grant_oplock'
fs/cifsd/oplock.c:1104: warning: Excess function parameter 'id' description in 'smb_grant_oplock'
fs/cifsd/oplock.c:1104: warning: Excess function parameter 'Tid' description in 'smb_grant_oplock'
fs/cifsd/oplock.c:1104: warning: Excess function parameter 'attr_only' description in 'smb_grant_oplock'
fs/cifsd/oplock.c:1232: warning: Function parameter or member 'is_trunc' not described in 'smb_break_all_write_oplock'
>> fs/cifsd/oplock.c:1232: warning: expecting prototype for smb_break_write_oplock(). Prototype was for smb_break_all_write_oplock() instead
fs/cifsd/oplock.c:1259: warning: Function parameter or member 'work' not described in 'smb_break_all_levII_oplock'
fs/cifsd/oplock.c:1259: warning: Excess function parameter 'conn' description in 'smb_break_all_levII_oplock'
fs/cifsd/oplock.c:1357: warning: Function parameter or member 'lease' not described in 'create_lease_buf'
fs/cifsd/oplock.c:1357: warning: Excess function parameter 'lreq' description in 'create_lease_buf'
fs/cifsd/oplock.c:1386: warning: Excess function parameter 'lreq' description in 'parse_lease_state'
fs/cifsd/oplock.c:1434: warning: Function parameter or member 'tag' not described in 'smb2_find_context_vals'
fs/cifsd/oplock.c:1434: warning: Excess function parameter 'str' description in 'smb2_find_context_vals'
>> fs/cifsd/oplock.c:1465: warning: expecting prototype for create_durable_buf(). Prototype was for create_durable_rsp_buf() instead
fs/cifsd/oplock.c:1488: warning: Function parameter or member 'fp' not described in 'create_durable_v2_rsp_buf'
>> fs/cifsd/oplock.c:1488: warning: expecting prototype for create_durable_buf(). Prototype was for create_durable_v2_rsp_buf() instead
fs/cifsd/oplock.c:1515: warning: Function parameter or member 'maximal_access' not described in 'create_mxac_rsp_buf'
>> fs/cifsd/oplock.c:1515: warning: expecting prototype for create_mxac_buf(). Prototype was for create_mxac_rsp_buf() instead
fs/cifsd/oplock.c:1541: warning: Function parameter or member 'file_id' not described in 'create_disk_id_rsp_buf'
fs/cifsd/oplock.c:1541: warning: Function parameter or member 'vol_id' not described in 'create_disk_id_rsp_buf'
>> fs/cifsd/oplock.c:1541: warning: expecting prototype for create_mxac_buf(). Prototype was for create_disk_id_rsp_buf() instead
fs/cifsd/oplock.c:1567: warning: Function parameter or member 'fp' not described in 'create_posix_rsp_buf'
>> fs/cifsd/oplock.c:1567: warning: expecting prototype for create_posix_buf(). Prototype was for create_posix_rsp_buf() instead
--
fs/cifsd/smb2pdu.c:97: warning: Function parameter or member 'work' not described in 'smb2_get_ksmbd_tcon'
fs/cifsd/smb2pdu.c:97: warning: Excess function parameter 'sess' description in 'smb2_get_ksmbd_tcon'
fs/cifsd/smb2pdu.c:97: warning: Excess function parameter 'tid' description in 'smb2_get_ksmbd_tcon'
fs/cifsd/smb2pdu.c:214: warning: Function parameter or member 'err' not described in 'set_smb2_rsp_status'
fs/cifsd/smb2pdu.c:647: warning: Function parameter or member 'share' not described in 'smb2_get_name'
fs/cifsd/smb2pdu.c:647: warning: Function parameter or member 'local_nls' not described in 'smb2_get_name'
fs/cifsd/smb2pdu.c:647: warning: Excess function parameter 'work' description in 'smb2_get_name'
fs/cifsd/smb2pdu.c:754: warning: Function parameter or member 'attribute' not described in 'smb2_get_dos_mode'
fs/cifsd/smb2pdu.c:1806: warning: Excess function parameter 'work' description in 'smb2_create_open_flags'
fs/cifsd/smb2pdu.c:4123: warning: Function parameter or member 'sess' not described in 'smb2_get_info_file_pipe'
fs/cifsd/smb2pdu.c:4123: warning: Function parameter or member 'req' not described in 'smb2_get_info_file_pipe'
fs/cifsd/smb2pdu.c:4123: warning: Function parameter or member 'rsp' not described in 'smb2_get_info_file_pipe'
>> fs/cifsd/smb2pdu.c:4123: warning: expecting prototype for smb2_info_file_pipe(). Prototype was for smb2_get_info_file_pipe() instead
fs/cifsd/smb2pdu.c:4172: warning: Function parameter or member 'fp' not described in 'smb2_get_ea'
fs/cifsd/smb2pdu.c:4172: warning: Function parameter or member 'req' not described in 'smb2_get_ea'
fs/cifsd/smb2pdu.c:4172: warning: Function parameter or member 'rsp' not described in 'smb2_get_ea'
fs/cifsd/smb2pdu.c:4172: warning: Function parameter or member 'rsp_org' not described in 'smb2_get_ea'
fs/cifsd/smb2pdu.c:4172: warning: Excess function parameter 'path' description in 'smb2_get_ea'
fs/cifsd/smb2pdu.c:4172: warning: Excess function parameter 'rq' description in 'smb2_get_ea'
fs/cifsd/smb2pdu.c:4172: warning: Excess function parameter 'resp' description in 'smb2_get_ea'
fs/cifsd/smb2pdu.c:4172: warning: Excess function parameter 'resp_org' description in 'smb2_get_ea'
fs/cifsd/smb2pdu.c:4774: warning: Function parameter or member 'req' not described in 'smb2_get_info_file'
fs/cifsd/smb2pdu.c:4774: warning: Function parameter or member 'rsp' not described in 'smb2_get_info_file'
fs/cifsd/smb2pdu.c:4774: warning: Function parameter or member 'rsp_org' not described in 'smb2_get_info_file'
fs/cifsd/smb2pdu.c:4915: warning: Function parameter or member 'req' not described in 'smb2_get_info_filesystem'
fs/cifsd/smb2pdu.c:4915: warning: Function parameter or member 'rsp' not described in 'smb2_get_info_filesystem'
fs/cifsd/smb2pdu.c:4915: warning: Function parameter or member 'rsp_org' not described in 'smb2_get_info_filesystem'
fs/cifsd/smb2pdu.c:5430: warning: Function parameter or member 'fp' not described in 'smb2_rename'
fs/cifsd/smb2pdu.c:5430: warning: Function parameter or member 'file_info' not described in 'smb2_rename'
fs/cifsd/smb2pdu.c:5430: warning: Function parameter or member 'local_nls' not described in 'smb2_rename'
fs/cifsd/smb2pdu.c:5430: warning: Excess function parameter 'filp' description in 'smb2_rename'
fs/cifsd/smb2pdu.c:5430: warning: Excess function parameter 'old_fid' description in 'smb2_rename'
fs/cifsd/smb2pdu.c:5560: warning: Function parameter or member 'share' not described in 'smb2_create_link'
fs/cifsd/smb2pdu.c:5560: warning: Function parameter or member 'file_info' not described in 'smb2_create_link'
fs/cifsd/smb2pdu.c:5560: warning: Function parameter or member 'local_nls' not described in 'smb2_create_link'
fs/cifsd/smb2pdu.c:5926: warning: Function parameter or member 'fp' not described in 'smb2_set_info_file'
fs/cifsd/smb2pdu.c:5926: warning: Function parameter or member 'info_class' not described in 'smb2_set_info_file'
fs/cifsd/smb2pdu.c:5926: warning: Function parameter or member 'buf' not described in 'smb2_set_info_file'
fs/cifsd/smb2pdu.c:5926: warning: Function parameter or member 'share' not described in 'smb2_set_info_file'
fs/cifsd/smb2pdu.c:8065: warning: Function parameter or member 'work' not described in 'smb2_notify'
fs/cifsd/smb2pdu.c:8065: warning: Excess function parameter 'ksmbd_work' description in 'smb2_notify'
fs/cifsd/smb2pdu.c:8089: warning: Function parameter or member 'command' not described in 'smb2_is_sign_req'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for CRYPTO_ARC4
Depends on CRYPTO && CRYPTO_USER_API_ENABLE_OBSOLETE
Selected by
- SMB_SERVER && NETWORK_FILESYSTEMS && INET
vim +/total_ace_size +786 fs/cifsd/smbacl.c
788b6f45c1d2ee Namjae Jeon 2021-03-16 776
788b6f45c1d2ee Namjae Jeon 2021-03-16 777 /* Convert CIFS ACL to POSIX form */
788b6f45c1d2ee Namjae Jeon 2021-03-16 778 int parse_sec_desc(struct smb_ntsd *pntsd, int acl_len,
788b6f45c1d2ee Namjae Jeon 2021-03-16 779 struct smb_fattr *fattr)
788b6f45c1d2ee Namjae Jeon 2021-03-16 780 {
788b6f45c1d2ee Namjae Jeon 2021-03-16 781 int rc = 0;
788b6f45c1d2ee Namjae Jeon 2021-03-16 782 struct smb_sid *owner_sid_ptr, *group_sid_ptr;
788b6f45c1d2ee Namjae Jeon 2021-03-16 783 struct smb_acl *dacl_ptr; /* no need for SACL ptr */
788b6f45c1d2ee Namjae Jeon 2021-03-16 784 char *end_of_acl = ((char *)pntsd) + acl_len;
788b6f45c1d2ee Namjae Jeon 2021-03-16 785 __u32 dacloffset;
788b6f45c1d2ee Namjae Jeon 2021-03-16 @786 int total_ace_size = 0, pntsd_type;
788b6f45c1d2ee Namjae Jeon 2021-03-16 787
788b6f45c1d2ee Namjae Jeon 2021-03-16 788 if (pntsd == NULL)
788b6f45c1d2ee Namjae Jeon 2021-03-16 789 return -EIO;
788b6f45c1d2ee Namjae Jeon 2021-03-16 790
788b6f45c1d2ee Namjae Jeon 2021-03-16 791 owner_sid_ptr = (struct smb_sid *)((char *)pntsd +
788b6f45c1d2ee Namjae Jeon 2021-03-16 792 le32_to_cpu(pntsd->osidoffset));
788b6f45c1d2ee Namjae Jeon 2021-03-16 793 group_sid_ptr = (struct smb_sid *)((char *)pntsd +
788b6f45c1d2ee Namjae Jeon 2021-03-16 794 le32_to_cpu(pntsd->gsidoffset));
788b6f45c1d2ee Namjae Jeon 2021-03-16 795 dacloffset = le32_to_cpu(pntsd->dacloffset);
788b6f45c1d2ee Namjae Jeon 2021-03-16 796 dacl_ptr = (struct smb_acl *)((char *)pntsd + dacloffset);
788b6f45c1d2ee Namjae Jeon 2021-03-16 797 ksmbd_debug(SMB,
788b6f45c1d2ee Namjae Jeon 2021-03-16 798 "revision %d type 0x%x ooffset 0x%x goffset 0x%x sacloffset 0x%x dacloffset 0x%x\n",
788b6f45c1d2ee Namjae Jeon 2021-03-16 799 pntsd->revision, pntsd->type, le32_to_cpu(pntsd->osidoffset),
788b6f45c1d2ee Namjae Jeon 2021-03-16 800 le32_to_cpu(pntsd->gsidoffset),
788b6f45c1d2ee Namjae Jeon 2021-03-16 801 le32_to_cpu(pntsd->sacloffset), dacloffset);
788b6f45c1d2ee Namjae Jeon 2021-03-16 802
788b6f45c1d2ee Namjae Jeon 2021-03-16 803 if (dacloffset && dacl_ptr)
788b6f45c1d2ee Namjae Jeon 2021-03-16 804 total_ace_size =
788b6f45c1d2ee Namjae Jeon 2021-03-16 805 le16_to_cpu(dacl_ptr->size) - sizeof(struct smb_acl);
788b6f45c1d2ee Namjae Jeon 2021-03-16 806
788b6f45c1d2ee Namjae Jeon 2021-03-16 807 pntsd_type = le16_to_cpu(pntsd->type);
788b6f45c1d2ee Namjae Jeon 2021-03-16 808
788b6f45c1d2ee Namjae Jeon 2021-03-16 809 if (!(pntsd_type & DACL_PRESENT)) {
788b6f45c1d2ee Namjae Jeon 2021-03-16 810 ksmbd_debug(SMB, "DACL_PRESENT in DACL type is not set\n");
788b6f45c1d2ee Namjae Jeon 2021-03-16 811 return rc;
788b6f45c1d2ee Namjae Jeon 2021-03-16 812 }
788b6f45c1d2ee Namjae Jeon 2021-03-16 813
788b6f45c1d2ee Namjae Jeon 2021-03-16 814 pntsd->type = cpu_to_le16(DACL_PRESENT);
788b6f45c1d2ee Namjae Jeon 2021-03-16 815
788b6f45c1d2ee Namjae Jeon 2021-03-16 816 if (pntsd->osidoffset) {
788b6f45c1d2ee Namjae Jeon 2021-03-16 817 rc = parse_sid(owner_sid_ptr, end_of_acl);
788b6f45c1d2ee Namjae Jeon 2021-03-16 818 if (rc) {
788b6f45c1d2ee Namjae Jeon 2021-03-16 819 ksmbd_err("%s: Error %d parsing Owner SID\n", __func__, rc);
788b6f45c1d2ee Namjae Jeon 2021-03-16 820 return rc;
788b6f45c1d2ee Namjae Jeon 2021-03-16 821 }
788b6f45c1d2ee Namjae Jeon 2021-03-16 822
788b6f45c1d2ee Namjae Jeon 2021-03-16 823 rc = sid_to_id(owner_sid_ptr, SIDOWNER, fattr);
788b6f45c1d2ee Namjae Jeon 2021-03-16 824 if (rc) {
788b6f45c1d2ee Namjae Jeon 2021-03-16 825 ksmbd_err("%s: Error %d mapping Owner SID to uid\n",
788b6f45c1d2ee Namjae Jeon 2021-03-16 826 __func__, rc);
788b6f45c1d2ee Namjae Jeon 2021-03-16 827 owner_sid_ptr = NULL;
788b6f45c1d2ee Namjae Jeon 2021-03-16 828 }
788b6f45c1d2ee Namjae Jeon 2021-03-16 829 }
788b6f45c1d2ee Namjae Jeon 2021-03-16 830
788b6f45c1d2ee Namjae Jeon 2021-03-16 831 if (pntsd->gsidoffset) {
788b6f45c1d2ee Namjae Jeon 2021-03-16 832 rc = parse_sid(group_sid_ptr, end_of_acl);
788b6f45c1d2ee Namjae Jeon 2021-03-16 833 if (rc) {
788b6f45c1d2ee Namjae Jeon 2021-03-16 834 ksmbd_err("%s: Error %d mapping Owner SID to gid\n",
788b6f45c1d2ee Namjae Jeon 2021-03-16 835 __func__, rc);
788b6f45c1d2ee Namjae Jeon 2021-03-16 836 return rc;
788b6f45c1d2ee Namjae Jeon 2021-03-16 837 }
788b6f45c1d2ee Namjae Jeon 2021-03-16 838 rc = sid_to_id(group_sid_ptr, SIDUNIX_GROUP, fattr);
788b6f45c1d2ee Namjae Jeon 2021-03-16 839 if (rc) {
788b6f45c1d2ee Namjae Jeon 2021-03-16 840 ksmbd_err("%s: Error %d mapping Group SID to gid\n",
788b6f45c1d2ee Namjae Jeon 2021-03-16 841 __func__, rc);
788b6f45c1d2ee Namjae Jeon 2021-03-16 842 group_sid_ptr = NULL;
788b6f45c1d2ee Namjae Jeon 2021-03-16 843 }
788b6f45c1d2ee Namjae Jeon 2021-03-16 844 }
788b6f45c1d2ee Namjae Jeon 2021-03-16 845
788b6f45c1d2ee Namjae Jeon 2021-03-16 846 if ((pntsd_type &
788b6f45c1d2ee Namjae Jeon 2021-03-16 847 (DACL_AUTO_INHERITED | DACL_AUTO_INHERIT_REQ)) ==
788b6f45c1d2ee Namjae Jeon 2021-03-16 848 (DACL_AUTO_INHERITED | DACL_AUTO_INHERIT_REQ))
788b6f45c1d2ee Namjae Jeon 2021-03-16 849 pntsd->type |= cpu_to_le16(DACL_AUTO_INHERITED);
788b6f45c1d2ee Namjae Jeon 2021-03-16 850 if (pntsd_type & DACL_PROTECTED)
788b6f45c1d2ee Namjae Jeon 2021-03-16 851 pntsd->type |= cpu_to_le16(DACL_PROTECTED);
788b6f45c1d2ee Namjae Jeon 2021-03-16 852
788b6f45c1d2ee Namjae Jeon 2021-03-16 853 if (dacloffset) {
788b6f45c1d2ee Namjae Jeon 2021-03-16 854 parse_dacl(dacl_ptr, end_of_acl, owner_sid_ptr, group_sid_ptr,
788b6f45c1d2ee Namjae Jeon 2021-03-16 855 fattr);
788b6f45c1d2ee Namjae Jeon 2021-03-16 856 }
788b6f45c1d2ee Namjae Jeon 2021-03-16 857
788b6f45c1d2ee Namjae Jeon 2021-03-16 858 return 0;
788b6f45c1d2ee Namjae Jeon 2021-03-16 859 }
788b6f45c1d2ee Namjae Jeon 2021-03-16 860
:::::: The code at line 786 was first introduced by commit
:::::: 788b6f45c1d2eef909c296d775196bc6ec7dd63a cifsd: add server-side procedures for SMB3
:::::: TO: Namjae Jeon <namjae.jeon(a)samsung.com>
:::::: CC: Namjae Jeon <namjae.jeon(a)samsung.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[linux-next:master 4650/5787] drivers/phy/microchip/sparx5_serdes.c:1807:12: warning: stack frame size of 1056 bytes in function 'sparx5_sd25g28_config'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: f00397ee41c79b6155b9b44abd0055b2c0621349
commit: 2ff8a1eeb5aa8bb471f3756a695b8b69841eb61f [4650/5787] phy: Add Sparx5 ethernet serdes PHY driver
config: powerpc64-randconfig-r003-20210320 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 436c6c9c20cc522c92a923440a5fc509c342a7db)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 2ff8a1eeb5aa8bb471f3756a695b8b69841eb61f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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/phy/microchip/sparx5_serdes.c:1807:12: warning: stack frame size of 1056 bytes in function 'sparx5_sd25g28_config' [-Wframe-larger-than=]
static int sparx5_sd25g28_config(struct sparx5_serdes_macro *macro, bool reset)
^
1 warning generated.
vim +/sparx5_sd25g28_config +1807 drivers/phy/microchip/sparx5_serdes.c
1806
> 1807 static int sparx5_sd25g28_config(struct sparx5_serdes_macro *macro, bool reset)
1808 {
1809 struct sparx5_sd25g28_mode_preset mode;
1810 struct sparx5_sd25g28_media_preset media = media_presets_25g[macro->media];
1811 struct sparx5_sd25g28_args args = {
1812 .rxinvert = 1,
1813 .txinvert = 0,
1814 .txswing = 240,
1815 .com_pll_reserve = 0xf,
1816 .reg_rst = reset,
1817 };
1818 struct sparx5_sd25g28_params params;
1819 int err;
1820
1821 err = sparx5_sd10g25_get_mode_preset(macro, &mode);
1822 if (err)
1823 return err;
1824 sparx5_sd25g28_get_params(macro, &media, &mode, &args, ¶ms);
1825 sparx5_sd25g28_reset(macro->priv->regs, ¶ms, macro->stpidx);
1826 return sparx5_sd25g28_apply_params(macro->priv->dev,
1827 macro->priv->regs,
1828 ¶ms,
1829 macro->stpidx);
1830 }
1831
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Reach Cash App customer service executive instantly:
by lery page
If you are seeking the steps to reach the Cash App customer service executives then you can opt to find the phone number or the massaging facilities. The measure based on the organized strategies always proves helpful for any of the people. The same factor applies to Cash App users and hence they need to be aware of searching the efficient tactics and keep the Cash app safe from glitches.
https://www.cash-appsupportnumber.com/
1 year, 6 months
[linux-rt-devel:linux-5.12.y-rt-rebase 35/193] kernel/printk/printk.c:3633:17: error: implicit declaration of function 'read_console_seq'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.12.y-rt-rebase
head: 2664a7f5d3d24da4b2657a1e933181d376b77616
commit: e757cbebec298e80e5b3378392f2de2a5f380ae7 [35/193] printk: add pr_flush()
config: parisc-randconfig-r036-20210318 (attached as .config)
compiler: hppa-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
# https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/com...
git remote add linux-rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags linux-rt-devel linux-5.12.y-rt-rebase
git checkout e757cbebec298e80e5b3378392f2de2a5f380ae7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
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/printk/printk.c:178:5: warning: no previous prototype for 'devkmsg_sysctl_set_loglvl' [-Wmissing-prototypes]
178 | int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/printk/printk.c: In function 'console_flush_on_panic':
kernel/printk/printk.c:2674:4: error: implicit declaration of function 'latched_seq_write' [-Werror=implicit-function-declaration]
2674 | latched_seq_write(&c->printk_seq, seq);
| ^~~~~~~~~~~~~~~~~
kernel/printk/printk.c: In function 'pr_flush':
>> kernel/printk/printk.c:3633:17: error: implicit declaration of function 'read_console_seq'; did you mean 'up_console_sem'? [-Werror=implicit-function-declaration]
3633 | printk_seq = read_console_seq(con);
| ^~~~~~~~~~~~~~~~
| up_console_sem
cc1: some warnings being treated as errors
vim +3633 kernel/printk/printk.c
3597
3598 /**
3599 * pr_flush() - Wait for printing threads to catch up.
3600 *
3601 * @timeout_ms: The maximum time (in ms) to wait.
3602 * @reset_on_progress: Reset the timeout if forward progress is seen.
3603 *
3604 * A value of 0 for @timeout_ms means no waiting will occur. A value of -1
3605 * represents infinite waiting.
3606 *
3607 * If @reset_on_progress is true, the timeout will be reset whenever any
3608 * printer has been seen to make some forward progress.
3609 *
3610 * Context: Any context.
3611 * Return: true if all enabled printers are caught up.
3612 */
3613 bool pr_flush(int timeout_ms, bool reset_on_progress)
3614 {
3615 int remaining = timeout_ms;
3616 struct console *con;
3617 u64 last_diff = 0;
3618 bool may_sleep;
3619 u64 printk_seq;
3620 u64 diff;
3621 u64 seq;
3622
3623 may_sleep = (preemptible() && !in_softirq());
3624
3625 seq = prb_next_seq(prb);
3626
3627 for (;;) {
3628 diff = 0;
3629
3630 for_each_console(con) {
3631 if (!(con->flags & CON_ENABLED))
3632 continue;
> 3633 printk_seq = read_console_seq(con);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[linux-rt-devel:linux-5.12.y-rt-rebase 167/193] include/linux/entry-common.h:62:3: error: '_TIF_NEED_RESCHED_MASK' undeclared; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.12.y-rt-rebase
head: 2664a7f5d3d24da4b2657a1e933181d376b77616
commit: 1d67c63f5b55a18dc1533ba3de91f83fc47effb6 [167/193] x86: Support for lazy preemption
config: s390-randconfig-s031-20210318 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.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.3-277-gc089cd2d-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/com...
git remote add linux-rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags linux-rt-devel linux-5.12.y-rt-rebase
git checkout 1d67c63f5b55a18dc1533ba3de91f83fc47effb6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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 >>):
In file included from kernel/entry/common.c:4:
kernel/entry/common.c: In function 'exit_to_user_mode_loop':
>> include/linux/entry-common.h:62:3: error: '_TIF_NEED_RESCHED_MASK' undeclared (first use in this function); did you mean 'TIF_NEED_RESCHED'?
62 | _TIF_NEED_RESCHED_MASK | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/entry/common.c:157:19: note: in expansion of macro 'EXIT_TO_USER_MODE_WORK'
157 | while (ti_work & EXIT_TO_USER_MODE_WORK) {
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/entry-common.h:62:3: note: each undeclared identifier is reported only once for each function it appears in
62 | _TIF_NEED_RESCHED_MASK | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/entry/common.c:157:19: note: in expansion of macro 'EXIT_TO_USER_MODE_WORK'
157 | while (ti_work & EXIT_TO_USER_MODE_WORK) {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:22,
from arch/s390/include/asm/ptrace.h:10,
from arch/s390/include/asm/lowcore.h:13,
from arch/s390/include/asm/current.h:13,
from include/linux/sched.h:12,
from include/linux/context_tracking.h:5,
from kernel/entry/common.c:3:
kernel/entry/common.c: In function 'exit_to_user_mode_prepare':
>> include/linux/entry-common.h:62:3: error: '_TIF_NEED_RESCHED_MASK' undeclared (first use in this function); did you mean 'TIF_NEED_RESCHED'?
62 | _TIF_NEED_RESCHED_MASK | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
kernel/entry/common.c:215:25: note: in expansion of macro 'EXIT_TO_USER_MODE_WORK'
215 | if (unlikely(ti_work & EXIT_TO_USER_MODE_WORK))
| ^~~~~~~~~~~~~~~~~~~~~~
vim +62 include/linux/entry-common.h
59
60 #define EXIT_TO_USER_MODE_WORK \
61 (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME | _TIF_UPROBE | \
> 62 _TIF_NEED_RESCHED_MASK | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
63 ARCH_EXIT_TO_USER_MODE_WORK)
64
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months