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/sysfs.c:395:5: warning: no previous prototype for function 'ub_create_sysfs_dev_files'
Date: Sat, 8 Nov 2025 02:10:05 +0800 [thread overview]
Message-ID: <202511080120.CzSyQkhc-lkp@intel.com> (raw)
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 66984acf4b16f28a2cc0d5d6186b4b6bbfd92e26
commit: 9039065cf6d07af72879991553397629d8bd4e92 [3075/3075] ub:ubus: Adding a ue Creation Destruction Mechanism
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20251108/202511080120.CzSyQkhc-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/20251108/202511080120.CzSyQkhc-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/202511080120.CzSyQkhc-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/ub/ubus/sysfs.c:395:5: warning: no previous prototype for function 'ub_create_sysfs_dev_files' [-Wmissing-prototypes]
395 | int ub_create_sysfs_dev_files(struct ub_entity *uent)
| ^
drivers/ub/ubus/sysfs.c:395:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
395 | int ub_create_sysfs_dev_files(struct ub_entity *uent)
| ^
| static
>> drivers/ub/ubus/sysfs.c:406:6: warning: no previous prototype for function 'ub_remove_sysfs_ent_files' [-Wmissing-prototypes]
406 | void ub_remove_sysfs_ent_files(struct ub_entity *uent)
| ^
drivers/ub/ubus/sysfs.c:406:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
406 | void ub_remove_sysfs_ent_files(struct ub_entity *uent)
| ^
| static
2 warnings generated.
vim +/ub_create_sysfs_dev_files +395 drivers/ub/ubus/sysfs.c
394
> 395 int ub_create_sysfs_dev_files(struct ub_entity *uent)
396 {
397 int retval;
398
399 retval = ub_create_capabilities_sysfs(uent);
400 if (retval)
401 return retval;
402
403 return 0;
404 }
405
> 406 void ub_remove_sysfs_ent_files(struct ub_entity *uent)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-11-07 18:11 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=202511080120.CzSyQkhc-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.