[l1k:smsc95xx_5.17 276/886] drivers/staging/fbtft/fb_st7735r.c:189:5: warning: no previous prototype for 'variant_adafruit18'

From: kernel test robot
Date: Fri Apr 08 2022 - 02:57:29 EST


tree: https://github.com/l1k/linux smsc95xx_5.17
head: 05d68ced287b30f62f18f95b5476135ef669804a
commit: a6418ad0878bd7646203a3b02164c20a162a8110 [276/886] staging/fbtft: Add support for display variants
config: xtensa-randconfig-r033-20220408 (https://download.01.org/0day-ci/archive/20220408/202204081457.WVlGdoRe-lkp@xxxxxxxxx/config)
compiler: xtensa-linux-gcc (GCC) 11.2.0
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
# https://github.com/l1k/linux/commit/a6418ad0878bd7646203a3b02164c20a162a8110
git remote add l1k https://github.com/l1k/linux
git fetch --no-tags l1k smsc95xx_5.17
git checkout a6418ad0878bd7646203a3b02164c20a162a8110
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=xtensa SHELL=/bin/bash drivers/staging/fbtft/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/staging/fbtft/fb_st7735r.c:189:5: warning: no previous prototype for 'variant_adafruit18' [-Wmissing-prototypes]
189 | int variant_adafruit18(struct fbtft_display *display)
| ^~~~~~~~~~~~~~~~~~
>> drivers/staging/fbtft/fb_st7735r.c:195:5: warning: no previous prototype for 'variant_adafruit18_green' [-Wmissing-prototypes]
195 | int variant_adafruit18_green(struct fbtft_display *display)
| ^~~~~~~~~~~~~~~~~~~~~~~~


vim +/variant_adafruit18 +189 drivers/staging/fbtft/fb_st7735r.c

188
> 189 int variant_adafruit18(struct fbtft_display *display)
190 {
191 display->gamma = ADAFRUIT18_GAMMA;
192 return 0;
193 }
194
> 195 int variant_adafruit18_green(struct fbtft_display *display)
196 {
197 display->gamma = ADAFRUIT18_GAMMA;
198 display->fbtftops.set_addr_win = adafruit18_green_tab_set_addr_win;
199 return 0;
200 }
201

--
0-DAY CI Kernel Test Service
https://01.org/lkp