Received: by 10.223.164.202 with SMTP id h10csp2034857wrb; Mon, 27 Nov 2017 10:52:56 -0800 (PST) X-Google-Smtp-Source: AGs4zMbl1EHIKEN+PKQjj64WX4S8JFs0JQNCAaXfVRofrda3hn9tSGcu4+Wo40n8Xo0rn4iJxYrB X-Received: by 10.159.233.131 with SMTP id bh3mr38578692plb.97.1511808776670; Mon, 27 Nov 2017 10:52:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511808776; cv=none; d=google.com; s=arc-20160816; b=Rbr0cpFi9uni6OxAAWzRg2/QZKcaA+9HCOZraCPJKF9BnrRXRcNgf5YctCZW89mCBM CgHqTcYeECxZC/v/tTeUr9n0ZfcokzjljvT3usAcT1rn6qDzBbS/WosUopVRZMH4MUcD HOfVip/CiDx21u9PQ1cGraKiLoQ2vKQdHPOu8Jpcs+MOMn5CeSgUCzmPYObL+tiHCUN/ a4uDRVVHiMLIpRzevhJMG6J5E6TICGt82bCZx+poQj/mgb6Ib14PJ0ObysbUMmVoxowt ot3SlPTRMbVBlLnp1GU/C8qUe4/OeS2ld5gsr83F2bojMpSmfitYFQGeXZNBwhMEroIx J/PA== 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 :dkim-signature:arc-authentication-results; bh=DFk3R2GyVJe1yQKIq9VZeicLPZyK9PW8DY8lGyBBFRM=; b=Q4/dlta97YHU/S8+g/7mc1w0xr+uHww3LX20g8I7ZgjTguTcOyrCc6t+5CE35UGwz2 jNa05W8TsmS7NaHunAGxYU+j92w/EOLhfiOappAZLRuQ/Usz/o4oMs5yY+ASO9VFpPBj 0c8PR/H2O6q9ou3fWOMNspssbOwHYu+7qKdhh9GCo22J5dNzteJhzFFEgNgX4+J31EFN q/4Ryxtn2SVZSc+qRk0Q5UH7JmqTDpVDTphlRot9S7bNh/cFAS+I5WZYC+ipuQE9dUBz N3Do62z9QqJrzzDd996S1X7U70+1Q9Lgpd7GeQqAh3GkJxS0BG8eNcs+jvnZzV/YdHKT fCZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=lk1KDGCr; 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 d2si23600630plh.536.2017.11.27.10.52.44; Mon, 27 Nov 2017 10:52:56 -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; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=lk1KDGCr; 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 S1753334AbdK0Svs (ORCPT + 78 others); Mon, 27 Nov 2017 13:51:48 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:37675 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752922AbdK0Svq (ORCPT ); Mon, 27 Nov 2017 13:51:46 -0500 Received: by mail-pl0-f65.google.com with SMTP id 61so9028712plf.4 for ; Mon, 27 Nov 2017 10:51:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=DFk3R2GyVJe1yQKIq9VZeicLPZyK9PW8DY8lGyBBFRM=; b=lk1KDGCr+R9K7PeZXyoy1M1AULjXoZj8RO9T0AIo0UCA06ejxnfOz8k5JEI+zEy2jE 723kzWzIJyEmQmUxep+IF9vOtn4A6LDESKGb7yedcI9vvciL24QGHZaQrE15h27ejYml oJqIQutb2EdMYcqsc3Ju0IYoI0jDNYRMF6iMPwVutp02//sSdPBMpYKVrV2v4fg3r/qV YmPZmsPHtunsOi3n0eu0tztRrw1E73aAwRpoREyBPfQms0XZ6zJYyK6aNlPr/YBxWHjA B1wkwNOEP3cZn6JIPoIkaFtYx7zmCXbzNhrSqYFAdGu1kP4NIvAXoE3ACpZKZhnt10f6 dMDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=DFk3R2GyVJe1yQKIq9VZeicLPZyK9PW8DY8lGyBBFRM=; b=Fma1Bps56fcD+EMAoBZA6tCKcfn7VjEHlSrpt0kHBkCb5hoOsRFOylYT9pOgxbKgoL oXbt5NLp7l2yGdYpC6QJYhF28uPvl2UqVIwhDAFEFXqlHsIuS587FvB1A9V8ucPR6eQj 6QHpczhZexqcrD7SJT07Rt0STmC1KwqJwDhOgKwDNMdHeVO3m60COyuVswsq+aKE+JNt CqJgltPy9zygdUgT8ilsOkFS7ivmix8d5CKAme93xmniA4klVAIVF2seb4lTZaBBkwMv TCbpNWuUNaQUCxdeByOAJ1JwV5k8ib/OzqW+XlEA3A2D1HMkoBgsJR2bu1NfWnFXMU/V fQdA== X-Gm-Message-State: AJaThX4qknijTrIXvJqvl3eNTtS4EudybvAZC5zpWCMWXt/DiNPKVkDQ H1YPgc1KPBzrFYXAzJ/MBFAWuQ== X-Received: by 10.84.195.3 with SMTP id i3mr18893053pld.282.1511808706418; Mon, 27 Nov 2017 10:51:46 -0800 (PST) Received: from jkicinski-Precision-T1700.netronome.com ([75.53.12.129]) by smtp.gmail.com with ESMTPSA id g19sm38946268pfb.65.2017.11.27.10.51.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Nov 2017 10:51:45 -0800 (PST) From: Jakub Kicinski To: Greg Kroah-Hartman , Nicolai Stange Cc: linux-kernel@vger.kernel.org, oss-drivers@netronome.com, Jakub Kicinski Subject: [PATCH] debugfs: add definition of debugfs_real_fops() if CONFIG_DEBUG_FS unset Date: Mon, 27 Nov 2017 10:51:34 -0800 Message-Id: <20171127185134.13405-1-jakub.kicinski@netronome.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk 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 Reviewed-by: Quentin Monnet --- include/linux/debugfs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index f36ecc2a5712..b1dc23cc0214 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) { } +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 From 1585262751818100866@xxx Mon Nov 27 23:12:51 +0000 2017 X-GM-THRID: 1585262751818100866 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread