New fixes for 2.1.32

Bas Mevissen (sgm@stack.nl)
Wed, 9 Apr 1997 10:37:24 +0200 (MET DST)


subject: New fixes for 2.1.32
To: linux-kernel@vger.rutgers.edu
cc: net-patches@lxorguk.ukuu.org.uk roadcapw@cfw.com

Hi all,

Here are a bunch of fixes. You can cut and paste this mail to a nice patch file,
or just ignore the warnings 'patch' displays.

I use 2.1.32 with the patch from Elliot Lee <sopwith@cuc.edu> and the
patch-2.1.30-parport040397 patch from Philip Blundell and Tim Waugh.

1) Add a 'make cleandep'. This erases the /usr/src/linux/include/linux/modules/*
This is because sometimes the old .ver files cause trouble.
I had this once with the upgrade from parport-032397 to parport-030497

--- linux-2.1.32/Makefile Fri Apr 4 13:24:36 1997
+++ linux/Makefile Tue Apr 8 14:20:46 1997
@@ -374,6 +382,14 @@
endif

depend dep: dep-files $(MODVERFILE)
+
+mrproper_dep:
+ rm -f .depend `find . -name .depend -print`
+ rm -f .hdepend scripts/mkdep
+ rm -f $(TOPDIR)/include/linux/modversions.h
+ rm -f $(TOPDIR)/include/linux/modules/*
+
+cleandep: mrproper_dep dep-files $(MODVERFILE)

ifdef CONFIGURATION
..$(CONFIGURATION):

2) Clean up some warnings at 'make dep'

--- linux-2.1.32/net/ax25/sysctl_net_ax25.c Tue Apr 1 12:01:36 1997
+++ linux/net/ax25/sysctl_net_ax25.c Mon Apr 7 17:11:26 1997
@@ -5,6 +5,7 @@
* Added /proc/sys/net/ax25 directory entry (empty =) ). [MS]
*/

+#include <linux/config.h>
#include <linux/mm.h>
#include <linux/sysctl.h>

--- linux-2.1.32/net/ipv4/sysctl_net_ipv4.c Thu Dec 12 15:54:24 1996
+++ linux/net/ipv4/sysctl_net_ipv4.c Mon Apr 7 17:11:47 1997
@@ -5,6 +5,7 @@
* Added /proc/sys/net/ipv4 directory entry (empty =) ). [MS]
*/

+#include <linux/config.h>
#include <linux/mm.h>
#include <linux/sysctl.h>
#include <net/snmp.h>

--- linux-2.1.32/net/ipv6/sysctl_net_ipv6.c Tue Apr 1 12:01:40 1997
+++ linux/net/ipv6/sysctl_net_ipv6.c Mon Apr 7 17:14:51 1997
@@ -2,6 +2,7 @@
* sysctl_net_ipv6.c: sysctl interface to net IPV6 subsystem.
*/

+#include <linux/config.h>
#include <linux/mm.h>
#include <linux/sysctl.h>
#include <linux/in6.h>

3) I still could not use the SCSI support modules sd_mod.o and scsi_mod.o.
This is, according to depmod, due to the missing symbol 'local_irq_count'.
After applying Elliots fix, this symbol now exists for uniprocessor kernels,
but it is still not exported. This fix will do the trick, but I think this
is not the way the developers want.
(They have to figure out something else themselves :-) )

--- linux/kernel/ksyms.c.dist Tue Apr 8 20:37:56 1997
+++ linux/kernel/ksyms.c Tue Apr 8 20:37:14 1997
@@ -249,6 +249,7 @@
EXPORT_SYMBOL(proc_dointvec_minmax);

/* interrupt handling */
+EXPORT_SYMBOL(local_irq_count);
EXPORT_SYMBOL(request_irq);
EXPORT_SYMBOL(free_irq);
EXPORT_SYMBOL(enable_irq);

-- 
----------------------------------------------------------------
=========== Take a look at my brand new home page ! ============
= The images still look bad at 256 color displays. 64K is fine =
================================================================
----------------------------------------------------------------
E-mail: sgm@stack.nl, S.G.A.H.Mevissen@stud.tue.nl
PGP: Finger sgm@toad.stack.nl for PGP public key, KeyID 3B896721 
WWW: www.stack.nl/~sgm (PGP public key here too)
----------------------------------------------------------------