modify GPIO driver but can't compile

osama
hi everyone!
     I've been trying to use GPIO module. I also read the leds.c (
application test) and mini2440_led.c ( led driver_ it's already compiled
into the kernel).
      In the mini2440_led.c ( driver), I found some functions: setpin,
getpin, configure pin,....which are at header files: regs-gpio.h,... that
mini2440_led file included.
      Now, I want to use above functions: setpin, getpin,...to configure
other pins.For example, GPB0 is not connected to any leds on the board so i
will connect to outside led.
   I modify the GPIO driver by adding some other pin GPB0 and name it as
test.h file. In addition, I write an application (similar to leds.c) and
include test.h at the begining so that i can use above function:getpin.
setpin,... This's because I want to compile 2 files and don;t want to
compile driver into kernel again.
   But it doesn't work because it can;t find the header files: 
 <linux/miscdevice.h>; <linux/delay.h>; <asm/irq.h>;<mach/regs-gpio.h;
<mach/hardware.h>,... they're header files of mini2440_leds.c( old driver) 
   U can read the mini2440_led.c( driver) to see.
   How i can compile 2 files:test.h (modified driver) and test.c
(application_ include test.h to use setpin,..) ??? help me, thanks a lot.