* [openeuler:OLK-6.6 2163/2163] drivers/irqchip/irq-gic-v3.c:1517:6: warning: no previous prototype for function 'is_gicv4p1'
@ 2025-04-23 18:08 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-23 18:08 UTC (permalink / raw)
To: kernel, Jinqian Yang; +Cc: oe-kbuild-all
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: bb46ff9245f25c71ce2d456156bb2fc39c400aad
commit: 5634a3dfafb71ede4922b523f77389ef2c006b61 [2163/2163] kvm: hisi_virt: Probe and configure IPIV capacity on HIP12
config: arm64-randconfig-001-20250424 (https://download.01.org/0day-ci/archive/20250424/202504240137.L2xvmv1X-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250424/202504240137.L2xvmv1X-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504240137.L2xvmv1X-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/irqchip/irq-gic-v3.c:1517:6: warning: no previous prototype for function 'is_gicv4p1' [-Wmissing-prototypes]
1517 | bool is_gicv4p1(void)
| ^
drivers/irqchip/irq-gic-v3.c:1517:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1517 | bool is_gicv4p1(void)
| ^
| static
>> drivers/irqchip/irq-gic-v3.c:1526:6: warning: no previous prototype for function 'gic_dist_enable_ipiv' [-Wmissing-prototypes]
1526 | void gic_dist_enable_ipiv(void)
| ^
drivers/irqchip/irq-gic-v3.c:1526:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1526 | void gic_dist_enable_ipiv(void)
| ^
| static
2 warnings generated.
vim +/is_gicv4p1 +1517 drivers/irqchip/irq-gic-v3.c
1516
> 1517 bool is_gicv4p1(void)
1518 {
1519 if (!gic_data.rdists.has_rvpeid)
1520 return false;
1521
1522 return true;
1523 }
1524 EXPORT_SYMBOL(is_gicv4p1);
1525
> 1526 void gic_dist_enable_ipiv(void)
1527 {
1528 u32 val;
1529
1530 val = readl_relaxed(gic_data.dist_base + GICD_MISC_CTRL);
1531 val |= GICD_MISC_CTRL_CFG_IPIV_EN;
1532 writel_relaxed(val, gic_data.dist_base + GICD_MISC_CTRL);
1533 static_branch_enable(&ipiv_enable);
1534
1535 val = (0 << GICD_IPIV_CTRL_AFF_DIRECT_VPEID_SHIFT) |
1536 (0 << GICD_IPIV_CTRL_AFF1_LEFT_SHIFT_SHIFT) |
1537 (4 << GICD_IPIV_CTRL_AFF2_LEFT_SHIFT_SHIFT) |
1538 (7 << GICD_IPIV_CTRL_VM_TABLE_INNERCACHE_SHIFT) |
1539 (2 << GICD_IPIV_CTRL_VM_TABLE_SHAREABILITY_SHIFT);
1540 writel_relaxed(val, gic_data.dist_base + GICD_IPIV_CTRL);
1541
1542 /* Set target ITS address of IPIV feature */
1543 writel_relaxed(0x4880, gic_data.dist_base + GICD_IPIV_ITS_TA_BASE);
1544 }
1545 EXPORT_SYMBOL(gic_dist_enable_ipiv);
1546
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-04-23 18:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-23 18:08 [openeuler:OLK-6.6 2163/2163] drivers/irqchip/irq-gic-v3.c:1517:6: warning: no previous prototype for function 'is_gicv4p1' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.