Message ID | 20180427150848.12075-4-pure.logic@nexus-software.ie |
---|---|
State | Superseded |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) 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="N3db+mHq"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40XcpC3XWBz9s1P for <incoming@patchwork.ozlabs.org>; Sat, 28 Apr 2018 01:11:15 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 09493C22105; Fri, 27 Apr 2018 15:09:49 +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_H2, 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 BCEB5C22176; Fri, 27 Apr 2018 15:09:09 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 64DA3C221F1; Fri, 27 Apr 2018 15:09:00 +0000 (UTC) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by lists.denx.de (Postfix) with ESMTPS id B91CAC221EF for <u-boot@lists.denx.de>; Fri, 27 Apr 2018 15:08:56 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id i3so3486081wmf.3 for <u-boot@lists.denx.de>; Fri, 27 Apr 2018 08:08:56 -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=6Hd0nffqWk/5svkmPiws1ASCJbQmBtn6O5QH6E5KKns=; b=N3db+mHqFEZXQTRYiVlzTwBb0x+bPqUYWqFIeAQ72Hf/if2Ldu3kIPo/8Ps92QuuiF I429BOn558KgIqj9I/jZ3iUHsguB9PKw5dJ4BLSTRHVhOd3A1t1qFA4zk3kHDu3+vUYH RVluYeBEGkVXtBlu0WqdXe7ky6OO7jBO2iuZD6p8n8RHD2zGV/fB/WpNuEiVHyYCNPXo 61ILGCGjHxogR/VuLsm4cSZ09jvS+leLkVhc1ER4pSGWHnCF1RbmsB8TSzsACdhiQc2e k2Tp4EE0hVyt2flBfFcCJIWOofczfWzU4miI8d978BFf2V1qXVBPKEgfDQhLt7k6/kWY Gg6A== 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=6Hd0nffqWk/5svkmPiws1ASCJbQmBtn6O5QH6E5KKns=; b=SSnmMvojVj7u/QutJbcNlupxZ7vErVkhNBlGhIVvQldLfFPEF+6cK/2RwjL5ea74xm RDNu8DQQBO83KX/BXrAuex16nikyD80d6qBFycfpmHBZriZq2q2Ejkdurg6KNwZoWI7f Tospy1cu6Ls5DhwR7iQjTZ/LwVqfcS/QARZtY1X0/2kn5+4XkJ1+f7pLLdRfDSfR8JER BZED3aU3RuQIRn18Gx4wfscPbJYnsGi16giDa2bK3DzvoGU7Y2MPMPIB6PmsG1pYI3EE o0MSEm0PbI8PcxWRcHvsjiDM3eBYp1YfYlfR33pQ/bNnacJLZLFovwhdc9We8HjIBKNB rM/w== X-Gm-Message-State: ALQs6tAbmvTx4ssgB5ySVoYW2wgP+Kaa4H1X/+A19ZkGZ1RbRV1vmd0Q kDTnxoOxm8MubsFZ8LwPv1dthf+k X-Google-Smtp-Source: AB8JxZrGlYW7rxyYJASsO1GUyWzgYMO/kBgSPs8pp/JzP6Zhbu6aFaxAl9uv5hiM6sdH8iUmZ+B4VA== X-Received: by 2002:a50:b654:: with SMTP id c20-v6mr3945288ede.190.1524841736141; Fri, 27 Apr 2018 08:08:56 -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.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Apr 2018 08:08:55 -0700 (PDT) From: Bryan O'Donoghue <pure.logic@nexus-software.ie> To: u-boot@lists.denx.de Date: Fri, 27 Apr 2018 16:08:42 +0100 Message-Id: <20180427150848.12075-4-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: Greentime Hu <green.hu@gmail.com> Subject: [U-Boot] [PATCH 3/9] riscv: : 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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
Fixup set_bit/clear_bit definition and usage
|
expand
|
diff --git a/arch/riscv/include/asm/bitops.h b/arch/riscv/include/asm/bitops.h index 0149e5c696..536629bbec 100644 --- a/arch/riscv/include/asm/bitops.h +++ b/arch/riscv/include/asm/bitops.h @@ -54,6 +54,8 @@ static inline void __clear_bit(int nr, void *addr) *a &= ~mask; } +#define PLATFORM__CLEAR_BIT + static inline void __change_bit(int nr, void *addr) { int mask;
riscv 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 <pure.logic@nexus-software.ie> Cc: Rick Chen <rick@andestech.com> Cc: Greentime Hu <green.hu@gmail.com> --- arch/riscv/include/asm/bitops.h | 2 ++ 1 file changed, 2 insertions(+)