[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207160028.MFKQvcjJ-lkp@intel.com>
Date: Sat, 16 Jul 2022 01:00:23 +0800
From: kernel test robot <lkp@...el.com>
To: Janne Grunau <j@...nau.net>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, Hector Martin <marcan@...can.st>
Subject: [asahilinux:bits/090-spi-hid 11/18]
drivers/hid/spi-hid/spi-hid-apple-core.c:259:22: warning: no previous
prototype for function 'spihid_get_data'
tree: https://github.com/AsahiLinux/linux bits/090-spi-hid
head: 2902ed1bd2d6ac439a835c53841122c7f3455a6c
commit: caee9bbb3f5dd71fbcc4690a7c2e97ff6964ab92 [11/18] WIP: HID: transport: spi: add Apple SPI transport
config: arm64-randconfig-r014-20220715 (https://download.01.org/0day-ci/archive/20220716/202207160028.MFKQvcjJ-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 2da550140aa98cf6a3e96417c87f1e89e3a26047)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/AsahiLinux/linux/commit/caee9bbb3f5dd71fbcc4690a7c2e97ff6964ab92
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux bits/090-spi-hid
git checkout caee9bbb3f5dd71fbcc4690a7c2e97ff6964ab92
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/hid/spi-hid/ drivers/irqchip/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/hid/spi-hid/spi-hid-apple-core.c:259:22: warning: no previous prototype for function 'spihid_get_data' [-Wmissing-prototypes]
struct spihid_apple *spihid_get_data(struct spihid_interface *idev)
^
drivers/hid/spi-hid/spi-hid-apple-core.c:259:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct spihid_apple *spihid_get_data(struct spihid_interface *idev)
^
static
drivers/hid/spi-hid/spi-hid-apple-core.c:56:17: warning: variable 'spi_hid_apple_status_ok' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static const u8 spi_hid_apple_status_ok[4] = { 0xac, 0x27, 0x68, 0xd5 };
^
2 warnings generated.
--
>> drivers/hid/spi-hid/spi-hid-apple-of.c:24:5: warning: no previous prototype for function 'spihid_apple_of_power_on' [-Wmissing-prototypes]
int spihid_apple_of_power_on(struct spihid_apple_ops *ops)
^
drivers/hid/spi-hid/spi-hid-apple-of.c:24:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int spihid_apple_of_power_on(struct spihid_apple_ops *ops)
^
static
>> drivers/hid/spi-hid/spi-hid-apple-of.c:40:5: warning: no previous prototype for function 'spihid_apple_of_power_off' [-Wmissing-prototypes]
int spihid_apple_of_power_off(struct spihid_apple_ops *ops)
^
drivers/hid/spi-hid/spi-hid-apple-of.c:40:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int spihid_apple_of_power_off(struct spihid_apple_ops *ops)
^
static
>> drivers/hid/spi-hid/spi-hid-apple-of.c:50:5: warning: no previous prototype for function 'spihid_apple_of_enable_irq' [-Wmissing-prototypes]
int spihid_apple_of_enable_irq(struct spihid_apple_ops *ops)
^
drivers/hid/spi-hid/spi-hid-apple-of.c:50:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int spihid_apple_of_enable_irq(struct spihid_apple_ops *ops)
^
static
>> drivers/hid/spi-hid/spi-hid-apple-of.c:59:5: warning: no previous prototype for function 'spihid_apple_of_disable_irq' [-Wmissing-prototypes]
int spihid_apple_of_disable_irq(struct spihid_apple_ops *ops)
^
drivers/hid/spi-hid/spi-hid-apple-of.c:59:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int spihid_apple_of_disable_irq(struct spihid_apple_ops *ops)
^
static
4 warnings generated.
vim +/spihid_get_data +259 drivers/hid/spi-hid/spi-hid-apple-core.c
258
> 259 struct spihid_apple *spihid_get_data(struct spihid_interface *idev)
260 {
261 switch (idev->id) {
262 case SPIHID_DEVICE_ID_KBD:
263 return container_of(idev, struct spihid_apple, kbd);
264 case SPIHID_DEVICE_ID_TP:
265 return container_of(idev, struct spihid_apple, tp);
266 default:
267 return NULL;
268 }
269 }
270
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists