From: kernel test robot <lkp@intel.com>
To: ningyu <ningyu@eswincomputing.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Emil Renner Berthing <emil.renner.berthing@canonical.com>,
Darshan Prajapati <darshan.prajapati@einfochips.com>,
Pinkesh Vaghela <pinkesh.vaghela@einfochips.com>
Subject: [esmil:eic7700 21/24] drivers/pci/controller/dwc/pcie-eswin.c:189:5: warning: no previous prototype for function 'eswin_evb_socket_power_on'
Date: Sun, 1 Sep 2024 12:01:11 +0800 [thread overview]
Message-ID: <202409011151.uOjxg9JM-lkp@intel.com> (raw)
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
reply other threads:[~2024-09-01 4: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=202409011151.uOjxg9JM-lkp@intel.com \
--to=lkp@intel.com \
--cc=darshan.prajapati@einfochips.com \
--cc=emil.renner.berthing@canonical.com \
--cc=llvm@lists.linux.dev \
--cc=ningyu@eswincomputing.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pinkesh.vaghela@einfochips.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox