* [esmil:eic7700 21/24] drivers/pci/controller/dwc/pcie-eswin.c:189:5: warning: no previous prototype for function 'eswin_evb_socket_power_on'
@ 2024-09-01 4:01 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-01 4:01 UTC (permalink / raw)
To: ningyu
Cc: llvm, oe-kbuild-all, Emil Renner Berthing, Darshan Prajapati,
Pinkesh Vaghela
tree: https://github.com/esmil/linux eic7700
head: eb44174b12f99d320be704b45db6b994f6a014bd
commit: 357191b1d41675670255887ef252d171eef65bc4 [21/24] driver: PCIe: Add PCIe driver for EIC7700
config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20240901/202409011151.uOjxg9JM-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 46fe36a4295f05d5d3731762e31fc4e6e99863e9)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240901/202409011151.uOjxg9JM-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/202409011151.uOjxg9JM-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/pci/controller/dwc/pcie-eswin.c:30:
In file included from include/linux/pci.h:38:
In file included from include/linux/interrupt.h:22:
In file included from arch/riscv/include/asm/sections.h:9:
In file included from include/linux/mm.h:2228:
include/linux/vmstat.h:503:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
503 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
504 | item];
| ~~~~
include/linux/vmstat.h:510:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
510 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
511 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:517:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
517 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:523:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
523 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
524 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> drivers/pci/controller/dwc/pcie-eswin.c:189:5: warning: no previous prototype for function 'eswin_evb_socket_power_on' [-Wmissing-prototypes]
189 | int eswin_evb_socket_power_on(struct device *dev)
| ^
drivers/pci/controller/dwc/pcie-eswin.c:189:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
189 | int eswin_evb_socket_power_on(struct device *dev)
| ^
| static
5 warnings generated.
vim +/eswin_evb_socket_power_on +189 drivers/pci/controller/dwc/pcie-eswin.c
185
186 /* TODO: Check socket gpio number in actual board and
187 * change if necessary
188 */
> 189 int eswin_evb_socket_power_on(struct device *dev)
190 {
191 int err_desc=0;
192 struct gpio_desc *gpio;
193 gpio = devm_gpiod_get(dev, "pci-socket", GPIOD_OUT_LOW);
194 err_desc = IS_ERR(gpio);
195
196 if (err_desc) {
197 pr_err("No power control gpio found, maybe not needed\n");
198 return 0;
199 }
200
201 gpiod_set_value(gpio,1);
202
203 return err_desc;
204 }
205
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-09-01 4:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-01 4:01 [esmil:eic7700 21/24] drivers/pci/controller/dwc/pcie-eswin.c:189:5: warning: no previous prototype for function 'eswin_evb_socket_power_on' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox