From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21698 invoked from network); 29 Apr 1999 21:53:06 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 29 Apr 1999 21:53:06 -0000 Received: from adler.unix-ag.uni-siegen.de (adler.unix-ag.uni-siegen.de [141.99.42.52]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id RAA01195 for ; Thu, 29 Apr 1999 17:23:10 -0400 Received: from vmax.unix-ag.uni-siegen.de (vmax.unix-ag.uni-siegen.de [141.99.42.43]) by adler.unix-ag.uni-siegen.de (Mailhost) with ESMTP id XAA08970 for ; Thu, 29 Apr 1999 23:22:43 +0200 Received: (from nils@localhost) by vmax.unix-ag.uni-siegen.de (Spoolhost) id XAA37874 for axp-list@redhat.com; Thu, 29 Apr 1999 23:22:43 +0200 From: Nils Faerber Message-Id: <199904292122.XAA37874@vmax.unix-ag.uni-siegen.de> Subject: Fix for asm/system.h To: axp-list@redhat.com (Linux AXP Mailinglist) Date: Thu, 29 Apr 1999 23:22:42 +0200 (MESZ) X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit 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! --