]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
firewire: cleanups
authorAdrian Bunk <bunk@stusta.de>
Mon, 22 Jan 2007 18:17:37 +0000 (19:17 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 9 Mar 2007 21:02:40 +0000 (22:02 +0100)
This patch contains the following cleanups:
- "extern inline" -> "static inline"
- fw-topology.c: make struct fw_node_create static

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-ohci.c
drivers/firewire/fw-topology.c
drivers/firewire/fw-topology.h
drivers/firewire/fw-transaction.c
drivers/firewire/fw-transaction.h

index d3750a2692e970563cf0190f963395daa5b4715d..6eff7996c1a7b328efce6265c34f0f485af48749 100644 (file)
@@ -147,7 +147,7 @@ struct fw_ohci {
        struct iso_context *ir_context_list;
 };
 
-extern inline struct fw_ohci *fw_ohci(struct fw_card *card)
+static inline struct fw_ohci *fw_ohci(struct fw_card *card)
 {
        return container_of(card, struct fw_ohci, card);
 }
@@ -174,17 +174,17 @@ extern inline struct fw_ohci *fw_ohci(struct fw_card *card)
 
 static char ohci_driver_name[] = KBUILD_MODNAME;
 
-extern inline void reg_write(const struct fw_ohci *ohci, int offset, u32 data)
+static inline void reg_write(const struct fw_ohci *ohci, int offset, u32 data)
 {
        writel(data, ohci->registers + offset);
 }
 
-extern inline u32 reg_read(const struct fw_ohci *ohci, int offset)
+static inline u32 reg_read(const struct fw_ohci *ohci, int offset)
 {
        return readl(ohci->registers + offset);
 }
 
-extern inline void flush_writes(const struct fw_ohci *ohci)
+static inline void flush_writes(const struct fw_ohci *ohci)
 {
        /* Do a dummy read to flush writes. */
        reg_read(ohci, OHCI1394_Version);
index e475025aae91ab3d9e40e94b888172b5715ebfad..e111687f5598066d037658ddd644a22203115ae4 100644 (file)
@@ -92,7 +92,7 @@ static int get_port_type(u32 *sid, int port_index)
        return (sid[index] >> shift) & 0x03;
 }
 
-struct fw_node *fw_node_create(u32 sid, int port_count, int color)
+static struct fw_node *fw_node_create(u32 sid, int port_count, int color)
 {
        struct fw_node *node;
 
index 32ea7cdb9e1199aebc283c84abb305e4b70d26dc..a78c9516ed0fd13658dec74118de848988a7f008 100644 (file)
@@ -57,13 +57,13 @@ struct fw_node {
         struct fw_port ports[0];
 };
 
-extern inline struct fw_node *
+static inline struct fw_node *
 fw_node(struct list_head *l)
 {
         return list_entry (l, struct fw_node, link);
 }
 
-extern inline struct fw_node *
+static inline struct fw_node *
 fw_node_get(struct fw_node *node)
 {
        atomic_inc(&node->ref_count);
@@ -71,7 +71,7 @@ fw_node_get(struct fw_node *node)
        return node;
 }
 
-extern inline void
+static inline void
 fw_node_put(struct fw_node *node)
 {
        if (atomic_dec_and_test(&node->ref_count))
index a72f50288c0a3705c215008f910070a979e440b9..c2473a8243167bac1ccfd53528389cd4c2f7e721 100644 (file)
@@ -106,7 +106,7 @@ transmit_complete_callback(struct fw_packet *packet,
        }
 }
 
-void
+static void
 fw_fill_packet(struct fw_packet *packet, int tcode, int tlabel,
               int node_id, int generation, int speed,
               unsigned long long offset, void *payload, size_t length)
index 2f849c813a4c3aa21a52f687939536a31ee123ea..a664fc3380c65a4a431483231076c537dd39dfe9 100644 (file)
@@ -198,7 +198,7 @@ struct fw_transaction {
         void *callback_data;
 };
 
-extern inline struct fw_packet *
+static inline struct fw_packet *
 fw_packet(struct list_head *l)
 {
         return list_entry (l, struct fw_packet, link);