From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753616AbbKBOQm (ORCPT ); Mon, 2 Nov 2015 09:16:42 -0500 Received: from smtprelay0105.hostedemail.com ([216.40.44.105]:42628 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753478AbbKBOQl (ORCPT ); Mon, 2 Nov 2015 09:16:41 -0500 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::,RULES_HIT:41:355:379:541:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3870:3871:3873:3874:4321:4362:5007:6261:7514:7576:7875:9545:9707:10004:10400:10848:10967:11026:11232:11658:11914:12043:12438:12517:12519:12555:12740:13069:13255:13311:13357:14096:14097:21080:30029:30034:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:3,LUA_SUMMARY:none X-HE-Tag: iron44_743152e02aa3a X-Filterd-Recvd-Size: 2264 Date: Mon, 2 Nov 2015 09:16:37 -0500 From: Steven Rostedt To: Jiaxing Wang 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: <20151102091637.0fcc05b2@gandalf.local.home> In-Reply-To: <20151019015416.GA29218@cac> References: <1445169490-18315-1-git-send-email-hello.wjx@gmail.com> <1445169490-18315-3-git-send-email-hello.wjx@gmail.com> <20151019015416.GA29218@cac> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Oct 2015 09:54:16 +0800 Jiaxing Wang wrote: > Sorry for the last patch, please use this to add stub for > debugfs_create_automount(). Can you fold this into patch number two and resubmit that patch. Thanks, -- Steve > > >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) > { } >