From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1HWN7u-0002oh-0E for user-mode-linux-devel@lists.sourceforge.net; Tue, 27 Mar 2007 18:39:02 -0700 Received: from [198.99.130.12] (helo=saraswathi.solana.com) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1HWGRW-0004B1-Kh for user-mode-linux-devel@lists.sourceforge.net; Tue, 27 Mar 2007 11:30:51 -0700 Date: Tue, 27 Mar 2007 14:27:46 -0400 From: Jeff Dike Message-ID: <20070327182746.GA8395@c2.user-mode-linux.org> Mime-Version: 1.0 Content-Disposition: inline Subject: [uml-devel] [PATCH 1/6] i386 - fix cmpxchg warning List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: Andi Kleen , Andrew Morton Cc: LKML , uml-devel I started getting warnings from atomic.h about cmpxchg not having a prototype. It's declared in system.h, so including that fixes the UML build warnings and has no noticable ill effects on the i386 build. Signed-off-by: Jeff Dike -- include/asm-i386/atomic.h | 1 + 1 file changed, 1 insertion(+) Signed-off-by: Jeff Dike -- Index: linux-2.6.21-mm/include/asm-i386/atomic.h =================================================================== --- linux-2.6.21-mm.orig/include/asm-i386/atomic.h 2007-03-27 12:25:16.000000000 -0400 +++ linux-2.6.21-mm/include/asm-i386/atomic.h 2007-03-27 12:26:38.000000000 -0400 @@ -3,6 +3,7 @@ #include #include +#include /* * Atomic operations that C can't guarantee us. Useful for ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934160AbXC0Sbl (ORCPT ); Tue, 27 Mar 2007 14:31:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934163AbXC0Sba (ORCPT ); Tue, 27 Mar 2007 14:31:30 -0400 Received: from [198.99.130.12] ([198.99.130.12]:45443 "EHLO saraswathi.solana.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S934161AbXC0SbL (ORCPT ); Tue, 27 Mar 2007 14:31:11 -0400 Date: Tue, 27 Mar 2007 14:27:46 -0400 From: Jeff Dike To: Andi Kleen , Andrew Morton Cc: LKML , uml-devel Subject: [PATCH 1/6] i386 - fix cmpxchg warning Message-ID: <20070327182746.GA8395@c2.user-mode-linux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org I started getting warnings from atomic.h about cmpxchg not having a prototype. It's declared in system.h, so including that fixes the UML build warnings and has no noticable ill effects on the i386 build. Signed-off-by: Jeff Dike -- include/asm-i386/atomic.h | 1 + 1 file changed, 1 insertion(+) Signed-off-by: Jeff Dike -- Index: linux-2.6.21-mm/include/asm-i386/atomic.h =================================================================== --- linux-2.6.21-mm.orig/include/asm-i386/atomic.h 2007-03-27 12:25:16.000000000 -0400 +++ linux-2.6.21-mm/include/asm-i386/atomic.h 2007-03-27 12:26:38.000000000 -0400 @@ -3,6 +3,7 @@ #include #include +#include /* * Atomic operations that C can't guarantee us. Useful for