]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
xen: using EXPORT_SYMBOL requires including export.h
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 18 Jan 2012 23:24:31 +0000 (10:24 +1100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 18 Jan 2012 23:37:49 +0000 (15:37 -0800)
Fix these warnings:

  drivers/xen/biomerge.c:14:1: warning: data definition has no type or storage class [enabled by default]
  drivers/xen/biomerge.c:14:1: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL' [-Wimplicit-int]
  drivers/xen/biomerge.c:14:1: warning: parameter names (without types) in function declaration [enabled by default]

And this build error:

  ERROR: "xen_biovec_phys_mergeable" [drivers/block/nvme.ko] undefined!

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/xen/biomerge.c

index 18c1bb6ffce34dec32c4ba3ec3e6a96459fc771b..0edb91c0de6bf2b69d6de3ec41d43d38b5d823b5 100644 (file)
@@ -1,5 +1,6 @@
 #include <linux/bio.h>
 #include <linux/io.h>
+#include <linux/export.h>
 #include <xen/page.h>
 
 bool xen_biovec_phys_mergeable(const struct bio_vec *vec1,