public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] genksyms: Track changes to enum constant
@ 2011-03-13  6:30 Michal Marek
  2011-03-13  6:30 ` [PATCH 1/7] genksyms: Do not paste the bison header file to lex.c Michal Marek
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Michal Marek @ 2011-03-13  6:30 UTC (permalink / raw)
  To: linux-kbuild; +Cc: linux-kernel

This series makes genksyms remember the values of enum constants and use them
during symbol expansion. This makes sure that patches like

| enum e {
|  	E1,
| 	E2,
|+	E3,
| 	E_MAX
| };
|
| struct s {
| 	int a[E_MAX];
| }
|
| int f(struct s *s) { ... }
| EXPORT_SYMBOL(f)

change the checksum of the exported symbol. Previously, it would just use the
string "E_MAX" in the calculation and the change would go unnoticed. The main
part is in patches 6/7 and 7/7, the rest are cleanups and preparatory patches.

Michal

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-03-17 14:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-13  6:30 [PATCH 0/7] genksyms: Track changes to enum constant Michal Marek
2011-03-13  6:30 ` [PATCH 1/7] genksyms: Do not paste the bison header file to lex.c Michal Marek
2011-03-13  6:30 ` [PATCH 2/7] genksyms: Simplify lexer Michal Marek
2011-03-13  6:30 ` [PATCH 3/7] genksyms: Simplify printing of symbol types Michal Marek
2011-03-13  6:30 ` [PATCH 4/7] genksyms: Add helpers for building string lists Michal Marek
2011-03-13  6:30 ` [PATCH 5/7] genksyms: simplify usage of find_symbol() Michal Marek
2011-03-13  6:30 ` [PATCH 6/7] genksyms: Track changes to enum constants Michal Marek
2011-03-13  6:30 ` [PATCH 7/7] genksyms: Regenerate lexer and parser Michal Marek
2011-03-13  7:19 ` [PATCH 0/7] genksyms: Track changes to enum constant Sam Ravnborg
2011-03-13 13:40   ` Michal Marek
2011-03-17 14:18     ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox