lkml.org 
[lkml]   [1999]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectFix for asm/system.h
Date
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!
--

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.059 / U:1.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site