Messages in this thread | | | Date | Tue, 21 Mar 2000 14:19:02 +0000 | From | Andrew Morton <> | Subject | Re: [patch] 2.3.99-pre3-3: dev_alloc_name |
| |
I wrote: > > Here's the story: > > struct thing > { > char *s; > int i; > }; > > struct thing t1 = { "foo", 4 }; > struct thing t2 = { "foo", 4 };
Change the declaration to
struct thing { char s[16]; int i; };
and the strings are separated and placed in .data, just as we want.
Then it's just a matter of running all over the kernel enforcing an upper limit on the length of net device names :-(
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |