From patchwork Sat Oct 24 15:26:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 535419 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 11970141325 for ; Sun, 25 Oct 2015 02:27:54 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=I7N2fdgk; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E272A4B632; Sat, 24 Oct 2015 17:27:46 +0200 (CEST) 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 8A7yL_7WcJUf; Sat, 24 Oct 2015 17:27:46 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2EFF54B686; Sat, 24 Oct 2015 17:27:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 82E5E4B62B for ; Sat, 24 Oct 2015 17:27:30 +0200 (CEST) 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 Zgr1-qOT7CvE for ; Sat, 24 Oct 2015 17:27:30 +0200 (CEST) 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-qk0-f176.google.com (mail-qk0-f176.google.com [209.85.220.176]) by theia.denx.de (Postfix) with ESMTPS id 1491D4B664 for ; Sat, 24 Oct 2015 17:27:26 +0200 (CEST) Received: by qkcy65 with SMTP id y65so93632751qkc.0 for ; Sat, 24 Oct 2015 08:27:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dLoqu9nbPvM3i0yTNnCEvd8HLuXbR2Vsp7rDn2Qigyo=; b=I7N2fdgkQl1BFGCT88DWdsNWi2H2ImKehWbc+eEoJyp4rV3aAm5DCM2klmudjIogsj ykPfeX+8nkjgDTxfFNEQ63/TmZZMj9q4GU8ax+S4CiCiJxXJaT8gd3L0OW9EG0q6JWTf IudgfVDy/MH/YWwhM2bqHggaH9Ip2bpzcSxLRBZQAm9ZqfNQag/ysTBy2V2QPmyGaTsz fp123PvUfRBiClCJR/KOitBhhIDAzCXUhqSONCG3d3J3UXk9coJMoz3/wuVC+tyHsLAQ 9UtU1rqRlJ5B/zHfh91prag4PpT3sMo8IABmAkl/3PkeVnDOAN9thw3tc4eM3QO31YcH UhAA== X-Received: by 10.55.72.137 with SMTP id v131mr2780855qka.26.1445700445557; Sat, 24 Oct 2015 08:27:25 -0700 (PDT) Received: from localhost.localdomain ([189.5.18.213]) by smtp.gmail.com with ESMTPSA id v10sm9528993qgv.32.2015.10.24.08.27.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 24 Oct 2015 08:27:25 -0700 (PDT) From: Fabio Estevam To: trini@konsulko.com Date: Sat, 24 Oct 2015 13:26:45 -0200 Message-Id: <1445700414-28600-3-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445700414-28600-1-git-send-email-festevam@gmail.com> References: <1445700414-28600-1-git-send-email-festevam@gmail.com> Cc: jteki@openedev.com, u-boot@lists.denx.de, Fabio Estevam , otavio@ossystems.com.br Subject: [U-Boot] [PATCH v2 03/12] compat: Remove is_power_of_2() definition X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Fabio Estevam Use the is_power_of_2() definition from log2.h to align with the kernel implementation. Signed-off-by: Fabio Estevam Reviewed-by: Tom Rini --- Changes since v1: - None arch/arm/mach-mvebu/mbus.c | 2 +- drivers/mtd/mtdcore.c | 2 +- drivers/mtd/ubi/build.c | 2 +- fs/ubifs/super.c | 2 +- include/linux/compat.h | 6 ------ 5 files changed, 4 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-mvebu/mbus.c b/arch/arm/mach-mvebu/mbus.c index 771cce6..346278e 100644 --- a/arch/arm/mach-mvebu/mbus.c +++ b/arch/arm/mach-mvebu/mbus.c @@ -52,7 +52,7 @@ #include #include #include -#include +#include #include /* DDR target is the same on all platforms */ diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 2f2172b..81be0f7 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c @@ -27,8 +27,8 @@ #include #include #else -#include #include +#include #include #endif diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 290d524..6ed7667 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -30,7 +30,7 @@ #include #include #else -#include +#include #endif #include #include diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 41763a1..eaae5fb 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include #include "ubifs.h" diff --git a/include/linux/compat.h b/include/linux/compat.h index fbebf91..7a99599 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -104,12 +104,6 @@ static inline void led_trigger_unregister_simple(struct led_trigger *trigger) {} static inline void led_trigger_event(struct led_trigger *trigger, enum led_brightness event) {} -/* include/linux/log2.h */ -static inline int is_power_of_2(unsigned long n) -{ - return (n != 0 && ((n & (n - 1)) == 0)); -} - /* uapi/linux/limits.h */ #define XATTR_LIST_MAX 65536 /* size of extended attribute namelist (64k) */