From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752558AbbJSByV (ORCPT ); Sun, 18 Oct 2015 21:54:21 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:35626 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752074AbbJSByU (ORCPT ); Sun, 18 Oct 2015 21:54:20 -0400 Date: Mon, 19 Oct 2015 09:54:16 +0800 From: Jiaxing Wang To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: Re: [PATCH 2/3] tracing: Make tracing work when debugfs is not compiled or initialized. Message-ID: <20151019015416.GA29218@cac> Mail-Followup-To: Steven Rostedt , linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org References: <1445169490-18315-1-git-send-email-hello.wjx@gmail.com> <1445169490-18315-3-git-send-email-hello.wjx@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1445169490-18315-3-git-send-email-hello.wjx@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry for the last patch, please use this to add stub for debugfs_create_automount(). >>From b3b877d8d9fd9795ea1055042039a272e47f4dc5 Mon Sep 17 00:00:00 2001 From: Jiaxing Wang Date: Mon, 19 Oct 2015 09:46:12 +0800 Subject: [PATCH] debugfs: Add stub function for debugfs_create_automount(). Add stub for debugfs_create_automount() for when debugfs is not configured in. Signed-off-by: Jiaxing Wang --- include/linux/debugfs.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index 9beb636..b42ef88 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h @@ -160,6 +160,14 @@ static inline struct dentry *debugfs_create_symlink(const char *name, return ERR_PTR(-ENODEV); } +static inline struct dentry *debugfs_create_automount(const char *name, + struct dentry *parent, + struct vfsmount *(*f)(void *), + void *data) +{ + return ERR_PTR(-ENODEV); +} + static inline void debugfs_remove(struct dentry *dentry) { } -- 2.1.4