Received: by 10.223.164.202 with SMTP id h10csp2148267wrb; Mon, 27 Nov 2017 12:36:44 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ3lLzH+XWqDPOK9FCsMqd2jvjO7jYUUORVUk/Td7cgxUmapGdfEJsxCheIK5zKoarKrZ1a X-Received: by 10.84.139.129 with SMTP id 1mr17526102plr.327.1511815004548; Mon, 27 Nov 2017 12:36:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511815004; cv=none; d=google.com; s=arc-20160816; b=x7g/oDNSmHjldf5nNgkXeD5bcJR4LeAWWwkF+4PPApV+bKo7x4cw0CHVs4pDjito6y sdFTR1OEaJaEk9dRJOWK3y58VfTkVR9pujBt7+nqlcp+mECZ1IfVjg4D9szqnAQIH3sD dsZm4waAVLCyRQeyAqPEymft94pFOjiddRPZKfCJn61CmoGku5FJbz4HTTxL4h5kwqBh MDRwobyeqVvTv8ViU+BQCVYxjKz5dB8ogI7asxkacI6GQBHuclTmr5fQSNS5yMh8gGlL 0pkRtcp6WFH1gLacaWA8MuL+Y1mwW32hDKFx1Z6/LLesB80SVfiDTNojYn9DZGuFVrZL WSOA== 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=lOZBPk5r0Rndpxg98MJkBM+/N0iYVIflXkASAFXrTvw=; b=ePPA8RD6BiVR8ZFCSDsIcYL2GFQJLj4rUE4kbL7cdLopq0enpBTqzy6//nl0V94xOx aMkepoOMG/9EVrE/o5Q+TRTHqPMas+ZtZZ3fmgYGb8KboM8uaO1FXeHOx5CxuRs4ST19 keKa+PPU+uuU4BNAFMGqVTY5eP/rXWdep7X84P1aNoGNEH44u/pWstyO0+54oa6+6akS bmOr0tKJXj1XZ0SUODKMiqlUxCToqX8UQGSRwTI9YtmA9w6SQzGkl97v941dVoGkgXjn x19iTg3GFsi/bI5bvM4fCoXH9SSyqO5fM0xKCAFFDXZxIrhd0oVP3TWil5ejtdSI3SoA 8zZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=aE7UcUWu; 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 s62si25942622pfe.119.2017.11.27.12.36.32; Mon, 27 Nov 2017 12:36:44 -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=aE7UcUWu; 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 S1753023AbdK0Ufv (ORCPT + 78 others); 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 Received: by mail-pg0-f67.google.com with SMTP id s75so19238106pgs.0 for ; Mon, 27 Nov 2017 12:35:50 -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=lOZBPk5r0Rndpxg98MJkBM+/N0iYVIflXkASAFXrTvw=; b=aE7UcUWuV+2vfkmLLDr8NKTtMjpmUwsspdjUqHdQEnEFgCiPVv66iRwKwI3s6VhZ3Q EcN91JKu4zL5BuxZzhrixva7f+D5SXIEekYpqM4wkW+XBgE1zRYDyNorB7VE5KybRDL1 InI05vydfBKcOXLt3cIiT+/Reb6t7yKu0A5DMhfUhg1RSUqy4V60SqOZWBvP0mZs1HL6 XEZbdkrstnCMmSBRWBm/Eiisibyhw3YujsW4rH2q8UyHKQPs+LgrCZqYf/hXNLluyWP7 EGg1vvu/c889M8bZuB2X9EAcl+qie4YWVQgagAbAEzLjZ0cu4XWNJQYtT1iXnp7CjJ2W lXlg== 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=lOZBPk5r0Rndpxg98MJkBM+/N0iYVIflXkASAFXrTvw=; b=ojD9RtCF3JdZtxtAgtq7pm1+3YFduWMmgwdQHgWYNRUxdda3UdudQYspK7gLJz1E/L Mt/Daf6vYZ46Dzpwt6fVwkxmXI0dWQqC7dIgWuKbT/2Gvk6h5M7ApGmYl1WmWVCoE1oD 3dIukxkP+EGO54tsS5VvsQTy3enOIwdveX9y61rn7skGsq+nI7PNTHKzqxu+TJmwXrEZ sHCKWXooYfZNUNr4YHx/3vxKZU3g/4ai6kTIxSx7OF76zJyLBwBxwXN8T8Nj8QQNNy1U Q67UpyR/as6lIwqF6iip8tKRkM9zUcGxKWrg+WQXzDKiFkb0g8hl1Avt3Fzs69nR4Ngd OB3A== X-Gm-Message-State: AJaThX4BJ7UOdkoeZlXB0AArhBI7ILOOrDbBYqLxuyj9CvoVOJ6PBYeO 2B2LQjenBAmBMwWFYwLugE1/vA== X-Received: by 10.99.139.199 with SMTP id j190mr37905774pge.375.1511814949717; Mon, 27 Nov 2017 12:35:49 -0800 (PST) Received: from jkicinski-Precision-T1700.netronome.com ([75.53.12.129]) by smtp.gmail.com with ESMTPSA id a1sm8519472pgt.14.2017.11.27.12.35.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Nov 2017 12:35:49 -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 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 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 --- 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 From 1585252772326971793@xxx Mon Nov 27 20:34:13 +0000 2017 X-GM-THRID: 1585246399786885535 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread