diff options
author | Jesper Juhl <juhl@dif.dk> | 2005-07-27 14:46:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-27 19:26:20 -0400 |
commit | 77933d7276ee8fa0e2947641941a6f7a100a327b (patch) | |
tree | e3a42724642410f5257c794a71b34642092eedd5 /drivers/s390 | |
parent | 03e259a9cdbd0583e71468293aaa1ccadbdaeff1 (diff) |
[PATCH] clean up inline static vs static inline
`gcc -W' likes to complain if the static keyword is not at the beginning of
the declaration. This patch fixes all remaining occurrences of "inline
static" up with "static inline" in the entire kernel tree (140 occurrences in
47 files).
While making this change I came across a few lines with trailing whitespace
that I also fixed up, I have also added or removed a blank line or two here
and there, but there are no functional changes in the patch.
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/cio/qdio.c | 20 | ||||
-rw-r--r-- | drivers/s390/net/qeth.h | 26 |
2 files changed, 23 insertions, 23 deletions
diff --git a/drivers/s390/cio/qdio.c b/drivers/s390/cio/qdio.c index 82194c4eadfb..d36258d6665f 100644 --- a/drivers/s390/cio/qdio.c +++ b/drivers/s390/cio/qdio.c | |||
@@ -432,7 +432,7 @@ tiqdio_clear_global_summary(void) | |||
432 | 432 | ||
433 | /************************* OUTBOUND ROUTINES *******************************/ | 433 | /************************* OUTBOUND ROUTINES *******************************/ |
434 | 434 | ||
435 | inline static int | 435 | static inline int |
436 | qdio_get_outbound_buffer_frontier(struct qdio_q *q) | 436 | qdio_get_outbound_buffer_frontier(struct qdio_q *q) |
437 | { | 437 | { |
438 | int f,f_mod_no; | 438 | int f,f_mod_no; |
@@ -510,7 +510,7 @@ out: | |||
510 | } | 510 | } |
511 | 511 | ||
512 | /* all buffers are processed */ | 512 | /* all buffers are processed */ |
513 | inline static int | 513 | static inline int |
514 | qdio_is_outbound_q_done(struct qdio_q *q) | 514 | qdio_is_outbound_q_done(struct qdio_q *q) |
515 | { | 515 | { |
516 | int no_used; | 516 | int no_used; |
@@ -532,7 +532,7 @@ qdio_is_outbound_q_done(struct qdio_q *q) | |||
532 | return (no_used==0); | 532 | return (no_used==0); |
533 | } | 533 | } |
534 | 534 | ||
535 | inline static int | 535 | static inline int |
536 | qdio_has_outbound_q_moved(struct qdio_q *q) | 536 | qdio_has_outbound_q_moved(struct qdio_q *q) |
537 | { | 537 | { |
538 | int i; | 538 | int i; |
@@ -552,7 +552,7 @@ qdio_has_outbound_q_moved(struct qdio_q *q) | |||
552 | } | 552 | } |
553 | } | 553 | } |
554 | 554 | ||
555 | inline static void | 555 | static inline void |
556 | qdio_kick_outbound_q(struct qdio_q *q) | 556 | qdio_kick_outbound_q(struct qdio_q *q) |
557 | { | 557 | { |
558 | int result; | 558 | int result; |
@@ -641,7 +641,7 @@ qdio_kick_outbound_q(struct qdio_q *q) | |||
641 | } | 641 | } |
642 | } | 642 | } |
643 | 643 | ||
644 | inline static void | 644 | static inline void |
645 | qdio_kick_outbound_handler(struct qdio_q *q) | 645 | qdio_kick_outbound_handler(struct qdio_q *q) |
646 | { | 646 | { |
647 | int start, end, real_end, count; | 647 | int start, end, real_end, count; |
@@ -740,7 +740,7 @@ qdio_outbound_processing(struct qdio_q *q) | |||
740 | /************************* INBOUND ROUTINES *******************************/ | 740 | /************************* INBOUND ROUTINES *******************************/ |
741 | 741 | ||
742 | 742 | ||
743 | inline static int | 743 | static inline int |
744 | qdio_get_inbound_buffer_frontier(struct qdio_q *q) | 744 | qdio_get_inbound_buffer_frontier(struct qdio_q *q) |
745 | { | 745 | { |
746 | int f,f_mod_no; | 746 | int f,f_mod_no; |
@@ -865,7 +865,7 @@ out: | |||
865 | return q->first_to_check; | 865 | return q->first_to_check; |
866 | } | 866 | } |
867 | 867 | ||
868 | inline static int | 868 | static inline int |
869 | qdio_has_inbound_q_moved(struct qdio_q *q) | 869 | qdio_has_inbound_q_moved(struct qdio_q *q) |
870 | { | 870 | { |
871 | int i; | 871 | int i; |
@@ -898,7 +898,7 @@ qdio_has_inbound_q_moved(struct qdio_q *q) | |||
898 | } | 898 | } |
899 | 899 | ||
900 | /* means, no more buffers to be filled */ | 900 | /* means, no more buffers to be filled */ |
901 | inline static int | 901 | static inline int |
902 | tiqdio_is_inbound_q_done(struct qdio_q *q) | 902 | tiqdio_is_inbound_q_done(struct qdio_q *q) |
903 | { | 903 | { |
904 | int no_used; | 904 | int no_used; |
@@ -951,7 +951,7 @@ tiqdio_is_inbound_q_done(struct qdio_q *q) | |||
951 | return 0; | 951 | return 0; |
952 | } | 952 | } |
953 | 953 | ||
954 | inline static int | 954 | static inline int |
955 | qdio_is_inbound_q_done(struct qdio_q *q) | 955 | qdio_is_inbound_q_done(struct qdio_q *q) |
956 | { | 956 | { |
957 | int no_used; | 957 | int no_used; |
@@ -1010,7 +1010,7 @@ qdio_is_inbound_q_done(struct qdio_q *q) | |||
1010 | } | 1010 | } |
1011 | } | 1011 | } |
1012 | 1012 | ||
1013 | inline static void | 1013 | static inline void |
1014 | qdio_kick_inbound_handler(struct qdio_q *q) | 1014 | qdio_kick_inbound_handler(struct qdio_q *q) |
1015 | { | 1015 | { |
1016 | int count, start, end, real_end, i; | 1016 | int count, start, end, real_end, i; |
diff --git a/drivers/s390/net/qeth.h b/drivers/s390/net/qeth.h index 008e0a5d2eb3..3a0285669adf 100644 --- a/drivers/s390/net/qeth.h +++ b/drivers/s390/net/qeth.h | |||
@@ -824,7 +824,7 @@ extern struct list_head qeth_notify_list; | |||
824 | 824 | ||
825 | #define QETH_CARD_IFNAME(card) (((card)->dev)? (card)->dev->name : "") | 825 | #define QETH_CARD_IFNAME(card) (((card)->dev)? (card)->dev->name : "") |
826 | 826 | ||
827 | inline static __u8 | 827 | static inline __u8 |
828 | qeth_get_ipa_adp_type(enum qeth_link_types link_type) | 828 | qeth_get_ipa_adp_type(enum qeth_link_types link_type) |
829 | { | 829 | { |
830 | switch (link_type) { | 830 | switch (link_type) { |
@@ -835,7 +835,7 @@ qeth_get_ipa_adp_type(enum qeth_link_types link_type) | |||
835 | } | 835 | } |
836 | } | 836 | } |
837 | 837 | ||
838 | inline static int | 838 | static inline int |
839 | qeth_realloc_headroom(struct qeth_card *card, struct sk_buff **skb, int size) | 839 | qeth_realloc_headroom(struct qeth_card *card, struct sk_buff **skb, int size) |
840 | { | 840 | { |
841 | struct sk_buff *new_skb = NULL; | 841 | struct sk_buff *new_skb = NULL; |
@@ -852,6 +852,7 @@ qeth_realloc_headroom(struct qeth_card *card, struct sk_buff **skb, int size) | |||
852 | } | 852 | } |
853 | return 0; | 853 | return 0; |
854 | } | 854 | } |
855 | |||
855 | static inline struct sk_buff * | 856 | static inline struct sk_buff * |
856 | qeth_pskb_unshare(struct sk_buff *skb, int pri) | 857 | qeth_pskb_unshare(struct sk_buff *skb, int pri) |
857 | { | 858 | { |
@@ -863,8 +864,7 @@ qeth_pskb_unshare(struct sk_buff *skb, int pri) | |||
863 | return nskb; | 864 | return nskb; |
864 | } | 865 | } |
865 | 866 | ||
866 | 867 | static inline void * | |
867 | inline static void * | ||
868 | qeth_push_skb(struct qeth_card *card, struct sk_buff **skb, int size) | 868 | qeth_push_skb(struct qeth_card *card, struct sk_buff **skb, int size) |
869 | { | 869 | { |
870 | void *hdr; | 870 | void *hdr; |
@@ -887,7 +887,7 @@ qeth_push_skb(struct qeth_card *card, struct sk_buff **skb, int size) | |||
887 | } | 887 | } |
888 | 888 | ||
889 | 889 | ||
890 | inline static int | 890 | static inline int |
891 | qeth_get_hlen(__u8 link_type) | 891 | qeth_get_hlen(__u8 link_type) |
892 | { | 892 | { |
893 | #ifdef CONFIG_QETH_IPV6 | 893 | #ifdef CONFIG_QETH_IPV6 |
@@ -911,7 +911,7 @@ qeth_get_hlen(__u8 link_type) | |||
911 | #endif /* CONFIG_QETH_IPV6 */ | 911 | #endif /* CONFIG_QETH_IPV6 */ |
912 | } | 912 | } |
913 | 913 | ||
914 | inline static unsigned short | 914 | static inline unsigned short |
915 | qeth_get_netdev_flags(struct qeth_card *card) | 915 | qeth_get_netdev_flags(struct qeth_card *card) |
916 | { | 916 | { |
917 | if (card->options.layer2) | 917 | if (card->options.layer2) |
@@ -929,7 +929,7 @@ qeth_get_netdev_flags(struct qeth_card *card) | |||
929 | } | 929 | } |
930 | } | 930 | } |
931 | 931 | ||
932 | inline static int | 932 | static inline int |
933 | qeth_get_initial_mtu_for_card(struct qeth_card * card) | 933 | qeth_get_initial_mtu_for_card(struct qeth_card * card) |
934 | { | 934 | { |
935 | switch (card->info.type) { | 935 | switch (card->info.type) { |
@@ -950,7 +950,7 @@ qeth_get_initial_mtu_for_card(struct qeth_card * card) | |||
950 | } | 950 | } |
951 | } | 951 | } |
952 | 952 | ||
953 | inline static int | 953 | static inline int |
954 | qeth_get_max_mtu_for_card(int cardtype) | 954 | qeth_get_max_mtu_for_card(int cardtype) |
955 | { | 955 | { |
956 | switch (cardtype) { | 956 | switch (cardtype) { |
@@ -965,7 +965,7 @@ qeth_get_max_mtu_for_card(int cardtype) | |||
965 | } | 965 | } |
966 | } | 966 | } |
967 | 967 | ||
968 | inline static int | 968 | static inline int |
969 | qeth_get_mtu_out_of_mpc(int cardtype) | 969 | qeth_get_mtu_out_of_mpc(int cardtype) |
970 | { | 970 | { |
971 | switch (cardtype) { | 971 | switch (cardtype) { |
@@ -976,7 +976,7 @@ qeth_get_mtu_out_of_mpc(int cardtype) | |||
976 | } | 976 | } |
977 | } | 977 | } |
978 | 978 | ||
979 | inline static int | 979 | static inline int |
980 | qeth_get_mtu_outof_framesize(int framesize) | 980 | qeth_get_mtu_outof_framesize(int framesize) |
981 | { | 981 | { |
982 | switch (framesize) { | 982 | switch (framesize) { |
@@ -993,7 +993,7 @@ qeth_get_mtu_outof_framesize(int framesize) | |||
993 | } | 993 | } |
994 | } | 994 | } |
995 | 995 | ||
996 | inline static int | 996 | static inline int |
997 | qeth_mtu_is_valid(struct qeth_card * card, int mtu) | 997 | qeth_mtu_is_valid(struct qeth_card * card, int mtu) |
998 | { | 998 | { |
999 | switch (card->info.type) { | 999 | switch (card->info.type) { |
@@ -1008,7 +1008,7 @@ qeth_mtu_is_valid(struct qeth_card * card, int mtu) | |||
1008 | } | 1008 | } |
1009 | } | 1009 | } |
1010 | 1010 | ||
1011 | inline static int | 1011 | static inline int |
1012 | qeth_get_arphdr_type(int cardtype, int linktype) | 1012 | qeth_get_arphdr_type(int cardtype, int linktype) |
1013 | { | 1013 | { |
1014 | switch (cardtype) { | 1014 | switch (cardtype) { |
@@ -1027,7 +1027,7 @@ qeth_get_arphdr_type(int cardtype, int linktype) | |||
1027 | } | 1027 | } |
1028 | 1028 | ||
1029 | #ifdef CONFIG_QETH_PERF_STATS | 1029 | #ifdef CONFIG_QETH_PERF_STATS |
1030 | inline static int | 1030 | static inline int |
1031 | qeth_get_micros(void) | 1031 | qeth_get_micros(void) |
1032 | { | 1032 | { |
1033 | return (int) (get_clock() >> 12); | 1033 | return (int) (get_clock() >> 12); |