diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-02-06 18:40:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-02-06 21:32:46 -0500 |
commit | 4ba61ecacbac10e74e5ac816ac4e02bf5737fe38 (patch) | |
tree | 2d4a86ab257564a51a7c6543e28e51d937af5c1f | |
parent | 1acd14bfe9f191dcd80df99f80ec3880a706801e (diff) |
rapidio: move 12 EXPORT_SYMBOL_GPL() calls to function implementations
checkpatch pointed information out like the following.
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
Thus fix the affected source code places.
Link: http://lkml.kernel.org/r/5f51f606-ece8-7bff-bb86-81d182c49b98@users.sourceforge.net
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/rapidio/rio.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/drivers/rapidio/rio.c b/drivers/rapidio/rio.c index d095a18257c2..83406696c7aa 100644 --- a/drivers/rapidio/rio.c +++ b/drivers/rapidio/rio.c | |||
@@ -81,6 +81,7 @@ u16 rio_local_get_device_id(struct rio_mport *port) | |||
81 | 81 | ||
82 | return (RIO_GET_DID(port->sys_size, result)); | 82 | return (RIO_GET_DID(port->sys_size, result)); |
83 | } | 83 | } |
84 | EXPORT_SYMBOL_GPL(rio_local_get_device_id); | ||
84 | 85 | ||
85 | /** | 86 | /** |
86 | * rio_query_mport - Query mport device attributes | 87 | * rio_query_mport - Query mport device attributes |
@@ -275,6 +276,7 @@ int rio_request_inb_mbox(struct rio_mport *mport, | |||
275 | out: | 276 | out: |
276 | return rc; | 277 | return rc; |
277 | } | 278 | } |
279 | EXPORT_SYMBOL_GPL(rio_request_inb_mbox); | ||
278 | 280 | ||
279 | /** | 281 | /** |
280 | * rio_release_inb_mbox - release inbound mailbox message service | 282 | * rio_release_inb_mbox - release inbound mailbox message service |
@@ -303,6 +305,7 @@ int rio_release_inb_mbox(struct rio_mport *mport, int mbox) | |||
303 | 305 | ||
304 | return 0; | 306 | return 0; |
305 | } | 307 | } |
308 | EXPORT_SYMBOL_GPL(rio_release_inb_mbox); | ||
306 | 309 | ||
307 | /** | 310 | /** |
308 | * rio_request_outb_mbox - request outbound mailbox service | 311 | * rio_request_outb_mbox - request outbound mailbox service |
@@ -357,6 +360,7 @@ int rio_request_outb_mbox(struct rio_mport *mport, | |||
357 | out: | 360 | out: |
358 | return rc; | 361 | return rc; |
359 | } | 362 | } |
363 | EXPORT_SYMBOL_GPL(rio_request_outb_mbox); | ||
360 | 364 | ||
361 | /** | 365 | /** |
362 | * rio_release_outb_mbox - release outbound mailbox message service | 366 | * rio_release_outb_mbox - release outbound mailbox message service |
@@ -385,6 +389,7 @@ int rio_release_outb_mbox(struct rio_mport *mport, int mbox) | |||
385 | 389 | ||
386 | return 0; | 390 | return 0; |
387 | } | 391 | } |
392 | EXPORT_SYMBOL_GPL(rio_release_outb_mbox); | ||
388 | 393 | ||
389 | /** | 394 | /** |
390 | * rio_setup_inb_dbell - bind inbound doorbell callback | 395 | * rio_setup_inb_dbell - bind inbound doorbell callback |
@@ -458,6 +463,7 @@ int rio_request_inb_dbell(struct rio_mport *mport, | |||
458 | out: | 463 | out: |
459 | return rc; | 464 | return rc; |
460 | } | 465 | } |
466 | EXPORT_SYMBOL_GPL(rio_request_inb_dbell); | ||
461 | 467 | ||
462 | /** | 468 | /** |
463 | * rio_release_inb_dbell - release inbound doorbell message service | 469 | * rio_release_inb_dbell - release inbound doorbell message service |
@@ -499,6 +505,7 @@ int rio_release_inb_dbell(struct rio_mport *mport, u16 start, u16 end) | |||
499 | out: | 505 | out: |
500 | return rc; | 506 | return rc; |
501 | } | 507 | } |
508 | EXPORT_SYMBOL_GPL(rio_release_inb_dbell); | ||
502 | 509 | ||
503 | /** | 510 | /** |
504 | * rio_request_outb_dbell - request outbound doorbell message range | 511 | * rio_request_outb_dbell - request outbound doorbell message range |
@@ -527,6 +534,7 @@ struct resource *rio_request_outb_dbell(struct rio_dev *rdev, u16 start, | |||
527 | 534 | ||
528 | return res; | 535 | return res; |
529 | } | 536 | } |
537 | EXPORT_SYMBOL_GPL(rio_request_outb_dbell); | ||
530 | 538 | ||
531 | /** | 539 | /** |
532 | * rio_release_outb_dbell - release outbound doorbell message range | 540 | * rio_release_outb_dbell - release outbound doorbell message range |
@@ -544,6 +552,7 @@ int rio_release_outb_dbell(struct rio_dev *rdev, struct resource *res) | |||
544 | 552 | ||
545 | return rc; | 553 | return rc; |
546 | } | 554 | } |
555 | EXPORT_SYMBOL_GPL(rio_release_outb_dbell); | ||
547 | 556 | ||
548 | /** | 557 | /** |
549 | * rio_add_mport_pw_handler - add port-write message handler into the list | 558 | * rio_add_mport_pw_handler - add port-write message handler into the list |
@@ -1450,6 +1459,7 @@ struct rio_dev *rio_get_asm(u16 vid, u16 did, | |||
1450 | spin_unlock(&rio_global_list_lock); | 1459 | spin_unlock(&rio_global_list_lock); |
1451 | return rdev; | 1460 | return rdev; |
1452 | } | 1461 | } |
1462 | EXPORT_SYMBOL_GPL(rio_get_asm); | ||
1453 | 1463 | ||
1454 | /** | 1464 | /** |
1455 | * rio_get_device - Begin or continue searching for a RIO device by vid/did | 1465 | * rio_get_device - Begin or continue searching for a RIO device by vid/did |
@@ -1469,6 +1479,7 @@ struct rio_dev *rio_get_device(u16 vid, u16 did, struct rio_dev *from) | |||
1469 | { | 1479 | { |
1470 | return rio_get_asm(vid, did, RIO_ANY_ID, RIO_ANY_ID, from); | 1480 | return rio_get_asm(vid, did, RIO_ANY_ID, RIO_ANY_ID, from); |
1471 | } | 1481 | } |
1482 | EXPORT_SYMBOL_GPL(rio_get_device); | ||
1472 | 1483 | ||
1473 | /** | 1484 | /** |
1474 | * rio_std_route_add_entry - Add switch route table entry using standard | 1485 | * rio_std_route_add_entry - Add switch route table entry using standard |
@@ -2203,6 +2214,7 @@ no_disc: | |||
2203 | 2214 | ||
2204 | return 0; | 2215 | return 0; |
2205 | } | 2216 | } |
2217 | EXPORT_SYMBOL_GPL(rio_init_mports); | ||
2206 | 2218 | ||
2207 | static int rio_get_hdid(int index) | 2219 | static int rio_get_hdid(int index) |
2208 | { | 2220 | { |
@@ -2317,16 +2329,3 @@ int rio_unregister_mport(struct rio_mport *port) | |||
2317 | return 0; | 2329 | return 0; |
2318 | } | 2330 | } |
2319 | EXPORT_SYMBOL_GPL(rio_unregister_mport); | 2331 | EXPORT_SYMBOL_GPL(rio_unregister_mport); |
2320 | |||
2321 | EXPORT_SYMBOL_GPL(rio_local_get_device_id); | ||
2322 | EXPORT_SYMBOL_GPL(rio_get_device); | ||
2323 | EXPORT_SYMBOL_GPL(rio_get_asm); | ||
2324 | EXPORT_SYMBOL_GPL(rio_request_inb_dbell); | ||
2325 | EXPORT_SYMBOL_GPL(rio_release_inb_dbell); | ||
2326 | EXPORT_SYMBOL_GPL(rio_request_outb_dbell); | ||
2327 | EXPORT_SYMBOL_GPL(rio_release_outb_dbell); | ||
2328 | EXPORT_SYMBOL_GPL(rio_request_inb_mbox); | ||
2329 | EXPORT_SYMBOL_GPL(rio_release_inb_mbox); | ||
2330 | EXPORT_SYMBOL_GPL(rio_request_outb_mbox); | ||
2331 | EXPORT_SYMBOL_GPL(rio_release_outb_mbox); | ||
2332 | EXPORT_SYMBOL_GPL(rio_init_mports); | ||