[PATCH] 2.5.8-dj1: net/atm/resources.c

Frank Davis (fdavis@si.rr.com)
Mon, 15 Apr 2002 21:59:33 -0400 (EDT)


Hello all,
I received the following while 'make bzImage', and have attached a
patch that appears to fix it. Please review for inclusion.
Regards,
Frank

resources.c:86: parse error before `int'
resources.c: In function `atm_dev_register':
resources.c:87: number of arguments doesn't match prototype
/usr/src/linux/include/linux/atmdev.h:417: prototype declaration
resources.c:92: warning: implicit declaration of function `alloc_atm_dev'
resources.c:92: `type' undeclared (first use in this function)
resources.c:92: (Each undeclared identifier is reported only once
resources.c:92: for each function it appears in.)
resources.c:92: warning: assignment makes pointer from integer without a cast
resources.c:98: `number' undeclared (first use in this function)
resources.c:100: warning: implicit declaration of function `free_atm_dev'
resources.c:113: `ops' undeclared (first use in this function)
resources.c:114: `flags' undeclared (first use in this function)
resources.c: At top level:
resources.c:36: warning: `__alloc_atm_dev' defined but not used
make[3]: *** [resources.o] Error 1
make[3]: Leaving directory `/usr/src/linux/net/atm'

--- net/atm/resources.c.old Mon Apr 15 21:42:25 2002
+++ net/atm/resources.c Mon Apr 15 21:48:31 2002
@@ -82,14 +82,14 @@
return NULL;
}

-struct atm_dev *atm_dev_register(const char *type, const struct atmdev_ops *ops
+struct atm_dev *atm_dev_register(const char *type, const struct atmdev_ops *ops,
int number, atm_dev_flags_t *flags)
{
struct atm_dev *dev = NULL;

spin_lock(&atm_dev_lock);

- dev = alloc_atm_dev(type);
+ dev = __alloc_atm_dev(type);
if (!dev) {
printk(KERN_ERR "atm_dev_register: no space for dev %s\n",
type);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/