* [microchip-ung-linux-upstream:v5.10-webstax 66/88] drivers/spi/spi-vcoreiii.c:240:5: warning: no previous prototype for function 'vcoreiii_bb_transfer_one_message'
@ 2020-12-14 19:20 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-14 19:20 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2868 bytes --]
tree: https://github.com/microchip-ung/linux-upstream.git v5.10-webstax
head: 0c603c93d534e71ceee9485bfe1b0b75561efb0e
commit: e4904df0bc6023a8a456bb9ca9b6aa7af74c9bc6 [66/88] spi: vcoreiii: Add MSCC vcoreiii bitbang driver
config: mips-randconfig-r025-20201214 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d38205144febf4dc42c9270c6aa3d978f1ef65e1)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://github.com/microchip-ung/linux-upstream/commit/e4904df0bc6023a8a456bb9ca9b6aa7af74c9bc6
git remote add microchip-ung-linux-upstream https://github.com/microchip-ung/linux-upstream.git
git fetch --no-tags microchip-ung-linux-upstream v5.10-webstax
git checkout e4904df0bc6023a8a456bb9ca9b6aa7af74c9bc6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/spi/spi-vcoreiii.c:240:5: warning: no previous prototype for function 'vcoreiii_bb_transfer_one_message' [-Wmissing-prototypes]
int vcoreiii_bb_transfer_one_message(struct spi_master *master,
^
drivers/spi/spi-vcoreiii.c:240:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int vcoreiii_bb_transfer_one_message(struct spi_master *master,
^
static
1 warning generated.
vim +/vcoreiii_bb_transfer_one_message +240 drivers/spi/spi-vcoreiii.c
239
> 240 int vcoreiii_bb_transfer_one_message(struct spi_master *master,
241 struct spi_message *msg)
242 {
243 struct spi_vcoreiii *p = spi_master_get_devdata(master);
244 struct spi_device *spi = msg->spi;
245 unsigned int total_len = 0;
246 struct spi_transfer *xfer;
247
248 vcoreiii_bb_cs_activate(p, spi);
249
250 list_for_each_entry(xfer, &msg->transfers, transfer_list) {
251 bool last_xfer = list_is_last(&xfer->transfer_list,
252 &msg->transfers);
253 vcoreiii_bb_do_transfer(p, msg, xfer, last_xfer);
254 total_len += xfer->len;
255 }
256
257 vcoreiii_bb_cs_deactivate(p, spi);
258
259 msg->status = 0;
260 msg->actual_length = total_len;
261 spi_finalize_current_message(master);
262 return msg->status;
263 }
264
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31745 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-14 19:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-14 19:20 [microchip-ung-linux-upstream:v5.10-webstax 66/88] drivers/spi/spi-vcoreiii.c:240:5: warning: no previous prototype for function 'vcoreiii_bb_transfer_one_message' kernel test robot
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.