Re: [PATCH 04/13] lib/vsprintf.c: expand field_width to 24 bits

From: kbuild test robot
Date: Tue Oct 20 2015 - 19:38:20 EST


Hi Rasmus,

[auto build test ERROR on next-20151020 -- if it's inappropriate base, please suggest rules for selecting the more suitable base]

url: https://github.com/0day-ci/linux/commits/Rasmus-Villemoes/lib-vsprintf-c-pull-out-padding-code-from-dentry_name/20151021-043621
config: frv-defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=frv

All errors (new ones prefixed by >>):

>> lib/vsprintf.c:389:13: error: size of array '__check_printf_spec' is negative
extern char __check_printf_spec[1-2*(sizeof(struct printf_spec) != 8)];
^

vim +/__check_printf_spec +389 lib/vsprintf.c

383 unsigned int type:8; /* format_type enum */
384 signed int field_width:24; /* width of output field */
385 unsigned int flags:8; /* flags to number() */
386 unsigned int base:8; /* number base, 8, 10 or 16 only */
387 signed int precision:16; /* # of digits/chars */
388 };
> 389 extern char __check_printf_spec[1-2*(sizeof(struct printf_spec) != 8)];
390
391 static noinline_for_stack
392 char *number(char *buf, char *end, unsigned long long num,

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data