From patchwork Mon Jul 2 11:04:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 140736 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3856821ljj; Mon, 2 Jul 2018 04:07:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeFbjdRboUeLSRajsr1rdXYZE2WQh2GB1QuwH46lkSY8ST2Y+X21/WiwAUiTw8I3TNxCdaE X-Received: by 2002:a62:858c:: with SMTP id m12-v6mr361582pfk.173.1530529621728; Mon, 02 Jul 2018 04:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530529621; cv=none; d=google.com; s=arc-20160816; b=ru97CZnMYihcg4fdPOXZFRYiB1ocnMKc/ZRN2wCgv1ciTcclUakzp6LmVOCD4XEwQV 4Vo9V5IpHNu/bqRERFC1sJipYeYrm6IK+lsANKq/nZ3vpnTDdj8HG3APfaZWKHItIaF5 +lmvq5fQo3XMfiBHEnTFE9KtYMrym8JabgB92euI+viEd9prPX6uPk/khFZbGks661iv bOyBhHgK9DVWPKXwkkm105gq81eTTwGW94+KEPQWfuSfpC3TtOsRi6ioR3Jl2C/1jbZv //QpiN0senFju0nC8nFMgaP5HIL+mAlXiEVbd5Sc5sZW3X/M6nwDF4GSJ4p6Tv8BDrhR wyFQ== 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=Q9Av5dEuw8v8Rup5pOqBRzZBd0A2r1YI7em15Gfj4gs=; b=TM0lE76Ult+DHNTeoPYp9LiweNxY1kbeEqOiKYnjL4IfaMv1NiF3pDA7VFcR5fYBhf kEtZIHKF7BB03fndvbJqI5kqQm+rsE0mJ0LoVBQ1aWtGYsVTvXyxrE8EtFSqR0WdYjTL ati4EUZnZzggXavBAPpyG+IGWKcYvFOD+4dOEvCYgb7MF80hiP+AXhTq957B+BPQp2ua bJBP/rALvcOJ01iViHy5fUcdTVVVAgvP4biwSBgUm2dqiBVRqD2Zij/REP/qkLqrx5bO bjnkYS6kfvq9xUCkKu90/aD+35mCjqVEW1HTLuRZVwa17PeZyAyKFLhmp0XPcZDOofX+ 52ww== 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 n68-v6si14165152pga.662.2018.07.02.04.07.01; Mon, 02 Jul 2018 04:07:01 -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 S965510AbeGBLHA (ORCPT + 31 others); Mon, 2 Jul 2018 07:07:00 -0400 Received: from foss.arm.com ([217.140.101.70]:57618 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030441AbeGBLFF (ORCPT ); Mon, 2 Jul 2018 07:05:05 -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 5D4BB1AC1; Mon, 2 Jul 2018 04:05:05 -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 437D13F5BA; Mon, 2 Jul 2018 04:05:03 -0700 (PDT) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org, will.deacon@arm.com Cc: linux-kernel@vger.kernel.org, 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: [PATCHv4 15/19] arm64: remove in-kernel call to sys_personality() Date: Mon, 2 Jul 2018 12:04:11 +0100 Message-Id: <20180702110415.10465-16-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180702110415.10465-1-mark.rutland@arm.com> References: <20180702110415.10465-1-mark.rutland@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With pt_regs syscall wrappers, the calling convention for sys_personality() will change. Use ksys_personality(), which is functionally equivalent. Signed-off-by: Mark Rutland Acked-by: Catalin Marinas Cc: Will Deacon --- arch/arm64/kernel/sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 diff --git a/arch/arm64/kernel/sys.c b/arch/arm64/kernel/sys.c index 31045f3fed92..a82c3f7a9a90 100644 --- a/arch/arm64/kernel/sys.c +++ b/arch/arm64/kernel/sys.c @@ -42,7 +42,7 @@ SYSCALL_DEFINE1(arm64_personality, unsigned int, personality) if (personality(personality) == PER_LINUX32 && !system_supports_32bit_el0()) return -EINVAL; - return sys_personality(personality); + return ksys_personality(personality); } /*