Fix kernel compile error in last commit due to lack of types.h in some sources
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 17 Jun 2009 16:50:12 +0000 (09:50 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 17 Jun 2009 16:50:12 +0000 (09:50 -0700)
sys/cpu/amd64/include/bus_dma.h
sys/cpu/i386/include/bus_at386.h

index cbd64a1..c88e530 100644 (file)
@@ -110,7 +110,7 @@ static __inline void *
 bus_space_kva(bus_space_tag_t tag, bus_space_handle_t handle, bus_size_t offset)
 {
        if (tag == I386_BUS_SPACE_IO)
-               return (NULL);
+               return ((void *)0);
        return ((void *)(handle + offset));
 }
 
index f58cede..a43c4ae 100644 (file)
@@ -148,7 +148,7 @@ static __inline void *
 bus_space_kva(bus_space_tag_t tag, bus_space_handle_t handle, bus_size_t offset)
 {
        if (tag == I386_BUS_SPACE_IO)
-               return (NULL);
+               return ((void *)0);
        return ((void *)(handle + offset));
 }