From patchwork Wed Jul 11 13:56:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 141740 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp321109ljj; Wed, 11 Jul 2018 06:57:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcca4Hk0yhQEQwNBb3TF9Bh8FDfl1Vi+VkdoO4mnGS0CEf5mMg4X1ByHClGFesGVbNUWnFW X-Received: by 2002:a17:902:bf43:: with SMTP id u3-v6mr28740942pls.322.1531317438140; Wed, 11 Jul 2018 06:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531317438; cv=none; d=google.com; s=arc-20160816; b=P1UfmYj6IGihUfSL7vD4OIq14YKmIiBMqebdVM8x0VSbgf7d467M3tii5XrMfYk4Ll EixU+Kjyj+6MhR+gN+x/KJ86I2xvogp2leBXZGEN9jFXW8EUL6/wdZtWqX7yb4hiYpkB VVg5kdnrYD4q5AkhUH/kxIN+m/CqqpMobija+XOQFXIIPGozgDchtEAsdOmGfNjRv4qV 1dgrcB6B4aJF6F0fYg5ii0CS0lx5/NhZ7flBtPsoa8EOjqCVbfjF52ZfsdWx+2w+GCwG oA2W7KTKb9y6x9O/956dMhxNmkAKPVsQI3jpxx3dp+4Vhq5KfFFmcPZTlnallta3IdAP Qz4Q== 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=Y7XKzDQ0vFh1cwMZiAkFJVjdlBTry6n8VpmHxR3PUL0=; b=dr1jvBSpqSBPlfWwot1IL0yG5kCOT3o5ad5i2c0xfiL1tMaju+B9jczkppqk49w5HD 0WHsCXwk22erG9lWy0y8UTiAgLtniozd2SIP9CG89a92alB2NP2k+8MBCoIRJVdtKjnj +OrYlrsRNY+0EdrBY8Q+NrG9M1BnmWC7DZjKhwHH3nxFoQDorIbLqn3Xh7pqn7PdySxY ro780hStWF5485UbHaxLCiiYPnMiwBevAwyX/gocjkqpnd/HGxVYFaVcpeAH96yp4WK5 U8Uon5NrtNG/3yRrU9RCX7fPUSV7APqlckj5+ZwWckGTZ2dmrQf9ITogWq3jCTd4ApI6 Er2g== 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 17-v6si13699846pgp.289.2018.07.11.06.57.17; Wed, 11 Jul 2018 06:57:18 -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 S2388360AbeGKOBn (ORCPT + 23 others); Wed, 11 Jul 2018 10:01:43 -0400 Received: from foss.arm.com ([217.140.101.70]:36308 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388100AbeGKOBm (ORCPT ); Wed, 11 Jul 2018 10:01:42 -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 539E815AD; Wed, 11 Jul 2018 06:57:14 -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 3A22A3F5B1; Wed, 11 Jul 2018 06:57:12 -0700 (PDT) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, will.deacon@arm.com Cc: catalin.marinas@arm.com, dave.martin@arm.com, hch@infradead.org, 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 Subject: [PATCHv5 01/21] arm64: consistently use unsigned long for thread flags Date: Wed, 11 Jul 2018 14:56:36 +0100 Message-Id: <20180711135656.20670-2-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180711135656.20670-1-mark.rutland@arm.com> References: <20180711135656.20670-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 Reviewed-by: Dave Martin Acked-by: Catalin Marinas Cc: Will Deacon --- arch/arm64/kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c index 511af13e8d8f..70287634706e 100644 --- a/arch/arm64/kernel/signal.c +++ b/arch/arm64/kernel/signal.c @@ -910,7 +910,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