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/interconnect/mediatek/mmqos-vcp.c:34:7: error: incompatible pointer to integer conversion assigning to 'phys_addr_t' (aka 'unsigned long long') from 'void *'
Date: Wed, 28 May 2025 02:19:18 +0800 [thread overview]
Message-ID: <202505280219.BJ0eQuvW-lkp@intel.com> (raw)
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-6.6
head: a8b155e1dd30a4460ca0bf9db35d30ab891d3e91
commit: eccfdd41c59e6c97a4c21756bee8492092bb7506 [133/133] CHROMIUM: mmqos: add the mtk-interconnect to support mmqos
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250528/202505280219.BJ0eQuvW-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/20250528/202505280219.BJ0eQuvW-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/202505280219.BJ0eQuvW-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from drivers/interconnect/mediatek/mmqos-mtk.c:21:
In file included from include/linux/regulator/consumer.h:35:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:20:
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/interconnect/mediatek/mmqos-mtk.c:487:6: warning: no previous prototype for function 'clear_reg_value' [-Wmissing-prototypes]
487 | void clear_reg_value(bool is_on, struct mtk_mmqos *mmqos)
| ^
drivers/interconnect/mediatek/mmqos-mtk.c:487:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
487 | void clear_reg_value(bool is_on, struct mtk_mmqos *mmqos)
| ^
| static
>> drivers/interconnect/mediatek/mmqos-mtk.c:496:6: warning: no previous prototype for function 'set_channel_bw_reg_value' [-Wmissing-prototypes]
496 | void set_channel_bw_reg_value(bool is_on, struct mtk_mmqos *mmqos)
| ^
drivers/interconnect/mediatek/mmqos-mtk.c:496:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
496 | void set_channel_bw_reg_value(bool is_on, struct mtk_mmqos *mmqos)
| ^
| static
>> drivers/interconnect/mediatek/mmqos-mtk.c:1473:5: warning: no previous prototype for function 'mtk_mmqos_probe' [-Wmissing-prototypes]
1473 | int mtk_mmqos_probe(struct platform_device *pdev)
| ^
drivers/interconnect/mediatek/mmqos-mtk.c:1473:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1473 | int mtk_mmqos_probe(struct platform_device *pdev)
| ^
| static
>> drivers/interconnect/mediatek/mmqos-mtk.c:1854:22: warning: variable 'kthr_vcp' set but not used [-Wunused-but-set-variable]
1854 | struct task_struct *kthr_vcp;
| ^
>> drivers/interconnect/mediatek/mmqos-mtk.c:2016:16: warning: no previous prototype for function 'get_larb_dev' [-Wmissing-prototypes]
2016 | struct device *get_larb_dev(int larb_id)
| ^
drivers/interconnect/mediatek/mmqos-mtk.c:2016:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2016 | struct device *get_larb_dev(int larb_id)
| ^
| static
>> drivers/interconnect/mediatek/mmqos-mtk.c:2052:6: warning: variable 'result' set but not used [-Wunused-but-set-variable]
2052 | int result;
| ^
>> drivers/interconnect/mediatek/mmqos-mtk.c:2047:5: warning: no previous prototype for function 'mmqos_set_larb_port_ostdl' [-Wmissing-prototypes]
2047 | int mmqos_set_larb_port_ostdl(const char *val, const struct kernel_param *kp)
| ^
drivers/interconnect/mediatek/mmqos-mtk.c:2047:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2047 | int mmqos_set_larb_port_ostdl(const char *val, const struct kernel_param *kp)
| ^
| static
11 warnings generated.
--
In file included from drivers/interconnect/mediatek/mmqos-vcp.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/interconnect/mediatek/mmqos-vcp.c:34:7: error: incompatible pointer to integer conversion assigning to 'phys_addr_t' (aka 'unsigned long long') from 'void *' [-Wint-conversion]
34 | *pa = NULL;
| ^ ~~~~
>> drivers/interconnect/mediatek/mmqos-vcp.c:295:5: warning: no previous prototype for function 'mmqos_get_vcp_mmqos_log' [-Wmissing-prototypes]
295 | int mmqos_get_vcp_mmqos_log(char *buf, const struct kernel_param *kp)
| ^
drivers/interconnect/mediatek/mmqos-vcp.c:295:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
295 | int mmqos_get_vcp_mmqos_log(char *buf, const struct kernel_param *kp)
| ^
| static
>> drivers/interconnect/mediatek/mmqos-vcp.c:308:5: warning: no previous prototype for function 'mmqos_set_vcp_mmqos_log' [-Wmissing-prototypes]
308 | int mmqos_set_vcp_mmqos_log(const char *val, const struct kernel_param *kp)
| ^
drivers/interconnect/mediatek/mmqos-vcp.c:308:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
308 | int mmqos_set_vcp_mmqos_log(const char *val, const struct kernel_param *kp)
| ^
| static
>> drivers/interconnect/mediatek/mmqos-vcp.c:352:5: warning: no previous prototype for function 'mmqos_get_vcp_smi_log' [-Wmissing-prototypes]
352 | int mmqos_get_vcp_smi_log(char *buf, const struct kernel_param *kp)
| ^
drivers/interconnect/mediatek/mmqos-vcp.c:352:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
352 | int mmqos_get_vcp_smi_log(char *buf, const struct kernel_param *kp)
| ^
| static
>> drivers/interconnect/mediatek/mmqos-vcp.c:365:5: warning: no previous prototype for function 'mmqos_set_vcp_smi_log' [-Wmissing-prototypes]
365 | int mmqos_set_vcp_smi_log(const char *val, const struct kernel_param *kp)
| ^
drivers/interconnect/mediatek/mmqos-vcp.c:365:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
365 | int mmqos_set_vcp_smi_log(const char *val, const struct kernel_param *kp)
| ^
| static
8 warnings and 1 error generated.
vim +34 drivers/interconnect/mediatek/mmqos-vcp.c
0819fee819e3ec5 Kyrie Wu 2024-09-03 26
0819fee819e3ec5 Kyrie Wu 2024-09-03 27 void *mmqos_get_vcp_base(phys_addr_t *pa)
0819fee819e3ec5 Kyrie Wu 2024-09-03 28 {
0819fee819e3ec5 Kyrie Wu 2024-09-03 29 struct mtk_mmqos *mmqos = NULL;
0819fee819e3ec5 Kyrie Wu 2024-09-03 30
0819fee819e3ec5 Kyrie Wu 2024-09-03 31 mmqos = mtk_mmqos_get_drv_data();
0819fee819e3ec5 Kyrie Wu 2024-09-03 32 if (IS_ERR_OR_NULL(mmqos)) {
0819fee819e3ec5 Kyrie Wu 2024-09-03 33 mmqos_err(mmqos->dev, "not ready");
0819fee819e3ec5 Kyrie Wu 2024-09-03 @34 *pa = NULL;
0819fee819e3ec5 Kyrie Wu 2024-09-03 35 }
0819fee819e3ec5 Kyrie Wu 2024-09-03 36
0819fee819e3ec5 Kyrie Wu 2024-09-03 37 if (pa)
0819fee819e3ec5 Kyrie Wu 2024-09-03 38 *pa = mmqos->mmqos_memory_pa;
0819fee819e3ec5 Kyrie Wu 2024-09-03 39
0819fee819e3ec5 Kyrie Wu 2024-09-03 40 return mmqos->mmqos_memory_va;
0819fee819e3ec5 Kyrie Wu 2024-09-03 41 }
0819fee819e3ec5 Kyrie Wu 2024-09-03 42 EXPORT_SYMBOL_GPL(mmqos_get_vcp_base);
0819fee819e3ec5 Kyrie Wu 2024-09-03 43
:::::: The code at line 34 was first introduced by commit
:::::: 0819fee819e3ec5611f4fb6c3c9e933ded83a0f5 CHROMIUM: mmqos: add the basic driver to support mmqos
:::::: TO: Kyrie Wu <kyrie.wu@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 18:20 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=202505280219.BJ0eQuvW-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.