aboutsummaryrefslogtreecommitdiff
blob: 87b79431d4e1d1ba36c29231fe7e0fe79ec9c999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * We get '##' wrong for the kernel.
 *
 * It could possibly be argued that the kernel usage
 * is undefined (since the different sides of the '##'
 * are not proper tokens), but that's probably a load
 * of bull. We should just try to do it right.
 *
 * This _should_ result in
 *
 *	static char __vendorstr_003d[] __devinitdata = "Lockheed Martin-Marietta Corp";
 *
 * but we break up the "003d" into two tokens ('003' and 'd')
 * and then we also put the 'o' marker to mark the token 003
 * as an octal number, so we end up with
 *
 *	static char __vendorstr_o03 d [ ] __devinitdata = "Lockheed Martin-Marietta Corp";
 *
 * which doesn't work, of course.
 */

#define __devinitdata __attribute__((section(".devinit")))

#define VENDOR( vendor, name ) \
	static char __vendorstr_##vendor[] __devinitdata = name;
VENDOR(003d,"Lockheed Martin-Marietta Corp")