All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:x86/wip-rwx 3/5] arch/s390/kernel/module.c:438:8: error: too few arguments to function 'apply_rela'
@ 2020-03-21  7:20 kbuild test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kbuild test robot @ 2020-03-21  7:20 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6272 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip-rwx
head:   e027460bc9615fd55e60cee8138efe73959d5c7d
commit: 59319adc37b942926d4636c45c12002d8aa2c59b [3/5] livepatch: Use text_poke() for relocations
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 59319adc37b942926d4636c45c12002d8aa2c59b
        # save the attached .config to linux build tree
        GCC_VERSION=9.2.0 make.cross ARCH=s390 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/s390/kernel/module.c: In function 'apply_rela_bits':
   arch/s390/kernel/module.c:199:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     199 |   write(loc, &val, 1);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:199:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:203:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     203 |   write(loc, &tmp, 2);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:203:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:205:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     205 |   write(loc, &val, 2);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:205:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:209:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     209 |   write(loc, &tmp, 4);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:209:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:211:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     211 |   write(loc, &val, 4);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:211:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:213:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     213 |   write(loc, &val, 8);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:213:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c: In function '__apply_relocate_add':
>> arch/s390/kernel/module.c:438:8: error: too few arguments to function 'apply_rela'
     438 |   rc = apply_rela(rela, base, symtab, strtab, me);
         |        ^~~~~~~~~~
   arch/s390/kernel/module.c:218:12: note: declared here
     218 | static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab,
         |            ^~~~~~~~~~

vim +/apply_rela +438 arch/s390/kernel/module.c

^1da177e4c3f41 Linus Torvalds     2005-04-16  418  
59319adc37b942 Peter Zijlstra     2019-10-21  419  static int __apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab,
^1da177e4c3f41 Linus Torvalds     2005-04-16  420  		       unsigned int symindex, unsigned int relsec,
59319adc37b942 Peter Zijlstra     2019-10-21  421  		       struct module *me,
59319adc37b942 Peter Zijlstra     2019-10-21  422  		       void (*write)(void *addr, const void *data, size_t len))
^1da177e4c3f41 Linus Torvalds     2005-04-16  423  {
^1da177e4c3f41 Linus Torvalds     2005-04-16  424  	Elf_Addr base;
^1da177e4c3f41 Linus Torvalds     2005-04-16  425  	Elf_Sym *symtab;
^1da177e4c3f41 Linus Torvalds     2005-04-16  426  	Elf_Rela *rela;
^1da177e4c3f41 Linus Torvalds     2005-04-16  427  	unsigned long i, n;
^1da177e4c3f41 Linus Torvalds     2005-04-16  428  	int rc;
^1da177e4c3f41 Linus Torvalds     2005-04-16  429  
^1da177e4c3f41 Linus Torvalds     2005-04-16  430  	DEBUGP("Applying relocate section %u to %u\n",
^1da177e4c3f41 Linus Torvalds     2005-04-16  431  	       relsec, sechdrs[relsec].sh_info);
^1da177e4c3f41 Linus Torvalds     2005-04-16  432  	base = sechdrs[sechdrs[relsec].sh_info].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  433  	symtab = (Elf_Sym *) sechdrs[symindex].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  434  	rela = (Elf_Rela *) sechdrs[relsec].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  435  	n = sechdrs[relsec].sh_size / sizeof(Elf_Rela);
^1da177e4c3f41 Linus Torvalds     2005-04-16  436  
^1da177e4c3f41 Linus Torvalds     2005-04-16  437  	for (i = 0; i < n; i++, rela++) {
083e14c09b7ae0 Martin Schwidefsky 2013-01-11 @438  		rc = apply_rela(rela, base, symtab, strtab, me);
^1da177e4c3f41 Linus Torvalds     2005-04-16  439  		if (rc)
^1da177e4c3f41 Linus Torvalds     2005-04-16  440  			return rc;
^1da177e4c3f41 Linus Torvalds     2005-04-16  441  	}
^1da177e4c3f41 Linus Torvalds     2005-04-16  442  	return 0;
^1da177e4c3f41 Linus Torvalds     2005-04-16  443  }
^1da177e4c3f41 Linus Torvalds     2005-04-16  444  

:::::: The code@line 438 was first introduced by commit
:::::: 083e14c09b7ae0247b9944a386fdc32cd0719da1 s390/modules: add relocation overflow checking

:::::: TO: Martin Schwidefsky <schwidefsky@de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky@de.ibm.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 58318 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [peterz-queue:x86/wip-rwx 3/5] arch/s390/kernel/module.c:438:8: error: too few arguments to function 'apply_rela'
@ 2020-04-02 10:03 kbuild test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kbuild test robot @ 2020-04-02 10:03 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6284 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip-rwx
head:   d7a396eb2371493081226bb98739c1970cdaba0b
commit: 73011406b455d80485cfd0a2c016b5dfe9290c88 [3/5] livepatch: Use text_poke() for relocations
config: s390-randconfig-a001-20200402 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 73011406b455d80485cfd0a2c016b5dfe9290c88
        # save the attached .config to linux build tree
        GCC_VERSION=9.3.0 make.cross ARCH=s390 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/s390/kernel/module.c: In function 'apply_rela_bits':
   arch/s390/kernel/module.c:199:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     199 |   write(loc, &val, 1);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:199:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:203:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     203 |   write(loc, &tmp, 2);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:203:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:205:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     205 |   write(loc, &val, 2);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:205:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:209:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     209 |   write(loc, &tmp, 4);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:209:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:211:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     211 |   write(loc, &val, 4);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:211:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:213:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     213 |   write(loc, &val, 8);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:213:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c: In function '__apply_relocate_add':
>> arch/s390/kernel/module.c:438:8: error: too few arguments to function 'apply_rela'
     438 |   rc = apply_rela(rela, base, symtab, strtab, me);
         |        ^~~~~~~~~~
   arch/s390/kernel/module.c:218:12: note: declared here
     218 | static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab,
         |            ^~~~~~~~~~

vim +/apply_rela +438 arch/s390/kernel/module.c

^1da177e4c3f41 Linus Torvalds     2005-04-16  418  
73011406b455d8 Peter Zijlstra     2019-10-21  419  static int __apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab,
^1da177e4c3f41 Linus Torvalds     2005-04-16  420  		       unsigned int symindex, unsigned int relsec,
73011406b455d8 Peter Zijlstra     2019-10-21  421  		       struct module *me,
73011406b455d8 Peter Zijlstra     2019-10-21  422  		       void (*write)(void *addr, const void *data, size_t len))
^1da177e4c3f41 Linus Torvalds     2005-04-16  423  {
^1da177e4c3f41 Linus Torvalds     2005-04-16  424  	Elf_Addr base;
^1da177e4c3f41 Linus Torvalds     2005-04-16  425  	Elf_Sym *symtab;
^1da177e4c3f41 Linus Torvalds     2005-04-16  426  	Elf_Rela *rela;
^1da177e4c3f41 Linus Torvalds     2005-04-16  427  	unsigned long i, n;
^1da177e4c3f41 Linus Torvalds     2005-04-16  428  	int rc;
^1da177e4c3f41 Linus Torvalds     2005-04-16  429  
^1da177e4c3f41 Linus Torvalds     2005-04-16  430  	DEBUGP("Applying relocate section %u to %u\n",
^1da177e4c3f41 Linus Torvalds     2005-04-16  431  	       relsec, sechdrs[relsec].sh_info);
^1da177e4c3f41 Linus Torvalds     2005-04-16  432  	base = sechdrs[sechdrs[relsec].sh_info].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  433  	symtab = (Elf_Sym *) sechdrs[symindex].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  434  	rela = (Elf_Rela *) sechdrs[relsec].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  435  	n = sechdrs[relsec].sh_size / sizeof(Elf_Rela);
^1da177e4c3f41 Linus Torvalds     2005-04-16  436  
^1da177e4c3f41 Linus Torvalds     2005-04-16  437  	for (i = 0; i < n; i++, rela++) {
083e14c09b7ae0 Martin Schwidefsky 2013-01-11 @438  		rc = apply_rela(rela, base, symtab, strtab, me);
^1da177e4c3f41 Linus Torvalds     2005-04-16  439  		if (rc)
^1da177e4c3f41 Linus Torvalds     2005-04-16  440  			return rc;
^1da177e4c3f41 Linus Torvalds     2005-04-16  441  	}
^1da177e4c3f41 Linus Torvalds     2005-04-16  442  	return 0;
^1da177e4c3f41 Linus Torvalds     2005-04-16  443  }
^1da177e4c3f41 Linus Torvalds     2005-04-16  444  

:::::: The code@line 438 was first introduced by commit
:::::: 083e14c09b7ae0247b9944a386fdc32cd0719da1 s390/modules: add relocation overflow checking

:::::: TO: Martin Schwidefsky <schwidefsky@de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky@de.ibm.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30023 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [peterz-queue:x86/wip-rwx 3/5] arch/s390/kernel/module.c:438:8: error: too few arguments to function 'apply_rela'
@ 2020-03-30 15:56 kbuild test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kbuild test robot @ 2020-03-30 15:56 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6275 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip-rwx
head:   2b692130d9ed6906e72abfffc730fdd34af3c6cf
commit: 918ebf691eda91f6ebcf198967d64aa16fc77822 [3/5] livepatch: Use text_poke() for relocations
config: s390-debug_defconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 918ebf691eda91f6ebcf198967d64aa16fc77822
        # save the attached .config to linux build tree
        GCC_VERSION=9.3.0 make.cross ARCH=s390 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/s390/kernel/module.c: In function 'apply_rela_bits':
   arch/s390/kernel/module.c:199:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     199 |   write(loc, &val, 1);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:199:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:203:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     203 |   write(loc, &tmp, 2);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:203:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:205:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     205 |   write(loc, &val, 2);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:205:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:209:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     209 |   write(loc, &tmp, 4);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:209:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:211:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     211 |   write(loc, &val, 4);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:211:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:213:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     213 |   write(loc, &val, 8);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:213:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c: In function '__apply_relocate_add':
>> arch/s390/kernel/module.c:438:8: error: too few arguments to function 'apply_rela'
     438 |   rc = apply_rela(rela, base, symtab, strtab, me);
         |        ^~~~~~~~~~
   arch/s390/kernel/module.c:218:12: note: declared here
     218 | static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab,
         |            ^~~~~~~~~~

vim +/apply_rela +438 arch/s390/kernel/module.c

^1da177e4c3f41 Linus Torvalds     2005-04-16  418  
918ebf691eda91 Peter Zijlstra     2019-10-21  419  static int __apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab,
^1da177e4c3f41 Linus Torvalds     2005-04-16  420  		       unsigned int symindex, unsigned int relsec,
918ebf691eda91 Peter Zijlstra     2019-10-21  421  		       struct module *me,
918ebf691eda91 Peter Zijlstra     2019-10-21  422  		       void (*write)(void *addr, const void *data, size_t len))
^1da177e4c3f41 Linus Torvalds     2005-04-16  423  {
^1da177e4c3f41 Linus Torvalds     2005-04-16  424  	Elf_Addr base;
^1da177e4c3f41 Linus Torvalds     2005-04-16  425  	Elf_Sym *symtab;
^1da177e4c3f41 Linus Torvalds     2005-04-16  426  	Elf_Rela *rela;
^1da177e4c3f41 Linus Torvalds     2005-04-16  427  	unsigned long i, n;
^1da177e4c3f41 Linus Torvalds     2005-04-16  428  	int rc;
^1da177e4c3f41 Linus Torvalds     2005-04-16  429  
^1da177e4c3f41 Linus Torvalds     2005-04-16  430  	DEBUGP("Applying relocate section %u to %u\n",
^1da177e4c3f41 Linus Torvalds     2005-04-16  431  	       relsec, sechdrs[relsec].sh_info);
^1da177e4c3f41 Linus Torvalds     2005-04-16  432  	base = sechdrs[sechdrs[relsec].sh_info].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  433  	symtab = (Elf_Sym *) sechdrs[symindex].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  434  	rela = (Elf_Rela *) sechdrs[relsec].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  435  	n = sechdrs[relsec].sh_size / sizeof(Elf_Rela);
^1da177e4c3f41 Linus Torvalds     2005-04-16  436  
^1da177e4c3f41 Linus Torvalds     2005-04-16  437  	for (i = 0; i < n; i++, rela++) {
083e14c09b7ae0 Martin Schwidefsky 2013-01-11 @438  		rc = apply_rela(rela, base, symtab, strtab, me);
^1da177e4c3f41 Linus Torvalds     2005-04-16  439  		if (rc)
^1da177e4c3f41 Linus Torvalds     2005-04-16  440  			return rc;
^1da177e4c3f41 Linus Torvalds     2005-04-16  441  	}
^1da177e4c3f41 Linus Torvalds     2005-04-16  442  	return 0;
^1da177e4c3f41 Linus Torvalds     2005-04-16  443  }
^1da177e4c3f41 Linus Torvalds     2005-04-16  444  

:::::: The code@line 438 was first introduced by commit
:::::: 083e14c09b7ae0247b9944a386fdc32cd0719da1 s390/modules: add relocation overflow checking

:::::: TO: Martin Schwidefsky <schwidefsky@de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky@de.ibm.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 19428 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [peterz-queue:x86/wip-rwx 3/5] arch/s390/kernel/module.c:438:8: error: too few arguments to function 'apply_rela'
@ 2020-03-24 13:54 kbuild test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kbuild test robot @ 2020-03-24 13:54 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6275 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip-rwx
head:   f32ba70e6946e26ba02b24266973d79e5a70be84
commit: fdf58859202843748c7311362cbfa4d066b9a436 [3/5] livepatch: Use text_poke() for relocations
config: s390-debug_defconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout fdf58859202843748c7311362cbfa4d066b9a436
        # save the attached .config to linux build tree
        GCC_VERSION=9.2.0 make.cross ARCH=s390 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/s390/kernel/module.c: In function 'apply_rela_bits':
   arch/s390/kernel/module.c:199:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     199 |   write(loc, &val, 1);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:199:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:203:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     203 |   write(loc, &tmp, 2);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:203:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:205:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     205 |   write(loc, &val, 2);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:205:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:209:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     209 |   write(loc, &tmp, 4);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:209:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:211:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     211 |   write(loc, &val, 4);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:211:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:213:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     213 |   write(loc, &val, 8);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:213:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c: In function '__apply_relocate_add':
>> arch/s390/kernel/module.c:438:8: error: too few arguments to function 'apply_rela'
     438 |   rc = apply_rela(rela, base, symtab, strtab, me);
         |        ^~~~~~~~~~
   arch/s390/kernel/module.c:218:12: note: declared here
     218 | static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab,
         |            ^~~~~~~~~~

vim +/apply_rela +438 arch/s390/kernel/module.c

^1da177e4c3f41 Linus Torvalds     2005-04-16  418  
fdf58859202843 Peter Zijlstra     2019-10-21  419  static int __apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab,
^1da177e4c3f41 Linus Torvalds     2005-04-16  420  		       unsigned int symindex, unsigned int relsec,
fdf58859202843 Peter Zijlstra     2019-10-21  421  		       struct module *me,
fdf58859202843 Peter Zijlstra     2019-10-21  422  		       void (*write)(void *addr, const void *data, size_t len))
^1da177e4c3f41 Linus Torvalds     2005-04-16  423  {
^1da177e4c3f41 Linus Torvalds     2005-04-16  424  	Elf_Addr base;
^1da177e4c3f41 Linus Torvalds     2005-04-16  425  	Elf_Sym *symtab;
^1da177e4c3f41 Linus Torvalds     2005-04-16  426  	Elf_Rela *rela;
^1da177e4c3f41 Linus Torvalds     2005-04-16  427  	unsigned long i, n;
^1da177e4c3f41 Linus Torvalds     2005-04-16  428  	int rc;
^1da177e4c3f41 Linus Torvalds     2005-04-16  429  
^1da177e4c3f41 Linus Torvalds     2005-04-16  430  	DEBUGP("Applying relocate section %u to %u\n",
^1da177e4c3f41 Linus Torvalds     2005-04-16  431  	       relsec, sechdrs[relsec].sh_info);
^1da177e4c3f41 Linus Torvalds     2005-04-16  432  	base = sechdrs[sechdrs[relsec].sh_info].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  433  	symtab = (Elf_Sym *) sechdrs[symindex].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  434  	rela = (Elf_Rela *) sechdrs[relsec].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  435  	n = sechdrs[relsec].sh_size / sizeof(Elf_Rela);
^1da177e4c3f41 Linus Torvalds     2005-04-16  436  
^1da177e4c3f41 Linus Torvalds     2005-04-16  437  	for (i = 0; i < n; i++, rela++) {
083e14c09b7ae0 Martin Schwidefsky 2013-01-11 @438  		rc = apply_rela(rela, base, symtab, strtab, me);
^1da177e4c3f41 Linus Torvalds     2005-04-16  439  		if (rc)
^1da177e4c3f41 Linus Torvalds     2005-04-16  440  			return rc;
^1da177e4c3f41 Linus Torvalds     2005-04-16  441  	}
^1da177e4c3f41 Linus Torvalds     2005-04-16  442  	return 0;
^1da177e4c3f41 Linus Torvalds     2005-04-16  443  }
^1da177e4c3f41 Linus Torvalds     2005-04-16  444  

:::::: The code@line 438 was first introduced by commit
:::::: 083e14c09b7ae0247b9944a386fdc32cd0719da1 s390/modules: add relocation overflow checking

:::::: TO: Martin Schwidefsky <schwidefsky@de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky@de.ibm.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 19237 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [peterz-queue:x86/wip-rwx 3/5] arch/s390/kernel/module.c:438:8: error: too few arguments to function 'apply_rela'
@ 2020-03-19 10:34 kbuild test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kbuild test robot @ 2020-03-19 10:34 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6275 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip-rwx
head:   1693ae40e980599e8aefd9fdbfd8d156d81f8953
commit: a52287ad12c714c35bb8a0dbcf6165881ff5005e [3/5] livepatch: Use text_poke() for relocations
config: s390-debug_defconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout a52287ad12c714c35bb8a0dbcf6165881ff5005e
        # save the attached .config to linux build tree
        GCC_VERSION=9.2.0 make.cross ARCH=s390 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/s390/kernel/module.c: In function 'apply_rela_bits':
   arch/s390/kernel/module.c:199:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     199 |   write(loc, &val, 1);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:199:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:203:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     203 |   write(loc, &tmp, 2);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:203:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:205:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     205 |   write(loc, &val, 2);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:205:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:209:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     209 |   write(loc, &tmp, 4);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:209:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:211:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     211 |   write(loc, &val, 4);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:211:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c:213:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
     213 |   write(loc, &val, 8);
         |         ^~~
         |         |
         |         Elf64_Addr {aka long long unsigned int}
   arch/s390/kernel/module.c:213:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
   arch/s390/kernel/module.c: In function '__apply_relocate_add':
>> arch/s390/kernel/module.c:438:8: error: too few arguments to function 'apply_rela'
     438 |   rc = apply_rela(rela, base, symtab, strtab, me);
         |        ^~~~~~~~~~
   arch/s390/kernel/module.c:218:12: note: declared here
     218 | static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab,
         |            ^~~~~~~~~~

vim +/apply_rela +438 arch/s390/kernel/module.c

^1da177e4c3f41 Linus Torvalds     2005-04-16  418  
a52287ad12c714 Peter Zijlstra     2019-10-21  419  static int __apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab,
^1da177e4c3f41 Linus Torvalds     2005-04-16  420  		       unsigned int symindex, unsigned int relsec,
a52287ad12c714 Peter Zijlstra     2019-10-21  421  		       struct module *me,
a52287ad12c714 Peter Zijlstra     2019-10-21  422  		       void (*write)(void *addr, const void *data, size_t len))
^1da177e4c3f41 Linus Torvalds     2005-04-16  423  {
^1da177e4c3f41 Linus Torvalds     2005-04-16  424  	Elf_Addr base;
^1da177e4c3f41 Linus Torvalds     2005-04-16  425  	Elf_Sym *symtab;
^1da177e4c3f41 Linus Torvalds     2005-04-16  426  	Elf_Rela *rela;
^1da177e4c3f41 Linus Torvalds     2005-04-16  427  	unsigned long i, n;
^1da177e4c3f41 Linus Torvalds     2005-04-16  428  	int rc;
^1da177e4c3f41 Linus Torvalds     2005-04-16  429  
^1da177e4c3f41 Linus Torvalds     2005-04-16  430  	DEBUGP("Applying relocate section %u to %u\n",
^1da177e4c3f41 Linus Torvalds     2005-04-16  431  	       relsec, sechdrs[relsec].sh_info);
^1da177e4c3f41 Linus Torvalds     2005-04-16  432  	base = sechdrs[sechdrs[relsec].sh_info].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  433  	symtab = (Elf_Sym *) sechdrs[symindex].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  434  	rela = (Elf_Rela *) sechdrs[relsec].sh_addr;
^1da177e4c3f41 Linus Torvalds     2005-04-16  435  	n = sechdrs[relsec].sh_size / sizeof(Elf_Rela);
^1da177e4c3f41 Linus Torvalds     2005-04-16  436  
^1da177e4c3f41 Linus Torvalds     2005-04-16  437  	for (i = 0; i < n; i++, rela++) {
083e14c09b7ae0 Martin Schwidefsky 2013-01-11 @438  		rc = apply_rela(rela, base, symtab, strtab, me);
^1da177e4c3f41 Linus Torvalds     2005-04-16  439  		if (rc)
^1da177e4c3f41 Linus Torvalds     2005-04-16  440  			return rc;
^1da177e4c3f41 Linus Torvalds     2005-04-16  441  	}
^1da177e4c3f41 Linus Torvalds     2005-04-16  442  	return 0;
^1da177e4c3f41 Linus Torvalds     2005-04-16  443  }
^1da177e4c3f41 Linus Torvalds     2005-04-16  444  

:::::: The code@line 438 was first introduced by commit
:::::: 083e14c09b7ae0247b9944a386fdc32cd0719da1 s390/modules: add relocation overflow checking

:::::: TO: Martin Schwidefsky <schwidefsky@de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky@de.ibm.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 19335 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-04-02 10:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-21  7:20 [peterz-queue:x86/wip-rwx 3/5] arch/s390/kernel/module.c:438:8: error: too few arguments to function 'apply_rela' kbuild test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-04-02 10:03 kbuild test robot
2020-03-30 15:56 kbuild test robot
2020-03-24 13:54 kbuild test robot
2020-03-19 10:34 kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.