From: "David S. Miller" <davem@rth.ninka.net>
To: dd8ne@bnv-bamberg.de
Cc: linux-kernel@vger.kernel.org, ralf@linux-mips.org.linux-hams,
acme@conectiva.com.br
Subject: Re: [PATCH] 2.5.44: net/ipv4/ip_proc.c compile error fix for AX25 enabled
Date: 20 Oct 2002 00:36:39 -0700 [thread overview]
Message-ID: <1035099399.4137.7.camel@rth.ninka.net> (raw)
In-Reply-To: <200210200648.g9K6mkD05952@dd8ne.ampr.org>
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));
prev parent reply other threads:[~2002-10-20 7:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-20 6:48 Hans-Joachim Hetscher
2002-10-20 7:36 ` David S. Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1035099399.4137.7.camel@rth.ninka.net \
--to=davem@rth.ninka.net \
--cc=acme@conectiva.com.br \
--cc=dd8ne@bnv-bamberg.de \
--cc=linux-kernel@vger.kernel.org \
--cc=ralf@linux-mips.org.linux-hams \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®