]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/hamradio/bpqether.c
net: convert usage of packet_type to read_mostly
[linux-2.6-omap-h63xx.git] / drivers / net / hamradio / bpqether.c
index 1f65d1edf132931096d4bd64070d206880f0e73c..d509b371a562165bc22cfd086fae186b7130ef2b 100644 (file)
@@ -87,7 +87,8 @@
 
 #include <linux/bpqether.h>
 
-static char banner[] __initdata = KERN_INFO "AX.25: bpqether driver version 004\n";
+static const char banner[] __initdata = KERN_INFO \
+       "AX.25: bpqether driver version 004\n";
 
 static char bcast_addr[6]={0xFF,0xFF,0xFF,0xFF,0xFF,0xFF};
 
@@ -96,8 +97,8 @@ static char bpq_eth_addr[6];
 static int bpq_rcv(struct sk_buff *, struct net_device *, struct packet_type *, struct net_device *);
 static int bpq_device_event(struct notifier_block *, unsigned long, void *);
 
-static struct packet_type bpq_packet_type = {
-       .type   = __constant_htons(ETH_P_BPQ),
+static struct packet_type bpq_packet_type __read_mostly = {
+       .type   = cpu_to_be16(ETH_P_BPQ),
        .func   = bpq_rcv,
 };
 
@@ -385,6 +386,7 @@ static int bpq_close(struct net_device *dev)
  *     Proc filesystem
  */
 static void *bpq_seq_start(struct seq_file *seq, loff_t *pos)
+       __acquires(RCU)
 {
        int i = 1;
        struct bpqdev *bpqdev;
@@ -417,6 +419,7 @@ static void *bpq_seq_next(struct seq_file *seq, void *v, loff_t *pos)
 }
 
 static void bpq_seq_stop(struct seq_file *seq, void *v)
+       __releases(RCU)
 {
        rcu_read_unlock();
 }