[kvmarm:next 29/32] arch/arm64/kvm/sys_regs.c:1544:13: warning: initializer overrides prior initialization of this subobject
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git next
head: 7ba8b4380afbdbb29d53c50bee6563cd7457fc34
commit: 11663111cd49b4c6dd27479774e420f139e4c447 [29/32] KVM: arm64: Hide PMU registers from userspace when not available
config: arm64-randconfig-r031-20210114 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6077d55381a6aa3e947ef7abdc36a7515c598c8a)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git/commit/...
git remote add kvmarm https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git
git fetch --no-tags kvmarm next
git checkout 11663111cd49b4c6dd27479774e420f139e4c447
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 >>):
>> arch/arm64/kvm/sys_regs.c:1544:13: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.reset = reset_pmcr, .reg = PMCR_EL0 },
^~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1543:4: note: previous initialization is here
{ PMU_SYS_REG(SYS_PMCR_EL0), .access = access_pmcr,
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:949:24: note: expanded from macro 'PMU_SYS_REG'
SYS_DESC(r), .reset = reset_unknown, .visibility = pmu_visibility
^~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1556:38: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.access = access_pmceid, .reset = NULL },
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1555:4: note: previous initialization is here
{ PMU_SYS_REG(SYS_PMCEID0_EL0),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:949:24: note: expanded from macro 'PMU_SYS_REG'
SYS_DESC(r), .reset = reset_unknown, .visibility = pmu_visibility
^~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1558:38: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.access = access_pmceid, .reset = NULL },
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1557:4: note: previous initialization is here
{ PMU_SYS_REG(SYS_PMCEID1_EL0),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:949:24: note: expanded from macro 'PMU_SYS_REG'
SYS_DESC(r), .reset = reset_unknown, .visibility = pmu_visibility
^~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1562:43: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.access = access_pmu_evtyper, .reset = NULL },
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1561:4: note: previous initialization is here
{ PMU_SYS_REG(SYS_PMXEVTYPER_EL0),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:949:24: note: expanded from macro 'PMU_SYS_REG'
SYS_DESC(r), .reset = reset_unknown, .visibility = pmu_visibility
^~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1564:42: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.access = access_pmu_evcntr, .reset = NULL },
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1563:4: note: previous initialization is here
{ PMU_SYS_REG(SYS_PMXEVCNTR_EL0),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:949:24: note: expanded from macro 'PMU_SYS_REG'
SYS_DESC(r), .reset = reset_unknown, .visibility = pmu_visibility
^~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1570:13: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.reset = reset_val, .reg = PMUSERENR_EL0, .val = 0 },
^~~~~~~~~
arch/arm64/kvm/sys_regs.c:1569:4: note: previous initialization is here
{ PMU_SYS_REG(SYS_PMUSERENR_EL0), .access = access_pmuserenr,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:949:24: note: expanded from macro 'PMU_SYS_REG'
SYS_DESC(r), .reset = reset_unknown, .visibility = pmu_visibility
^~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1725:13: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.reset = reset_val, .reg = PMCCFILTR_EL0, .val = 0 },
^~~~~~~~~
arch/arm64/kvm/sys_regs.c:1724:4: note: previous initialization is here
{ PMU_SYS_REG(SYS_PMCCFILTR_EL0), .access = access_pmu_evtyper,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:949:24: note: expanded from macro 'PMU_SYS_REG'
SYS_DESC(r), .reset = reset_unknown, .visibility = pmu_visibility
^~~~~~~~~~~~~
7 warnings generated.
vim +1544 arch/arm64/kvm/sys_regs.c
1332
1333 /*
1334 * Architected system registers.
1335 * Important: Must be sorted ascending by Op0, Op1, CRn, CRm, Op2
1336 *
1337 * Debug handling: We do trap most, if not all debug related system
1338 * registers. The implementation is good enough to ensure that a guest
1339 * can use these with minimal performance degradation. The drawback is
1340 * that we don't implement any of the external debug, none of the
1341 * OSlock protocol. This should be revisited if we ever encounter a
1342 * more demanding guest...
1343 */
1344 static const struct sys_reg_desc sys_reg_descs[] = {
1345 { SYS_DESC(SYS_DC_ISW), access_dcsw },
1346 { SYS_DESC(SYS_DC_CSW), access_dcsw },
1347 { SYS_DESC(SYS_DC_CISW), access_dcsw },
1348
1349 DBG_BCR_BVR_WCR_WVR_EL1(0),
1350 DBG_BCR_BVR_WCR_WVR_EL1(1),
1351 { SYS_DESC(SYS_MDCCINT_EL1), trap_debug_regs, reset_val, MDCCINT_EL1, 0 },
1352 { SYS_DESC(SYS_MDSCR_EL1), trap_debug_regs, reset_val, MDSCR_EL1, 0 },
1353 DBG_BCR_BVR_WCR_WVR_EL1(2),
1354 DBG_BCR_BVR_WCR_WVR_EL1(3),
1355 DBG_BCR_BVR_WCR_WVR_EL1(4),
1356 DBG_BCR_BVR_WCR_WVR_EL1(5),
1357 DBG_BCR_BVR_WCR_WVR_EL1(6),
1358 DBG_BCR_BVR_WCR_WVR_EL1(7),
1359 DBG_BCR_BVR_WCR_WVR_EL1(8),
1360 DBG_BCR_BVR_WCR_WVR_EL1(9),
1361 DBG_BCR_BVR_WCR_WVR_EL1(10),
1362 DBG_BCR_BVR_WCR_WVR_EL1(11),
1363 DBG_BCR_BVR_WCR_WVR_EL1(12),
1364 DBG_BCR_BVR_WCR_WVR_EL1(13),
1365 DBG_BCR_BVR_WCR_WVR_EL1(14),
1366 DBG_BCR_BVR_WCR_WVR_EL1(15),
1367
1368 { SYS_DESC(SYS_MDRAR_EL1), trap_raz_wi },
1369 { SYS_DESC(SYS_OSLAR_EL1), trap_raz_wi },
1370 { SYS_DESC(SYS_OSLSR_EL1), trap_oslsr_el1 },
1371 { SYS_DESC(SYS_OSDLR_EL1), trap_raz_wi },
1372 { SYS_DESC(SYS_DBGPRCR_EL1), trap_raz_wi },
1373 { SYS_DESC(SYS_DBGCLAIMSET_EL1), trap_raz_wi },
1374 { SYS_DESC(SYS_DBGCLAIMCLR_EL1), trap_raz_wi },
1375 { SYS_DESC(SYS_DBGAUTHSTATUS_EL1), trap_dbgauthstatus_el1 },
1376
1377 { SYS_DESC(SYS_MDCCSR_EL0), trap_raz_wi },
1378 { SYS_DESC(SYS_DBGDTR_EL0), trap_raz_wi },
1379 // DBGDTR[TR]X_EL0 share the same encoding
1380 { SYS_DESC(SYS_DBGDTRTX_EL0), trap_raz_wi },
1381
1382 { SYS_DESC(SYS_DBGVCR32_EL2), NULL, reset_val, DBGVCR32_EL2, 0 },
1383
1384 { SYS_DESC(SYS_MPIDR_EL1), NULL, reset_mpidr, MPIDR_EL1 },
1385
1386 /*
1387 * ID regs: all ID_SANITISED() entries here must have corresponding
1388 * entries in arm64_ftr_regs[].
1389 */
1390
1391 /* AArch64 mappings of the AArch32 ID registers */
1392 /* CRm=1 */
1393 ID_SANITISED(ID_PFR0_EL1),
1394 ID_SANITISED(ID_PFR1_EL1),
1395 ID_SANITISED(ID_DFR0_EL1),
1396 ID_HIDDEN(ID_AFR0_EL1),
1397 ID_SANITISED(ID_MMFR0_EL1),
1398 ID_SANITISED(ID_MMFR1_EL1),
1399 ID_SANITISED(ID_MMFR2_EL1),
1400 ID_SANITISED(ID_MMFR3_EL1),
1401
1402 /* CRm=2 */
1403 ID_SANITISED(ID_ISAR0_EL1),
1404 ID_SANITISED(ID_ISAR1_EL1),
1405 ID_SANITISED(ID_ISAR2_EL1),
1406 ID_SANITISED(ID_ISAR3_EL1),
1407 ID_SANITISED(ID_ISAR4_EL1),
1408 ID_SANITISED(ID_ISAR5_EL1),
1409 ID_SANITISED(ID_MMFR4_EL1),
1410 ID_SANITISED(ID_ISAR6_EL1),
1411
1412 /* CRm=3 */
1413 ID_SANITISED(MVFR0_EL1),
1414 ID_SANITISED(MVFR1_EL1),
1415 ID_SANITISED(MVFR2_EL1),
1416 ID_UNALLOCATED(3,3),
1417 ID_SANITISED(ID_PFR2_EL1),
1418 ID_HIDDEN(ID_DFR1_EL1),
1419 ID_SANITISED(ID_MMFR5_EL1),
1420 ID_UNALLOCATED(3,7),
1421
1422 /* AArch64 ID registers */
1423 /* CRm=4 */
1424 { SYS_DESC(SYS_ID_AA64PFR0_EL1), .access = access_id_reg,
1425 .get_user = get_id_reg, .set_user = set_id_aa64pfr0_el1, },
1426 ID_SANITISED(ID_AA64PFR1_EL1),
1427 ID_UNALLOCATED(4,2),
1428 ID_UNALLOCATED(4,3),
1429 ID_SANITISED(ID_AA64ZFR0_EL1),
1430 ID_UNALLOCATED(4,5),
1431 ID_UNALLOCATED(4,6),
1432 ID_UNALLOCATED(4,7),
1433
1434 /* CRm=5 */
1435 ID_SANITISED(ID_AA64DFR0_EL1),
1436 ID_SANITISED(ID_AA64DFR1_EL1),
1437 ID_UNALLOCATED(5,2),
1438 ID_UNALLOCATED(5,3),
1439 ID_HIDDEN(ID_AA64AFR0_EL1),
1440 ID_HIDDEN(ID_AA64AFR1_EL1),
1441 ID_UNALLOCATED(5,6),
1442 ID_UNALLOCATED(5,7),
1443
1444 /* CRm=6 */
1445 ID_SANITISED(ID_AA64ISAR0_EL1),
1446 ID_SANITISED(ID_AA64ISAR1_EL1),
1447 ID_UNALLOCATED(6,2),
1448 ID_UNALLOCATED(6,3),
1449 ID_UNALLOCATED(6,4),
1450 ID_UNALLOCATED(6,5),
1451 ID_UNALLOCATED(6,6),
1452 ID_UNALLOCATED(6,7),
1453
1454 /* CRm=7 */
1455 ID_SANITISED(ID_AA64MMFR0_EL1),
1456 ID_SANITISED(ID_AA64MMFR1_EL1),
1457 ID_SANITISED(ID_AA64MMFR2_EL1),
1458 ID_UNALLOCATED(7,3),
1459 ID_UNALLOCATED(7,4),
1460 ID_UNALLOCATED(7,5),
1461 ID_UNALLOCATED(7,6),
1462 ID_UNALLOCATED(7,7),
1463
1464 { SYS_DESC(SYS_SCTLR_EL1), access_vm_reg, reset_val, SCTLR_EL1, 0x00C50078 },
1465 { SYS_DESC(SYS_ACTLR_EL1), access_actlr, reset_actlr, ACTLR_EL1 },
1466 { SYS_DESC(SYS_CPACR_EL1), NULL, reset_val, CPACR_EL1, 0 },
1467
1468 { SYS_DESC(SYS_RGSR_EL1), undef_access },
1469 { SYS_DESC(SYS_GCR_EL1), undef_access },
1470
1471 { SYS_DESC(SYS_ZCR_EL1), NULL, reset_val, ZCR_EL1, 0, .visibility = sve_visibility },
1472 { SYS_DESC(SYS_TTBR0_EL1), access_vm_reg, reset_unknown, TTBR0_EL1 },
1473 { SYS_DESC(SYS_TTBR1_EL1), access_vm_reg, reset_unknown, TTBR1_EL1 },
1474 { SYS_DESC(SYS_TCR_EL1), access_vm_reg, reset_val, TCR_EL1, 0 },
1475
1476 PTRAUTH_KEY(APIA),
1477 PTRAUTH_KEY(APIB),
1478 PTRAUTH_KEY(APDA),
1479 PTRAUTH_KEY(APDB),
1480 PTRAUTH_KEY(APGA),
1481
1482 { SYS_DESC(SYS_AFSR0_EL1), access_vm_reg, reset_unknown, AFSR0_EL1 },
1483 { SYS_DESC(SYS_AFSR1_EL1), access_vm_reg, reset_unknown, AFSR1_EL1 },
1484 { SYS_DESC(SYS_ESR_EL1), access_vm_reg, reset_unknown, ESR_EL1 },
1485
1486 { SYS_DESC(SYS_ERRIDR_EL1), trap_raz_wi },
1487 { SYS_DESC(SYS_ERRSELR_EL1), trap_raz_wi },
1488 { SYS_DESC(SYS_ERXFR_EL1), trap_raz_wi },
1489 { SYS_DESC(SYS_ERXCTLR_EL1), trap_raz_wi },
1490 { SYS_DESC(SYS_ERXSTATUS_EL1), trap_raz_wi },
1491 { SYS_DESC(SYS_ERXADDR_EL1), trap_raz_wi },
1492 { SYS_DESC(SYS_ERXMISC0_EL1), trap_raz_wi },
1493 { SYS_DESC(SYS_ERXMISC1_EL1), trap_raz_wi },
1494
1495 { SYS_DESC(SYS_TFSR_EL1), undef_access },
1496 { SYS_DESC(SYS_TFSRE0_EL1), undef_access },
1497
1498 { SYS_DESC(SYS_FAR_EL1), access_vm_reg, reset_unknown, FAR_EL1 },
1499 { SYS_DESC(SYS_PAR_EL1), NULL, reset_unknown, PAR_EL1 },
1500
1501 { PMU_SYS_REG(SYS_PMINTENSET_EL1),
1502 .access = access_pminten, .reg = PMINTENSET_EL1 },
1503 { PMU_SYS_REG(SYS_PMINTENCLR_EL1),
1504 .access = access_pminten, .reg = PMINTENSET_EL1 },
1505
1506 { SYS_DESC(SYS_MAIR_EL1), access_vm_reg, reset_unknown, MAIR_EL1 },
1507 { SYS_DESC(SYS_AMAIR_EL1), access_vm_reg, reset_amair_el1, AMAIR_EL1 },
1508
1509 { SYS_DESC(SYS_LORSA_EL1), trap_loregion },
1510 { SYS_DESC(SYS_LOREA_EL1), trap_loregion },
1511 { SYS_DESC(SYS_LORN_EL1), trap_loregion },
1512 { SYS_DESC(SYS_LORC_EL1), trap_loregion },
1513 { SYS_DESC(SYS_LORID_EL1), trap_loregion },
1514
1515 { SYS_DESC(SYS_VBAR_EL1), NULL, reset_val, VBAR_EL1, 0 },
1516 { SYS_DESC(SYS_DISR_EL1), NULL, reset_val, DISR_EL1, 0 },
1517
1518 { SYS_DESC(SYS_ICC_IAR0_EL1), write_to_read_only },
1519 { SYS_DESC(SYS_ICC_EOIR0_EL1), read_from_write_only },
1520 { SYS_DESC(SYS_ICC_HPPIR0_EL1), write_to_read_only },
1521 { SYS_DESC(SYS_ICC_DIR_EL1), read_from_write_only },
1522 { SYS_DESC(SYS_ICC_RPR_EL1), write_to_read_only },
1523 { SYS_DESC(SYS_ICC_SGI1R_EL1), access_gic_sgi },
1524 { SYS_DESC(SYS_ICC_ASGI1R_EL1), access_gic_sgi },
1525 { SYS_DESC(SYS_ICC_SGI0R_EL1), access_gic_sgi },
1526 { SYS_DESC(SYS_ICC_IAR1_EL1), write_to_read_only },
1527 { SYS_DESC(SYS_ICC_EOIR1_EL1), read_from_write_only },
1528 { SYS_DESC(SYS_ICC_HPPIR1_EL1), write_to_read_only },
1529 { SYS_DESC(SYS_ICC_SRE_EL1), access_gic_sre },
1530
1531 { SYS_DESC(SYS_CONTEXTIDR_EL1), access_vm_reg, reset_val, CONTEXTIDR_EL1, 0 },
1532 { SYS_DESC(SYS_TPIDR_EL1), NULL, reset_unknown, TPIDR_EL1 },
1533
1534 { SYS_DESC(SYS_SCXTNUM_EL1), undef_access },
1535
1536 { SYS_DESC(SYS_CNTKCTL_EL1), NULL, reset_val, CNTKCTL_EL1, 0},
1537
1538 { SYS_DESC(SYS_CCSIDR_EL1), access_ccsidr },
1539 { SYS_DESC(SYS_CLIDR_EL1), access_clidr },
1540 { SYS_DESC(SYS_CSSELR_EL1), access_csselr, reset_unknown, CSSELR_EL1 },
1541 { SYS_DESC(SYS_CTR_EL0), access_ctr },
1542
1543 { PMU_SYS_REG(SYS_PMCR_EL0), .access = access_pmcr,
> 1544 .reset = reset_pmcr, .reg = PMCR_EL0 },
1545 { PMU_SYS_REG(SYS_PMCNTENSET_EL0),
1546 .access = access_pmcnten, .reg = PMCNTENSET_EL0 },
1547 { PMU_SYS_REG(SYS_PMCNTENCLR_EL0),
1548 .access = access_pmcnten, .reg = PMCNTENSET_EL0 },
1549 { PMU_SYS_REG(SYS_PMOVSCLR_EL0),
1550 .access = access_pmovs, .reg = PMOVSSET_EL0 },
1551 { PMU_SYS_REG(SYS_PMSWINC_EL0),
1552 .access = access_pmswinc, .reg = PMSWINC_EL0 },
1553 { PMU_SYS_REG(SYS_PMSELR_EL0),
1554 .access = access_pmselr, .reg = PMSELR_EL0 },
1555 { PMU_SYS_REG(SYS_PMCEID0_EL0),
1556 .access = access_pmceid, .reset = NULL },
1557 { PMU_SYS_REG(SYS_PMCEID1_EL0),
1558 .access = access_pmceid, .reset = NULL },
1559 { PMU_SYS_REG(SYS_PMCCNTR_EL0),
1560 .access = access_pmu_evcntr, .reg = PMCCNTR_EL0 },
1561 { PMU_SYS_REG(SYS_PMXEVTYPER_EL0),
1562 .access = access_pmu_evtyper, .reset = NULL },
1563 { PMU_SYS_REG(SYS_PMXEVCNTR_EL0),
1564 .access = access_pmu_evcntr, .reset = NULL },
1565 /*
1566 * PMUSERENR_EL0 resets as unknown in 64bit mode while it resets as zero
1567 * in 32bit mode. Here we choose to reset it as zero for consistency.
1568 */
1569 { PMU_SYS_REG(SYS_PMUSERENR_EL0), .access = access_pmuserenr,
1570 .reset = reset_val, .reg = PMUSERENR_EL0, .val = 0 },
1571 { PMU_SYS_REG(SYS_PMOVSSET_EL0),
1572 .access = access_pmovs, .reg = PMOVSSET_EL0 },
1573
1574 { SYS_DESC(SYS_TPIDR_EL0), NULL, reset_unknown, TPIDR_EL0 },
1575 { SYS_DESC(SYS_TPIDRRO_EL0), NULL, reset_unknown, TPIDRRO_EL0 },
1576
1577 { SYS_DESC(SYS_SCXTNUM_EL0), undef_access },
1578
1579 { SYS_DESC(SYS_AMCR_EL0), undef_access },
1580 { SYS_DESC(SYS_AMCFGR_EL0), undef_access },
1581 { SYS_DESC(SYS_AMCGCR_EL0), undef_access },
1582 { SYS_DESC(SYS_AMUSERENR_EL0), undef_access },
1583 { SYS_DESC(SYS_AMCNTENCLR0_EL0), undef_access },
1584 { SYS_DESC(SYS_AMCNTENSET0_EL0), undef_access },
1585 { SYS_DESC(SYS_AMCNTENCLR1_EL0), undef_access },
1586 { SYS_DESC(SYS_AMCNTENSET1_EL0), undef_access },
1587 AMU_AMEVCNTR0_EL0(0),
1588 AMU_AMEVCNTR0_EL0(1),
1589 AMU_AMEVCNTR0_EL0(2),
1590 AMU_AMEVCNTR0_EL0(3),
1591 AMU_AMEVCNTR0_EL0(4),
1592 AMU_AMEVCNTR0_EL0(5),
1593 AMU_AMEVCNTR0_EL0(6),
1594 AMU_AMEVCNTR0_EL0(7),
1595 AMU_AMEVCNTR0_EL0(8),
1596 AMU_AMEVCNTR0_EL0(9),
1597 AMU_AMEVCNTR0_EL0(10),
1598 AMU_AMEVCNTR0_EL0(11),
1599 AMU_AMEVCNTR0_EL0(12),
1600 AMU_AMEVCNTR0_EL0(13),
1601 AMU_AMEVCNTR0_EL0(14),
1602 AMU_AMEVCNTR0_EL0(15),
1603 AMU_AMEVTYPER0_EL0(0),
1604 AMU_AMEVTYPER0_EL0(1),
1605 AMU_AMEVTYPER0_EL0(2),
1606 AMU_AMEVTYPER0_EL0(3),
1607 AMU_AMEVTYPER0_EL0(4),
1608 AMU_AMEVTYPER0_EL0(5),
1609 AMU_AMEVTYPER0_EL0(6),
1610 AMU_AMEVTYPER0_EL0(7),
1611 AMU_AMEVTYPER0_EL0(8),
1612 AMU_AMEVTYPER0_EL0(9),
1613 AMU_AMEVTYPER0_EL0(10),
1614 AMU_AMEVTYPER0_EL0(11),
1615 AMU_AMEVTYPER0_EL0(12),
1616 AMU_AMEVTYPER0_EL0(13),
1617 AMU_AMEVTYPER0_EL0(14),
1618 AMU_AMEVTYPER0_EL0(15),
1619 AMU_AMEVCNTR1_EL0(0),
1620 AMU_AMEVCNTR1_EL0(1),
1621 AMU_AMEVCNTR1_EL0(2),
1622 AMU_AMEVCNTR1_EL0(3),
1623 AMU_AMEVCNTR1_EL0(4),
1624 AMU_AMEVCNTR1_EL0(5),
1625 AMU_AMEVCNTR1_EL0(6),
1626 AMU_AMEVCNTR1_EL0(7),
1627 AMU_AMEVCNTR1_EL0(8),
1628 AMU_AMEVCNTR1_EL0(9),
1629 AMU_AMEVCNTR1_EL0(10),
1630 AMU_AMEVCNTR1_EL0(11),
1631 AMU_AMEVCNTR1_EL0(12),
1632 AMU_AMEVCNTR1_EL0(13),
1633 AMU_AMEVCNTR1_EL0(14),
1634 AMU_AMEVCNTR1_EL0(15),
1635 AMU_AMEVTYPER1_EL0(0),
1636 AMU_AMEVTYPER1_EL0(1),
1637 AMU_AMEVTYPER1_EL0(2),
1638 AMU_AMEVTYPER1_EL0(3),
1639 AMU_AMEVTYPER1_EL0(4),
1640 AMU_AMEVTYPER1_EL0(5),
1641 AMU_AMEVTYPER1_EL0(6),
1642 AMU_AMEVTYPER1_EL0(7),
1643 AMU_AMEVTYPER1_EL0(8),
1644 AMU_AMEVTYPER1_EL0(9),
1645 AMU_AMEVTYPER1_EL0(10),
1646 AMU_AMEVTYPER1_EL0(11),
1647 AMU_AMEVTYPER1_EL0(12),
1648 AMU_AMEVTYPER1_EL0(13),
1649 AMU_AMEVTYPER1_EL0(14),
1650 AMU_AMEVTYPER1_EL0(15),
1651
1652 { SYS_DESC(SYS_CNTP_TVAL_EL0), access_arch_timer },
1653 { SYS_DESC(SYS_CNTP_CTL_EL0), access_arch_timer },
1654 { SYS_DESC(SYS_CNTP_CVAL_EL0), access_arch_timer },
1655
1656 /* PMEVCNTRn_EL0 */
1657 PMU_PMEVCNTR_EL0(0),
1658 PMU_PMEVCNTR_EL0(1),
1659 PMU_PMEVCNTR_EL0(2),
1660 PMU_PMEVCNTR_EL0(3),
1661 PMU_PMEVCNTR_EL0(4),
1662 PMU_PMEVCNTR_EL0(5),
1663 PMU_PMEVCNTR_EL0(6),
1664 PMU_PMEVCNTR_EL0(7),
1665 PMU_PMEVCNTR_EL0(8),
1666 PMU_PMEVCNTR_EL0(9),
1667 PMU_PMEVCNTR_EL0(10),
1668 PMU_PMEVCNTR_EL0(11),
1669 PMU_PMEVCNTR_EL0(12),
1670 PMU_PMEVCNTR_EL0(13),
1671 PMU_PMEVCNTR_EL0(14),
1672 PMU_PMEVCNTR_EL0(15),
1673 PMU_PMEVCNTR_EL0(16),
1674 PMU_PMEVCNTR_EL0(17),
1675 PMU_PMEVCNTR_EL0(18),
1676 PMU_PMEVCNTR_EL0(19),
1677 PMU_PMEVCNTR_EL0(20),
1678 PMU_PMEVCNTR_EL0(21),
1679 PMU_PMEVCNTR_EL0(22),
1680 PMU_PMEVCNTR_EL0(23),
1681 PMU_PMEVCNTR_EL0(24),
1682 PMU_PMEVCNTR_EL0(25),
1683 PMU_PMEVCNTR_EL0(26),
1684 PMU_PMEVCNTR_EL0(27),
1685 PMU_PMEVCNTR_EL0(28),
1686 PMU_PMEVCNTR_EL0(29),
1687 PMU_PMEVCNTR_EL0(30),
1688 /* PMEVTYPERn_EL0 */
1689 PMU_PMEVTYPER_EL0(0),
1690 PMU_PMEVTYPER_EL0(1),
1691 PMU_PMEVTYPER_EL0(2),
1692 PMU_PMEVTYPER_EL0(3),
1693 PMU_PMEVTYPER_EL0(4),
1694 PMU_PMEVTYPER_EL0(5),
1695 PMU_PMEVTYPER_EL0(6),
1696 PMU_PMEVTYPER_EL0(7),
1697 PMU_PMEVTYPER_EL0(8),
1698 PMU_PMEVTYPER_EL0(9),
1699 PMU_PMEVTYPER_EL0(10),
1700 PMU_PMEVTYPER_EL0(11),
1701 PMU_PMEVTYPER_EL0(12),
1702 PMU_PMEVTYPER_EL0(13),
1703 PMU_PMEVTYPER_EL0(14),
1704 PMU_PMEVTYPER_EL0(15),
1705 PMU_PMEVTYPER_EL0(16),
1706 PMU_PMEVTYPER_EL0(17),
1707 PMU_PMEVTYPER_EL0(18),
1708 PMU_PMEVTYPER_EL0(19),
1709 PMU_PMEVTYPER_EL0(20),
1710 PMU_PMEVTYPER_EL0(21),
1711 PMU_PMEVTYPER_EL0(22),
1712 PMU_PMEVTYPER_EL0(23),
1713 PMU_PMEVTYPER_EL0(24),
1714 PMU_PMEVTYPER_EL0(25),
1715 PMU_PMEVTYPER_EL0(26),
1716 PMU_PMEVTYPER_EL0(27),
1717 PMU_PMEVTYPER_EL0(28),
1718 PMU_PMEVTYPER_EL0(29),
1719 PMU_PMEVTYPER_EL0(30),
1720 /*
1721 * PMCCFILTR_EL0 resets as unknown in 64bit mode while it resets as zero
1722 * in 32bit mode. Here we choose to reset it as zero for consistency.
1723 */
1724 { PMU_SYS_REG(SYS_PMCCFILTR_EL0), .access = access_pmu_evtyper,
1725 .reset = reset_val, .reg = PMCCFILTR_EL0, .val = 0 },
1726
1727 { SYS_DESC(SYS_DACR32_EL2), NULL, reset_unknown, DACR32_EL2 },
1728 { SYS_DESC(SYS_IFSR32_EL2), NULL, reset_unknown, IFSR32_EL2 },
1729 { SYS_DESC(SYS_FPEXC32_EL2), NULL, reset_val, FPEXC32_EL2, 0x700 },
1730 };
1731
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH 2/2] compiler.h: Include asm/rwonce.h under ARM64 and ALPHA to fix build errors
by kernel test robot
Hi Tiezhu,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on bpf-next/master]
[also build test ERROR on bpf/master linus/master v5.11-rc3 next-20210114]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Tiezhu-Yang/Fix-build-errors-and...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: x86_64-rhel-8.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/f65413b91d3c20f52eb8b53d7d32b9fd3...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Tiezhu-Yang/Fix-build-errors-and-warnings-when-make-M-samples-bpf/20210113-190045
git checkout f65413b91d3c20f52eb8b53d7d32b9fd38a18dca
# save the attached .config to linux build tree
make W=1 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 lib/error-inject.c:3:
>> include/linux/error-injection.h:10:8: error: unknown type name 'bool'
10 | extern bool within_error_injection_list(unsigned long addr);
| ^~~~
>> lib/error-inject.c:23:6: error: conflicting types for 'within_error_injection_list'
23 | bool within_error_injection_list(unsigned long addr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from lib/error-inject.c:3:
include/linux/error-injection.h:10:13: note: previous declaration of 'within_error_injection_list' was here
10 | extern bool within_error_injection_list(unsigned long addr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from arch/x86/lib/error-inject.c:3:
>> include/linux/error-injection.h:10:8: error: unknown type name 'bool'
10 | extern bool within_error_injection_list(unsigned long addr);
| ^~~~
vim +/bool +10 include/linux/error-injection.h
540adea3809f61 Masami Hiramatsu 2018-01-13 9
540adea3809f61 Masami Hiramatsu 2018-01-13 @10 extern bool within_error_injection_list(unsigned long addr);
663faf9f7beeac Masami Hiramatsu 2018-01-13 11 extern int get_injectable_error_type(unsigned long addr);
540adea3809f61 Masami Hiramatsu 2018-01-13 12
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
hppa64-linux-ld: arch/parisc/kernel/setup.o(.text.unlikely+0x20): cannot reach __bitmap_weight
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 65f0d2414b7079556fbbcc070b3d1c9f9587606d
commit: bd93f003b7462ae39a43c531abca37fe7073b866 include/linux/bitops.h: avoid clang shift-count-overflow warnings
date: 7 months ago
config: parisc-randconfig-r023-20210114 (attached as .config)
compiler: hppa64-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/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 bd93f003b7462ae39a43c531abca37fe7073b866
# 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 >>):
hppa64-linux-ld: init/main.o(.ref.text+0x28): cannot reach rcu_scheduler_starting
hppa64-linux-ld: init/main.o(.ref.text+0x4c): cannot reach kernel_thread
hppa64-linux-ld: init/main.o(.ref.text+0x7c): cannot reach find_task_by_pid_ns
hppa64-linux-ld: init/main.o(.ref.text+0xb4): cannot reach set_cpus_allowed_ptr
hppa64-linux-ld: init/main.o(.ref.text+0xe8): cannot reach kernel_thread
hppa64-linux-ld: init/main.o(.ref.text+0x110): cannot reach find_task_by_pid_ns
hppa64-linux-ld: init/main.o(.ref.text+0x154): cannot reach complete
hppa64-linux-ld: init/main.o(.ref.text+0x174): cannot reach cpu_startup_entry
hppa64-linux-ld: init/main.o(.ref.text+0x1a8): cannot reach _mcount
hppa64-linux-ld: init/main.o(.ref.text+0x1b8): cannot reach unknown
hppa64-linux-ld: init/main.o(.ref.text+0x1c8): cannot reach async_synchronize_full
hppa64-linux-ld: init/main.o(.ref.text+0x1f8): cannot reach rcu_barrier
hppa64-linux-ld: init/main.o(.ref.text+0x208): cannot reach mark_rodata_ro
hppa64-linux-ld: init/main.o(.ref.text+0x220): cannot reach printk
hppa64-linux-ld: init/main.o(.ref.text+0x240): cannot reach rcu_end_inkernel_boot
hppa64-linux-ld: init/main.o(.ref.text+0x260): cannot reach unknown
hppa64-linux-ld: init/main.o(.ref.text+0x284): cannot reach printk
hppa64-linux-ld: init/main.o(.ref.text+0x2a4): cannot reach unknown
hppa64-linux-ld: init/main.o(.ref.text+0x2c4): cannot reach panic
hppa64-linux-ld: init/main.o(.ref.text+0x2d4): cannot reach unknown
hppa64-linux-ld: init/main.o(.ref.text+0x2f0): cannot reach unknown
hppa64-linux-ld: init/main.o(.ref.text+0x30c): cannot reach unknown
hppa64-linux-ld: init/main.o(.ref.text+0x328): cannot reach unknown
hppa64-linux-ld: init/main.o(.ref.text+0x344): cannot reach panic
hppa64-linux-ld: init/do_mounts.o(.text+0x40): cannot reach strcmp
hppa64-linux-ld: init/do_mounts.o(.text+0xcc): cannot reach strncasecmp
hppa64-linux-ld: init/do_mounts.o(.text+0x1ac): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.text+0x1d0): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.text+0x1f4): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.text+0x21c): cannot reach strcmp
hppa64-linux-ld: init/do_mounts.o(.text+0x23c): cannot reach strcmp
hppa64-linux-ld: init/do_mounts.o(.text+0x260): cannot reach strcmp
hppa64-linux-ld: init/do_mounts.o(.text+0x27c): cannot reach strlen
hppa64-linux-ld: init/do_mounts.o(.text+0x2a4): cannot reach memcpy
hppa64-linux-ld: init/do_mounts.o(.text+0x2fc): cannot reach blk_lookup_devt
hppa64-linux-ld: init/do_mounts.o(.text+0x378): cannot reach simple_strtoul
hppa64-linux-ld: init/do_mounts.o(.text+0x39c): cannot reach blk_lookup_devt
hppa64-linux-ld: init/do_mounts.o(.text+0x3ec): cannot reach blk_lookup_devt
hppa64-linux-ld: init/do_mounts.o(.text+0x444): cannot reach class_find_device
hppa64-linux-ld: init/do_mounts.o(.text+0x45c): cannot reach put_device
hppa64-linux-ld: init/do_mounts.o(.text+0x484): cannot reach strchr
hppa64-linux-ld: init/do_mounts.o(.text+0x4b4): cannot reach sscanf
hppa64-linux-ld: init/do_mounts.o(.text+0x4f8): cannot reach class_find_device
hppa64-linux-ld: init/do_mounts.o(.text+0x51c): cannot reach put_device
hppa64-linux-ld: init/do_mounts.o(.text+0x534): cannot reach strlen
hppa64-linux-ld: init/do_mounts.o(.text+0x5bc): cannot reach sscanf
hppa64-linux-ld: init/do_mounts.o(.text+0x5ec): cannot reach sscanf
hppa64-linux-ld: init/do_mounts.o(.text+0x68c): cannot reach disk_get_part
hppa64-linux-ld: init/do_mounts.o(.text+0x6a8): cannot reach put_device
hppa64-linux-ld: init/do_mounts.o(.text+0x6c0): cannot reach put_device
hppa64-linux-ld: init/do_mounts.o(.text+0x6dc): cannot reach simple_strtoul
hppa64-linux-ld: init/do_mounts.o(.init.text+0x1e0): cannot reach simple_strtol
hppa64-linux-ld: init/do_mounts.o(.init.text+0x248): cannot reach simple_strtoul
hppa64-linux-ld: init/do_mounts.o(.init.text+0x2b0): cannot reach strlcpy
hppa64-linux-ld: init/do_mounts.o(.init.text+0x438): cannot reach scnprintf
hppa64-linux-ld: init/do_mounts.o(.init.text+0x45c): cannot reach strcpy
hppa64-linux-ld: init/do_mounts.o(.init.text+0x4c0): cannot reach strchr
hppa64-linux-ld: init/do_mounts.o(.init.text+0x618): cannot reach strncpy
hppa64-linux-ld: init/do_mounts.o(.init.text+0x784): cannot reach strlen
hppa64-linux-ld: init/do_mounts.o(.init.text+0x894): cannot reach strlen
hppa64-linux-ld: init/do_mounts.o(.init.text+0xa48): cannot reach wait_for_device_probe
hppa64-linux-ld: init/do_mounts.o(.init.text+0xa88): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.init.text+0xaac): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.init.text+0xb1c): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.init.text+0xb90): cannot reach driver_probe_done
hppa64-linux-ld: init/do_mounts_initrd.o(.init.text+0x78): cannot reach memparse
hppa64-linux-ld: init/do_mounts_initrd.o(.init.text+0xa8): cannot reach memparse
hppa64-linux-ld: init/initramfs.o(.init.text+0xbb4): cannot reach strcpy
hppa64-linux-ld: init/initramfs.o(.init.text+0xcac): cannot reach strcmp
hppa64-linux-ld: init/initramfs.o(.init.text+0xf28): cannot reach __list_add_valid
hppa64-linux-ld: init/initramfs.o(.init.text+0x10e4): cannot reach memcpy
hppa64-linux-ld: init/initramfs.o(.init.text+0x11f4): cannot reach simple_strtoul
hppa64-linux-ld: init/initramfs.o(.init.text+0x1384): cannot reach memcmp
hppa64-linux-ld: init/initramfs.o(.init.text+0x13c4): cannot reach memcmp
hppa64-linux-ld: init/initramfs.o(.init.text+0x17d4): cannot reach snprintf
hppa64-linux-ld: init/initramfs.o(.init.text+0x1870): cannot reach __list_del_entry_valid
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x60): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0xe0): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x184): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x1b0): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x298): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x2d0): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x348): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x3b0): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x404): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x428): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x49c): cannot reach find_next_zero_bit
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x4d4): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.init.text+0x228): cannot reach memcmp
hppa64-linux-ld: arch/parisc/mm/init.o(.init.text+0x248): cannot reach memparse
hppa64-linux-ld: arch/parisc/mm/init.o(.init.text+0xc1c): cannot reach memset
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x34): cannot reach _mcount
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x84): cannot reach unknown
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0xb0): cannot reach unknown
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0xd4): cannot reach unknown
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0xf0): cannot reach __flush_tlb_range
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x108): cannot reach flush_kernel_dcache_range_asm
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x120): cannot reach flush_kernel_icache_range_asm
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x144): cannot reach free_reserved_area
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x154): cannot reach pdc_chassis_send_status
>> hppa64-linux-ld: arch/parisc/kernel/setup.o(.text.unlikely+0x20): cannot reach __bitmap_weight
hppa64-linux-ld: arch/parisc/kernel/setup.o(.init.text+0x3c8): cannot reach strlcpy
hppa64-linux-ld: arch/parisc/kernel/setup.o(.init.text+0x410): cannot reach strcpy
hppa64-linux-ld: kernel/softirq.o(.text+0xa4): cannot reach strlen
hppa64-linux-ld: kernel/softirq.o(.text+0x100): cannot reach strcpy
hppa64-linux-ld: kernel/softirq.o(.text+0x888): cannot reach __do_softirq
hppa64-linux-ld: kernel/softirq.o(.text+0x8cc): cannot reach _cond_resched
hppa64-linux-ld: kernel/softirq.o(.text+0x998): cannot reach __do_softirq
hppa64-linux-ld: kernel/softirq.o(.text+0xbcc): cannot reach rcu_irq_enter
hppa64-linux-ld: kernel/softirq.o(.text+0xd10): cannot reach rcu_irq_exit
hppa64-linux-ld: kernel/softirq.o(.text+0xd60): cannot reach __do_softirq
hppa64-linux-ld: kernel/softirq.o(.text+0x1ac4): cannot reach yield
hppa64-linux-ld: kernel/softirq.o(.init.text+0x124): cannot reach cpumask_next
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x58): cannot reach _mcount
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0xd0): cannot reach __local_bh_disable_ip
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x16c): cannot reach trace_hardirqs_on
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x298): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x2f4): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x334): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x390): cannot reach trace_hardirqs_off
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x3fc): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x41c): cannot reach unknown
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x4b8): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x4dc): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x564): cannot reach rcu_softirq_qs
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x5b8): cannot reach printk
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x614): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x644): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x694): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x6b8): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x770): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x7a4): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x7f4): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x818): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/extable.o(.text+0x44): cannot reach search_extable
hppa64-linux-ld: kernel/extable.o(.text+0xa4): cannot reach search_extable
hppa64-linux-ld: kernel/extable.o(.text+0x2b8): cannot reach rcu_nmi_enter
hppa64-linux-ld: kernel/extable.o(.text+0x2c8): cannot reach rcu_nmi_exit
hppa64-linux-ld: kernel/extable.o(.init.text+0x74): cannot reach sort_extable
hppa64-linux-ld: kernel/printk/printk.o(.text+0x2e0): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x30c): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x400): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x418): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x5a4): cannot reach memcpy
hppa64-linux-ld: kernel/printk/printk.o(.text+0x768): cannot reach scnprintf
hppa64-linux-ld: kernel/printk/printk.o(.text+0x910): cannot reach scnprintf
hppa64-linux-ld: kernel/printk/printk.o(.text+0x9d8): cannot reach __umoddi3
hppa64-linux-ld: kernel/printk/printk.o(.text+0x9f0): cannot reach __udivdi3
hppa64-linux-ld: kernel/printk/printk.o(.text+0xa0c): cannot reach __udivdi3
hppa64-linux-ld: kernel/printk/printk.o(.text+0xa34): cannot reach sprintf
hppa64-linux-ld: kernel/printk/printk.o(.text+0xa84): cannot reach memchr
hppa64-linux-ld: kernel/printk/printk.o(.text+0xacc): cannot reach memcpy
hppa64-linux-ld: kernel/printk/printk.o(.text+0xae8): cannot reach memcpy
hppa64-linux-ld: kernel/printk/printk.o(.text+0xb90): cannot reach sprintf
hppa64-linux-ld: kernel/printk/printk.o(.text+0xc20): cannot reach strcmp
hppa64-linux-ld: kernel/printk/printk.o(.text+0xc90): cannot reach strlcpy
hppa64-linux-ld: kernel/printk/printk.o(.text+0xd8c): cannot reach strcmp
hppa64-linux-ld: kernel/printk/printk.o(.text+0xf9c): cannot reach strncmp
hppa64-linux-ld: kernel/printk/printk.o(.text+0x1374): cannot reach __udivdi3
hppa64-linux-ld: kernel/printk/printk.o(.text+0x13bc): cannot reach scnprintf
hppa64-linux-ld: kernel/printk/printk.o(.text+0x1464): cannot reach mutex_lock_interruptible
hppa64-linux-ld: kernel/printk/printk.o(.text+0x14f4): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x156c): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x1598): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x15e8): cannot reach _cond_resched
hppa64-linux-ld: kernel/printk/printk.o(.text+0x1628): cannot reach schedule
hppa64-linux-ld: kernel/printk/printk.o(.text+0x168c): cannot reach mutex_unlock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x1754): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x1858): cannot reach raw_copy_to_user
hppa64-linux-ld: kernel/printk/printk.o(.text+0x1878): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x18dc): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x1a68): cannot reach memcpy
hppa64-linux-ld: kernel/printk/printk.o(.text+0x1a98): cannot reach memcpy
hppa64-linux-ld: kernel/printk/printk.o(.text+0x1ad8): cannot reach memset
hppa64-linux-ld: kernel/printk/printk.o(.text+0x1bf0): cannot reach memcpy
hppa64-linux-ld: kernel/printk/printk.o(.text+0x1d4c): cannot reach memcpy
hppa64-linux-ld: kernel/printk/printk.o(.text+0x1e90): cannot reach strncpy
hppa64-linux-ld: kernel/printk/printk.o(.text+0x1f50): cannot reach strncpy
hppa64-linux-ld: kernel/printk/printk.o(.text+0x20a4): cannot reach vscnprintf
hppa64-linux-ld: kernel/printk/printk.o(.text+0x23dc): cannot reach security_syslog
hppa64-linux-ld: kernel/printk/printk.o(.text+0x2574): cannot reach memset
hppa64-linux-ld: kernel/printk/printk.o(.text+0x2618): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x264c): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x27fc): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x295c): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x2ac8): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x2b10): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x2c4c): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x2d5c): cannot reach raw_copy_to_user
hppa64-linux-ld: kernel/printk/printk.o(.text+0x2dac): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x2e18): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x2f70): cannot reach _cond_resched
hppa64-linux-ld: kernel/printk/printk.o(.text+0x30e0): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x31d4): cannot reach raw_copy_to_user
hppa64-linux-ld: kernel/printk/printk.o(.text+0x3228): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x32a8): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x33c0): cannot reach schedule
hppa64-linux-ld: kernel/printk/printk.o(.text+0x354c): cannot reach _cond_resched
hppa64-linux-ld: kernel/printk/printk.o(.text+0x3894): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x3a0c): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/printk/printk.o(.text+0x3a28): cannot reach _raw_spin_lock
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH v2] kbuild: check the minimum compiler version in Kconfig
by kernel test robot
Hi Masahiro,
I love your patch! Yet something to improve:
[auto build test ERROR on kbuild/for-next]
[also build test ERROR on kbuild/kconfig linus/master v5.11-rc3 next-20210114]
[cannot apply to linux/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Masahiro-Yamada/kbuild-check-the...
base: https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git for-next
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/5f010de7ba469de379b56394a62a90f32...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Masahiro-Yamada/kbuild-check-the-minimum-compiler-version-in-Kconfig/20210114-123017
git checkout 5f010de7ba469de379b56394a62a90f32d00cb6e
# save the attached .config to linux build tree
make W=1 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 >>):
>> Error: kernelrelease not valid - run 'make prepare' to update it
--
>> sh: 1: scripts/cc-version.sh: not found
scripts/Kconfig.include:44: Sorry, this compiler is unsupported.
--
>> sh: 1: scripts/cc-version.sh: not found
scripts/Kconfig.include:44: Sorry, this compiler is unsupported.
make[3]: *** [scripts/kconfig/Makefile:71: syncconfig] Error 1
make[2]: *** [Makefile:602: syncconfig] Error 2
make[1]: *** [Makefile:710: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
>> make[1]: *** No rule to make target 'modules_prepare'.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
>> sh: 1: scripts/cc-version.sh: not found
scripts/Kconfig.include:44: Sorry, this compiler is unsupported.
make[2]: *** [scripts/kconfig/Makefile:71: olddefconfig] Error 1
make[1]: *** [Makefile:602: olddefconfig] Error 2
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'olddefconfig' not remade because of errors.
--
>> sh: 1: scripts/cc-version.sh: not found
scripts/Kconfig.include:44: Sorry, this compiler is unsupported.
make[3]: *** [scripts/kconfig/Makefile:71: syncconfig] Error 1
make[2]: *** [Makefile:602: syncconfig] Error 2
make[1]: *** [Makefile:710: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
make[1]: *** [arch/x86/Makefile:278: checkbin] Error 1
>> Error: kernelrelease not valid - run 'make prepare' to update it
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH v2 2/2] clk: mvebu: use firmware SiP service for accessing dfx register set
by kernel test robot
Hi,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on clk/clk-next]
[also build test WARNING on linus/master v5.11-rc3 next-20210114]
[cannot apply to thermal/next soc-thermal/next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/kostap-marvell-com/Enable-usage-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: arm64-allyesconfig (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
# https://github.com/0day-ci/linux/commit/8dc917b26b54d723831b58c1f166a15a1...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review kostap-marvell-com/Enable-usage-of-Marvell-FW-SIP-services/20210114-183207
git checkout 8dc917b26b54d723831b58c1f166a15a1b7d28e2
# 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 >>):
In file included from include/linux/regmap.h:20,
from drivers/clk/mvebu/ap-cpu-clk.c:21:
drivers/clk/mvebu/ap-cpu-clk.c: In function 'legacy_regmap_read_poll_timeout':
drivers/clk/mvebu/ap-cpu-clk.c:252:11: error: 'val' undeclared (first use in this function)
252 | reg, val,
| ^~~
include/linux/iopoll.h:46:14: note: in definition of macro 'read_poll_timeout'
46 | (val) = op(args); \
| ^~~~
drivers/clk/mvebu/ap-cpu-clk.c:251:9: note: in expansion of macro 'regmap_read_poll_timeout'
251 | return regmap_read_poll_timeout(clk->pll_cr_base,
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/clk/mvebu/ap-cpu-clk.c:252:11: note: each undeclared identifier is reported only once for each function it appears in
252 | reg, val,
| ^~~
include/linux/iopoll.h:46:14: note: in definition of macro 'read_poll_timeout'
46 | (val) = op(args); \
| ^~~~
drivers/clk/mvebu/ap-cpu-clk.c:251:9: note: in expansion of macro 'regmap_read_poll_timeout'
251 | return regmap_read_poll_timeout(clk->pll_cr_base,
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/clk/mvebu/ap-cpu-clk.c: In function 'ap_cpu_clk_set_rate':
drivers/clk/mvebu/ap-cpu-clk.c:313:20: error: macro "regmap_read_poll_timeout" requires 6 arguments, but only 3 given
313 | stable_bit);
| ^
In file included from drivers/clk/mvebu/ap-cpu-clk.c:21:
include/linux/regmap.h:103: note: macro "regmap_read_poll_timeout" defined here
103 | #define regmap_read_poll_timeout(map, addr, val, cond, sleep_us, timeout_us) \
|
>> drivers/clk/mvebu/ap-cpu-clk.c:311:6: warning: assignment to 'int' from 'int (*)(struct ap_cpu_clk *, unsigned int, unsigned int)' makes integer from pointer without a cast [-Wint-conversion]
311 | ret = clk->regmap_read_poll_timeout(clk,
| ^
>> drivers/clk/mvebu/ap-cpu-clk.c:277:61: warning: variable 'stable_bit' set but not used [-Wunused-but-set-variable]
277 | unsigned int cpu_clkdiv_reg, cpu_force_reg, cpu_ratio_reg, stable_bit;
| ^~~~~~~~~~
drivers/clk/mvebu/ap-cpu-clk.c: In function 'ap_cpu_clock_probe':
drivers/clk/mvebu/ap-cpu-clk.c:440:30: error: 'struct ap_cpu_clk' has no member named 'regmap_wriite'; did you mean 'regmap_write'?
440 | ap_cpu_clk[cluster_index].regmap_wriite = smc_regmap_write;
| ^~~~~~~~~~~~~
| regmap_write
drivers/clk/mvebu/ap-cpu-clk.c:446:30: error: 'struct ap_cpu_clk' has no member named 'regmap_wriite'; did you mean 'regmap_write'?
446 | ap_cpu_clk[cluster_index].regmap_wriite = legacy_regmap_write;
| ^~~~~~~~~~~~~
| regmap_write
drivers/clk/mvebu/ap-cpu-clk.c: In function 'smc_regmap_read_poll_timeout':
drivers/clk/mvebu/ap-cpu-clk.c:245:1: error: control reaches end of non-void function [-Werror=return-type]
245 | }
| ^
cc1: some warnings being treated as errors
vim +311 drivers/clk/mvebu/ap-cpu-clk.c
271
272 static int ap_cpu_clk_set_rate(struct clk_hw *hw, unsigned long rate,
273 unsigned long parent_rate)
274 {
275 struct ap_cpu_clk *clk = to_ap_cpu_clk(hw);
276 int ret, reg, divider = parent_rate / rate;
> 277 unsigned int cpu_clkdiv_reg, cpu_force_reg, cpu_ratio_reg, stable_bit;
278
279 cpu_clkdiv_reg = clk->pll_regs->divider_reg +
280 (clk->cluster * clk->pll_regs->cluster_offset);
281 cpu_force_reg = clk->pll_regs->force_reg +
282 (clk->cluster * clk->pll_regs->cluster_offset);
283 cpu_ratio_reg = clk->pll_regs->ratio_reg +
284 (clk->cluster * clk->pll_regs->cluster_offset);
285
286 clk->regmap_read(clk, cpu_clkdiv_reg, ®);
287 reg &= ~(clk->pll_regs->divider_mask);
288 reg |= (divider << clk->pll_regs->divider_offset);
289
290 /*
291 * AP807 CPU divider has two channels with ratio 1:3 and divider_ratio
292 * is 1. Otherwise, in the case of the AP806, divider_ratio is 0.
293 */
294 if (clk->pll_regs->divider_ratio) {
295 reg &= ~(AP807_PLL_CR_1_CPU_CLK_DIV_RATIO_MASK);
296 reg |= ((divider * clk->pll_regs->divider_ratio) <<
297 AP807_PLL_CR_1_CPU_CLK_DIV_RATIO_OFFSET);
298 }
299 clk->regmap_write(clk, cpu_clkdiv_reg, reg);
300
301 clk->regmap_update_bits(clk, cpu_force_reg, clk->pll_regs->force_mask,
302 clk->pll_regs->force_mask);
303
304 clk->regmap_update_bits(clk, cpu_ratio_reg,
305 BIT(clk->pll_regs->ratio_offset),
306 BIT(clk->pll_regs->ratio_offset));
307
308 stable_bit = BIT(clk->pll_regs->ratio_state_offset +
309 clk->cluster *
310 clk->pll_regs->ratio_state_cluster_offset);
> 311 ret = clk->regmap_read_poll_timeout(clk,
312 clk->pll_regs->ratio_state_reg,
313 stable_bit);
314 if (ret)
315 return ret;
316
317 clk->regmap_update_bits(clk, cpu_ratio_reg,
318 BIT(clk->pll_regs->ratio_offset), 0);
319
320 return 0;
321 }
322
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
hppa64-linux-ld: kernel/sched/core.o(.text+0x23c): cannot reach debug_smp_processor_id
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 65f0d2414b7079556fbbcc070b3d1c9f9587606d
commit: 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03 userfaultfd: wp: add the writeprotect API to userfaultfd ioctl
date: 9 months ago
config: parisc-randconfig-r022-20210113 (attached as .config)
compiler: hppa64-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/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 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03
# 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 >>):
hppa64-linux-ld: init/do_mounts.o(.init.text+0x850): cannot reach wait_for_device_probe
hppa64-linux-ld: init/do_mounts.o(.init.text+0x890): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.init.text+0x8b4): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.init.text+0x924): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.init.text+0x97c): cannot reach driver_probe_done
hppa64-linux-ld: init/do_mounts_initrd.o(.init.text+0x48): cannot reach memparse
hppa64-linux-ld: init/do_mounts_initrd.o(.init.text+0x78): cannot reach memparse
hppa64-linux-ld: init/initramfs.o(.init.text+0xb00): cannot reach strcpy
hppa64-linux-ld: init/initramfs.o(.init.text+0xbf4): cannot reach strcmp
hppa64-linux-ld: init/initramfs.o(.init.text+0xe70): cannot reach __list_add_valid
hppa64-linux-ld: init/initramfs.o(.init.text+0x102c): cannot reach memcpy
hppa64-linux-ld: init/initramfs.o(.init.text+0x1130): cannot reach simple_strtoul
hppa64-linux-ld: init/initramfs.o(.init.text+0x12bc): cannot reach memcmp
hppa64-linux-ld: init/initramfs.o(.init.text+0x12fc): cannot reach memcmp
hppa64-linux-ld: init/initramfs.o(.init.text+0x1700): cannot reach snprintf
hppa64-linux-ld: init/initramfs.o(.init.text+0x179c): cannot reach __list_del_entry_valid
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x6c): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0xe8): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x150): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x1a0): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x1cc): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x2bc): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x2f4): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x36c): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x3b4): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x408): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x42c): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x4a0): cannot reach find_next_zero_bit
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x4d8): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.init.text+0x5f8): cannot reach memcmp
hppa64-linux-ld: arch/parisc/mm/init.o(.init.text+0x618): cannot reach memparse
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x80): cannot reach unknown
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0xa8): cannot reach unknown
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0xcc): cannot reach unknown
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0xe8): cannot reach __flush_tlb_range
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x100): cannot reach flush_kernel_dcache_range_asm
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x118): cannot reach flush_kernel_icache_range_asm
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x13c): cannot reach free_reserved_area
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x14c): cannot reach pdc_chassis_send_status
hppa64-linux-ld: arch/parisc/kernel/setup.o(.init.text+0x1f4): cannot reach __sw_hweight64
hppa64-linux-ld: arch/parisc/kernel/setup.o(.init.text+0x2c4): cannot reach strlcpy
hppa64-linux-ld: arch/parisc/kernel/setup.o(.init.text+0x30c): cannot reach strcpy
hppa64-linux-ld: arch/parisc/kernel/setup.o(.init.text+0x370): cannot reach debug_smp_processor_id
hppa64-linux-ld: arch/parisc/kernel/setup.o(.init.text+0x4b0): cannot reach debug_smp_processor_id
hppa64-linux-ld: arch/parisc/kernel/topology.o(.init.text+0xc0): cannot reach cpumask_next
hppa64-linux-ld: arch/parisc/kernel/topology.o(.init.text+0x194): cannot reach cpumask_next
hppa64-linux-ld: arch/parisc/kernel/topology.o(.init.text+0x2f0): cannot reach cpumask_next
hppa64-linux-ld: kernel/softirq.o(.text+0xc8): cannot reach strlen
hppa64-linux-ld: kernel/softirq.o(.text+0xf0): cannot reach debug_smp_processor_id
hppa64-linux-ld: kernel/softirq.o(.text+0x168): cannot reach strcpy
hppa64-linux-ld: kernel/softirq.o(.text+0x224): cannot reach debug_smp_processor_id
hppa64-linux-ld: kernel/softirq.o(.text+0x304): cannot reach debug_smp_processor_id
hppa64-linux-ld: kernel/softirq.o(.text+0x404): cannot reach strlen
hppa64-linux-ld: kernel/softirq.o(.text+0x460): cannot reach strcpy
hppa64-linux-ld: kernel/softirq.o(.text+0x918): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: kernel/softirq.o(.text+0x980): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: kernel/softirq.o(.text+0xa18): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: kernel/softirq.o(.text+0xb50): cannot reach yield
hppa64-linux-ld: kernel/softirq.o(.text+0xdd4): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: kernel/softirq.o(.text+0xe20): cannot reach __do_softirq
hppa64-linux-ld: kernel/softirq.o(.text+0xe88): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: kernel/softirq.o(.text+0xeec): cannot reach __do_softirq
hppa64-linux-ld: kernel/softirq.o(.text+0x1064): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: kernel/softirq.o(.text+0x1114): cannot reach preempt_schedule
hppa64-linux-ld: kernel/softirq.o(.text+0x12b4): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: kernel/softirq.o(.text+0x12f4): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: kernel/softirq.o(.text+0x1328): cannot reach __do_softirq
hppa64-linux-ld: kernel/softirq.o(.text+0x13a8): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: kernel/softirq.o(.text+0x1548): cannot reach preempt_schedule_notrace
hppa64-linux-ld: kernel/softirq.o(.text+0x1844): cannot reach debug_smp_processor_id
hppa64-linux-ld: kernel/softirq.o(.text+0x18ac): cannot reach debug_smp_processor_id
hppa64-linux-ld: kernel/softirq.o(.text+0x19b0): cannot reach debug_smp_processor_id
hppa64-linux-ld: kernel/softirq.o(.text+0x1b28): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: kernel/softirq.o(.text+0x1b58): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: kernel/softirq.o(.text+0x1bf4): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: kernel/softirq.o(.text+0x1c24): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: kernel/softirq.o(.init.text+0x118): cannot reach cpumask_next
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0xd0): cannot reach preempt_count_add
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x278): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x2d0): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x310): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x3f4): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x414): cannot reach unknown
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x42c): cannot reach unknown
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x46c): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x490): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x518): cannot reach rcu_softirq_qs
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x578): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x59c): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x640): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x6b4): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x6d8): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x760): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x7a0): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/softirq.o(.softirqentry.text+0x7e8): cannot reach ftrace_likely_update
hppa64-linux-ld: kernel/extable.o(.text+0x30): cannot reach search_extable
hppa64-linux-ld: kernel/extable.o(.text+0x8c): cannot reach search_extable
hppa64-linux-ld: kernel/extable.o(.init.text+0x44): cannot reach sort_extable
hppa64-linux-ld: kernel/sched/core.o(.text+0x2c): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/sched/core.o(.text+0x84): cannot reach _raw_spin_unlock_irqrestore
>> hppa64-linux-ld: kernel/sched/core.o(.text+0x23c): cannot reach debug_smp_processor_id
hppa64-linux-ld: kernel/sched/core.o(.text+0x334): cannot reach debug_smp_processor_id
hppa64-linux-ld: kernel/sched/core.o(.text+0x1bb8): cannot reach strlen
hppa64-linux-ld: kernel/sched/core.o(.text+0x1c58): cannot reach strcpy
hppa64-linux-ld: kernel/sched/core.o(.text+0x1d50): cannot reach strlen
hppa64-linux-ld: kernel/sched/core.o(.text+0x1db0): cannot reach strcpy
hppa64-linux-ld: kernel/sched/core.o(.text+0x1ea8): cannot reach __cmpxchg_u64
hppa64-linux-ld: kernel/sched/core.o(.text+0x2128): cannot reach _raw_spin_unlock_irq
hppa64-linux-ld: kernel/sched/core.o(.text+0x26a8): cannot reach __udivdi3
hppa64-linux-ld: kernel/sched/core.o(.text+0x2744): cannot reach _raw_spin_unlock_irq
hppa64-linux-ld: kernel/sched/core.o(.text+0x277c): cannot reach _raw_spin_lock_irq
hppa64-linux-ld: kernel/sched/core.o(.text+0x2798): cannot reach _raw_spin_unlock_irq
hppa64-linux-ld: kernel/sched/core.o(.text+0x2814): cannot reach __cmpxchg_u64
hppa64-linux-ld: kernel/sched/core.o(.text+0x2908): cannot reach memset
hppa64-linux-ld: kernel/sched/core.o(.text+0x4e44): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/sched/core.o(.text+0x4ee8): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x4fbc): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/sched/core.o(.text+0x4fe4): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/sched/core.o(.text+0x5090): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x50a8): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0x5254): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x5268): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0x5554): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x5568): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0x5d98): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/sched/core.o(.text+0x5e2c): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x5e50): cannot reach schedule
hppa64-linux-ld: kernel/sched/core.o(.text+0x5ff4): cannot reach preempt_schedule
hppa64-linux-ld: kernel/sched/core.o(.text+0x6354): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x636c): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0x64a4): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x64b8): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0x6504): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x651c): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0x69b0): cannot reach preempt_schedule
hppa64-linux-ld: kernel/sched/core.o(.text+0x6b48): cannot reach memset
hppa64-linux-ld: kernel/sched/core.o(.text+0x6d34): cannot reach raw_copy_from_user
hppa64-linux-ld: kernel/sched/core.o(.text+0x7124): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x7134): cannot reach unknown
hppa64-linux-ld: kernel/sched/core.o(.text+0x7144): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/sched/core.o(.text+0x7210): cannot reach __cmpxchg_u64
hppa64-linux-ld: kernel/sched/core.o(.text+0x7440): cannot reach preempt_schedule_notrace
hppa64-linux-ld: kernel/sched/core.o(.text+0x7494): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/sched/core.o(.text+0x74ec): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0x78d8): cannot reach preempt_schedule_notrace
hppa64-linux-ld: kernel/sched/core.o(.text+0x7d74): cannot reach cpumask_next
hppa64-linux-ld: kernel/sched/core.o(.text+0x7e3c): cannot reach cpumask_next
hppa64-linux-ld: kernel/sched/core.o(.text+0x81cc): cannot reach preempt_schedule_notrace
hppa64-linux-ld: kernel/sched/core.o(.text+0x82e4): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x8310): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/sched/core.o(.text+0x8568): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x857c): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0x85c4): cannot reach cpumask_any_and_distribute
hppa64-linux-ld: kernel/sched/core.o(.text+0x8710): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x8728): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0x8808): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/sched/core.o(.text+0x8830): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0x8b68): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0x8cb0): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x8cc8): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/sched/core.o(.text+0x8d14): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x8e24): cannot reach preempt_schedule
hppa64-linux-ld: kernel/sched/core.o(.text+0x8f58): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x8f70): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0x9554): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x959c): cannot reach preempt_schedule_notrace
hppa64-linux-ld: kernel/sched/core.o(.text+0x95e4): cannot reach preempt_schedule_notrace
hppa64-linux-ld: kernel/sched/core.o(.text+0x962c): cannot reach preempt_schedule_notrace
hppa64-linux-ld: kernel/sched/core.o(.text+0x9674): cannot reach preempt_schedule_notrace
hppa64-linux-ld: kernel/sched/core.o(.text+0x9a18): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x9a30): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0x9b60): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0x9b78): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0x9d30): cannot reach schedule_hrtimeout
hppa64-linux-ld: kernel/sched/core.o(.text+0x9d78): cannot reach preempt_schedule_notrace
hppa64-linux-ld: kernel/sched/core.o(.text+0x9eb8): cannot reach __xchg64
hppa64-linux-ld: kernel/sched/core.o(.text+0x9f00): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/sched/core.o(.text+0x9f78): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0xa00c): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/sched/core.o(.text+0xa020): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/sched/core.o(.text+0xa048): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0xa058): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0xa41c): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/sched/core.o(.text+0xa440): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0xa4a8): cannot reach preempt_schedule_notrace
hppa64-linux-ld: kernel/sched/core.o(.text+0xac34): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/sched/core.o(.text+0xacdc): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0xad18): cannot reach memset
hppa64-linux-ld: kernel/sched/core.o(.text+0xae38): cannot reach __udivdi3
hppa64-linux-ld: kernel/sched/core.o(.text+0xaec4): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/sched/core.o(.text+0xb0fc): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/sched/core.o(.text+0xb110): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0xb308): cannot reach preempt_schedule_notrace
hppa64-linux-ld: kernel/sched/core.o(.text+0xb4e4): cannot reach preempt_schedule
hppa64-linux-ld: kernel/sched/core.o(.text+0xb578): cannot reach cpumask_next
hppa64-linux-ld: kernel/sched/core.o(.text+0xb640): cannot reach cpumask_next
hppa64-linux-ld: kernel/sched/core.o(.text+0xb750): cannot reach cpumask_next
hppa64-linux-ld: kernel/sched/core.o(.text+0xb7d4): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/sched/core.o(.text+0xb898): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0xb8f4): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/sched/core.o(.text+0xb988): cannot reach _raw_spin_unlock
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[android-common:android12-5.10 2/2] kernel/trace/trace.c:9323:16: warning: variable 'size' set but not used
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 084fab46dd7c1be137dd7f5981bac7d38d1c0fb2
commit: 084fab46dd7c1be137dd7f5981bac7d38d1c0fb2 [2/2] ANDROID: ftrace: vendor hook for ftrace dump on oops
config: i386-randconfig-r032-20210114 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout 084fab46dd7c1be137dd7f5981bac7d38d1c0fb2
# 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 >>):
kernel/trace/trace.c: In function 'ftrace_dump':
>> kernel/trace/trace.c:9323:16: warning: variable 'size' set but not used [-Wunused-but-set-variable]
9323 | unsigned long size;
| ^~~~
vim +/size +9323 kernel/trace/trace.c
9312
9313 void ftrace_dump(enum ftrace_dump_mode oops_dump_mode)
9314 {
9315 /* use static because iter can be a bit big for the stack */
9316 static struct trace_iterator iter;
9317 static atomic_t dump_running;
9318 struct trace_array *tr = &global_trace;
9319 unsigned int old_userobj;
9320 unsigned long flags;
9321 int cnt = 0, cpu;
9322 bool ftrace_check = false;
> 9323 unsigned long size;
9324
9325 /* Only allow one dump user at a time. */
9326 if (atomic_inc_return(&dump_running) != 1) {
9327 atomic_dec(&dump_running);
9328 return;
9329 }
9330
9331 /*
9332 * Always turn off tracing when we dump.
9333 * We don't need to show trace output of what happens
9334 * between multiple crashes.
9335 *
9336 * If the user does a sysrq-z, then they can re-enable
9337 * tracing with echo 1 > tracing_on.
9338 */
9339 tracing_off();
9340
9341 local_irq_save(flags);
9342 printk_nmi_direct_enter();
9343
9344 /* Simulate the iterator */
9345 trace_init_global_iter(&iter);
9346 /* Can not use kmalloc for iter.temp */
9347 iter.temp = static_temp_buf;
9348 iter.temp_size = STATIC_TEMP_BUF_SIZE;
9349
9350 for_each_tracing_cpu(cpu) {
9351 atomic_inc(&per_cpu_ptr(iter.array_buffer->data, cpu)->disabled);
9352 size = ring_buffer_size(iter.array_buffer->buffer, cpu);
9353 trace_android_vh_ftrace_size_check(size, &ftrace_check);
9354 }
9355
9356 old_userobj = tr->trace_flags & TRACE_ITER_SYM_USEROBJ;
9357
9358 /* don't look at user memory in panic mode */
9359 tr->trace_flags &= ~TRACE_ITER_SYM_USEROBJ;
9360
9361 if (ftrace_check)
9362 goto out_enable;
9363
9364 switch (oops_dump_mode) {
9365 case DUMP_ALL:
9366 iter.cpu_file = RING_BUFFER_ALL_CPUS;
9367 break;
9368 case DUMP_ORIG:
9369 iter.cpu_file = raw_smp_processor_id();
9370 break;
9371 case DUMP_NONE:
9372 goto out_enable;
9373 default:
9374 printk(KERN_TRACE "Bad dumping mode, switching to all CPUs dump\n");
9375 iter.cpu_file = RING_BUFFER_ALL_CPUS;
9376 }
9377
9378 printk(KERN_TRACE "Dumping ftrace buffer:\n");
9379
9380 /* Did function tracer already get disabled? */
9381 if (ftrace_is_dead()) {
9382 printk("# WARNING: FUNCTION TRACING IS CORRUPTED\n");
9383 printk("# MAY BE MISSING FUNCTION EVENTS\n");
9384 }
9385
9386 /*
9387 * We need to stop all tracing on all CPUS to read
9388 * the next buffer. This is a bit expensive, but is
9389 * not done often. We fill all what we can read,
9390 * and then release the locks again.
9391 */
9392
9393 while (!trace_empty(&iter)) {
9394 ftrace_check = true;
9395
9396 if (!cnt)
9397 printk(KERN_TRACE "---------------------------------\n");
9398
9399 cnt++;
9400
9401 trace_iterator_reset(&iter);
9402 trace_android_vh_ftrace_format_check(&ftrace_check);
9403 if (ftrace_check)
9404 iter.iter_flags |= TRACE_FILE_LAT_FMT;
9405
9406 if (trace_find_next_entry_inc(&iter) != NULL) {
9407 int ret;
9408
9409 ret = print_trace_line(&iter);
9410 if (ret != TRACE_TYPE_NO_CONSUME)
9411 trace_consume(&iter);
9412 }
9413 touch_nmi_watchdog();
9414
9415 trace_printk_seq(&iter.seq);
9416 }
9417
9418 if (!cnt)
9419 printk(KERN_TRACE " (ftrace buffer empty)\n");
9420 else
9421 printk(KERN_TRACE "---------------------------------\n");
9422
9423 out_enable:
9424 tr->trace_flags |= old_userobj;
9425
9426 for_each_tracing_cpu(cpu) {
9427 atomic_dec(&per_cpu_ptr(iter.array_buffer->data, cpu)->disabled);
9428 }
9429 atomic_dec(&dump_running);
9430 printk_nmi_direct_exit();
9431 local_irq_restore(flags);
9432 }
9433 EXPORT_SYMBOL_GPL(ftrace_dump);
9434
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[freescale-fslc:5.4-2.3.x-imx 12045/16543] arch/arm/mach-imx/busfreq_optee.c:107:5: warning: no previous prototype for 'update_freq_optee'
by kernel test robot
tree: https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head: a8a2b9ee4bec0b29d031324160b7f11af42a563a
commit: 7c335a91f0f4c6a7d7d0f8931e1570025222a379 [12045/16543] MLK-20023 Move Busfreq support to OPTEE OS
config: arm-allyesconfig (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
# https://github.com/Freescale/linux-fslc/commit/7c335a91f0f4c6a7d7d0f8931e...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.3.x-imx
git checkout 7c335a91f0f4c6a7d7d0f8931e1570025222a379
# 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 warnings (new ones prefixed by >>):
>> arch/arm/mach-imx/busfreq_optee.c:107:5: warning: no previous prototype for 'update_freq_optee' [-Wmissing-prototypes]
107 | int update_freq_optee(int ddr_rate)
| ^~~~~~~~~~~~~~~~~
>> arch/arm/mach-imx/busfreq_optee.c:278:5: warning: no previous prototype for 'init_freq_optee' [-Wmissing-prototypes]
278 | int init_freq_optee(struct platform_device *busfreq_pdev)
| ^~~~~~~~~~~~~~~
vim +/update_freq_optee +107 arch/arm/mach-imx/busfreq_optee.c
98
99 /**
100 * @brief Request OPTEE OS to change the memory bus frequency
101 * to \a ddr_rate value
102 *
103 * @param[in] rate Bus Frequency
104 *
105 * @retval 0 Success
106 */
> 107 int update_freq_optee(int ddr_rate)
108 {
109 struct arm_smccc_res res;
110
111 uint32_t me = 0;
112 uint32_t dll_off = 0;
113 int mode = get_bus_freq_mode();
114
115 #ifdef CONFIG_SMP
116 uint32_t reg = 0;
117 uint32_t cpu = 0;
118 uint32_t online_cpus = 0;
119 uint32_t all_cpus = 0;
120 #endif
121
122 pr_debug("\nBusfreq DDR3 OPTEE set from %d to %d start...\n",
123 curr_ddr_rate, ddr_rate);
124
125 if (ddr_rate == curr_ddr_rate)
126 return 0;
127
128 if (cpu_is_imx6()) {
129 if ((mode == BUS_FREQ_LOW) || (mode == BUS_FREQ_AUDIO))
130 dll_off = 1;
131 }
132
133 local_irq_disable();
134
135 #ifdef CONFIG_SMP
136 me = smp_processor_id();
137
138 /* Make sure all the online cores to be active */
139 do {
140 all_cpus = 0;
141
142 for_each_online_cpu(cpu)
143 all_cpus |= (pSync->wfe_status[cpu] << cpu);
144 } while (all_cpus);
145
146 pSync->change_ongoing = 1;
147 dsb();
148
149 for_each_online_cpu(cpu) {
150 if (cpu != me) {
151 online_cpus |= (1 << cpu);
152 /* Set the interrupt to be pending in the GIC. */
153 reg = 1 << (irqs_for_wfe[cpu] % 32);
154 writel_relaxed(reg, gic_dist_base + GIC_DIST_PENDING_SET
155 + (irqs_for_wfe[cpu] / 32) * 4);
156 }
157 }
158
159 /* Wait for all active CPUs to be in WFE */
160 do {
161 all_cpus = 0;
162
163 for_each_online_cpu(cpu)
164 all_cpus |= (pSync->wfe_status[cpu] << cpu);
165 } while (all_cpus != online_cpus);
166
167 #endif
168
169 /* Now we can change the DDR frequency. */
170 /* Call the TEE SiP */
171 arm_smccc_smc(OPTEE_SMC_FAST_CALL_SIP_VAL(IMX_SIP_BUSFREQ_CHANGE),
172 ddr_rate, dll_off, 0, 0, 0, 0, 0, &res);
173
174 curr_ddr_rate = ddr_rate;
175
176 #ifdef CONFIG_SMP
177 /* DDR frequency change is done */
178 pSync->change_ongoing = 0;
179 dsb();
180
181 /* wake up all the cores. */
182 sev();
183 #endif
184
185 local_irq_enable();
186
187 pr_debug("Busfreq OPTEE set to %d done! cpu=%d\n", ddr_rate, me);
188
189 return 0;
190 }
191
192 static int init_freq_optee_smp(struct platform_device *busfreq_pdev)
193 {
194 struct device_node *node = 0;
195 struct device *dev = &busfreq_pdev->dev;
196 uint32_t cpu;
197 int err;
198 int irq;
199 struct irq_data *irq_data;
200 unsigned long wfe_iram_base;
201
202 if (cpu_is_imx6()) {
203 node = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-gic");
204 if (!node) {
205 if (cpu_is_imx6q())
206 pr_debug("failed to find imx6q-a9-gic device tree data!\n");
207
208 return -EINVAL;
209 }
210 } else {
211 node = of_find_compatible_node(NULL, NULL, "arm,cortex-a7-gic");
212 if (!node) {
213 pr_debug("failed to find imx7d-a7-gic device tree data!\n");
214 return -EINVAL;
215 }
216 }
217
218 gic_dist_base = of_iomap(node, 0);
219 WARN(!gic_dist_base, "unable to map gic dist registers\n");
220
221 irqs_for_wfe = devm_kzalloc(dev, sizeof(uint32_t) * num_present_cpus(),
222 GFP_KERNEL);
223
224 for_each_online_cpu(cpu) {
225 /*
226 * set up a reserved interrupt to get all
227 * the active cores into a WFE state
228 * before changing the DDR frequency.
229 */
230 irq = platform_get_irq(busfreq_pdev, cpu);
231
232 if (cpu_is_imx6()) {
233 err = request_irq(irq, wait_in_wfe_irq,
234 IRQF_PERCPU, "mmdc_1", NULL);
235 } else {
236 err = request_irq(irq, wait_in_wfe_irq,
237 IRQF_PERCPU, "ddrc", NULL);
238 }
239
240 if (err) {
241 dev_err(dev,
242 "Busfreq:request_irq failed %d, err = %d\n",
243 irq, err);
244 return err;
245 }
246
247 err = irq_set_affinity(irq, cpumask_of(cpu));
248 if (err) {
249 dev_err(dev,
250 "Busfreq: Cannot set irq affinity irq=%d,\n",
251 irq);
252 return err;
253 }
254
255 irq_data = irq_get_irq_data(irq);
256 irqs_for_wfe[cpu] = irq_data->hwirq + 32;
257 }
258
259 /* Store the variable used to communicate between cores */
260 pSync = (void *)ddr_freq_change_iram_base;
261
262 memset(pSync, 0, sizeof(*pSync));
263
264 wfe_iram_base = ddr_freq_change_iram_base + sizeof(*pSync);
265
266 if (wfe_iram_base & (FNCPY_ALIGN - 1))
267 wfe_iram_base += FNCPY_ALIGN -
268 ((uintptr_t)wfe_iram_base % (FNCPY_ALIGN));
269
270 wfe_change_freq = (void *)fncpy((void *)wfe_iram_base,
271 &imx_smp_wfe_optee,
272 ((&imx_smp_wfe_end -&imx_smp_wfe_start) *4));
273
274 return 0;
275
276 }
277
> 278 int init_freq_optee(struct platform_device *busfreq_pdev)
279 {
280 int err = -EINVAL;
281 struct device *dev = &busfreq_pdev->dev;
282
283 if (num_present_cpus() <= 1) {
284 wfe_change_freq = NULL;
285
286 /* Allocate the cores synchronization variables (not used) */
287 pSync = devm_kzalloc(dev, sizeof(*pSync), GFP_KERNEL);
288
289 if (pSync)
290 err = 0;
291 } else {
292 err = init_freq_optee_smp(busfreq_pdev);
293 }
294
295 if (err == 0)
296 curr_ddr_rate = ddr_normal_rate;
297
298 return err;
299 }
300
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[intel-linux-intel-lts:4.19/android_r 14668/21549] net/ceph/messenger.o: warning: objtool: ceph_con_workfn()+0x1df: can't find switch jump table
by kernel test robot
TO: "Greg Kroah-Hartman" <gregkh(a)linuxfoundation.org>
tree: https://github.com/intel/linux-intel-lts.git 4.19/android_r
head: 24f0fbfa4ad1b601f92d91cfcb7f01ad4d0f6acc
commit: d936a940f464e155065a90cc22549c70d50ecffd [14668/21549] UPSTREAM: dynamic_debug: allow to work if debugfs is disabled
config: x86_64-randconfig-r031-20210114 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6077d55381a6aa3e947ef7abdc36a7515c598c8a)
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://github.com/intel/linux-intel-lts/commit/d936a940f464e155065a90cc2...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 4.19/android_r
git checkout d936a940f464e155065a90cc22549c70d50ecffd
# 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 warnings (new ones prefixed by >>):
net/ceph/messenger.c:203:5: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
ntohs(in4->sin_port));
^~~~~~~~~~~~~~~~~~~~
include/linux/byteorder/generic.h:142:18: note: expanded from macro 'ntohs'
#define ntohs(x) ___ntohs(x)
^~~~~~~~~~~
include/linux/byteorder/generic.h:137:21: note: expanded from macro '___ntohs'
#define ___ntohs(x) __be16_to_cpu(x)
^~~~~~~~~~~~~~~~
include/uapi/linux/byteorder/little_endian.h:42:26: note: expanded from macro '__be16_to_cpu'
#define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/uapi/linux/swab.h:104:2: note: expanded from macro '__swab16'
(__builtin_constant_p((__u16)(x)) ? \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/ceph/messenger.c:208:5: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
ntohs(in6->sin6_port));
^~~~~~~~~~~~~~~~~~~~~
include/linux/byteorder/generic.h:142:18: note: expanded from macro 'ntohs'
#define ntohs(x) ___ntohs(x)
^~~~~~~~~~~
include/linux/byteorder/generic.h:137:21: note: expanded from macro '___ntohs'
#define ___ntohs(x) __be16_to_cpu(x)
^~~~~~~~~~~~~~~~
include/uapi/linux/byteorder/little_endian.h:42:26: note: expanded from macro '__be16_to_cpu'
#define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/uapi/linux/swab.h:104:2: note: expanded from macro '__swab16'
(__builtin_constant_p((__u16)(x)) ? \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
>> net/ceph/messenger.o: warning: objtool: ceph_con_workfn()+0x1df: can't find switch jump table
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_VMASTER
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_CONFIGS
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[tobetter-linux:odroid-next 73/84] drivers/power/reset/odroid-reboot.c:63:6: warning: no previous prototype for function 'odroid_card_reset'
by kernel test robot
tree: https://github.com/tobetter/linux odroid-next
head: 1d4ca3c9076bf7e6c1f8cd7d70323c19ebbeb2ec
commit: a5a3182ec9c00109292e11809ff615a62a3b55aa [73/84] ODROID-COMMON: power:reset: Add odroid support
config: arm64-randconfig-r002-20210114 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6077d55381a6aa3e947ef7abdc36a7515c598c8a)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/tobetter/linux/commit/a5a3182ec9c00109292e11809ff615a6...
git remote add tobetter-linux https://github.com/tobetter/linux
git fetch --no-tags tobetter-linux odroid-next
git checkout a5a3182ec9c00109292e11809ff615a62a3b55aa
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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/power/reset/odroid-reboot.c:63:6: warning: no previous prototype for function 'odroid_card_reset' [-Wmissing-prototypes]
void odroid_card_reset(void)
^
drivers/power/reset/odroid-reboot.c:63:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void odroid_card_reset(void)
^
static
1 warning generated.
vim +/odroid_card_reset +63 drivers/power/reset/odroid-reboot.c
62
> 63 void odroid_card_reset(void)
64 {
65 int ret = 0;
66
67 if ((sd_vqsw == 0) && (sd_vmmc == 0))
68 return;
69
70 if (sd_vqen == 0) {
71 gpio_free(sd_vqsw);
72 gpio_free(sd_vmmc);
73 ret = gpio_request_one(sd_vqsw,
74 GPIOF_OUT_INIT_LOW, "REBOOT");
75 CHECK_RET(ret);
76 mdelay(10);
77 ret = gpio_direction_output(sd_vqsw, 1);
78 CHECK_RET(ret);
79 ret = gpio_request_one(sd_vmmc,
80 GPIOF_OUT_INIT_LOW, "REBOOT");
81 CHECK_RET(ret);
82 mdelay(10);
83 ret = gpio_direction_output(sd_vqsw, 0);
84 CHECK_RET(ret);
85 ret = gpio_direction_output(sd_vmmc, 1);
86 CHECK_RET(ret);
87 mdelay(5);
88 gpio_free(sd_vqsw);
89 gpio_free(sd_vmmc);
90 } else {
91 gpio_free(sd_vqsw);
92 gpio_free(sd_vqen);
93 gpio_free(sd_vmmc);
94
95 ret = gpio_request_one(sd_vqsw,
96 GPIOF_OUT_INIT_LOW, "REBOOT");
97 CHECK_RET(ret);
98 ret = gpio_request_one(sd_vqen,
99 GPIOF_OUT_INIT_LOW, "REBOOT");
100 CHECK_RET(ret);
101 ret = gpio_request_one(sd_vmmc,
102 GPIOF_OUT_INIT_LOW, "REBOOT");
103 CHECK_RET(ret);
104 mdelay(100);
105 ret = gpio_direction_input(sd_vqen);
106 CHECK_RET(ret);
107 ret = gpio_direction_input(sd_vmmc);
108 CHECK_RET(ret);
109 ret = gpio_direction_input(sd_vqsw);
110 CHECK_RET(ret);
111 mdelay(5);
112 gpio_free(sd_vqen);
113 gpio_free(sd_vmmc);
114 gpio_free(sd_vqsw);
115 }
116 }
117
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months