Dne 11.3.2015 v 05:24 shengyong napsal(a): > Hi, Michal Marek > > The commit e37ddb8250 ("genksyms: Track changes to enum constants") helps to changes the > checksum of export symbol if an enum is changed. I test this agains linux-next, but it > seems that it does not work well. > > #include <linux/module.h> > #include <linux/kernel.h> > #include <linux/init.h> > > enum a { > E1, > E2, > E_MAX > }; > > struct s { > int a[E_MAX]; > }; What you are seeing is the effect of commit 2c5925d ("genksyms: Do not expand internal types"). You need to move the type definitions to a header for these to be considered by genksyms. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html