* [linux-stable-rc:linux-3.10.y 4/144] scripts/asn1_compiler.c:1341:3: warning: enumeration value 'NOT_COMPOUND' not handled in switch
@ 2016-06-20 9:41 kbuild test robot
2016-06-21 6:15 ` Willy Tarreau
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2016-06-20 9:41 UTC (permalink / raw)
Cc: kbuild-all, Willy Tarreau, Joe Perches, Andrew Morton,
Linux Memory Management List, Philip Müller
[-- Attachment #1: Type: text/plain, Size: 3352 bytes --]
Hi,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-3.10.y
head: ca1199fccf14540e86f6da955333e31d6fec5f3e
commit: a4a4f1cd733fe5b345db4e8cc19bb8868d562a8a [4/144] compiler-gcc: integrate the various compiler-gcc[345].h files
config: x86_64-randconfig-x014-201625 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
git checkout a4a4f1cd733fe5b345db4e8cc19bb8868d562a8a
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
scripts/asn1_compiler.c: In function 'render_out_of_line_list':
>> scripts/asn1_compiler.c:1341:3: warning: enumeration value 'NOT_COMPOUND' not handled in switch [-Wswitch]
switch (e->compound) {
^~~~~~
>> scripts/asn1_compiler.c:1341:3: warning: enumeration value 'CHOICE' not handled in switch [-Wswitch]
>> scripts/asn1_compiler.c:1341:3: warning: enumeration value 'ANY' not handled in switch [-Wswitch]
>> scripts/asn1_compiler.c:1341:3: warning: enumeration value 'TYPE_REF' not handled in switch [-Wswitch]
>> scripts/asn1_compiler.c:1341:3: warning: enumeration value 'TAG_OVERRIDE' not handled in switch [-Wswitch]
vim +/NOT_COMPOUND +1341 scripts/asn1_compiler.c
4520c6a4 David Howells 2012-09-21 1325 const char *act;
4520c6a4 David Howells 2012-09-21 1326 int entry;
4520c6a4 David Howells 2012-09-21 1327
4520c6a4 David Howells 2012-09-21 1328 while ((e = render_list)) {
4520c6a4 David Howells 2012-09-21 1329 render_list = e->render_next;
4520c6a4 David Howells 2012-09-21 1330 if (!render_list)
4520c6a4 David Howells 2012-09-21 1331 render_list_p = &render_list;
4520c6a4 David Howells 2012-09-21 1332
4520c6a4 David Howells 2012-09-21 1333 render_more(out, "\n");
4520c6a4 David Howells 2012-09-21 1334 e->entry_index = entry = nr_entries;
4520c6a4 David Howells 2012-09-21 1335 render_depth++;
4520c6a4 David Howells 2012-09-21 1336 for (ce = e->children; ce; ce = ce->next)
4520c6a4 David Howells 2012-09-21 1337 render_element(out, ce, NULL);
4520c6a4 David Howells 2012-09-21 1338 render_depth--;
4520c6a4 David Howells 2012-09-21 1339
4520c6a4 David Howells 2012-09-21 1340 act = e->action ? "_ACT" : "";
4520c6a4 David Howells 2012-09-21 @1341 switch (e->compound) {
4520c6a4 David Howells 2012-09-21 1342 case SEQUENCE:
4520c6a4 David Howells 2012-09-21 1343 render_opcode(out, "ASN1_OP_END_SEQ%s,\n", act);
4520c6a4 David Howells 2012-09-21 1344 break;
4520c6a4 David Howells 2012-09-21 1345 case SEQUENCE_OF:
4520c6a4 David Howells 2012-09-21 1346 render_opcode(out, "ASN1_OP_END_SEQ_OF%s,\n", act);
4520c6a4 David Howells 2012-09-21 1347 render_opcode(out, "_jump_target(%u),\n", entry);
4520c6a4 David Howells 2012-09-21 1348 break;
4520c6a4 David Howells 2012-09-21 1349 case SET:
:::::: The code at line 1341 was first introduced by commit
:::::: 4520c6a49af833c83de6c74525ce8e07bbe6d783 X.509: Add simple ASN.1 grammar compiler
:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: Rusty Russell <rusty@rustcorp.com.au>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 22439 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [linux-stable-rc:linux-3.10.y 4/144] scripts/asn1_compiler.c:1341:3: warning: enumeration value 'NOT_COMPOUND' not handled in switch
2016-06-20 9:41 [linux-stable-rc:linux-3.10.y 4/144] scripts/asn1_compiler.c:1341:3: warning: enumeration value 'NOT_COMPOUND' not handled in switch kbuild test robot
@ 2016-06-21 6:15 ` Willy Tarreau
0 siblings, 0 replies; 2+ messages in thread
From: Willy Tarreau @ 2016-06-21 6:15 UTC (permalink / raw)
To: kbuild test robot
Cc: kbuild-all, Joe Perches, Andrew Morton,
Linux Memory Management List, Philip Müller
On Mon, Jun 20, 2016 at 05:41:01PM +0800, kbuild test robot wrote:
> Hi,
>
> First bad commit (maybe != root cause):
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-3.10.y
> head: ca1199fccf14540e86f6da955333e31d6fec5f3e
> commit: a4a4f1cd733fe5b345db4e8cc19bb8868d562a8a [4/144] compiler-gcc: integrate the various compiler-gcc[345].h files
> config: x86_64-randconfig-x014-201625 (attached as .config)
> compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
> reproduce:
> git checkout a4a4f1cd733fe5b345db4e8cc19bb8868d562a8a
> # save the attached .config to linux build tree
> make ARCH=x86_64
>
> All warnings (new ones prefixed by >>):
>
> scripts/asn1_compiler.c: In function 'render_out_of_line_list':
> >> scripts/asn1_compiler.c:1341:3: warning: enumeration value 'NOT_COMPOUND' not handled in switch [-Wswitch]
> switch (e->compound) {
> ^~~~~~
> >> scripts/asn1_compiler.c:1341:3: warning: enumeration value 'CHOICE' not handled in switch [-Wswitch]
> >> scripts/asn1_compiler.c:1341:3: warning: enumeration value 'ANY' not handled in switch [-Wswitch]
> >> scripts/asn1_compiler.c:1341:3: warning: enumeration value 'TYPE_REF' not handled in switch [-Wswitch]
> >> scripts/asn1_compiler.c:1341:3: warning: enumeration value 'TAG_OVERRIDE' not handled in switch [-Wswitch]
Fixed by backporting commit eb8948a ("X.509: remove possible code fragility:
enumeration values not handled"). Thanks for reporting.
Willy
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-21 6:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-20 9:41 [linux-stable-rc:linux-3.10.y 4/144] scripts/asn1_compiler.c:1341:3: warning: enumeration value 'NOT_COMPOUND' not handled in switch kbuild test robot
2016-06-21 6:15 ` Willy Tarreau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).