From: kbuild test robot <lkp@intel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: kbuild-all@01.org, Roman Gushchin <guro@fb.com>,
Linux Memory Management List <linux-mm@kvack.org>,
Manfred Spraul <manfred@colorfullife.com>,
Johannes Weiner <hannes@cmpxchg.org>
Subject: [rgushchin:vmap_stack.2 372/400] kernel//printk/printk.c:1949:11: error: passing argument 1 of '__builtin_va_start' from incompatible pointer type
Date: Fri, 17 Aug 2018 07:17:31 +0800 [thread overview]
Message-ID: <201808170723.nW7xE4D2%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5505 bytes --]
tree: https://github.com/rgushchin/linux.git vmap_stack.2
head: b61822b6662d7f8ad726217bb05c1acc417c1a6e
commit: 2e06a5b89f867e96144d8a9fea1b9d9644b87a8b [372/400] linux-next-git-rejects
config: i386-randconfig-x077-201832 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
git checkout 2e06a5b89f867e96144d8a9fea1b9d9644b87a8b
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:6:0,
from kernel//printk/printk.c:19:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stdarg.h:40:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
typedef __builtin_va_list __gnuc_va_list;
^~~~~~~
In file included from include/linux/kernel.h:6:0,
from kernel//printk/printk.c:19:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stdarg.h:99:9: error: unknown type name '__gnuc_va_list'
typedef __gnuc_va_list va_list;
^~~~~~~~~~~~~~
In file included from include/linux/kernel.h:6:0,
from kernel//printk/printk.c:19:
kernel//printk/printk.c: In function 'printk_emit':
>> kernel//printk/printk.c:1949:11: error: passing argument 1 of '__builtin_va_start' from incompatible pointer type [-Werror=incompatible-pointer-types]
va_start(args, fmt);
^
kernel//printk/printk.c:1949:11: note: expected 'char **' but argument is of type 'va_list * {aka int *}'
>> kernel//printk/printk.c:1951:9: error: passing argument 1 of '__builtin_va_end' from incompatible pointer type [-Werror=incompatible-pointer-types]
va_end(args);
^
kernel//printk/printk.c:1951:9: note: expected 'char **' but argument is of type 'va_list * {aka int *}'
kernel//printk/printk.c: In function 'printk':
kernel//printk/printk.c:2000:11: error: passing argument 1 of '__builtin_va_start' from incompatible pointer type [-Werror=incompatible-pointer-types]
va_start(args, fmt);
^
kernel//printk/printk.c:2000:11: note: expected 'char **' but argument is of type 'va_list * {aka int *}'
kernel//printk/printk.c:2002:9: error: passing argument 1 of '__builtin_va_end' from incompatible pointer type [-Werror=incompatible-pointer-types]
va_end(args);
^
kernel//printk/printk.c:2002:9: note: expected 'char **' but argument is of type 'va_list * {aka int *}'
kernel//printk/printk.c: In function 'early_printk':
kernel//printk/printk.c:2051:11: error: passing argument 1 of '__builtin_va_start' from incompatible pointer type [-Werror=incompatible-pointer-types]
va_start(ap, fmt);
^
kernel//printk/printk.c:2051:11: note: expected 'char **' but argument is of type 'va_list * {aka int *}'
kernel//printk/printk.c:2053:9: error: passing argument 1 of '__builtin_va_end' from incompatible pointer type [-Werror=incompatible-pointer-types]
va_end(ap);
^
kernel//printk/printk.c:2053:9: note: expected 'char **' but argument is of type 'va_list * {aka int *}'
kernel//printk/printk.c: In function 'printk_deferred':
kernel//printk/printk.c:2925:11: error: passing argument 1 of '__builtin_va_start' from incompatible pointer type [-Werror=incompatible-pointer-types]
va_start(args, fmt);
^
kernel//printk/printk.c:2925:11: note: expected 'char **' but argument is of type 'va_list * {aka int *}'
kernel//printk/printk.c:2927:9: error: passing argument 1 of '__builtin_va_end' from incompatible pointer type [-Werror=incompatible-pointer-types]
va_end(args);
^
kernel//printk/printk.c:2927:9: note: expected 'char **' but argument is of type 'va_list * {aka int *}'
cc1: some warnings being treated as errors
vim +/__builtin_va_start +1949 kernel//printk/printk.c
^1da177e kernel/printk.c Linus Torvalds 2005-04-16 1941
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 1942 asmlinkage int printk_emit(int facility, int level,
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 1943 const char *dict, size_t dictlen,
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 1944 const char *fmt, ...)
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 1945 {
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 1946 va_list args;
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 1947 int r;
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 1948
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 @1949 va_start(args, fmt);
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 1950 r = vprintk_emit(facility, level, dict, dictlen, fmt, args);
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 @1951 va_end(args);
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 1952
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 1953 return r;
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 1954 }
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 1955 EXPORT_SYMBOL(printk_emit);
7ff9554b kernel/printk.c Kay Sievers 2012-05-03 1956
:::::: The code at line 1949 was first introduced by commit
:::::: 7ff9554bb578ba02166071d2d487b7fc7d860d62 printk: convert byte-buffer to variable-length record buffer
:::::: TO: Kay Sievers <kay@vrfy.org>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28306 bytes --]
reply other threads:[~2018-08-16 23:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201808170723.nW7xE4D2%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=guro@fb.com \
--cc=hannes@cmpxchg.org \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=manfred@colorfullife.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox