Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3079434pxk; Mon, 7 Sep 2020 02:32:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvGu+1Az1zBkQdYPM8AxBmyrNOeTqldhho7rdeMvr8Ca0Y4RGiou09iJGayhcBG5AMBVDm X-Received: by 2002:a17:906:3791:: with SMTP id n17mr19779047ejc.216.1599471174404; Mon, 07 Sep 2020 02:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599471174; cv=none; d=google.com; s=arc-20160816; b=DgrAbw88bY/h+cLKz+oTmVNsCBuIOHXyaeLfEmZle4Xv+4NRGP2t7LG4ih4sRY3HPf rFX3OqdWJkKYXQ+oduS+7M+FXe2nZ5luporH/yaJjMYJGeWYnwyet5/GKFO+8Ny5KkVJ rIS9d73xG1WsVU+uBz1OvO6JBMiaxLpwtiUjtBnTzcWq2QcawHmsrhrAnLrL7Jzg1Zp3 zRIqga6hmSdweh14ASMGOclm58QTj1LXn/LGUUJP+9wu47rzAldSkNbkAJIll0SiqO1x z8+l5Mglq1fwFeumC9wrrVNyznsyck4v4dDgh1DFxK4ESJk4oDFCp1YGXQ46HzH1sSPG eh9g== 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=Y8RK9kkA02+kFHEwdPcIPnvyu/m+0tWCqOS44BtCxoc=; b=CWaQ1i/BcBZykAHkxt0QFIWVv30kJrhhXky8X4/RGWzvBLcKepgxzmdmHTtbgiZoRw OOc6GNyMsq3SFCIfv5UCdSJIP/fbloQVkwfHLxL96puPqsweqpmsIRo2HoagmulDB96j OYuZqjNoHji/+aOAw/s/h5lQzeF1fH+anB99rsX7/tJrxrZDIe5MAL8sa5kK5g0a7ee7 tbDxOS0XV33DFJR7RouPZo5qVzbAqhZmnaGPaOQ2LifXPOYTM+mzpylM5hY23IdeKa7J kQF6mCrae/kfgYTANGwFrjY49VqXjPudqajTzmlxZVWjSLJlOjTr+pivKgQy1UYe1YuM TlDA== 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 v26si9573354ejr.748.2020.09.07.02.32.31; Mon, 07 Sep 2020 02:32:54 -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 S1728233AbgIGJbm (ORCPT + 99 others); Mon, 7 Sep 2020 05:31:42 -0400 Received: from sym2.noone.org ([178.63.92.236]:34772 "EHLO sym2.noone.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728093AbgIGJbm (ORCPT ); Mon, 7 Sep 2020 05:31:42 -0400 Received: by sym2.noone.org (Postfix, from userid 1002) id 4BlNMc58xSzvjc1; Mon, 7 Sep 2020 11:31:40 +0200 (CEST) From: Tobias Klauser To: Andrew Morton Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Al Viro Subject: [PATCH] fs: adjust dirtytime_interval_handler definition to match prototype Date: Mon, 7 Sep 2020 11:31:40 +0200 Message-Id: <20200907093140.13434-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 definition of dirtytime_interval_handler to match its prototype in linux/writeback.h which fixes the following sparse error/warning: fs/fs-writeback.c:2189:50: warning: incorrect type in argument 3 (different address spaces) fs/fs-writeback.c:2189:50: expected void * fs/fs-writeback.c:2189:50: got void [noderef] __user *buffer fs/fs-writeback.c:2184:5: error: symbol 'dirtytime_interval_handler' redeclared with different type (incompatible argument 3 (different address spaces)): fs/fs-writeback.c:2184:5: int extern [addressable] [signed] [toplevel] dirtytime_interval_handler( ... ) fs/fs-writeback.c: note: in included file: ./include/linux/writeback.h:374:5: note: previously declared as: ./include/linux/writeback.h:374:5: int extern [addressable] [signed] [toplevel] dirtytime_interval_handler( ... ) Fixes: 32927393dc1c ("sysctl: pass kernel pointers to ->proc_handler") Cc: Christoph Hellwig Cc: Al Viro Signed-off-by: Tobias Klauser --- fs/fs-writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 149227160ff0..58b27e4070a3 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -2184,7 +2184,7 @@ static int __init start_dirtytime_writeback(void) __initcall(start_dirtytime_writeback); int dirtytime_interval_handler(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; -- 2.27.0