linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 2.5.8-dj1: net/atm/resources.c
@ 2002-04-16  1:59 Frank Davis
  0 siblings, 0 replies; only message in thread
From: Frank Davis @ 2002-04-16  1:59 UTC (permalink / raw)
  To: davej; +Cc: linux-kernel, fdavis

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);



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-04-16  3:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-16  1:59 [PATCH] 2.5.8-dj1: net/atm/resources.c Frank Davis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).