From: kernel test robot <lkp@intel.com>
To: Marc Bonnici <marc.bonnici@arm.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Sudeep Holla <sudeep.holla@arm.com>
Subject: [sudeep-holla:ffa_notifications_proto 10/15] drivers/firmware/arm_ffa/driver.c:1127:6: warning: no previous prototype for 'handle_notifications'
Date: Tue, 26 Oct 2021 09:48:32 +0800 [thread overview]
Message-ID: <202110260928.D0pHs0IX-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3651 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git ffa_notifications_proto
head: c58dfd7efd456c261212967aebc7938a7d5998be
commit: 9cc632923b73b846af28cff5259961b020bd5588 [10/15] ffa_driver: Add Notification mechanism
config: arm64-randconfig-r023-20211021 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.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/sudeep.holla/linux.git/commit/?id=9cc632923b73b846af28cff5259961b020bd5588
git remote add sudeep-holla https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git
git fetch --no-tags sudeep-holla ffa_notifications_proto
git checkout 9cc632923b73b846af28cff5259961b020bd5588
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/firmware/arm_ffa/driver.c: In function 'ffa_compatible_version_find':
drivers/firmware/arm_ffa/driver.c:310:13: warning: unused variable 'compat_version' [-Wunused-variable]
310 | u32 compat_version;
| ^~~~~~~~~~~~~~
drivers/firmware/arm_ffa/driver.c: At top level:
>> drivers/firmware/arm_ffa/driver.c:1127:6: warning: no previous prototype for 'handle_notifications' [-Wmissing-prototypes]
1127 | void handle_notifications(struct work_struct *_)
| ^~~~~~~~~~~~~~~~~~~~
drivers/firmware/arm_ffa/driver.c:1283:6: warning: no previous prototype for '__enable_schedule_receiver_interrupt' [-Wmissing-prototypes]
1283 | void __enable_schedule_receiver_interrupt(void* _) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/firmware/arm_ffa/driver.c:627:12: warning: 'ffa_notification_set' defined but not used [-Wunused-function]
627 | static int ffa_notification_set(ffa_partition_id_t src_id, ffa_partition_id_t dst_id,
| ^~~~~~~~~~~~~~~~~~~~
vim +/handle_notifications +1127 drivers/firmware/arm_ffa/driver.c
1126
> 1127 void handle_notifications(struct work_struct *_)
1128 {
1129 int rc;
1130 u32 flags = 0;
1131 struct ffa_notification_bitmaps bitmaps;
1132
1133 pr_debug("Handling Notifications on cpu: %d\n", smp_processor_id());
1134
1135 /* Get all notification bitmaps */
1136 flags |= ALL_NOTIFICATION_BITMAPS_FLAGS;
1137
1138 rc = ffa_notification_get(flags, &bitmaps);
1139
1140 if (rc) {
1141 pr_err("Failed to retreive notifications with %d!\n", rc);
1142 return;
1143 }
1144
1145 /* Handle VM and SP Partition Notifications */
1146 pr_debug("Handling VM Notifications...\n");
1147 handle_notification_bitmap(&bitmaps.vm_notifications,
1148 notification_callbacks.from_vm);
1149 pr_debug("Handling SP Notification...\n");
1150 handle_notification_bitmap(&bitmaps.sp_notifications,
1151 notification_callbacks.from_sp);
1152 pr_debug("Handling Architected Notification...\n");
1153 handle_notification_bitmap(&bitmaps.architected_notifications,
1154 notification_callbacks.from_framework);
1155
1156 return;
1157 }
1158 DECLARE_WORK(handle_notifications_work, handle_notifications);
1159
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 47178 bytes --]
reply other threads:[~2021-10-26 1:50 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=202110260928.D0pHs0IX-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.bonnici@arm.com \
--cc=sudeep.holla@arm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox