Re: Question: "genksyms: Track changes to enum constants" doesn't work

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

 



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




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux