diff options
author | Doug Thompson <dougthompson@xmission.com> | 2007-07-19 04:50:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:57 -0400 |
commit | fb3fb2068775a1363265edc00870aa5e2f0e3631 (patch) | |
tree | 0d17bb04f84500c99a5729a0121942da69925d2a /drivers/edac/edac_stub.c | |
parent | 1c3631ff1f805cb72644fcde02b7c58950f21cd5 (diff) |
drivers/edac: code tidying on export-gpl
Change EXPORT_SYMBOLs to EXPORT_SYMBOLS_GPL
Tidy changes: blank lines, inline removal, add comment
Signed-off-by: Doug Thompson <dougthompson@xmission.com>
Cc: Greg KH <greg@kroah.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/edac/edac_stub.c')
-rw-r--r-- | drivers/edac/edac_stub.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/drivers/edac/edac_stub.c b/drivers/edac/edac_stub.c index 77b98dd3cfa6..20b428aa155e 100644 --- a/drivers/edac/edac_stub.c +++ b/drivers/edac/edac_stub.c | |||
@@ -15,30 +15,32 @@ | |||
15 | #include <asm/edac.h> | 15 | #include <asm/edac.h> |
16 | 16 | ||
17 | int edac_op_state = EDAC_OPSTATE_INVAL; | 17 | int edac_op_state = EDAC_OPSTATE_INVAL; |
18 | EXPORT_SYMBOL(edac_op_state); | 18 | EXPORT_SYMBOL_GPL(edac_op_state); |
19 | 19 | ||
20 | atomic_t edac_handlers = ATOMIC_INIT(0); | 20 | atomic_t edac_handlers = ATOMIC_INIT(0); |
21 | EXPORT_SYMBOL(edac_handlers); | 21 | EXPORT_SYMBOL_GPL(edac_handlers); |
22 | 22 | ||
23 | int edac_err_assert = 0; | 23 | int edac_err_assert = 0; |
24 | EXPORT_SYMBOL(edac_err_assert); | 24 | EXPORT_SYMBOL_GPL(edac_err_assert); |
25 | 25 | ||
26 | inline int edac_handler_set(void) | 26 | /* |
27 | * called to determine if there is an EDAC driver interested in | ||
28 | * knowing an event (such as NMI) occurred | ||
29 | */ | ||
30 | int edac_handler_set(void) | ||
27 | { | 31 | { |
28 | if (edac_op_state == EDAC_OPSTATE_POLL) | 32 | if (edac_op_state == EDAC_OPSTATE_POLL) |
29 | return 0; | 33 | return 0; |
30 | 34 | ||
31 | return atomic_read(&edac_handlers); | 35 | return atomic_read(&edac_handlers); |
32 | } | 36 | } |
33 | 37 | EXPORT_SYMBOL_GPL(edac_handler_set); | |
34 | EXPORT_SYMBOL(edac_handler_set); | ||
35 | 38 | ||
36 | /* | 39 | /* |
37 | * handler for NMI type of interrupts to assert error | 40 | * handler for NMI type of interrupts to assert error |
38 | */ | 41 | */ |
39 | inline void edac_atomic_assert_error(void) | 42 | void edac_atomic_assert_error(void) |
40 | { | 43 | { |
41 | edac_err_assert++; | 44 | edac_err_assert++; |
42 | } | 45 | } |
43 | 46 | EXPORT_SYMBOL_GPL(edac_atomic_assert_error); | |
44 | EXPORT_SYMBOL(edac_atomic_assert_error); | ||