Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp492413ybc; Fri, 22 Nov 2019 08:22:04 -0800 (PST) X-Google-Smtp-Source: APXvYqy1rwLwxDlnQLedve0beOvhA+QNDq7mZPGF1WSrvYklqxp2yLmcePH1wsQAVi5+H0GKFUwt X-Received: by 2002:a05:6402:168b:: with SMTP id a11mr2078667edv.107.1574439724193; Fri, 22 Nov 2019 08:22:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574439724; cv=none; d=google.com; s=arc-20160816; b=mc0BIMbFc+enreKSxaLLdKCEYAPovL5rh0omU6LT+RqGbOtQbHR8rZ8+Mnu2tOIj7G j2ZdthqBb1A27Zsr1m6bTvgv0bav6RfeyEB4XPHwd6LSeyN/YUpX5xvleoqaLki8a0Qs JN65BR1l97PS3L6HsTr/4XY4PHh9kykpXyo6vCST9sdx76ZNGSamd3FD6YPOCpIfZ+Km ejfE4udB9SYrsARRur1miwEgCEQIftr8wFpQEy6c/1DUNJ1vEClPvjVq4goybgCy/vtn nvEJVI/wJS0c1IrNWG/nV9oV9dpTY2O4q9myzttYI06vq8dwKMu6llxyG7BQ/y+K4U0y syyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vCwtaxPzv/uIcITb9awW5x/x5ucpQ18KAJpJZbWnnn4=; b=n/sH8NUAD3Ux6UuFrq8ACjLKcg14Sf/bdkDhwzbCHu5HYAFgK1UmIccXJVHraOhB+w VHzsUTADOt/2fBwxbXzu41dZGErjgPypscc0Pfr4KrgAeBYI+W86K0Lb/TVHVxqzhcdZ 95qfi56WB6wT3Gf4kNvl3cMnukNj6Ij54u3/sPxBCIPKuh1cB1sMkjvVD7WDUtsmLk10 g6ClveFpFvJCa6tJtjVFWH43BQ+mZX1Ecohy9y3sTsFTVlTDkSnIg866mQwaYsxdX3Ce 8Jc38mcFNCq/yBClgEaYRYyQvGKq/l+NXs2E2EaCBE/7z57vUcK2BIpPMGI9KncwjimL i8Kw== 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 ce11si5531791edb.391.2019.11.22.08.21.41; Fri, 22 Nov 2019 08:22:04 -0800 (PST) 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 S1727409AbfKVQUf (ORCPT + 99 others); Fri, 22 Nov 2019 11:20:35 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:46602 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726666AbfKVQUf (ORCPT ); Fri, 22 Nov 2019 11:20:35 -0500 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1iYBfV-0008SH-BH; Fri, 22 Nov 2019 16:20:25 +0000 Date: Fri, 22 Nov 2019 16:20:25 +0000 From: Al Viro To: Kusanagi Kouichi Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Steven Rostedt , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH] debugfs: Fix !DEBUG_FS debugfs_create_automount Message-ID: <20191122162025.GC26530@ZenIV.linux.org.uk> References: <20191121102021787.MLMY.25002.ppp.dion.ne.jp@dmta0003.auone-net.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191121102021787.MLMY.25002.ppp.dion.ne.jp@dmta0003.auone-net.jp> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 21, 2019 at 07:20:21PM +0900, Kusanagi Kouichi wrote: > If DEBUG_FS=n, compile fails with the following error: > > kernel/trace/trace.c: In function 'tracing_init_dentry': > kernel/trace/trace.c:8658:9: error: passing argument 3 of 'debugfs_create_automount' from incompatible pointer type [-Werror=incompatible-pointer-types] > 8658 | trace_automount, NULL); > | ^~~~~~~~~~~~~~~ > | | > | struct vfsmount * (*)(struct dentry *, void *) > In file included from kernel/trace/trace.c:24: > ./include/linux/debugfs.h:206:25: note: expected 'struct vfsmount * (*)(void *)' but argument is of type 'struct vfsmount * (*)(struct dentry *, void *)' > 206 | struct vfsmount *(*f)(void *), > | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ACK. I'd probably add something along the lines of "the stub for debugfs_create_automount() used in !DEBUG_FS configs is misdeclared - its callback argument (unused by the stub) has the wrong type. Get the stub in sync with the real debugfs_create_automount()." to commit message.