[linux-stable-rc:linux-3.10.y 4/144] scripts/asn1_compiler.c:1341:3: warning: enumeration value 'NOT_COMPOUND' not handled in switch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
:::::: CC: Rusty Russell <rusty@xxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]