R
rashmi
Hello All,
tp.c:107: error: syntax error before '*' token
tp.c:108: warning: function declaration isn't a prototype
tp.c:121: error: syntax error before '*' token
tp.c:122: warning: function declaration isn't a prototype
tp.c:135: error: syntax error before '*' token
tp.c:138: warning: return type defaults to `int'
tp.c:138: warning: no previous prototype for 'test_modevent'
tp.c: In function `test_modevent':
tp.c:143: warning: assignment from incompatible pointer type
*** Error code 1
***************************************************
This is the error code that i am getting on gcc conpiler but i dont
understand what could be wrong
i also attach that part of the code here
***************************************************
struct drv_t {
char name [8];
struct cdev *devt;
};
//static void test_ifstart (drv_t *d);
//static void test_ifwatchdog (drv_t *d);
//static void test_initialize (void *softc);
//static int test_sioctl (struct ifnet *ifp, u_long cmd, caddr_t data);
static void test_ifstart (drv_t *d)
{
uprintf("inside start\n");
return;
}
Kindly help me in sorting this problem
Thanks and regards,
Rashmi
tp.c:107: error: syntax error before '*' token
tp.c:108: warning: function declaration isn't a prototype
tp.c:121: error: syntax error before '*' token
tp.c:122: warning: function declaration isn't a prototype
tp.c:135: error: syntax error before '*' token
tp.c:138: warning: return type defaults to `int'
tp.c:138: warning: no previous prototype for 'test_modevent'
tp.c: In function `test_modevent':
tp.c:143: warning: assignment from incompatible pointer type
*** Error code 1
***************************************************
This is the error code that i am getting on gcc conpiler but i dont
understand what could be wrong
i also attach that part of the code here
***************************************************
struct drv_t {
char name [8];
struct cdev *devt;
};
//static void test_ifstart (drv_t *d);
//static void test_ifwatchdog (drv_t *d);
//static void test_initialize (void *softc);
//static int test_sioctl (struct ifnet *ifp, u_long cmd, caddr_t data);
static void test_ifstart (drv_t *d)
{
uprintf("inside start\n");
return;
}
Kindly help me in sorting this problem
Thanks and regards,
Rashmi