public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.4.0-test13-pre2 has problems
@ 2000-12-16 18:22 Daiki Matsuda
  0 siblings, 0 replies; only message in thread
From: Daiki Matsuda @ 2000-12-16 18:22 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: Text/Plain, Size: 523 bytes --]

Hi, all.
I'm trying kernel 2.4.0-test13-pre2. But it has a problem in
CONFIG_ATM.

In net/Config.in, we seletct CONFIG_ATM by bool, CONFIG_ATM_LANE
and CONFIG_ATM_MPOA by tristate. But net/atm/common.c calls two
function i.e. atm_lane_init and atm_mpoa_init, there also in
net/atm/{lane_mpoa_init.c,mpoa_caches.c}. When CONFIG_ATM_LANE or
CONFIG_ATM_MPOA is defined as module, the two functions are
unreferenced. So, I will put a simple patch. But I feel its patch
redundancy against two *.c files.

Regards
Daiki Matsuda


[-- Attachment #2: net.atm.commn.c.patch --]
[-- Type: Text/Plain, Size: 1166 bytes --]

--- linux/net/atm/common.c.old	Fri Dec 15 23:48:51 2000
+++ linux/net/atm/common.c	Sat Dec 16 00:07:29 2000
@@ -607,8 +607,10 @@
 #if defined(CONFIG_ATM_LANE) || defined(CONFIG_ATM_LANE_MODULE)
                 case ATMLEC_CTRL:
                         if (!capable(CAP_NET_ADMIN)) return -EPERM;
+#ifndef CONFIG_ATM_LANE_MODULE
                         if (atm_lane_ops.lecd_attach == NULL)
                                 atm_lane_init();
+#endif
                         if (atm_lane_ops.lecd_attach == NULL) /* try again */
                                 return -ENOSYS;
                         error = atm_lane_ops.lecd_attach(vcc, (int)arg);
@@ -624,8 +626,10 @@
 #if defined(CONFIG_ATM_MPOA) || defined(CONFIG_ATM_MPOA_MODULE)
 		case ATMMPC_CTRL:
 			if (!capable(CAP_NET_ADMIN)) return -EPERM;
+#ifndef CONFIG_ATM_MPOA_MODULE
                         if (atm_mpoa_ops.mpoad_attach == NULL)
                                 atm_mpoa_init();
+#endif
                         if (atm_mpoa_ops.mpoad_attach == NULL) /* try again */
                                 return -ENOSYS;
                         error = atm_mpoa_ops.mpoad_attach(vcc, (int)arg);

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

only message in thread, other threads:[~2000-12-16 18:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-16 18:22 2.4.0-test13-pre2 has problems Daiki Matsuda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox