mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 2.5.44: net/ipv4/ip_proc.c compile error fix for AX25 enabled
@ 2002-10-20  6:48 Hans-Joachim Hetscher
  2002-10-20  7:36 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Hans-Joachim Hetscher @ 2002-10-20  6:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: ralf

ip_proc.c does't compile for CONFIG_AX25.

Here the patch ...


diff -u net/ipv4/ip_proc.c~ net/ipv4/ip_proc.c
--- net/ipv4/ip_proc.c~ Sun Oct 20 08:15:20 2002
+++ net/ipv4/ip_proc.c  Sun Oct 20 08:19:03 2002
@@ -33,7 +33,7 @@

 #ifdef CONFIG_PROC_FS
 #ifdef CONFIG_AX25
-
+#include <linux/ax25.h>
 /* ------------------------------------------------------------------------ */
 /*
  *     ax25 -> ASCII conversion

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] 2.5.44: net/ipv4/ip_proc.c compile error fix for AX25 enabled
  2002-10-20  6:48 [PATCH] 2.5.44: net/ipv4/ip_proc.c compile error fix for AX25 enabled Hans-Joachim Hetscher
@ 2002-10-20  7:36 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2002-10-20  7:36 UTC (permalink / raw)
  To: dd8ne; +Cc: linux-kernel, ralf, acme

On Sat, 2002-10-19 at 23:48, Hans-Joachim Hetscher wrote:
> ip_proc.c does't compile for CONFIG_AX25.
> 
> Here the patch ...

This points out another problem, that it doesn't handle
CONFIG_AX25_MODULE either.

I've fixed all of this in my tree as follows:

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.812   -> 1.813  
#	  net/ipv4/ip_proc.c	1.10    -> 1.11   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/10/20	davem@nuts.ninka.net	1.813
# net/ipv4/ip_proc.c: Include linux/ax25.h and handle modular AX25.
# --------------------------------------------
#
diff -Nru a/net/ipv4/ip_proc.c b/net/ipv4/ip_proc.c
--- a/net/ipv4/ip_proc.c	Sun Oct 20 00:20:53 2002
+++ b/net/ipv4/ip_proc.c	Sun Oct 20 00:20:53 2002
@@ -31,7 +31,9 @@
 extern int tcp_get_info(char *, char **, off_t, int);
 
 #ifdef CONFIG_PROC_FS
-#ifdef CONFIG_AX25
+#if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE)
+
+#include <linux/ax25.h>
 
 /* ------------------------------------------------------------------------ */
 /*
@@ -64,7 +66,7 @@
 	return buf;
 
 }
-#endif /* CONFIG_AX25 */
+#endif /* CONFIG_AX25 || CONFIG_AX25_MODULE */
 
 struct arp_iter_state {
 	int is_pneigh, bucket;
@@ -196,7 +198,7 @@
 
 	read_lock(&n->lock);
 	/* Convert hardware address to XX:XX:XX:XX ... form. */
-#ifdef CONFIG_AX25
+#if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE)
 	if (hatype == ARPHRD_AX25 || hatype == ARPHRD_NETROM)
 		ax2asc2((ax25_address *)n->ha, hbuffer);
 	else {
@@ -207,7 +209,7 @@
 		hbuffer[k++] = ':';
 	}
 	hbuffer[--k] = 0;
-#ifdef CONFIG_AX25
+#if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE)
 	}
 #endif
 	sprintf(tbuf, "%u.%u.%u.%u", NIPQUAD(*(u32*)n->primary_key));

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-20  7:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-20  6:48 [PATCH] 2.5.44: net/ipv4/ip_proc.c compile error fix for AX25 enabled Hans-Joachim Hetscher
2002-10-20  7:36 ` David S. Miller

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

all inboxes | Powered by JetHome®