* [peterz-queue:modules/core 1/5] kernel/module.c:2170:35: sparse: sparse: incompatible types in comparison expression (different base types):
@ 2019-10-22 11:59 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-10-22 11:59 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4263 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git modules/core
head: 302719338a541af0e2d2ce9d0fec99e2dde09dae
commit: 220e0e0c6f6e0607d5effd71e0a67129405a3f7e [1/5] module,klp: Add module_section_{en,dis}able_*()
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-dirty
git checkout 220e0e0c6f6e0607d5effd71e0a67129405a3f7e
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
kernel/module.c:1413:1: sparse: sparse: directive in macro's argument list
kernel/module.c:1415:1: sparse: sparse: directive in macro's argument list
include/linux/rbtree.h:84:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
include/linux/rbtree.h:84:9: sparse: struct rb_node [noderef] <asn:4> *
include/linux/rbtree.h:84:9: sparse: struct rb_node *
include/linux/rbtree.h:84:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
include/linux/rbtree.h:84:9: sparse: struct rb_node [noderef] <asn:4> *
include/linux/rbtree.h:84:9: sparse: struct rb_node *
kernel/module.c:2158:9: sparse: sparse: using member 'sh_addr' in incomplete struct Elf64_Shdr
kernel/module.c:2159:9: sparse: sparse: using member 'sh_size' in incomplete struct Elf64_Shdr
kernel/module.c:2160:38: sparse: sparse: using member 'sh_addr' in incomplete struct Elf64_Shdr
kernel/module.c:2160:52: sparse: sparse: using member 'sh_size' in incomplete struct Elf64_Shdr
>> kernel/module.c:2170:35: sparse: sparse: incompatible types in comparison expression (different base types):
>> kernel/module.c:2170:35: sparse: struct Elf64_Shdr *
>> kernel/module.c:2170:35: sparse: struct elf64_shdr [usertype] *
kernel/module.c:2171:56: sparse: sparse: using member 'sh_name' in incomplete struct Elf64_Shdr
>> kernel/module.c:2170:73: sparse: sparse: bad argument type for ++/--
kernel/module.c:3669:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/module.c:3669:9: sparse: struct mod_kallsyms [noderef] <asn:4> *
kernel/module.c:3669:9: sparse: struct mod_kallsyms *
kernel/module.c:4102:41: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/module.c:4102:41: sparse: struct mod_kallsyms [noderef] <asn:4> *
kernel/module.c:4102:41: sparse: struct mod_kallsyms *
kernel/module.c:4245:28: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/module.c:4245:28: sparse: struct mod_kallsyms [noderef] <asn:4> *
kernel/module.c:4245:28: sparse: struct mod_kallsyms *
kernel/module.c:4267:41: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/module.c:4267:41: sparse: struct mod_kallsyms [noderef] <asn:4> *
kernel/module.c:4267:41: sparse: struct mod_kallsyms *
vim +2170 kernel/module.c
2155
2156 static void __frob_section(struct Elf_Shdr *sec, int (*set_memory)(unsigned long start, int num_pages))
2157 {
> 2158 BUG_ON((unsigned long)sec->sh_addr & (PAGE_SIZE-1));
2159 BUG_ON((unsigned long)sec->sh_size & (PAGE_SIZE-1));
2160 set_memory((unsigned long)sec->sh_addr, sec->sh_size >> PAGE_SHIFT);
2161 }
2162
2163 static void frob_section(struct module *mod, const char *section,
2164 int (*set_memory)(unsigned long start, int num_pages))
2165 {
2166 struct klp_modinfo *info = mod->klp_info;
2167 const char *secname;
2168 struct Elf_Shdr *s;
2169
> 2170 for (s = info->sechdrs; s < info->sechdrs + info->hdr.e_shnum; s++) {
2171 secname = mod->klp_info->secstrings + s->sh_name;
2172 if (strcmp(secname, section))
2173 continue;
2174
2175 __frob_section(s, set_memory);
2176 }
2177 }
2178
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-22 11:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 11:59 [peterz-queue:modules/core 1/5] kernel/module.c:2170:35: sparse: sparse: incompatible types in comparison expression (different base types): 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.