[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207031300.XYJ1Ogaa-lkp@intel.com>
Date: Sun, 3 Jul 2022 13:04:00 +0800
From: kernel test robot <lkp@...el.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: arch/arm/mach-omap2/board-n8x0.c:508:13: warning: no previous
prototype for function 'n8x0_mmc_init'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69cb6c6556ad89620547318439d6be8bb1629a5a
commit: 09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8 ARM: dove: multiplatform support
date: 3 months ago
config: arm-randconfig-r022-20220703 (https://download.01.org/0day-ci/archive/20220703/202207031300.XYJ1Ogaa-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project bcd153485ebf07fe79e2b843ed5f1cb74997df1b)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8
# 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=arm SHELL=/bin/bash
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 >>):
>> arch/arm/mach-omap2/board-n8x0.c:508:13: warning: no previous prototype for function 'n8x0_mmc_init' [-Wmissing-prototypes]
void __init n8x0_mmc_init(void)
^
arch/arm/mach-omap2/board-n8x0.c:508:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init n8x0_mmc_init(void)
^
static
1 warning generated.
vim +/n8x0_mmc_init +508 arch/arm/mach-omap2/board-n8x0.c
9418c65f9bd861 Tony Lindgren 2010-02-26 471
bc593f5d787d0a Igor Grinberg 2011-05-03 472 static void __init n8x0_mmc_init(void)
9418c65f9bd861 Tony Lindgren 2010-02-26 473 {
9418c65f9bd861 Tony Lindgren 2010-02-26 474 int err;
9418c65f9bd861 Tony Lindgren 2010-02-26 475
c8f27e977310b3 Tony Lindgren 2013-11-25 476 if (board_is_n810()) {
9418c65f9bd861 Tony Lindgren 2010-02-26 477 mmc1_data.slots[0].name = "external";
9418c65f9bd861 Tony Lindgren 2010-02-26 478
9418c65f9bd861 Tony Lindgren 2010-02-26 479 /*
9418c65f9bd861 Tony Lindgren 2010-02-26 480 * Some Samsung Movinand chips do not like open-ended
9418c65f9bd861 Tony Lindgren 2010-02-26 481 * multi-block reads and fall to braind-dead state
9418c65f9bd861 Tony Lindgren 2010-02-26 482 * while doing so. Reducing the number of blocks in
9418c65f9bd861 Tony Lindgren 2010-02-26 483 * the transfer or delays in clock disable do not help
9418c65f9bd861 Tony Lindgren 2010-02-26 484 */
9418c65f9bd861 Tony Lindgren 2010-02-26 485 mmc1_data.slots[1].name = "internal";
9418c65f9bd861 Tony Lindgren 2010-02-26 486 mmc1_data.slots[1].ban_openended = 1;
9418c65f9bd861 Tony Lindgren 2010-02-26 487 }
9418c65f9bd861 Tony Lindgren 2010-02-26 488
bc593f5d787d0a Igor Grinberg 2011-05-03 489 err = gpio_request_one(N8X0_SLOT_SWITCH_GPIO, GPIOF_OUT_INIT_LOW,
bc593f5d787d0a Igor Grinberg 2011-05-03 490 "MMC slot switch");
9418c65f9bd861 Tony Lindgren 2010-02-26 491 if (err)
1dea5c6b5876ea Tony Lindgren 2010-04-21 492 return;
9418c65f9bd861 Tony Lindgren 2010-02-26 493
c8f27e977310b3 Tony Lindgren 2013-11-25 494 if (board_is_n810()) {
bc593f5d787d0a Igor Grinberg 2011-05-03 495 err = gpio_request_array(n810_emmc_gpios,
bc593f5d787d0a Igor Grinberg 2011-05-03 496 ARRAY_SIZE(n810_emmc_gpios));
9418c65f9bd861 Tony Lindgren 2010-02-26 497 if (err) {
9418c65f9bd861 Tony Lindgren 2010-02-26 498 gpio_free(N8X0_SLOT_SWITCH_GPIO);
1dea5c6b5876ea Tony Lindgren 2010-04-21 499 return;
9418c65f9bd861 Tony Lindgren 2010-02-26 500 }
9418c65f9bd861 Tony Lindgren 2010-02-26 501 }
9418c65f9bd861 Tony Lindgren 2010-02-26 502
fa590c92340136 Tony Lindgren 2013-11-25 503 mmc1_data.nr_slots = 2;
9418c65f9bd861 Tony Lindgren 2010-02-26 504 mmc_data[0] = &mmc1_data;
9418c65f9bd861 Tony Lindgren 2010-02-26 505 }
9418c65f9bd861 Tony Lindgren 2010-02-26 506 #else
fa590c92340136 Tony Lindgren 2013-11-25 507 static struct omap_mmc_platform_data mmc1_data;
9418c65f9bd861 Tony Lindgren 2010-02-26 @508 void __init n8x0_mmc_init(void)
9418c65f9bd861 Tony Lindgren 2010-02-26 509 {
9418c65f9bd861 Tony Lindgren 2010-02-26 510 }
9418c65f9bd861 Tony Lindgren 2010-02-26 511 #endif /* CONFIG_MMC_OMAP */
9418c65f9bd861 Tony Lindgren 2010-02-26 512
:::::: The code at line 508 was first introduced by commit
:::::: 9418c65f9bd861d0f7e39aab9cfb3aa6f2275d11 omap2: Initialize Menelaus and MMC for N8X0
:::::: TO: Tony Lindgren <tony@...mide.com>
:::::: CC: Tony Lindgren <tony@...mide.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists