[tip:WIP.sched/cpusallowed 6/13] arch/sparc/kernel/sysfs.c:134:32: error: 'val' undeclared
From: kbuild test robot
Date: Wed Apr 12 2017 - 20:41:17 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/cpusallowed
head: 4ba98c7ec4094a9123d0d6aabb4497290207b518
commit: 283c753d4892b65301a831ef434b988e97269dae [6/13] sparc/sysfs: Use work instead of affinity games
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 283c753d4892b65301a831ef434b988e97269dae
# save the attached .config to linux build tree
make.cross ARCH=sparc64
All errors (new ones prefixed by >>):
arch/sparc/kernel/sysfs.c: In function 'store_mmustat_enable':
>> arch/sparc/kernel/sysfs.c:134:32: error: 'val' undeclared (first use in this function)
int ret = sscanf(buf, "%lu", &val);
^~~
arch/sparc/kernel/sysfs.c:134:32: note: each undeclared identifier is reported only once for each function it appears in
vim +/val +134 arch/sparc/kernel/sysfs.c
d887ab3a arch/sparc64/kernel/sysfs.c David Miller 2007-06-03 128 }
d887ab3a arch/sparc64/kernel/sysfs.c David Miller 2007-06-03 129
8a25a2fd arch/sparc/kernel/sysfs.c Kay Sievers 2011-12-21 130 static ssize_t store_mmustat_enable(struct device *s,
8a25a2fd arch/sparc/kernel/sysfs.c Kay Sievers 2011-12-21 131 struct device_attribute *attr, const char *buf,
4a0b2b4d arch/sparc64/kernel/sysfs.c Andi Kleen 2008-07-01 132 size_t count)
d887ab3a arch/sparc64/kernel/sysfs.c David Miller 2007-06-03 133 {
8ecc1bad arch/sparc/kernel/sysfs.c Toralf Förster 2014-05-19 @134 int ret = sscanf(buf, "%lu", &val);
283c753d arch/sparc/kernel/sysfs.c Thomas Gleixner 2017-04-06 135 unsigned long val;
283c753d arch/sparc/kernel/sysfs.c Thomas Gleixner 2017-04-06 136 long err;
d887ab3a arch/sparc64/kernel/sysfs.c David Miller 2007-06-03 137
:::::: The code at line 134 was first introduced by commit
:::::: 8ecc1bad4c9b485ceb47182d282980d0b0fe20ac sparc64: fix format string mismatch in arch/sparc/kernel/sysfs.c
:::::: TO: Toralf Förster <toralf.foerster@xxxxxx>
:::::: CC: David S. Miller <davem@xxxxxxxxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip