Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2672599imu; Thu, 29 Nov 2018 08:30:36 -0800 (PST) X-Google-Smtp-Source: AFSGD/V+0mrZe0hsN4Tdn18uLZ0AdWKJk5TJjGOJtDBE66F16pFatt3/OF6jX8/hsvnXyH7lyzLS X-Received: by 2002:a65:49cd:: with SMTP id t13mr1809547pgs.376.1543509036333; Thu, 29 Nov 2018 08:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543509036; cv=none; d=google.com; s=arc-20160816; b=oaKZ6QhWhfTAwIO2bT7hhQo6RZBm8gOFO1XgNmDjPogJN327E2eg/C01b5vR6C8uiZ qXw8cRc86/A/5W8AatObS4fFiAF3O5I0DH/aNYA8O2A8/YV/XKcm6mOwUQIs3QztEE18 Eo8cm7TYkBKVKslloJ8QRl2udMZ4Ro+TfYv0oszqVnQMaBfWAohtapSOXxFo1xxtNFCi tKnyIx67GfWwhVUQLUcuvZ9jGqWl8EN8p9KClE2xWaxXzXXVhGv4oKWdk1JI50C/u+3d pdv2KvI2Yrf2ArDjCAq4I7nIfyZw3dD81I8Ef85mVWYDCdq+A5r3qZg0MUY14Qucl5wk Iy8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NF6dr7TMzhfPB/wVZ+dVGHFqDtBTjjkksKbEr9Gl64k=; b=HPe2dODnCduQe7DoId1QNSmHMihPkcOzWs9YWHrR2Wx+paY9pV4+lQdRHaOlFcjPCh iLATNK6wQTFHxA9XK4w//RwjDJ1cFh+dCZ1yTvjQ9KNBG1IclwvcSe0ezaE1umvF3jTt UR2hANJinJO2aFoaWVaBh95BhO/jOm9xVMtBNSGFV+IJzv4NWtN4JLKdwGvQCTw4XIzK aGwT8S1xAJP/189WcnHLd7sTpKnrsEA0PMvq0FibWLZBYxDeVLvVe21j1oA/SfeY6GVW w+KXqFWQohK7nsq2QIUiMMemZ80XVlW5n7n+IxDHQfM5XjQYouMux7BIWlhu0he/VBw/ QLdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si2662787plc.332.2018.11.29.08.29.57; Thu, 29 Nov 2018 08:30:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729176AbeK3Dci (ORCPT + 99 others); Thu, 29 Nov 2018 22:32:38 -0500 Received: from foss.arm.com ([217.140.101.70]:38562 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729121AbeK3Dci (ORCPT ); Thu, 29 Nov 2018 22:32:38 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 845EAA78; Thu, 29 Nov 2018 08:26:43 -0800 (PST) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B7A953F59C; Thu, 29 Nov 2018 08:26:41 -0800 (PST) Date: Thu, 29 Nov 2018 16:26:39 +0000 From: Mark Rutland To: Julien Thierry Cc: linux-arm-kernel@lists.infradead.org, daniel.thompson@linaro.org, marc.zyngier@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, christoffer.dall@arm.com, james.morse@arm.com, joel@joelfernandes.org Subject: Re: [PATCH v6 01/24] arm64: Remove unused daif related functions/macros Message-ID: <20181129162638.gth6epspauks3a4i@lakrids.cambridge.arm.com> References: <1542023835-21446-1-git-send-email-julien.thierry@arm.com> <1542023835-21446-2-git-send-email-julien.thierry@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1542023835-21446-2-git-send-email-julien.thierry@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 12, 2018 at 11:56:52AM +0000, Julien Thierry wrote: > There are some helpers to modify PSR.[DAIF] bits that are not referenced > anywhere. The less these bits are available outside of local_irq_* > functions the better. > > Get rid of those unused helpers. > > Signed-off-by: Julien Thierry > Cc: Catalin Marinas > Cc: Will Deacon > Cc: James Morse Reviewed-by: Mark Rutland Mark. > --- > arch/arm64/include/asm/assembler.h | 10 +--------- > arch/arm64/include/asm/daifflags.h | 10 ---------- > 2 files changed, 1 insertion(+), 19 deletions(-) > > diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h > index 6142402..6e76c8e 100644 > --- a/arch/arm64/include/asm/assembler.h > +++ b/arch/arm64/include/asm/assembler.h > @@ -60,16 +60,8 @@ > .endm > > /* > - * Enable and disable interrupts. > + * Save/restore interrupts. > */ > - .macro disable_irq > - msr daifset, #2 > - .endm > - > - .macro enable_irq > - msr daifclr, #2 > - .endm > - > .macro save_and_disable_irq, flags > mrs \flags, daif > msr daifset, #2 > diff --git a/arch/arm64/include/asm/daifflags.h b/arch/arm64/include/asm/daifflags.h > index 8d91f22..546bc39 100644 > --- a/arch/arm64/include/asm/daifflags.h > +++ b/arch/arm64/include/asm/daifflags.h > @@ -43,16 +43,6 @@ static inline unsigned long local_daif_save(void) > return flags; > } > > -static inline void local_daif_unmask(void) > -{ > - trace_hardirqs_on(); > - asm volatile( > - "msr daifclr, #0xf // local_daif_unmask" > - : > - : > - : "memory"); > -} > - > static inline void local_daif_restore(unsigned long flags) > { > if (!arch_irqs_disabled_flags(flags)) > -- > 1.9.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel