]> err.no Git - linux-2.6/blobdiff - drivers/block/aoe/aoe.h
Merge branch 'for-linus' of git://git.infradead.org/ubi-2.6
[linux-2.6] / drivers / block / aoe / aoe.h
index 6d111228cfac1848fad99d9687b01e03e1230f7c..1d84668179432b3a385723f31648722214d61f09 100644 (file)
@@ -48,6 +48,15 @@ struct aoe_hdr {
        __be32 tag;
 };
 
+#ifdef __KERNEL__
+#include <linux/skbuff.h>
+
+static inline struct aoe_hdr *aoe_hdr(const struct sk_buff *skb)
+{
+       return (struct aoe_hdr *)skb_mac_header(skb);
+}
+#endif
+
 struct aoe_atahdr {
        unsigned char aflags;
        unsigned char errfeat;
@@ -159,7 +168,7 @@ void aoecmd_work(struct aoedev *d);
 void aoecmd_cfg(ushort aoemajor, unsigned char aoeminor);
 void aoecmd_ata_rsp(struct sk_buff *);
 void aoecmd_cfg_rsp(struct sk_buff *);
-void aoecmd_sleepwork(void *vp);
+void aoecmd_sleepwork(struct work_struct *);
 struct sk_buff *new_skb(ulong);
 
 int aoedev_init(void);