lkml.org 
[lkml]   [1997]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: New pre-2.0.31 patches..
I received these warnings while compiling pre-2.0.31-3:

lxdialog.c:123: warning: assignment of read-only location
random.c:1398: warning: long unsigned int format, __u32 arg (arg 2)
random.c:1398: warning: long unsigned int format, __u32 arg (arg 3)
new_tunnel.c:270: warning: assignment from incompatible pointer type
ne.c:163: warning: unused variable `i'
ne.c:66: warning: `netcard_portlist' defined but not used
soundcard.c:387: warning: `debugmem' defined but not used
sound_switch.c:400: warning: unused variable `retval'
sound_switch.c:532: warning: unused variable `mixdev'

I've attached a patch which corrects the cosmetic warnings in ne.c. I
have the ne module loaded automatically at boot time, and I went to check
whether it would unload and reload properly. I noticed something I don't
understand:

# ifconfig eth0 down
# rmmod ne
# rmmod 8390
# insmod 8390
# insmod ne irq=11 io=0x6100
loading device 'eth0'...
ne.c:v1.10 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)
NE*000 ethercard probe at 0x6100: 00 40 05 32 ff d4
eth0: NE2000 found at 0x6100, using IRQ 11.
loading device 'eth1'...
# ifconfig eth1
eth1: unknown interface.

I also noticed that "make menuconfig" generates (and presumably updates)
the ./include/version.h file, but neither "make config" nor "make
oldconfig" do. This seems inconsistent, and can lead to confusion:

> I installed 2.0.29 last night.. apon returning to the machine this morning
> and rebooting, I found it to still be 2.0.28. I remember doing everything
> right, unzipping it, checking all symlinks, everything. I decided to
> check the version.h in /usr/src/linux/include/linux, and it still said it
> was 2.0.28.... This startled me incredibly, and I was wondering if its a
> bug in the kernel, or was it just something I've done?
>
> kidmagic@insa.nws.net

Here's the configuration I'm using:

CONFIG_EXPERIMENTAL=y
CONFIG_MODULES=y
CONFIG_KERNELD=y
CONFIG_NET=y
CONFIG_PCI=y
CONFIG_PCI_OPTIMIZE=y
CONFIG_SYSVIPC=y
CONFIG_BINFMT_AOUT=m
CONFIG_BINFMT_ELF=y
CONFIG_KERNEL_ELF=y
CONFIG_M586=y
CONFIG_BLK_DEV_FD=m
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_HD_IDE=y
CONFIG_BLK_DEV_IDE_PCMCIA=y
CONFIG_BLK_DEV_LOOP=m
CONFIG_BLK_DEV_HD=y
CONFIG_INET=y
CONFIG_SYN_COOKIES=y
CONFIG_RST_COOKIES=y
CONFIG_NET_IPIP=m
CONFIG_IP_NOSR=y
CONFIG_SCSI=m
CONFIG_BLK_DEV_SD=m
CONFIG_CHR_DEV_ST=m
CONFIG_BLK_DEV_SR=m
CONFIG_CHR_DEV_SG=m
CONFIG_SCSI_AHA1542=m
CONFIG_SCSI_NCR53C8XX=m
CONFIG_NETDEVICES=y
CONFIG_PPP=y
CONFIG_NET_ETHERNET=y
CONFIG_NET_ISA=y
CONFIG_EEXPRESS=m
CONFIG_NE2000=m
CONFIG_EXT2_FS=y
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=y
CONFIG_UMSDOS_FS=m
CONFIG_PROC_FS=y
CONFIG_NFS_FS=m
CONFIG_SMB_FS=m
CONFIG_SMB_WIN95=y
CONFIG_ISO9660_FS=m
CONFIG_SERIAL=y
CONFIG_PRINTER=m
CONFIG_SOUND=m
CONFIG_LOWLEVEL_SOUND=y

Here's my /etc/soundconf:

/* Generated by configure. Don't edit!!!! */
/* Making changes to this file is not as simple as it may look. */
/* If you change the CONFIG_ settings in local.h you */
/* _have_ to edit .defines too. */
#undef CONFIG_PAS
#define CONFIG_SB
#undef CONFIG_ADLIB
#undef CONFIG_GUS
#undef CONFIG_MPU401
#undef CONFIG_UART6850
#undef CONFIG_PSS
#undef CONFIG_GUS16
#undef CONFIG_GUSMAX
#undef CONFIG_MSS
#undef CONFIG_SSCAPE
#undef CONFIG_TRIX
#undef CONFIG_MAD16
#undef CONFIG_CS4232
#undef CONFIG_MAUI
#undef CONFIG_SPNP
#undef CONFIG_UNUSED1
#undef CONFIG_UNUSED2
#undef CONFIG_AEDSP16
#undef CONFIG_UNUSED3
#undef CONFIG_UNUSED4
#undef CONFIG_UNUSED5
#define CONFIG_YM3812

#undef CONFIG_MPU_EMU
#undef CONFIG_AD1848
#define CONFIG_SBDSP
#define CONFIG_UART401
#undef CONFIG_GUSHW
#undef CONFIG_SSCAPEHW
#define CONFIG_SEQUENCER
#define CONFIG_AUDIO
#define CONFIG_MIDI

#define SBC_BASE 0x220
#define SBC_IRQ 5
#define SBC_DMA 1
#define SB_DMA2 5
#undef SB_MPU_BASE
#define SELECTED_SOUND_OPTIONS 0x00800002
___
Trevor Johnson--- linux/drivers/net/ne.c.orig Mon Aug 4 22:52:18 1997
+++ linux/drivers/net/ne.c Tue Aug 5 00:27:14 1997
@@ -63,8 +63,10 @@
/* #define PACKETBUF_MEMSIZE 0x40 */

/* A zero-terminated list of I/O addresses to be probed. */
+#if !defined (MODULE)||defined (HAVE_DEVLIST)
static unsigned int netcard_portlist[] =
{ 0x300, 0x280, 0x320, 0x340, 0x360, 0};
+#endif

#ifdef CONFIG_PCI
/* Ack! People are making PCI ne2000 clones! Oh the horror, the horror... */
@@ -160,7 +162,6 @@

int ne_probe(struct device *dev)
{
- int i;
int base_addr = dev ? dev->base_addr : 0;

/* First check any supplied i/o locations. User knows best. <cough> */
\
 
 \ /
  Last update: 2005-03-22 13:40    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site