Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2871285pxa; Tue, 25 Aug 2020 05:49:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg0ecbtxmoDcFd5Oatwlz1kQx0rY9R+6oQyIAdO/ThbshjYiaSlLU2fTr7GDtOM5GUbD9V X-Received: by 2002:a17:906:fb85:: with SMTP id lr5mr10578533ejb.328.1598359788433; Tue, 25 Aug 2020 05:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598359788; cv=none; d=google.com; s=arc-20160816; b=xvont+6xpHVr7KIBgQy/TiYhkjtRNu5MbQWk1t3VheOEbpkHklCvP1LJtSGwhlqFxY 0NnTHscxNJkFFlPEVW7THtjeHNTksRIqcYXc4BdSAVt8Y98nWSXfn7huYxrlTa+P88P7 0kMUN6jJHl9ruDVm5bGUh9a7MBqwtljq2IOYMAheB26L8m6QKveAbNzRdVDjMiiF5USY UcAy3vUlgdH2tB/iD3RFY/BkCmldvJ4m4kwWozjnLAS7obVRXuncfByr1OKalMqcyaKc cc9OoTiyFnBgUp4KQ0KzfPnx6X573/j893apli+Ak/igSToG0PV2k/3aYDecGAPpayHQ fnxQ== 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=6uFbwtv8s6GXbRb+BgHWfA/rVdFAP+b2aoLXNX0c72g=; b=Yb43ksNI+UC+06PRrneQYvrfUCTY2DunJm90zIDnquRxg8prkT6dvRH4X1IdgNNCL4 C/Ngyjwho4YMxwd1H0eQhirP0DKgAya1XyT+x96EjGl2PaBDRNib/ZHKAZsmy7X5eMVo /prInhv4T3vx0kti/6FnlX7IOJoUC/iv7cX2HxvZtVZlX/1zB9boy/7jLYH1lDlb3xda duOhnQmXOg3DQy/X/MDgcb0mIkMHk63eC9Hixnn9RKGL6OymtBX4hHvZSQdcCrnISsCO eYuqfnljyscGLVNKGfDA2eaMuYX8BIUtTvBnZgsfkWb8e0HaF673Leb+YeMl31sngsR3 v/5Q== 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 l15si8451831edr.130.2020.08.25.05.49.13; Tue, 25 Aug 2020 05:49:48 -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 S1729837AbgHYKz2 (ORCPT + 99 others); Tue, 25 Aug 2020 06:55:28 -0400 Received: from sym2.noone.org ([178.63.92.236]:60798 "EHLO sym2.noone.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728117AbgHYKzZ (ORCPT ); Tue, 25 Aug 2020 06:55:25 -0400 Received: by sym2.noone.org (Postfix, from userid 1002) id 4BbQrB1Yc2zvjc1; Tue, 25 Aug 2020 12:55:21 +0200 (CEST) From: Tobias Klauser To: Alexander Viro Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig Subject: [PATCH] fs: adjust dirtytime_interval_handler definition to match prototype Date: Tue, 25 Aug 2020 12:55:21 +0200 Message-Id: <20200825105521.4563-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 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 a605c3dddabc..7a6e6155807c 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -2182,7 +2182,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