From patchwork Thu Nov 15 07:35:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 199202 X-Patchwork-Delegate: trini@ti.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 55D3F2C0087 for ; Thu, 15 Nov 2012 18:35:44 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1D1364A09B; Thu, 15 Nov 2012 08:35:43 +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 c9BxIA2OWiQN; Thu, 15 Nov 2012 08:35:42 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 63B784A090; Thu, 15 Nov 2012 08:35:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5DDA14A090 for ; Thu, 15 Nov 2012 08:35:39 +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 aVR0h+KFr3O3 for ; Thu, 15 Nov 2012 08:35:38 +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-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by theia.denx.de (Postfix) with ESMTPS id 27D0B4A08F for ; Thu, 15 Nov 2012 08:35:36 +0100 (CET) Received: by mail-pa0-f44.google.com with SMTP id fb11so868142pad.3 for ; Wed, 14 Nov 2012 23:35:34 -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=nYyE92huZjrmpEi9IV2bqb4upRFFV0tVthZJ4sqBadQ=; b=mkwj6MkY1vsCIoIr7+YfMlFnW/QeFYO2rT41BvWDLPPdlsDgbia5etX9Kvzumrc22S 6Ohl0YzQQGt//sg/V69f+vdvtKGI1xGv1ySwzxew9gf8qjFXAfBMmDzg3A8D26HuoICI zFYJ1rBtaJGIdCnyzdg+P/gVXaq3yAvAblWykLg4bl3qadZ7h45Z5XkaKKPaKVPRqc7O 92EACMtoWaIA8bacbSFzsy3jNXCwWKZQup9fZTlFR0UjOQgyrfA9JlDpq6yZVRo5sIQv t4gGbanbbi/zbykC3a9wwtvgauqxd/nqHhKtfJQ5xE4+boDwV0eOlb70cZPQeo4u2+T6 aHPQ== Received: by 10.68.244.135 with SMTP id xg7mr2079755pbc.87.1352964934854; Wed, 14 Nov 2012 23:35:34 -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 s1sm9311541paz.0.2012.11.14.23.35.33 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Nov 2012 23:35:34 -0800 (PST) From: Nobuhiro Iwamatsu To: u-boot@lists.denx.de Date: Thu, 15 Nov 2012 16:35:26 +0900 Message-Id: <1352964926-18021-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: ALoCoQlUMhPtAy4rv9XFS90Sz3tOnMigdzyfdl2vMZqbog/o/Pd0VxGTePC2Z1GDMq4OxRKmd0G9 Cc: Nobuhiro Iwamatsu , kim.phillips@freescale.com Subject: [U-Boot] [PATCH v2] 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 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 Reviewed-by: Kim Phillips --- v2: Fix mail address. 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