From patchwork Fri Apr 27 15:08:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 905793 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=nexus-software.ie Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nexus-software-ie.20150623.gappssmtp.com header.i=@nexus-software-ie.20150623.gappssmtp.com header.b="TL/ushO6"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40XcqC2wB5z9s1P for ; Sat, 28 Apr 2018 01:12:07 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 158ECC22102; Fri, 27 Apr 2018 15:11:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E2FFEC2221A; Fri, 27 Apr 2018 15:09:26 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2F484C22218; Fri, 27 Apr 2018 15:09:05 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.denx.de (Postfix) with ESMTPS id BF54DC221DF for ; Fri, 27 Apr 2018 15:09:01 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id b21so3514701wme.4 for ; Fri, 27 Apr 2018 08:09:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eQHaaXeniLN6i+ciR8jfVLBJkuLO4ZdNgFbwSDm/IiI=; b=TL/ushO6wPM/c2pGGavPvMqdwh1x1pPoAShJ4Rivn0G/NfLM2L2rbmo5iGdXBDU1/J PCC7fub6PxW+aDdZR9ZYbpN9sYxADsGN2Vdf8AZLeySXti/QpX2yuSIc/W3sws4GvQFb VtAJ15MsipFeXMmv/MZppe17Eby8wXHPY7XlNpE1LXCYeVk7kvnPQ4yecyFsXYtqrxWC JBOPfTIH7Khg21Jn40q9Kf8VQ2uvz7+QGrPGbzWN88Y3Ns+gUvu//qPsehQNnx3Cfsa1 JCQAYbAf8hnRU7yglJ6fwq7mzZ14lxTVzN/Bwt/m3qxrWlgoi6RZD03xaTGFyozNnYPb HW6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eQHaaXeniLN6i+ciR8jfVLBJkuLO4ZdNgFbwSDm/IiI=; b=CpTJ59IDV9qlJoTcfIHpCpbC6kpF74Ml2n6uf63rRvF7VTzKtPdM/kiw449KyXpyut GinuQZNBmbk8u5oqHRcFynS1QrSa8ynWam2v7mL0bNv2GTtzL5lNu8YkXeSfT3gfdbGW aLqaFk1KUwgs+QsBdCJr4LTGrnHd7Uep+3C+a3dKqcx71U1gf5aSdo8b/i2SHO6BgAUp gmW7BFKxGC8c36pkm1MV3KZGD7SkswJChQf0Zq7JTbt4F9QB3Yi6PmCZfRRsTHt3Mkjm NoMwsQlXAR5YFPolU9fPq1epwRoHMMX1cQsrjj/JVM2oBwjgA536t0ID8yQbu+j3Y7VI 7ANA== X-Gm-Message-State: ALQs6tAMuOovNqOzpu2ort6uh9ljube9ed92Oiky9/4AEL7Jx4SFv739 Ob9Limy8rH8l/ZPhvyMszD0sEpDV X-Google-Smtp-Source: AB8JxZoOgwn8mjlc/8PLB3BXAENBXIXFeQsFGb4V0fbH7AF2UbSsfUb5AtPb7v3r6Ck9wwqJGZgn3Q== X-Received: by 2002:a50:8f21:: with SMTP id 30-v6mr3322626edy.265.1524841741189; Fri, 27 Apr 2018 08:09:01 -0700 (PDT) Received: from event-horizon.net ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id d17-v6sm1041063ede.65.2018.04.27.08.08.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Apr 2018 08:09:00 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Fri, 27 Apr 2018 16:08:46 +0100 Message-Id: <20180427150848.12075-8-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427150848.12075-1-pure.logic@nexus-software.ie> References: <20180427150848.12075-1-pure.logic@nexus-software.ie> Cc: Macpaul Lin Subject: [U-Boot] [PATCH 7/9] nds2: : Define PLATFORM__CLEAR_BIT for generic_clear_bit() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" nds2 bitops.h provides a __clear_bit() but does not define PLATFORM__CLEAR_BIT as a result generic_clear_bit() is used instead of the architecturally provided __clear_bit(). Hook the arch __clear_bit() now. Signed-off-by: Bryan O'Donoghue Cc: Macpaul Lin --- arch/nds32/include/asm/bitops.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/nds32/include/asm/bitops.h b/arch/nds32/include/asm/bitops.h index ecd0032664..f1cdcf3e65 100644 --- a/arch/nds32/include/asm/bitops.h +++ b/arch/nds32/include/asm/bitops.h @@ -61,6 +61,8 @@ static inline void __clear_bit(int nr, void *addr) local_irq_restore(flags); } +#define PLATFORM__CLEAR_BIT + extern void change_bit(int nr, void *addr); static inline void __change_bit(int nr, void *addr)