
19 Jun
2008
19 Jun
'08
10:47 p.m.
Wolfgang Denk wrote:
You don't seriously expect any real help given such a vague description? It would be somewhat helpful if you said exactly which changes cause the code to work or fail...
I did say that. Simply making the global variable not static caused it to fail.
Works:
static struct __attribute__ ((__packed__)) eeprom {
Doesn't work:
struct __attribute__ ((__packed__)) eeprom {
Everything else is the same.
--
Timur Tabi
Linux kernel developer at Freescale