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 584EACCA479 for ; Sat, 25 Jun 2022 09:37:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E42108E02A0; Sat, 25 Jun 2022 05:37:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DF2828E029A; Sat, 25 Jun 2022 05:37:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CBA888E02A0; Sat, 25 Jun 2022 05:37:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id BEAE08E029A for ; Sat, 25 Jun 2022 05:37:08 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 8A3FB9D8 for ; Sat, 25 Jun 2022 09:37:08 +0000 (UTC) X-FDA: 79616254536.28.5309C9A Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf26.hostedemail.com (Postfix) with ESMTP id DEC25140008 for ; Sat, 25 Jun 2022 09:37:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656149825; x=1687685825; h=date:from:to:cc:subject:message-id:mime-version; bh=dWefbtv+u9T4jt19DoIV0SKd+8F3ixEwHi79QGKHDUI=; b=A5CGm8JLgtoYfDL0SiHe4ptrShXObxZDxv3rdbFFf7q8UnExv6sHiUHc Ryv14fh484UadYNPi9WqmotP7Q8L6e+Xlq0ndPzXNU5lCVn7IPzsTiFE8 6GVCl2XagD9PBaOyu7aKUYUJP9bDJruHCO3MWwYBfkRn8ju57vkM69Mk9 sjWPKm/KAkYAnltp4wVLaI8tQPb6sOpFC8CsVQy1mVabarE2rjE5gjFnX uasu0j6CZAsfWp2jTdWxeLqTBawFgHKXRvgxCY3somCOMy2U/W+7+bSyG mirxJNiK4pc1VyJDqdrl4uqMO0XHZ0Ufttasj0Z8GFJAhOsbpmYXRV1mG Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10388"; a="264215012" X-IronPort-AV: E=Sophos;i="5.92,222,1650956400"; d="scan'208";a="264215012" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2022 02:37:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,222,1650956400"; d="scan'208";a="586856403" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 25 Jun 2022 02:37:01 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o52Ds-0005bD-Iz; Sat, 25 Jun 2022 09:37:00 +0000 Date: Sat, 25 Jun 2022 17:36:32 +0800 From: kernel test robot To: Frank Li Cc: kbuild-all@lists.01.org, Linux Memory Management List , Jon Mason Subject: [linux-next:master 3951/5720] drivers/pci/endpoint/functions/pci-epf-vntb.c:975:5: warning: no previous prototype for 'pci_read' Message-ID: <202206251702.1fAwOKaW-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656149827; 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=2TyBxmCgHlrAwjBw2JEg2M/qBLMTxtDa7p9VsaPaUhk=; b=PdTDzeLuvcpf7Auk5jMj8TLC1VU6d065Z0R8D3VzySgpeRRkmmoZ27h6Ee9uGXgltFRJh7 9kiSpNtaDsSYwwAp/cRJH/IR1G3jXMAQalkaV/7mR5ayBdUp/Z+cVmEpMKoWeFxsy60jez NEmaQHTJiE403znhqK5rcLT5hqPpwKs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656149827; a=rsa-sha256; cv=none; b=J6hm6Xz4LCXBdmVWRsz4ygPe+d4iBVXEgIHSbL6w564f0mAZk21Vv4ccIbc3A5AJb1oYAD JJi1OZNJjBET4yql00ITBoc81JGR5nusMTgPoaCIGkmjJ+BiZUXnDDh56gXRrTHGlIN3s0 v5bKeuo7CNxxAYXYYtiA0GRfvrHFTDs= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=A5CGm8JL; spf=none (imf26.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=A5CGm8JL; spf=none (imf26.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: DEC25140008 X-Stat-Signature: kr1r7xtm74wp8dswt1tw4ca3kw8obnsx X-HE-Tag: 1656149825-147673 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: 2f9cb3d3bd73fc2225d66aa8fcffb632ed3eb235 commit: ff32fac00d97661c715ee47bbfd867cae1f3aaf8 [3951/5720] NTB: EPF: support NTB transfer between PCI RC and EP connection config: ia64-randconfig-r006-20220625 compiler: ia64-linux-gcc (GCC) 11.3.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://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=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/pci/endpoint/functions/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from arch/ia64/include/asm/pgtable.h:153, from include/linux/pgtable.h:6, from arch/ia64/include/asm/uaccess.h:40, from include/linux/uaccess.h:11, from arch/ia64/include/asm/sections.h:11, from include/linux/interrupt.h:21, from include/linux/pci.h:38, from include/linux/pci-epf.h:15, from include/linux/pci-epc.h:12, from drivers/pci/endpoint/functions/pci-epf-vntb.c:44: arch/ia64/include/asm/mmu_context.h: In function 'reload_context': arch/ia64/include/asm/mmu_context.h:127:48: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable] 127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4; | ^~~~~~~ drivers/pci/endpoint/functions/pci-epf-vntb.c: At top level: >> drivers/pci/endpoint/functions/pci-epf-vntb.c:975:5: warning: no previous prototype for 'pci_read' [-Wmissing-prototypes] 975 | int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) | ^~~~~~~~ >> drivers/pci/endpoint/functions/pci-epf-vntb.c:984:5: warning: no previous prototype for 'pci_write' [-Wmissing-prototypes] 984 | int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) | ^~~~~~~~~ {standard input}: Assembler messages: {standard input}:8744: Error: Register number out of range 0..3 {standard input}:8745: Error: Register number out of range 0..3 {standard input}:8745: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 47 {standard input}:8745: Warning: Only the first path encountering the conflict is reported {standard input}:8744: Warning: This is the location of the conflicting usage {standard input}:8746: Error: Register number out of range 0..3 {standard input}:8746: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 47 {standard input}:8746: Warning: Only the first path encountering the conflict is reported {standard input}:8744: Warning: This is the location of the conflicting usage {standard input}:8746: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 47 {standard input}:8746: Warning: Only the first path encountering the conflict is reported {standard input}:8745: Warning: This is the location of the conflicting usage {standard input}:8750: Error: Register number out of range 0..3 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