Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen: using EXPORT_SYMBOL requires including export.h

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>

authored by

Stephen Rothwell and committed by
Linus Torvalds
9ef9b20b aa303f2c

+1
+1
drivers/xen/biomerge.c
··· 1 1 #include <linux/bio.h> 2 2 #include <linux/io.h> 3 + #include <linux/export.h> 3 4 #include <xen/page.h> 4 5 5 6 bool xen_biovec_phys_mergeable(const struct bio_vec *vec1,