Skip to contentSkip to conversation

missing <linux/mm.h> include in drivers/sbus/char/vfc_dev.c

PATCH New Jakub Bogusz 1 participant 1 message Mar 5, 2004 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 missing <linux/mm.h> include in drivers/sbus/char/vfc_dev.c

drivers/sbus/char/vfc_dev (SUN_VIDEOPIX option) build stopped on:

drivers/sbus/char/vfc_dev.c: In function `vfc_mmap':
drivers/sbus/char/vfc_dev.c:623: error: dereferencing pointer to incomplete type drivers/sbus/char/vfc_dev.c:623: error: dereferencing pointer to incomplete type drivers/sbus/char/vfc_dev.c:627: error: dereferencing pointer to incomplete type drivers/sbus/char/vfc_dev.c:628: error: `VM_SHM' undeclared (first use in this function) [...and so on]

Fix attached.

Signature · 2 lines
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/
PLD Team        http://www.pld-linux.org/
drivers/sbus/char/vfc_dev.c renamed from drivers/sbus/char/vfc_dev.c.orig +1 -0
@@ -24,6 +24,7 @@
 #include <linux/smp_lock.h>
 #include <linux/delay.h>
 #include <linux/spinlock.h>
+#include <linux/mm.h>
 
 #include <asm/openprom.h>
 #include <asm/oplib.h>