From: Nils Faerber <Nils.Faerber@unix-ag.org>
To: axp-list@redhat.com (Linux AXP Mailinglist)
Subject: Fix for asm/system.h
Date: Thu, 29 Apr 1999 23:22:42 +0200 (MESZ) [thread overview]
Message-ID: <199904292122.XAA37874@vmax.unix-ag.uni-siegen.de> (raw)
Hello!
While compiling a C++ program I noticed a little nastiness in asm/system.h
(for Alpha of course). G++ always complained that an implicit cast would not
be allowed with ANSI C++. OK I thought, then make it explicit ;)
Here is a little diff... would someone please include this for the next
kernel release?
Thanks!
CU
nils
*** /usr/src/linux-2.2.6/include/asm/system.h Thu Apr 1 00:00:29 1999
--- system.h Thu Apr 29 17:01:37 1999
***************
*** 292,300 ****
{
switch (size) {
case 4:
! return xchg_u32(ptr, x);
case 8:
! return xchg_u64(ptr, x);
}
__xchg_called_with_bad_pointer();
return x;
--- 292,300 ----
{
switch (size) {
case 4:
! return xchg_u32((volatile int *)ptr, x);
case 8:
! return xchg_u64((volatile long *)ptr, x);
}
__xchg_called_with_bad_pointer();
return
--
Nils Faerber (Linux Nils) eMail: nils@unix-ag.org
Student of computer science http://www.si.unix-ag.org/~nils/
Unix user group, University of Siegen, Germany
Siegen ... the arctic rain forest!
--
next reply other threads:[~1999-04-29 21:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-29 21:22 Nils Faerber [this message]
1999-04-30 11:09 ` Fix for asm/system.h Phil Carmody
1999-04-30 16:35 ` Wes Bauske
1999-05-02 20:16 ` Richard Henderson
1999-05-03 2:03 ` Nils Faerber
1999-05-03 6:55 ` Richard Henderson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox