tree:
https://github.com/0day-ci/linux/commits/UPDATE-20200613-235004/Borislav-...
head: 24611fae296234f2f3d5e95062d44390a482887b
commit: 24611fae296234f2f3d5e95062d44390a482887b [1/1] x86/msr: Filter MSR writes
config: i386-randconfig-s001-20200612 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-250-g42323db3-dirty
git checkout 24611fae296234f2f3d5e95062d44390a482887b
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> arch/x86/kernel/msr.c:281:28: sparse: sparse: incorrect type in
argument 1 (different modifiers) @@ expected char *str @@ got char const *val @@
> arch/x86/kernel/msr.c:281:28: sparse: expected char *str
> arch/x86/kernel/msr.c:281:28: sparse: got char const *val
vim +281 arch/x86/kernel/msr.c
278
279 static int set_allow_writes(const char *val, const struct kernel_param *cp)
280 {
281 char *s = strstrip(val);
282
283 if (!strcmp(s, "on"))
284 allow_writes = MSR_WRITES_ON;
285 else if (!strcmp(s, "off"))
286 allow_writes = MSR_WRITES_OFF;
287 else
288 allow_writes = MSR_WRITES_DEFAULT;
289
290 return 0;
291 }
292
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org