public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Kernel 2.1.80-4 compiled with egcs-980115
@ 1998-01-20  5:48 Kjartan Maraas
  1998-01-20 10:07 ` Gabriel Paubert
  0 siblings, 1 reply; 2+ messages in thread
From: Kjartan Maraas @ 1998-01-20  5:48 UTC (permalink / raw)
  To: egcs; +Cc: linux-kernel

I've just finished compiling this kernel with said
compiler, and it seems to work just fine except that
the de4x5 driver compiled as a module oopsed when I 
tried to load it. I compiled in the haifa scheduler.

One thing I noticed was that make menuconfig seemed 
slower (screen refreshes etc).

It also made the compiler return loads of warnings in
asm/string.h:

/usr/src/linux-2.1/include/asm/string.h: In function
`__constant_memcpy':
In file included from /usr/src/linux-2.1/include/linux/string.h:39,
                 from /usr/src/linux-2.1/include/linux/signal.h:64,
                 from /usr/src/linux-2.1/include/linux/sched.h:22,
                 from init/main.c:17:
/usr/src/linux-2.1/include/asm/string.h:448: warning: control reaches
end of non-void function
/usr/src/linux-2.1/include/asm/string.h: In function
`__constant_c_and_count_memset':
/usr/src/linux-2.1/include/asm/string.h:599: warning: control reaches
end of non-void function


Another couple of warnings I saw in the log was:

sched.c: At top level:
sched.c:318: warning: 'timerlist_lock' defined but not used
(kernel/sched.c)

fork.c: In function 'do fork':
fork.c:440: warning unused variable 'i'
(kernel/fork.c)

	The variable is defined at the start of the
	function but only used inside an #ifdef __SMP__


time.c: In function 'sys_adjtimex':
time.c:279: warning: suggest explicit braces to avoid ambiguous 'else'

the same warning comes again in:
drivers/char/console.c:1621 (do_con_write)
mm/mprotect.c:190 (mprotect_fixup)
fs/ext2/truncate.c:187 (trunc_indirect)
fs/ext2/truncate.c:249 (trunc_dindirect)
fs/ext2/truncate.c:310 (trunc_tindirect)
fs/pipe.c:53 (pipe_read)
lib/vsprintf.c:118 (number)
lib/vsprintf.c:288 (vsprintf)
arch/i386/kernel/time.c:404 (timer_interrupt)
drivers/scsi/ppa.c:1055 (ppa_engine)
drivers/sound/dmabuf.c:732 (DMAbuf_get_buffer_pointer)
drivers/sound/sb_common.c:905 (sb_dsp_init)

another warning in the sound drivers:

sb_mixer.h: At top level:
sb_mixer.h:139: warning: 'sgnxpro_mix' defined but not used

and another:

dev_table.c: In function 'start services':
dev_table.c:40 warning: unused variable 'soundcards_installed'

and one in fs/nls/nls_cp865.c:

nls_cp865.c: At top level:
nls_cp865.c: 358: warning 'charset2upper' defined but not used

this is repeated in nls_iso8859-1.c:138

My system is a Red Hat 5.0 system 

I have a Kingston PCI ethernet card (dec 21041)

AMD K6 200

Kernel 2.1.80-4 + the tiny fix to soundcard.c to get dma working.

Cheers

Kjartan

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

* Re: Kernel 2.1.80-4 compiled with egcs-980115
  1998-01-20  5:48 Kernel 2.1.80-4 compiled with egcs-980115 Kjartan Maraas
@ 1998-01-20 10:07 ` Gabriel Paubert
  0 siblings, 0 replies; 2+ messages in thread
From: Gabriel Paubert @ 1998-01-20 10:07 UTC (permalink / raw)
  To: Kjartan Maraas; +Cc: egcs, linux-kernel

On Tue, 20 Jan 1998, Kjartan Maraas wrote:

> I've just finished compiling this kernel with said
> compiler, and it seems to work just fine except that
> the de4x5 driver compiled as a module oopsed when I 
> tried to load it. I compiled in the haifa scheduler.
> 

Any of the two attached patches should cure the de4x5 problem.

The first one is an ad-hoc patch of drivers/net/de4x5.c,
use it if you are conservative.

The second one is an attempt of a generic patch to cure bugs
in include/asm-i386/string.h, it is more risky but up to now
I have only got success reports (admittedly few). 

Using both is essentially useless, but should not do any harm. 

  Gabriel.

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

end of thread, other threads:[~1998-01-20 10:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-20  5:48 Kernel 2.1.80-4 compiled with egcs-980115 Kjartan Maraas
1998-01-20 10:07 ` Gabriel Paubert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).