From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [chrome-os:chromeos-6.6 133/133] drivers/soc/mediatek/mtk-mmdvfs-v3.c:428:29: warning: unused variable 'mtk_mmdvfs_req_ops'
Date: Tue, 27 May 2025 18:31:41 +0800 [thread overview]
Message-ID: <202505271815.zIQZy03f-lkp@intel.com> (raw)
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-6.6
head: 00e2b7e08c550ff321daba7b9956795d281bdd98
commit: 4d3162e27617a05f29587c0d2850e1be07ce5a28 [133/133] CHROMIUM: remoteproc: vcp: support MMDVFS and MMQOS feature requirement
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250527/202505271815.zIQZy03f-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/20250527/202505271815.zIQZy03f-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/202505271815.zIQZy03f-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/soc/mediatek/mtk-mmdvfs-v3.c:9:
In file included from include/linux/iommu.h:10:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2194:
include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
509 | item];
| ~~~~
include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
516 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
528 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
537 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
drivers/soc/mediatek/mtk-mmdvfs-v3.c:481:6: warning: no previous prototype for function 'vmm_notify_work_func' [-Wmissing-prototypes]
481 | void vmm_notify_work_func(struct work_struct *work)
| ^
drivers/soc/mediatek/mtk-mmdvfs-v3.c:481:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
481 | void vmm_notify_work_func(struct work_struct *work)
| ^
| static
drivers/soc/mediatek/mtk-mmdvfs-v3.c:535:5: warning: no previous prototype for function 'vmm_avs_debug_dump' [-Wmissing-prototypes]
535 | int vmm_avs_debug_dump(char *buf, const struct kernel_param *kp)
| ^
drivers/soc/mediatek/mtk-mmdvfs-v3.c:535:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
535 | int vmm_avs_debug_dump(char *buf, const struct kernel_param *kp)
| ^
| static
drivers/soc/mediatek/mtk-mmdvfs-v3.c:692:5: warning: no previous prototype for function 'mmdvfs_vmm_ceil_step' [-Wmissing-prototypes]
692 | int mmdvfs_vmm_ceil_step(const char *val, const struct kernel_param *kp)
| ^
drivers/soc/mediatek/mtk-mmdvfs-v3.c:692:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
692 | int mmdvfs_vmm_ceil_step(const char *val, const struct kernel_param *kp)
| ^
| static
drivers/soc/mediatek/mtk-mmdvfs-v3.c:717:5: warning: no previous prototype for function 'mmdvfs_rst_clk_rate' [-Wmissing-prototypes]
717 | int mmdvfs_rst_clk_rate(const char *val, const struct kernel_param *kp)
| ^
drivers/soc/mediatek/mtk-mmdvfs-v3.c:717:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
717 | int mmdvfs_rst_clk_rate(const char *val, const struct kernel_param *kp)
| ^
| static
drivers/soc/mediatek/mtk-mmdvfs-v3.c:756:5: warning: no previous prototype for function 'mmdvfs_get_vcp_log' [-Wmissing-prototypes]
756 | int mmdvfs_get_vcp_log(char *buf, const struct kernel_param *kp)
| ^
drivers/soc/mediatek/mtk-mmdvfs-v3.c:756:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
756 | int mmdvfs_get_vcp_log(char *buf, const struct kernel_param *kp)
| ^
| static
drivers/soc/mediatek/mtk-mmdvfs-v3.c:784:5: warning: no previous prototype for function 'mmdvfs_set_vcp_log' [-Wmissing-prototypes]
784 | int mmdvfs_set_vcp_log(const char *val, const struct kernel_param *kp)
| ^
drivers/soc/mediatek/mtk-mmdvfs-v3.c:784:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
784 | int mmdvfs_set_vcp_log(const char *val, const struct kernel_param *kp)
| ^
| static
drivers/soc/mediatek/mtk-mmdvfs-v3.c:813:5: warning: no previous prototype for function 'mmdvfs_get_vmrc_log' [-Wmissing-prototypes]
813 | int mmdvfs_get_vmrc_log(char *buf, const struct kernel_param *kp)
| ^
drivers/soc/mediatek/mtk-mmdvfs-v3.c:813:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
813 | int mmdvfs_get_vmrc_log(char *buf, const struct kernel_param *kp)
| ^
| static
drivers/soc/mediatek/mtk-mmdvfs-v3.c:841:5: warning: no previous prototype for function 'mmdvfs_set_vmrc_log' [-Wmissing-prototypes]
841 | int mmdvfs_set_vmrc_log(const char *val, const struct kernel_param *kp)
| ^
drivers/soc/mediatek/mtk-mmdvfs-v3.c:841:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
841 | int mmdvfs_set_vmrc_log(const char *val, const struct kernel_param *kp)
| ^
| static
>> drivers/soc/mediatek/mtk-mmdvfs-v3.c:428:29: warning: unused variable 'mtk_mmdvfs_req_ops' [-Wunused-const-variable]
428 | static const struct clk_ops mtk_mmdvfs_req_ops = {
| ^~~~~~~~~~~~~~~~~~
13 warnings generated.
vim +/mtk_mmdvfs_req_ops +428 drivers/soc/mediatek/mtk-mmdvfs-v3.c
1cc9e9ca2d2e26a Yunfei Dong 2024-09-03 427
1cc9e9ca2d2e26a Yunfei Dong 2024-09-03 @428 static const struct clk_ops mtk_mmdvfs_req_ops = {
1cc9e9ca2d2e26a Yunfei Dong 2024-09-03 429 .set_rate = mtk_mmdvfs_set_rate,
1cc9e9ca2d2e26a Yunfei Dong 2024-09-03 430 .round_rate = mtk_mmdvfs_round_rate,
1cc9e9ca2d2e26a Yunfei Dong 2024-09-03 431 .recalc_rate = mtk_mmdvfs_recalc_rate,
1cc9e9ca2d2e26a Yunfei Dong 2024-09-03 432 };
1cc9e9ca2d2e26a Yunfei Dong 2024-09-03 433
:::::: The code at line 428 was first introduced by commit
:::::: 1cc9e9ca2d2e26a6b7e9b650ba61a261506201ee CHROMIUM: mmdvfs: add basic driver to support mmdvfs
:::::: TO: Yunfei Dong <yunfei.dong@mediatek.corp-partner.google.com>
:::::: CC: Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-05-27 10:31 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=202505271815.zIQZy03f-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.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.