From patchwork Thu Nov 15 07:33:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 199201 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3D77C2C0087 for ; Thu, 15 Nov 2012 18:33:55 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C4BFF4A098; Thu, 15 Nov 2012 08:33:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SKkRkxqO09X2; Thu, 15 Nov 2012 08:33:52 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E2F744A08F; Thu, 15 Nov 2012 08:33:48 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6C4944A08F for ; Thu, 15 Nov 2012 08:33:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ncYlvHEf+xoQ for ; Thu, 15 Nov 2012 08:33:45 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-da0-f44.google.com (mail-da0-f44.google.com [209.85.210.44]) by theia.denx.de (Postfix) with ESMTPS id 37E4D4A08D for ; Thu, 15 Nov 2012 08:33:43 +0100 (CET) Received: by mail-da0-f44.google.com with SMTP id h15so540680dan.3 for ; Wed, 14 Nov 2012 23:33:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding:x-gm-message-state; bh=TC03okM3TfpLr6vr8cDFdN0JCBjLQIvg/nVBjNaIo8s=; b=HHeT37V/6LrpUOGp9KO3gaqGZDiDj3NnGaQOYEHErj2MEsrKfI7l87K3TmsmqeMHee sKgRGib7O4T0YvwhUWSjgCbhOTVWzXZx1OYPpBRbC+0uo0Z1iSUz+Bp8Reki8sv9uaYb 9cVFOhS4JciJHt23saOQf+eVpSifqYCh/qwAwXi79WMVKLC5eHGSayiMH3+EC2VxltSj BlH7+p/6T9zjIvIO6VTEcUyXZdlJbHRxRih8gXizgZVqjsMDCbFgEyPLFaLFqrlXWDsO 0ZnMLH7F5IRTiESBJ6ifRuWsTZFkaAa79KAgGS/pDzlZkSL6cRn2KLdhu8xeHDjZQPpg df5g== Received: by 10.69.0.134 with SMTP id ay6mr2165163pbd.50.1352964819466; Wed, 14 Nov 2012 23:33:39 -0800 (PST) Received: from xps-iwamatsu.renesas.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPS id vs3sm9090015pbc.61.2012.11.14.23.33.37 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Nov 2012 23:33:38 -0800 (PST) From: Nobuhiro Iwamatsu To: u-boot@lists.denx.de Date: Thu, 15 Nov 2012 16:33:29 +0900 Message-Id: <1352964809-17963-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQl01Y7tZRs3/9rVI6rfFGO3ZORvynSuup3D6XRWTrhvl9g1v7dYnwhgcp/hIO5RlFd0Tssf Cc: kim.phillips@freescale.com, Nobuhiro Iwamatsu Subject: [U-Boot] [PATCH] include/linux/byteorder: Always defines __fswab64, __swab64p and __swab64s X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Nobuhiro Iwamatsu When __BYTEORDER_HAS_U64__ is not defined, we got warning following: ----- /tmp/include/linux/byteorder/little_endian.h: In function ā€˜__cpu_to_be64pā€™: /tmp/include/linux/byteorder/little_endian.h:71:2: warning: implicit declaration of function ā€˜__swab64pā€™ [-Wimplicit-function-declaration] ----- Usually, __arch__swab64* required for __fswab64, __swab64p and __swab64s is defined. Therefore, __BYTEORDER_HAS_U64__ is unnecessary. This removes __BYTEORDER_HAS_U64__. Signed-off-by: Nobuhiro Iwamatsu CC: Kim Phillips --- include/linux/byteorder/swab.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/byteorder/swab.h b/include/linux/byteorder/swab.h index bb4a046..4334fa7 100644 --- a/include/linux/byteorder/swab.h +++ b/include/linux/byteorder/swab.h @@ -122,7 +122,6 @@ static __inline__ void __swab32s(__u32 *addr) __arch__swab32s(addr); } -#ifdef __BYTEORDER_HAS_U64__ static __inline__ __attribute__((const)) __u64 __fswab64(__u64 x) { # ifdef __SWAB_64_THRU_32__ @@ -141,7 +140,6 @@ static __inline__ void __swab64s(__u64 *addr) { __arch__swab64s(addr); } -#endif /* __BYTEORDER_HAS_U64__ */ #if defined(__KERNEL__) #define swab16 __swab16