[sudeep-holla:ffa_notifications_proto 10/15] drivers/firmware/arm_ffa/driver.c:1127:6: warning: no previous prototype for 'handle_notifications'

From: kernel test robot
Date: Mon Oct 25 2021 - 21:50:16 EST


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@xxxxxxxxx>

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@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip