From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93E203D6D; Sun, 26 Feb 2023 20:37:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677443829; x=1708979829; h=date:from:to:cc:subject:message-id:mime-version; bh=MF7W5ToNpxqhj9OuUAwzsK+DaREoe75GSKBU8pPaFHY=; b=CV+QpcgN8CIDpAybIquZroYUJTsm600mf2VlS7X/3YB6MP2mdDWHHvhp npkltmpKsLQa+lOQ6c9m5kX1XXLbwoN6ee7UhYFPZXg53BMIh6lkG44h8 eBAKri39lQ/7gF9/5K2vrNFBnNFyVIjb4rTZiKKEvE3aFflJtdf6jfqSL oUGFEQIPoUhO7/0aBVNvspabXplKZAFcgZwxlXVJfa6j4gpiqkGnRsw+z RuZ47JKapWbt3E06FSbblQaGSOsfbU0y+jP3aj6TS4qUrYULWsKd8Bzl0 ZGPSrTlo3Pe7cOf7xA33jw+c55QpezzbK96ZZUTpcWTaJ5LkJoiEU1chw w==; X-IronPort-AV: E=McAfee;i="6500,9779,10633"; a="398514698" X-IronPort-AV: E=Sophos;i="5.97,330,1669104000"; d="scan'208";a="398514698" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2023 12:37:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10633"; a="737417605" X-IronPort-AV: E=Sophos;i="5.97,330,1669104000"; d="scan'208";a="737417605" Received: from lkp-server01.sh.intel.com (HELO 3895f5c55ead) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 26 Feb 2023 12:37:06 -0800 Received: from kbuild by 3895f5c55ead with local (Exim 4.96) (envelope-from ) id 1pWNlZ-0003sk-2R; Sun, 26 Feb 2023 20:37:05 +0000 Date: Mon, 27 Feb 2023 04:36:54 +0800 From: kernel test robot To: Arnd Bergmann Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: arch/arm/mach-versatile/versatile.c:56:14: warning: no previous prototype for function 'mmc_status' Message-ID: <202302270413.KYK0ByNB-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Arnd, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2fcd07b7ccd5fd10b2120d298363e4e6c53ccf9c commit: d7445676e86900f8dc363825033ff62416c216e0 ARM: versatile: move integrator/realview/vexpress to versatile date: 11 months ago config: arm-versatile_defconfig (https://download.01.org/0day-ci/archive/20230227/202302270413.KYK0ByNB-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project db89896bbbd2251fff457699635acbbedeead27f) 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=d7445676e86900f8dc363825033ff62416c216e0 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout d7445676e86900f8dc363825033ff62416c216e0 # 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 olddefconfig 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 | Link: https://lore.kernel.org/oe-kbuild-all/202302270413.KYK0ByNB-lkp@intel.com/ All warnings (new ones prefixed by >>): >> arch/arm/mach-versatile/versatile.c:56:14: warning: no previous prototype for function 'mmc_status' [-Wmissing-prototypes] unsigned int mmc_status(struct device *dev) ^ arch/arm/mach-versatile/versatile.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit unsigned int mmc_status(struct device *dev) ^ static 1 warning generated. vim +/mmc_status +56 arch/arm/mach-versatile/versatile.c a7096789211193 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 55 a7096789211193 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 @56 unsigned int mmc_status(struct device *dev) a7096789211193 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 57 { a7096789211193 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 58 struct amba_device *adev = container_of(dev, struct amba_device, dev); a7096789211193 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 59 u32 mask; a7096789211193 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 60 a7096789211193 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 61 if (adev->res.start == VERSATILE_MMCI0_BASE) a7096789211193 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 62 mask = 1; a7096789211193 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 63 else a7096789211193 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 64 mask = 2; a7096789211193 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 65 a7096789211193 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 66 return readl(versatile_sys_base + VERSATILE_SYS_MCI_OFFSET) & mask; a7096789211193 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 67 } a7096789211193 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 68 :::::: The code at line 56 was first introduced by commit :::::: a70967892111934e292485ce84f1bab38cc55380 ARM: versatile: merge mach code into a single file :::::: TO: Rob Herring :::::: CC: Arnd Bergmann -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests