From patchwork Sun Oct 25 17:16:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 535605 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 E73761412FD for ; Mon, 26 Oct 2015 04:17:44 +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=yeqZTC9P; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 140774B699; Sun, 25 Oct 2015 18:17:41 +0100 (CET) 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 uaWcCKAzC8Qd; Sun, 25 Oct 2015 18:17:40 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 315504B65D; Sun, 25 Oct 2015 18:17:35 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4BCFB4B65A for ; Sun, 25 Oct 2015 18:17:31 +0100 (CET) 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 SWghmQdywrNy for ; Sun, 25 Oct 2015 18:17:31 +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-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) by theia.denx.de (Postfix) with ESMTPS id A164A4B656 for ; Sun, 25 Oct 2015 18:17:23 +0100 (CET) Received: by qkbl190 with SMTP id l190so100782055qkb.2 for ; Sun, 25 Oct 2015 10:17:22 -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=Wp4z1gMsOnI6i5l0UIQU8dNZHgdUXqIGduZGxsKEg8g=; b=yeqZTC9P1kZTWl2H+NSRLc4df890XSJmxrO623fTXvt/XqmEuXOPaM+OwvHoLd6jty T2s3qFrHARQWOf3Zn9u28FjwS97U0IEaNQT1YOjSrUksKXYpuaeJ4S1ra4Vlhh2idheh RBoyDb/F4jWc4ow5yskPaujp2BhBfm5Zy1kQvd7D69wzY4v/Lwuelfamgbn0hanYPPlB tfugKMbkitZcr3gTD7gF4PmOojUkNuPu5okwjMA81P9BEDiRaecs1n30QN07Nb5lOPRT YWr4lkZnuQ8sALKKfHo3nMzrxiku9isZl3KqK5AZSPFTFhboZVDLMC7Lrmhv8ogcXam1 LkSQ== X-Received: by 10.55.209.93 with SMTP id s90mr37911489qki.55.1445793442687; Sun, 25 Oct 2015 10:17:22 -0700 (PDT) Received: from localhost.localdomain ([189.5.18.213]) by smtp.gmail.com with ESMTPSA id 83sm5429935qhw.27.2015.10.25.10.17.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Oct 2015 10:17:22 -0700 (PDT) From: Fabio Estevam To: trini@konsulko.com Date: Sun, 25 Oct 2015 15:16:58 -0200 Message-Id: <1445793427-1446-3-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445793427-1446-1-git-send-email-festevam@gmail.com> References: <1445793427-1446-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 v3 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 v2: - 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) */