From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753140AbdK0Ufv (ORCPT ); Mon, 27 Nov 2017 15:35:51 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:33413 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752609AbdK0Ufu (ORCPT ); Mon, 27 Nov 2017 15:35:50 -0500 X-Google-Smtp-Source: AGs4zMbhtUug9vsyPkCnnVegaWMGMnm0/TGtrL+2ZMJ0zoMcFWdp6+mZP2PW2W0RVS7SMhUdtlVKVQ== From: Jakub Kicinski To: Greg Kroah-Hartman , Nicolai Stange Cc: linux-kernel@vger.kernel.org, oss-drivers@netronome.com, Jakub Kicinski Subject: [PATCH v2] debugfs: add definition of debugfs_real_fops() if CONFIG_DEBUG_FS unset Date: Mon, 27 Nov 2017 12:35:44 -0800 Message-Id: <20171127203544.7708-1-jakub.kicinski@netronome.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Recent commit moved the implementation of debugfs_real_fops() out of the header file. The declaration, however, is only provided if CONFIG_DEBUG_FS is set. Add an empty static inline definition for when CONFIG_DEBUG_FS is unset. Fixes: 7c8d469877b1 ("debugfs: add support for more elaborate ->d_fsdata") Signed-off-by: Jakub Kicinski --- include/linux/debugfs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index f36ecc2a5712..95ebbdce4193 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h @@ -216,6 +216,11 @@ static inline void debugfs_remove(struct dentry *dentry) static inline void debugfs_remove_recursive(struct dentry *dentry) { } +static inline const struct file_operations *debugfs_real_fops(const struct file *filp) +{ + return NULL; +} + static inline int debugfs_file_get(struct dentry *dentry) { return 0; -- 2.14.1