From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Jianquan Lin <linjianquan2@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-6.6 3075/3075] drivers/ub/ubus/ubus_driver.c:64:27: warning: no previous prototype for function 'ub_find_bus_controller'
Date: Sat, 1 Nov 2025 00:00:30 +0800 [thread overview]
Message-ID: <202510312355.LNPDosJ5-lkp@intel.com> (raw)
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 6a5b2f9a14178b13fe5efc52ba6575f5294c1270
commit: 26a640c9d1b1f7764bd933b7bf6ffca8ddbc6efd [3075/3075] ub:ubus: add ubus controller framework
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20251031/202510312355.LNPDosJ5-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251031/202510312355.LNPDosJ5-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/202510312355.LNPDosJ5-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/ub/ubus/ubus_driver.c:64:27: warning: no previous prototype for function 'ub_find_bus_controller' [-Wmissing-prototypes]
64 | struct ub_bus_controller *ub_find_bus_controller(u32 ctl_no)
| ^
drivers/ub/ubus/ubus_driver.c:64:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
64 | struct ub_bus_controller *ub_find_bus_controller(u32 ctl_no)
| ^
| static
drivers/ub/ubus/ubus_driver.c:154:28: warning: no previous prototype for function 'ub_match_id' [-Wmissing-prototypes]
154 | const struct ub_device_id *ub_match_id(const struct ub_device_id *ids,
| ^
drivers/ub/ubus/ubus_driver.c:154:7: note: declare 'static' if the function is not intended to be used outside of this translation unit
154 | const struct ub_device_id *ub_match_id(const struct ub_device_id *ids,
| ^
| static
drivers/ub/ubus/ubus_driver.c:484:6: warning: no previous prototype for function 'ub_bus_type_init' [-Wmissing-prototypes]
484 | void ub_bus_type_init(void)
| ^
drivers/ub/ubus/ubus_driver.c:484:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
484 | void ub_bus_type_init(void)
| ^
| static
drivers/ub/ubus/ubus_driver.c:496:6: warning: no previous prototype for function 'ub_bus_type_uninit' [-Wmissing-prototypes]
496 | void ub_bus_type_uninit(void)
| ^
drivers/ub/ubus/ubus_driver.c:496:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
496 | void ub_bus_type_uninit(void)
| ^
| static
4 warnings generated.
vim +/ub_find_bus_controller +64 drivers/ub/ubus/ubus_driver.c
63
> 64 struct ub_bus_controller *ub_find_bus_controller(u32 ctl_no)
65 {
66 struct ub_bus_controller *ubc;
67
68 list_for_each_entry(ubc, &ubc_list, node)
69 if (ubc->ctl_no == ctl_no)
70 return ubc;
71
72 return NULL;
73 }
74 EXPORT_SYMBOL_GPL(ub_find_bus_controller);
75
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-10-31 16:01 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=202510312355.LNPDosJ5-lkp@intel.com \
--to=lkp@intel.com \
--cc=kernel@openeuler.org \
--cc=linjianquan2@huawei.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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.