arch/mips/sgi-ip27/ip27-hubio.c:30:15: warning: no previous prototype for 'hub_pio_map'
Hi Thomas, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 29c395c77a9a514c5857c45ceae2665e9bd99ac7 commit: b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 MIPS: SGI-IP27: use asm/sn/agent.h for including HUB related stuff date: 1 year, 2 months ago config: mips-randconfig-r003-20210225 (attached as .config) compiler: mips64-linux-gcc (GCC) 9.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/torvalds/linux.git/commit/?id=b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/mips/sgi-ip27/ip27-hubio.c:30:15: warning: no previous prototype for >> 'hub_pio_map' [-Wmissing-prototypes] 30 | unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget, | ^~~ >> arch/mips/sgi-ip27/ip27-hubio.c:175:6: warning: no previous prototype for >> 'hub_pio_init' [-Wmissing-prototypes] 175 | void hub_pio_init(nasid_t nasid) | ^~~~ vim +/hub_pio_map +30 arch/mips/sgi-ip27/ip27-hubio.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 20 ^1da177e4c3f41 Linus Torvalds 2005-04-16 21 /** ^1da177e4c3f41 Linus Torvalds 2005-04-16 22 * hub_pio_map - establish a HUB PIO mapping ^1da177e4c3f41 Linus Torvalds 2005-04-16 23 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 24 * @hub:hub to perform PIO mapping on ^1da177e4c3f41 Linus Torvalds 2005-04-16 25 * @widget: widget ID to perform PIO mapping for ^1da177e4c3f41 Linus Torvalds 2005-04-16 26 * @xtalk_addr: xtalk_address that needs to be mapped ^1da177e4c3f41 Linus Torvalds 2005-04-16 27 * @size: size of the PIO mapping ^1da177e4c3f41 Linus Torvalds 2005-04-16 28 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 29 **/ 4bf841ebf17aaa Thomas Bogendoerfer 2019-10-03 @30 unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget, ^1da177e4c3f41 Linus Torvalds 2005-04-16 31 unsigned long xtalk_addr, size_t size) ^1da177e4c3f41 Linus Torvalds 2005-04-16 32 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 33 unsigned i; ^1da177e4c3f41 Linus Torvalds 2005-04-16 34 ^1da177e4c3f41 Linus Torvalds 2005-04-16 35 /* use small-window mapping if possible */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 36 if ((xtalk_addr % SWIN_SIZE) + size <= SWIN_SIZE) ^1da177e4c3f41 Linus Torvalds 2005-04-16 37 return NODE_SWIN_BASE(nasid, widget) + (xtalk_addr % SWIN_SIZE); ^1da177e4c3f41 Linus Torvalds 2005-04-16 38 ^1da177e4c3f41 Linus Torvalds 2005-04-16 39 if ((xtalk_addr % BWIN_SIZE) + size > BWIN_SIZE) { ^1da177e4c3f41 Linus Torvalds 2005-04-16 40 printk(KERN_WARNING "PIO mapping at hub %d widget %d addr 0x%lx" ^1da177e4c3f41 Linus Torvalds 2005-04-16 41 " too big (%ld)\n", ^1da177e4c3f41 Linus Torvalds 2005-04-16 42 nasid, widget, xtalk_addr, size); ^1da177e4c3f41 Linus Torvalds 2005-04-16 43 return 0; ^1da177e4c3f41 Linus Torvalds 2005-04-16 44 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 45 ^1da177e4c3f41 Linus Torvalds 2005-04-16 46 xtalk_addr &= ~(BWIN_SIZE-1); ^1da177e4c3f41 Linus Torvalds 2005-04-16 47 for (i = 0; i < HUB_NUM_BIG_WINDOW; i++) { 4bf841ebf17aaa Thomas Bogendoerfer 2019-10-03 48 if (test_and_set_bit(i, hub_data(nasid)->h_bigwin_used)) ^1da177e4c3f41 Linus Torvalds 2005-04-16 49 continue; ^1da177e4c3f41 Linus Torvalds 2005-04-16 50 ^1da177e4c3f41 Linus Torvalds 2005-04-16 51 /* ^1da177e4c3f41 Linus Torvalds 2005-04-16 52 * The code below does a PIO write to setup an ITTE entry. ^1da177e4c3f41 Linus Torvalds 2005-04-16 53 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 54 * We need to prevent other CPUs from seeing our updated ^1da177e4c3f41 Linus Torvalds 2005-04-16 55 * memory shadow of the ITTE (in the piomap) until the ITTE ^1da177e4c3f41 Linus Torvalds 2005-04-16 56 * entry is actually
arch/mips/sgi-ip27/ip27-hubio.c:30:15: warning: no previous prototype for 'hub_pio_map'
Hi Thomas, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1e2a199f6ccdc15cf111d68d212e2fd4ce65682e commit: b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 MIPS: SGI-IP27: use asm/sn/agent.h for including HUB related stuff date: 1 year ago config: mips-randconfig-r022-20210119 (attached as .config) compiler: mips64-linux-gcc (GCC) 9.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/torvalds/linux.git/commit/?id=b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/mips/sgi-ip27/ip27-hubio.c:30:15: warning: no previous prototype for >> 'hub_pio_map' [-Wmissing-prototypes] 30 | unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget, | ^~~ >> arch/mips/sgi-ip27/ip27-hubio.c:175:6: warning: no previous prototype for >> 'hub_pio_init' [-Wmissing-prototypes] 175 | void hub_pio_init(nasid_t nasid) | ^~~~ vim +/hub_pio_map +30 arch/mips/sgi-ip27/ip27-hubio.c ^1da177e4c3f4152 Linus Torvalds 2005-04-16 20 ^1da177e4c3f4152 Linus Torvalds 2005-04-16 21 /** ^1da177e4c3f4152 Linus Torvalds 2005-04-16 22 * hub_pio_map- establish a HUB PIO mapping ^1da177e4c3f4152 Linus Torvalds 2005-04-16 23 * ^1da177e4c3f4152 Linus Torvalds 2005-04-16 24 * @hub: hub to perform PIO mapping on ^1da177e4c3f4152 Linus Torvalds 2005-04-16 25 * @widget: widget ID to perform PIO mapping for ^1da177e4c3f4152 Linus Torvalds 2005-04-16 26 * @xtalk_addr: xtalk_address that needs to be mapped ^1da177e4c3f4152 Linus Torvalds 2005-04-16 27 * @size: size of the PIO mapping ^1da177e4c3f4152 Linus Torvalds 2005-04-16 28 * ^1da177e4c3f4152 Linus Torvalds 2005-04-16 29 **/ 4bf841ebf17aaa0f Thomas Bogendoerfer 2019-10-03 @30 unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget, ^1da177e4c3f4152 Linus Torvalds 2005-04-16 31 unsigned long xtalk_addr, size_t size) ^1da177e4c3f4152 Linus Torvalds 2005-04-16 32 { ^1da177e4c3f4152 Linus Torvalds 2005-04-16 33unsigned i; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 34 ^1da177e4c3f4152 Linus Torvalds 2005-04-16 35/* use small-window mapping if possible */ ^1da177e4c3f4152 Linus Torvalds 2005-04-16 36if ((xtalk_addr % SWIN_SIZE) + size <= SWIN_SIZE) ^1da177e4c3f4152 Linus Torvalds 2005-04-16 37return NODE_SWIN_BASE(nasid, widget) + (xtalk_addr % SWIN_SIZE); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 38 ^1da177e4c3f4152 Linus Torvalds 2005-04-16 39if ((xtalk_addr % BWIN_SIZE) + size > BWIN_SIZE) { ^1da177e4c3f4152 Linus Torvalds 2005-04-16 40 printk(KERN_WARNING "PIO mapping at hub %d widget %d addr 0x%lx" ^1da177e4c3f4152 Linus Torvalds 2005-04-16 41 " too big (%ld)\n", ^1da177e4c3f4152 Linus Torvalds 2005-04-16 42 nasid, widget, xtalk_addr, size); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 43return 0; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 44} ^1da177e4c3f4152 Linus Torvalds 2005-04-16 45 ^1da177e4c3f4152 Linus Torvalds 2005-04-16 46xtalk_addr &= ~(BWIN_SIZE-1); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 47for (i = 0; i < HUB_NUM_BIG_WINDOW; i++) { 4bf841ebf17aaa0f Thomas Bogendoerfer 2019-10-03 48if (test_and_set_bit(i, hub_data(nasid)->h_bigwin_used)) ^1da177e4c3f4152 Linus Torvalds 2005-04-16 49 continue; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 50 ^1da177e4c3f4152 Linus Torvalds 2005-04-16 51/* ^1da177e4c3f4152 Linus Torvalds 2005-04-16 52 * The code below does a PIO write to setup an ITTE entry. ^1da177e4c3f4152 Linus Torvalds 2005-04-16 53 * ^1da177e4c3f4152 Linus Torvalds 2005-04-16 54 * We need to prevent other CPUs from seeing our updated ^1da177e4c3f4152 Linus Torvalds 2005-04-16 55 * memory shadow of the ITTE (in the piomap) until the ITTE ^1da177e4c3f4152 Linus Torvalds 2005-04-16 56
arch/mips/sgi-ip27/ip27-hubio.c:30:15: warning: no previous prototype for 'hub_pio_map'
Hi Thomas, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a68a0262abdaa251e12c53715f48e698a18ef402 commit: b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 MIPS: SGI-IP27: use asm/sn/agent.h for including HUB related stuff date: 11 months ago config: mips-randconfig-r031-20201209 (attached as .config) compiler: mips64-linux-gcc (GCC) 9.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/torvalds/linux.git/commit/?id=b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/mips/sgi-ip27/ip27-hubio.c:30:15: warning: no previous prototype for >> 'hub_pio_map' [-Wmissing-prototypes] 30 | unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget, | ^~~ >> arch/mips/sgi-ip27/ip27-hubio.c:175:6: warning: no previous prototype for >> 'hub_pio_init' [-Wmissing-prototypes] 175 | void hub_pio_init(nasid_t nasid) | ^~~~ vim +/hub_pio_map +30 arch/mips/sgi-ip27/ip27-hubio.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 20 ^1da177e4c3f41 Linus Torvalds 2005-04-16 21 /** ^1da177e4c3f41 Linus Torvalds 2005-04-16 22 * hub_pio_map - establish a HUB PIO mapping ^1da177e4c3f41 Linus Torvalds 2005-04-16 23 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 24 * @hub:hub to perform PIO mapping on ^1da177e4c3f41 Linus Torvalds 2005-04-16 25 * @widget: widget ID to perform PIO mapping for ^1da177e4c3f41 Linus Torvalds 2005-04-16 26 * @xtalk_addr: xtalk_address that needs to be mapped ^1da177e4c3f41 Linus Torvalds 2005-04-16 27 * @size: size of the PIO mapping ^1da177e4c3f41 Linus Torvalds 2005-04-16 28 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 29 **/ 4bf841ebf17aaa Thomas Bogendoerfer 2019-10-03 @30 unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget, ^1da177e4c3f41 Linus Torvalds 2005-04-16 31 unsigned long xtalk_addr, size_t size) ^1da177e4c3f41 Linus Torvalds 2005-04-16 32 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 33 unsigned i; ^1da177e4c3f41 Linus Torvalds 2005-04-16 34 ^1da177e4c3f41 Linus Torvalds 2005-04-16 35 /* use small-window mapping if possible */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 36 if ((xtalk_addr % SWIN_SIZE) + size <= SWIN_SIZE) ^1da177e4c3f41 Linus Torvalds 2005-04-16 37 return NODE_SWIN_BASE(nasid, widget) + (xtalk_addr % SWIN_SIZE); ^1da177e4c3f41 Linus Torvalds 2005-04-16 38 ^1da177e4c3f41 Linus Torvalds 2005-04-16 39 if ((xtalk_addr % BWIN_SIZE) + size > BWIN_SIZE) { ^1da177e4c3f41 Linus Torvalds 2005-04-16 40 printk(KERN_WARNING "PIO mapping at hub %d widget %d addr 0x%lx" ^1da177e4c3f41 Linus Torvalds 2005-04-16 41 " too big (%ld)\n", ^1da177e4c3f41 Linus Torvalds 2005-04-16 42 nasid, widget, xtalk_addr, size); ^1da177e4c3f41 Linus Torvalds 2005-04-16 43 return 0; ^1da177e4c3f41 Linus Torvalds 2005-04-16 44 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 45 ^1da177e4c3f41 Linus Torvalds 2005-04-16 46 xtalk_addr &= ~(BWIN_SIZE-1); ^1da177e4c3f41 Linus Torvalds 2005-04-16 47 for (i = 0; i < HUB_NUM_BIG_WINDOW; i++) { 4bf841ebf17aaa Thomas Bogendoerfer 2019-10-03 48 if (test_and_set_bit(i, hub_data(nasid)->h_bigwin_used)) ^1da177e4c3f41 Linus Torvalds 2005-04-16 49 continue; ^1da177e4c3f41 Linus Torvalds 2005-04-16 50 ^1da177e4c3f41 Linus Torvalds 2005-04-16 51 /* ^1da177e4c3f41 Linus Torvalds 2005-04-16 52 * The code below does a PIO write to setup an ITTE entry. ^1da177e4c3f41 Linus Torvalds 2005-04-16 53 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 54 * We need to prevent other CPUs from seeing our updated ^1da177e4c3f41 Linus Torvalds 2005-04-16 55 * memory shadow of the ITTE (in the piomap) until the ITTE ^1da177e4c3f41 Linus Torvalds 2005-04-16 56 * entry is actually set up; ot
arch/mips/sgi-ip27/ip27-hubio.c:30:15: warning: no previous prototype for 'hub_pio_map'
Hi Thomas, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 commit: b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 MIPS: SGI-IP27: use asm/sn/agent.h for including HUB related stuff date: 7 months ago config: mips-randconfig-r023-20200817 (attached as .config) compiler: mips64-linux-gcc (GCC) 9.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 git checkout b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/mips/sgi-ip27/ip27-hubio.c:30:15: warning: no previous prototype for >> 'hub_pio_map' [-Wmissing-prototypes] 30 | unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget, | ^~~ >> arch/mips/sgi-ip27/ip27-hubio.c:175:6: warning: no previous prototype for >> 'hub_pio_init' [-Wmissing-prototypes] 175 | void hub_pio_init(nasid_t nasid) | ^~~~ {standard input}: Assembler messages: {standard input}:130: Error: found '(', expected: ')' {standard input}:130: Error: found '(', expected: ')' {standard input}:130: Error: non-constant expression in ".if" statement {standard input}:130: Error: junk at end of line, first unrecognized character is `(' {standard input}:155: Error: found '(', expected: ')' {standard input}:155: Error: found '(', expected: ')' {standard input}:155: Error: non-constant expression in ".if" statement {standard input}:155: Error: junk at end of line, first unrecognized character is `(' {standard input}:641: Error: found '(', expected: ')' {standard input}:641: Error: found '(', expected: ')' {standard input}:641: Error: non-constant expression in ".if" statement {standard input}:641: Error: junk at end of line, first unrecognized character is `(' # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 vim +/hub_pio_map +30 arch/mips/sgi-ip27/ip27-hubio.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 20 ^1da177e4c3f41 Linus Torvalds 2005-04-16 21 /** ^1da177e4c3f41 Linus Torvalds 2005-04-16 22 * hub_pio_map - establish a HUB PIO mapping ^1da177e4c3f41 Linus Torvalds 2005-04-16 23 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 24 * @hub:hub to perform PIO mapping on ^1da177e4c3f41 Linus Torvalds 2005-04-16 25 * @widget: widget ID to perform PIO mapping for ^1da177e4c3f41 Linus Torvalds 2005-04-16 26 * @xtalk_addr: xtalk_address that needs to be mapped ^1da177e4c3f41 Linus Torvalds 2005-04-16 27 * @size: size of the PIO mapping ^1da177e4c3f41 Linus Torvalds 2005-04-16 28 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 29 **/ 4bf841ebf17aaa Thomas Bogendoerfer 2019-10-03 @30 unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget, ^1da177e4c3f41 Linus Torvalds 2005-04-16 31 unsigned long xtalk_addr, size_t size) ^1da177e4c3f41 Linus Torvalds 2005-04-16 32 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 33 unsigned i; ^1da177e4c3f41 Linus Torvalds 2005-04-16 34 ^1da177e4c3f41 Linus Torvalds 2005-04-16 35 /* use small-window mapping if possible */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 36 if ((xtalk_addr % SWIN_SIZE) + size <= SWIN_SIZE) ^1da177e4c3f41 Linus Torvalds 2005-04-16 37 return NODE_SWIN_BASE(nasid, widget) + (xtalk_addr % SWIN_SIZE); ^1da177e4c3f41 Linus Torvalds 2005-04-16 38 ^1da177e4c3f41 Linus Torvalds 2005-04-16 39 if ((xtalk_addr % BWIN_SIZE) + size > BWIN_SIZE) { ^1da177e4c3f41 Linus Torvalds 2005-04-16 40 printk(KERN_WARNING "PIO mapping at hub %d widget %d addr 0x%lx" ^1da177e4c3f41 Linus Torvalds 2005-04-16 41 " too big (%ld)\n", ^1da177e4c3f41 Linus Torvalds 2005-04-16 42 nasid, widget, xtalk_addr, size); ^1da177e4c3f41 Linus Torvalds 2005-04-16 43 return 0; ^1da177e4c3f41 Linus Torvalds 2005-04-16 44 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 45 ^1da177e4c3f41 Linus Torvalds 2005-04-16 46 xtalk_addr &= ~(BWIN_SIZE-1); ^1da177e4c3f41 Linus Tor
arch/mips/sgi-ip27/ip27-hubio.c:30:15: warning: no previous prototype for 'hub_pio_map'
Hi Thomas, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 625d3449788f85569096780592549d0340e9c0c7 commit: b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 MIPS: SGI-IP27: use asm/sn/agent.h for including HUB related stuff date: 6 months ago config: mips-randconfig-r021-20200622 (attached as .config) compiler: mips64-linux-gcc (GCC) 9.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 git checkout b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> arch/mips/sgi-ip27/ip27-hubio.c:30:15: warning: no previous prototype for >> 'hub_pio_map' [-Wmissing-prototypes] 30 | unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget, | ^~~ >> arch/mips/sgi-ip27/ip27-hubio.c:175:6: warning: no previous prototype for >> 'hub_pio_init' [-Wmissing-prototypes] 175 | void hub_pio_init(nasid_t nasid) | ^~~~ vim +/hub_pio_map +30 arch/mips/sgi-ip27/ip27-hubio.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 20 ^1da177e4c3f41 Linus Torvalds 2005-04-16 21 /** ^1da177e4c3f41 Linus Torvalds 2005-04-16 22 * hub_pio_map - establish a HUB PIO mapping ^1da177e4c3f41 Linus Torvalds 2005-04-16 23 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 24 * @hub:hub to perform PIO mapping on ^1da177e4c3f41 Linus Torvalds 2005-04-16 25 * @widget: widget ID to perform PIO mapping for ^1da177e4c3f41 Linus Torvalds 2005-04-16 26 * @xtalk_addr: xtalk_address that needs to be mapped ^1da177e4c3f41 Linus Torvalds 2005-04-16 27 * @size: size of the PIO mapping ^1da177e4c3f41 Linus Torvalds 2005-04-16 28 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 29 **/ 4bf841ebf17aaa Thomas Bogendoerfer 2019-10-03 @30 unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget, ^1da177e4c3f41 Linus Torvalds 2005-04-16 31 unsigned long xtalk_addr, size_t size) ^1da177e4c3f41 Linus Torvalds 2005-04-16 32 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 33 unsigned i; ^1da177e4c3f41 Linus Torvalds 2005-04-16 34 ^1da177e4c3f41 Linus Torvalds 2005-04-16 35 /* use small-window mapping if possible */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 36 if ((xtalk_addr % SWIN_SIZE) + size <= SWIN_SIZE) ^1da177e4c3f41 Linus Torvalds 2005-04-16 37 return NODE_SWIN_BASE(nasid, widget) + (xtalk_addr % SWIN_SIZE); ^1da177e4c3f41 Linus Torvalds 2005-04-16 38 ^1da177e4c3f41 Linus Torvalds 2005-04-16 39 if ((xtalk_addr % BWIN_SIZE) + size > BWIN_SIZE) { ^1da177e4c3f41 Linus Torvalds 2005-04-16 40 printk(KERN_WARNING "PIO mapping at hub %d widget %d addr 0x%lx" ^1da177e4c3f41 Linus Torvalds 2005-04-16 41 " too big (%ld)\n", ^1da177e4c3f41 Linus Torvalds 2005-04-16 42 nasid, widget, xtalk_addr, size); ^1da177e4c3f41 Linus Torvalds 2005-04-16 43 return 0; ^1da177e4c3f41 Linus Torvalds 2005-04-16 44 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 45 ^1da177e4c3f41 Linus Torvalds 2005-04-16 46 xtalk_addr &= ~(BWIN_SIZE-1); ^1da177e4c3f41 Linus Torvalds 2005-04-16 47 for (i = 0; i < HUB_NUM_BIG_WINDOW; i++) { 4bf841ebf17aaa Thomas Bogendoerfer 2019-10-03 48 if (test_and_set_bit(i, hub_data(nasid)->h_bigwin_used)) ^1da177e4c3f41 Linus Torvalds 2005-04-16 49 continue; ^1da177e4c3f41 Linus Torvalds 2005-04-16 50 ^1da177e4c3f41 Linus Torvalds 2005-04-16 51 /* ^1da177e4c3f41 Linus Torvalds 2005-04-16 52 * The code below does a PIO write to setup an ITTE entry. ^1da177e4c3f41 Linus Torvalds 2005-04-16 53 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 54 * We need to prevent other CPUs from seeing our updated ^1da177e4c3f41 Linus Torvalds 2005-04-16 55 * memory shadow of the ITTE (in the piomap) until the ITTE ^1da177e4c3f41 Linus Torvalds 2005-04-16 56 * entry is actually set up; otherwise, another CPU might ^1da177e4c3f41 Linus Torvalds 2005-04-16 57 * attempt a PIO prematurely. ^1da177e4c3f41 Linus Torvalds 2005-04-16 58 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 59 * Also, the o
arch/mips/sgi-ip27/ip27-hubio.c:30:15: warning: no previous prototype for 'hub_pio_map'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 86852175b016f0c6873dcbc24b93d12b7b246612 commit: b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 MIPS: SGI-IP27: use asm/sn/agent.h for including HUB related stuff date: 5 months ago config: mips-ip27_defconfig (attached as .config) compiler: mips64-linux-gcc (GCC) 9.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 git checkout b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> arch/mips/sgi-ip27/ip27-hubio.c:30:15: warning: no previous prototype for >> 'hub_pio_map' [-Wmissing-prototypes] 30 | unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget, | ^~~ >> arch/mips/sgi-ip27/ip27-hubio.c:175:6: warning: no previous prototype for >> 'hub_pio_init' [-Wmissing-prototypes] 175 | void hub_pio_init(nasid_t nasid) | ^~~~ vim +/hub_pio_map +30 arch/mips/sgi-ip27/ip27-hubio.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 20 ^1da177e4c3f41 Linus Torvalds 2005-04-16 21 /** ^1da177e4c3f41 Linus Torvalds 2005-04-16 22 * hub_pio_map - establish a HUB PIO mapping ^1da177e4c3f41 Linus Torvalds 2005-04-16 23 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 24 * @hub:hub to perform PIO mapping on ^1da177e4c3f41 Linus Torvalds 2005-04-16 25 * @widget: widget ID to perform PIO mapping for ^1da177e4c3f41 Linus Torvalds 2005-04-16 26 * @xtalk_addr: xtalk_address that needs to be mapped ^1da177e4c3f41 Linus Torvalds 2005-04-16 27 * @size: size of the PIO mapping ^1da177e4c3f41 Linus Torvalds 2005-04-16 28 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 29 **/ 4bf841ebf17aaa Thomas Bogendoerfer 2019-10-03 @30 unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget, ^1da177e4c3f41 Linus Torvalds 2005-04-16 31 unsigned long xtalk_addr, size_t size) ^1da177e4c3f41 Linus Torvalds 2005-04-16 32 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 33 unsigned i; ^1da177e4c3f41 Linus Torvalds 2005-04-16 34 ^1da177e4c3f41 Linus Torvalds 2005-04-16 35 /* use small-window mapping if possible */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 36 if ((xtalk_addr % SWIN_SIZE) + size <= SWIN_SIZE) ^1da177e4c3f41 Linus Torvalds 2005-04-16 37 return NODE_SWIN_BASE(nasid, widget) + (xtalk_addr % SWIN_SIZE); ^1da177e4c3f41 Linus Torvalds 2005-04-16 38 ^1da177e4c3f41 Linus Torvalds 2005-04-16 39 if ((xtalk_addr % BWIN_SIZE) + size > BWIN_SIZE) { ^1da177e4c3f41 Linus Torvalds 2005-04-16 40 printk(KERN_WARNING "PIO mapping at hub %d widget %d addr 0x%lx" ^1da177e4c3f41 Linus Torvalds 2005-04-16 41 " too big (%ld)\n", ^1da177e4c3f41 Linus Torvalds 2005-04-16 42 nasid, widget, xtalk_addr, size); ^1da177e4c3f41 Linus Torvalds 2005-04-16 43 return 0; ^1da177e4c3f41 Linus Torvalds 2005-04-16 44 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 45 ^1da177e4c3f41 Linus Torvalds 2005-04-16 46 xtalk_addr &= ~(BWIN_SIZE-1); ^1da177e4c3f41 Linus Torvalds 2005-04-16 47 for (i = 0; i < HUB_NUM_BIG_WINDOW; i++) { 4bf841ebf17aaa Thomas Bogendoerfer 2019-10-03 48 if (test_and_set_bit(i, hub_data(nasid)->h_bigwin_used)) ^1da177e4c3f41 Linus Torvalds 2005-04-16 49 continue; ^1da177e4c3f41 Linus Torvalds 2005-04-16 50 ^1da177e4c3f41 Linus Torvalds 2005-04-16 51 /* ^1da177e4c3f41 Linus Torvalds 2005-04-16 52 * The code below does a PIO write to setup an ITTE entry. ^1da177e4c3f41 Linus Torvalds 2005-04-16 53 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 54 * We need to prevent other CPUs from seeing our updated ^1da177e4c3f41 Linus Torvalds 2005-04-16 55 * memory shadow of the ITTE (in the piomap) until the ITTE ^1da177e4c3f41 Linus Torvalds 2005-04-16 56 * entry is actually set up; otherwise, another CPU might ^1da177e4c3f41 Linus Torvalds 2005-04-16 57 * attempt a PIO prematurely. ^1da177e4c3f41 Linus Torvalds 2005-04-16 58 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 59 * Also, the only way we can know that an entry has been ^1da177e4c3f41 L