From patchwork Mon May 14 09:46:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 135702 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1531174lji; Mon, 14 May 2018 02:47:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqmtTiLaeqqx2TdvsYNgytuywyr3k17/LLHqPQE8WAYKrse1EZfy30Ont+IVZmtFaWaphnr X-Received: by 2002:a63:63c5:: with SMTP id x188-v6mr7625995pgb.302.1526291227301; Mon, 14 May 2018 02:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526291227; cv=none; d=google.com; s=arc-20160816; b=AN5y8Jy5ppaE/poTyFlLnmw5xijd50u0SPgnrs+FKDEQMr+fSLhCYADvUYgebDgm8n S3hYoqirIegi9wUgo7uG5t7corA0lnDcBM5TyOy4qsdQQt4DWS4ciSdv/ZmKadHHpOa8 I8ejPQEMOZlRjLzZsH/6/demkDfa9ek1zwOTopEDU+Zu9fw5Ev6wfHA3DC/4mh4X7cIq idcr2+Z7m8FIak6qcF9mz0jiwSy7RpKLjxoQrSBE3bpFcBeljLv5PvydSABLrGfSbhBs vzjL+qqLE9H1iC8vRGnY2FAq4f4tyQ4XsBEQ450b6a4FK48PgtVtRto6/BSMUdtlLjsr NXSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=YYF9jMCAkVuL6dk/nVVwbR6X2N/SqfZb6VgRkE5GRgo=; b=Fn71y4pbCowu5bOSDOcP0OjCyENH7l5PTMT/9bKKCfGnEWLl8NRPfEn6HwgSLL3u5X dPrfvrlaKtMufgxY68XQglSwOZfakSfKEu8f2zXDehJMqOA2E6rfUczVDaq1NnOHL77S FdpC7++EmfoTOMPGR3DFY+2e7JLI3T+R99vvhrizSbFNM4WTn0GfoyKysnQ8G6J2fmI1 GFVDZBX+dmqyTrYrClB5IfwfHQQzcAMy1Ob3Y+dORXn116I3ONqGxcrmx+5kxJr9cuFS D80Gc8+fOEXfi+7NvJTaJuQUz3yxIIU3S0gh2ipxb9nrroMvzy0uDn34IDb9QeD+2fyA Y67w== 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 ba9-v6si9346936plb.110.2018.05.14.02.47.06; Mon, 14 May 2018 02:47:07 -0700 (PDT) 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 S1752178AbeENJrF (ORCPT + 29 others); Mon, 14 May 2018 05:47:05 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:38186 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752021AbeENJrC (ORCPT ); Mon, 14 May 2018 05:47:02 -0400 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 20D7915AB; Mon, 14 May 2018 02:47:02 -0700 (PDT) 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 ESMTPA id 2AF973F25D; Mon, 14 May 2018 02:47:00 -0700 (PDT) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, catalin.marinas@arm.com, dave.martin@arm.com, james.morse@arm.com, linux@dominikbrodowski.net, linux-fsdevel@vger.kernel.org, marc.zyngier@arm.com, mark.rutland@arm.com, viro@zeniv.linux.org.uk, will.deacon@arm.com Subject: [PATCH 01/18] arm64: consistently use unsigned long for thread flags Date: Mon, 14 May 2018 10:46:23 +0100 Message-Id: <20180514094640.27569-2-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180514094640.27569-1-mark.rutland@arm.com> References: <20180514094640.27569-1-mark.rutland@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In do_notify_resume, we manipulate thread_flags as a 32-bit unsigned int, whereas thread_info::flags is a 64-bit unsigned long, and elsewhere (e.g. in the entry assembly) we manipulate the flags as a 64-bit quantity. For consistency, and to avoid problems if we end up with more than 32 flags, let's make do_notify_resume take the flags as a 64-bit unsigned long. Signed-off-by: Mark Rutland Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 Reviewed-by: Dave Martin diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c index 154b7d30145d..8e624fec4707 100644 --- a/arch/arm64/kernel/signal.c +++ b/arch/arm64/kernel/signal.c @@ -896,7 +896,7 @@ static void do_signal(struct pt_regs *regs) } asmlinkage void do_notify_resume(struct pt_regs *regs, - unsigned int thread_flags) + unsigned long thread_flags) { /* * The assembly code enters us with IRQs off, but it hasn't