Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2806225pxa; Tue, 25 Aug 2020 04:00:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhyTcVHMSGS4aGFw7P305uyDlkRIt1C5kiZO41jjDNqEPO+BI5pg5Yc8MNghOJhaE2hSU5 X-Received: by 2002:aa7:ce96:: with SMTP id y22mr6897453edv.180.1598353243881; Tue, 25 Aug 2020 04:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598353243; cv=none; d=google.com; s=arc-20160816; b=Kj5lgrFws0I9s2Lcdcc0dS/vZg5Ocgv1SXYOLRHFqhqiCUWqIeg43EFGW1ADjRfVPI nsk9qP4YY5Dn6U254pCX3wCb0zMC3BL6oBAyOdVut0lcs+jZzLNLcak/L7nQO1Vpl1Hr UgLQpYgbe27DBDh0PGzLdhZOSKvFDqa/gbBHkDCOL/aB9jgdGPKQCfZZ0gXAQt0G5UEK prxOkSR3Jpkh7lSeo2OtUIamPjhsRmipT8fNvERVqdasMTzfiKO+lwNPiZlaqZv4CjwR RGRXBOvjBCLx3VZsA1EzHRWBgpyJbZHrrvv0rXO8oQ/APwAKYiB22IOv2rK85e6qzj9f L6Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=X6feCVMUo4qFfzBvjSEVFoCR3aAY632qPYskFcTSVMQ=; b=NPvEZ1KGek2obO2kWf8p/eoz9VBRRq/ITySXrKjWKGOnx97WPRZ7NtiKXybFw0kxVr W5rrYrSG1XrEFde0CU7f5CfY088vHlmR12sdgZ5GNk382xVao8TstYp0+ay+Qt8wTdIc jcfucjtC6FSbL/syey3L5/VvTlzadwb6+HoaRyhaMYunmJf8zYyYvIvvVrtA3uUUei1k k38+sAVqSfkWnwfZQKUIUkcHXRx/Zf2CKzZrtTUDJhW1HbSLYigmxNtRsFmnIFuMq77/ pKRSegHTwuEgNaWDkHDqs4zUXn9DpGIgfCGNPa0wMIFztJH/TPhyCoFgLGHg7JdQds6V cItg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z13si8294419edp.430.2020.08.25.04.00.17; Tue, 25 Aug 2020 04:00:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729869AbgHYK6s (ORCPT + 99 others); Tue, 25 Aug 2020 06:58:48 -0400 Received: from sym2.noone.org ([178.63.92.236]:33364 "EHLO sym2.noone.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbgHYK6s (ORCPT ); Tue, 25 Aug 2020 06:58:48 -0400 Received: by sym2.noone.org (Postfix, from userid 1002) id 4BbQw63TxPzvjcX; Tue, 25 Aug 2020 12:58:46 +0200 (CEST) From: Tobias Klauser To: Andrew Morton Cc: Alexander Viro , linux-kernel@vger.kernel.org, Christoph Hellwig Subject: [PATCH] ipc: adjust proc_ipc_sem_dointvec definition to match prototype Date: Tue, 25 Aug 2020 12:58:46 +0200 Message-Id: <20200825105846.5193-1-tklauser@distanz.ch> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 32927393dc1c ("sysctl: pass kernel pointers to ->proc_handler") changed ctl_table.proc_handler to take a kernel pointer. Adjust the signature of proc_ipc_sem_dointvec to match ctl_table.proc_handler which fixes the following sparse error/warning: ipc/ipc_sysctl.c:94:47: warning: incorrect type in argument 3 (different address spaces) ipc/ipc_sysctl.c:94:47: expected void *buffer ipc/ipc_sysctl.c:94:47: got void [noderef] __user *buffer ipc/ipc_sysctl.c:194:35: warning: incorrect type in initializer (incompatible argument 3 (different address spaces)) ipc/ipc_sysctl.c:194:35: expected int ( [usertype] *proc_handler )( ... ) ipc/ipc_sysctl.c:194:35: got int ( * )( ... ) Fixes: 32927393dc1c ("sysctl: pass kernel pointers to ->proc_handler") Cc: Christoph Hellwig Signed-off-by: Tobias Klauser --- ipc/ipc_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipc/ipc_sysctl.c b/ipc/ipc_sysctl.c index d1b8644bfb88..3f312bf2b116 100644 --- a/ipc/ipc_sysctl.c +++ b/ipc/ipc_sysctl.c @@ -85,7 +85,7 @@ static int proc_ipc_auto_msgmni(struct ctl_table *table, int write, } static int proc_ipc_sem_dointvec(struct ctl_table *table, int write, - void __user *buffer, size_t *lenp, loff_t *ppos) + void *buffer, size_t *lenp, loff_t *ppos) { int ret, semmni; struct ipc_namespace *ns = current->nsproxy->ipc_ns; -- 2.27.0