From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Jinqian Yang <yangjinqian1@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-6.6 2163/2163] drivers/irqchip/irq-gic-v3.c:1517:6: warning: no previous prototype for function 'is_gicv4p1'
Date: Thu, 24 Apr 2025 02:08:01 +0800 [thread overview]
Message-ID: <202504240137.L2xvmv1X-lkp@intel.com> (raw)
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
reply other threads:[~2025-04-23 18:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202504240137.L2xvmv1X-lkp@intel.com \
--to=lkp@intel.com \
--cc=kernel@openeuler.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yangjinqian1@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.