From patchwork Mon May 14 17:14:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Martin X-Patchwork-Id: 135746 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2049773lji; Mon, 14 May 2018 10:15:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrrYkJBncMWgUGvigcV5hGMrmAOBjqEYXqp6OKTrUfBgOkAk0lhfLRpYibIclNL8xhux0yS X-Received: by 2002:a62:1f03:: with SMTP id f3-v6mr11431225pff.213.1526318142837; Mon, 14 May 2018 10:15:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526318142; cv=none; d=google.com; s=arc-20160816; b=HhNCbTFs9BIbiSLrlclACriI/ukMh4kf7CppIEd0w9Qp88E5JSxsaPWyEt1owXDIKG pIkvQKe2wMEMki0CpTLtbvSrRRhhDgcnXPpubRrx9b2R5kBz0lSq/sJ8ZyAV3NpY1u/Y EQ4V2SiccR+T0srGx9SNnnm7SjboYJRv70uZxpK16gZZ8E+Ijvj+vtd5ZyVnKaZtphJF Jr12g/3BwlOqUHDAIfRlbFauYZu827C5MwUNgIgF/5aWLXwBpYqXgCpPe1czksBcjlN2 cZCsoAuKahS92nQDGHrklePDdWyUDgOxoFRR4ThREw8ToKNySmIA/XFsZrdGEg/qTQHu MsKA== 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=KbNJaEQfFOc7ZgCLqtubU4MX3auzLPAFZgWrCo2576g=; b=TWvM7XV5/E/Sqfnn3PKqqSXvGB18edAR63n/sN4sZXcSzHSYljZ+a8/HvYMx1YhW8h sJYlH4UY3vHB1W1SOCFZrSAkktKS8T5W8VXDpCDZO49o82rdsiW3L048m4JK395tX0ow jt2Uv+2xlU3pU9IOcYqXOBHv0P4I2OGgw7hRjIp2G80EOF7o8PdTIpDs+99CS9pqs1P4 EBAzoAUK6C0oTNKTxH3xk62nkEROFgY9XsS2UQumjvW4qJKs7HyQdOU3pyTJk5Lb2j0r Wvi4X3WT3ZrPjwJT4T0p7b64zKZGQUKgik+bDVMcwMnsE0NnugMKYqxv29eGjmqteLYF UUPQ== 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 w17-v6si10028329plq.115.2018.05.14.10.15.42; Mon, 14 May 2018 10:15:42 -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 S1754183AbeENRPh (ORCPT + 29 others); Mon, 14 May 2018 13:15:37 -0400 Received: from foss.arm.com ([217.140.101.70]:47000 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754143AbeENRPd (ORCPT ); Mon, 14 May 2018 13:15:33 -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 460A61713; Mon, 14 May 2018 10:15:33 -0700 (PDT) Received: from e103592.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 7F0F43F59F; Mon, 14 May 2018 10:15:32 -0700 (PDT) From: Dave Martin To: linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org, Tony Luck , Fenghua Yu Subject: [RFC PATCH 08/11] ia64: Remove unused task argument from prctl functions Date: Mon, 14 May 2018 18:14:24 +0100 Message-Id: <1526318067-4964-9-git-send-email-Dave.Martin@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1526318067-4964-1-git-send-email-Dave.Martin@arm.com> References: <1526318067-4964-1-git-send-email-Dave.Martin@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some ia64-specific prctl backends take a task argument that is redundant, since the only thing ever passed is "current". This patch gets rid of the redundant arguments. No functional change. Signed-off-by: Dave Martin Cc: Tony Luck Cc: Fenghua Yu --- arch/ia64/include/asm/processor.h | 8 ++++---- kernel/sys.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) -- 2.1.4 diff --git a/arch/ia64/include/asm/processor.h b/arch/ia64/include/asm/processor.h index 10061ccf..0489b80 100644 --- a/arch/ia64/include/asm/processor.h +++ b/arch/ia64/include/asm/processor.h @@ -259,15 +259,15 @@ typedef struct { (int __user *) (addr)); \ }) -#define SET_FPEMU_CTL(task,value) \ +#define SET_FPEMU_CTL(value) \ ({ \ - (task)->thread.flags = (((task)->thread.flags & ~IA64_THREAD_FPEMU_MASK) \ + current->thread.flags = ((current->thread.flags & ~IA64_THREAD_FPEMU_MASK) \ | (((value) << IA64_THREAD_FPEMU_SHIFT) & IA64_THREAD_FPEMU_MASK)); \ 0; \ }) -#define GET_FPEMU_CTL(task,addr) \ +#define GET_FPEMU_CTL(addr) \ ({ \ - put_user(((task)->thread.flags & IA64_THREAD_FPEMU_MASK) >> IA64_THREAD_FPEMU_SHIFT, \ + put_user((current->thread.flags & IA64_THREAD_FPEMU_MASK) >> IA64_THREAD_FPEMU_SHIFT, \ (int __user *) (addr)); \ }) diff --git a/kernel/sys.c b/kernel/sys.c index b154561..5549505 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -78,10 +78,10 @@ # define GET_UNALIGN_CTL(a, b) (-EINVAL) #endif #ifndef SET_FPEMU_CTL -# define SET_FPEMU_CTL(a, b) (-EINVAL) +# define SET_FPEMU_CTL(a) (-EINVAL) #endif #ifndef GET_FPEMU_CTL -# define GET_FPEMU_CTL(a, b) (-EINVAL) +# define GET_FPEMU_CTL(a) (-EINVAL) #endif /* @@ -2247,10 +2247,10 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3, error = GET_UNALIGN_CTL(me, arg2); break; case PR_SET_FPEMU: - error = SET_FPEMU_CTL(me, arg2); + error = SET_FPEMU_CTL(arg2); break; case PR_GET_FPEMU: - error = GET_FPEMU_CTL(me, arg2); + error = GET_FPEMU_CTL(arg2); break; case PR_GET_TIMING: error = PR_TIMING_STATISTICAL;