From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64294C433EF for ; Wed, 22 Jun 2022 10:17:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8C4C78E00AD; Wed, 22 Jun 2022 06:17:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 875048E00AB; Wed, 22 Jun 2022 06:17:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 73CA38E00AD; Wed, 22 Jun 2022 06:17:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 6606A8E00AB for ; Wed, 22 Jun 2022 06:17:58 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 334CC6149D for ; Wed, 22 Jun 2022 10:17:58 +0000 (UTC) X-FDA: 79605471036.21.147CB3B Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by imf24.hostedemail.com (Postfix) with ESMTP id 8182F180006 for ; Wed, 22 Jun 2022 10:17:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655893073; x=1687429073; h=date:from:to:cc:subject:message-id:mime-version; bh=ib7Jxvpxhyto6qxZuzBuKdNUpPcqFiHeFBVLswbBh84=; b=AawE54dTUAEfc3m3JWmcKPasj5DJulS2zOmwqvxhE9cKD8p6UzIb0ud0 5wkb8PgsTfgSrVLYSMSVoonbcWx3k2lEAW0iwAC7p8YAEc7TA0TEfoW1/ /ps+ea9Cvte+5JPmCM4BbT69XwJjkJzUvaRRN4+EoNmL69KOWOq+NK3dE RyfIdS5vHikq5P8Q9t+yO2eFPUtkuvel7q7Tgey9Lfw84kmpy0RsziEPu BNcwMT36m6H1MdsPQyaxSOrEawUNUqDP0Axrd37g8x9bLG6Liiini2/Fb DsIdqFAkIzPwx6O/AJ+jdXyJFgT/lwQPZkEtTMjUgpAoEDEjD4nae7lt3 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10385"; a="280424588" X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="280424588" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 03:17:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="644120768" Received: from lkp-server02.sh.intel.com (HELO a67cc04a5eeb) ([10.239.97.151]) by fmsmga008.fm.intel.com with ESMTP; 22 Jun 2022 03:17:42 -0700 Received: from kbuild by a67cc04a5eeb with local (Exim 4.95) (envelope-from ) id 1o3xQc-00017w-2I; Wed, 22 Jun 2022 10:17:42 +0000 Date: Wed, 22 Jun 2022 18:17:38 +0800 From: kernel test robot To: Frank Li Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , Jon Mason Subject: [linux-next:master 3913/4996] drivers/pci/endpoint/functions/pci-epf-vntb.c:975:5: warning: no previous prototype for function 'pci_read' Message-ID: <202206221813.Dn1s6uuh-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=AawE54dT; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf24.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655893077; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=T5wUzBJm/arG1TccZ9SxMFsIhVVdYIETQ2rwOQEZFk4=; b=4BLig+4zpQ/c/dm8EfkP04WQec63Nqq7OOmqm8NytyWgMGpm7TZtSGjxIcsyfXZaNLTL9e 7LjORL8BI5t11KFb+W+qh7PrA5F5L/f5BdaFlpHpWjuLfmONvQayKZ5RBS32ncnd4pBPpt PrOn4a4Seg4L9mcXznStHYdFPp2sVYA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655893077; a=rsa-sha256; cv=none; b=0TYDHl0ZyOM3SSd0seJkpZ0mKtZjdFytyq7UsmstLbgO6ShY+moI3DfoF5oo0sC0I7TqwM 8Xc1VaQZKwOs1beasX1IH2ehslpQ9PA0WW/iHwjBuGh8yD17DyUqwPENWq8r3chvq5mTsb NvTRmaawGq8S2qMVDmyhM78SQwicSfs= X-Rspam-User: Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=AawE54dT; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf24.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=lkp@intel.com X-Stat-Signature: c6pq1btphwiibj6g8p3id6yphzqubwur X-Rspamd-Queue-Id: 8182F180006 X-Rspamd-Server: rspam12 X-HE-Tag: 1655893073-425493 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: ac0ba5454ca85162c08dc429fef1999e077ca976 commit: ff32fac00d97661c715ee47bbfd867cae1f3aaf8 [3913/4996] NTB: EPF: support NTB transfer between PCI RC and EP connection config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220622/202206221813.Dn1s6uuh-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project af6d2a0b6825e71965f3e2701a63c239fa0ad70f) 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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=ff32fac00d97661c715ee47bbfd867cae1f3aaf8 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout ff32fac00d97661c715ee47bbfd867cae1f3aaf8 # 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/net/ drivers/pci/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/pci/endpoint/functions/pci-epf-vntb.c:975:5: warning: no previous prototype for function 'pci_read' [-Wmissing-prototypes] int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) ^ drivers/pci/endpoint/functions/pci-epf-vntb.c:975:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) ^ static >> drivers/pci/endpoint/functions/pci-epf-vntb.c:984:5: warning: no previous prototype for function 'pci_write' [-Wmissing-prototypes] int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) ^ drivers/pci/endpoint/functions/pci-epf-vntb.c:984:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) ^ static 2 warnings generated. vim +/pci_read +975 drivers/pci/endpoint/functions/pci-epf-vntb.c 974 > 975 int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) 976 { 977 if (devfn == 0) { 978 memcpy(val, ((uint8_t *)pci_space) + where, size); 979 return 0; 980 } 981 return -1; 982 } 983 > 984 int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) 985 { 986 return 0; 987 } 988 -- 0-DAY CI Kernel Test Service https://01.org/lkp