Received: by 10.223.164.202 with SMTP id h10csp3384408wrb; Tue, 28 Nov 2017 10:24:30 -0800 (PST) X-Google-Smtp-Source: AGs4zMZJ0HIlXeLUDWZ5gw1Mh5kjbPRAQaIFcI9O+QDoyEiCqrFoUElmQ4HDJDKBaKYjL5qCRKQz X-Received: by 10.99.95.138 with SMTP id t132mr78371pgb.66.1511893469917; Tue, 28 Nov 2017 10:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511893469; cv=none; d=google.com; s=arc-20160816; b=Ytf7uHLutik6zeWhL1T6f/4dZ797D5NDY6m+ZGRNTEEGhP38KKzWwpqTDlmgS/EB6X LbWMF8rjwForEaeHBTowAmNZ+WQ2hUUXitfS/rmI2Myj4g6e3EuuBjdPrYR2OZ4UXj0T JSTqnIGBtlNERuqOmH4wEMSs+1xRUxKOExv60/vKzyNFMnnemaaB6oW4M8F0TXhO/DzU xFfpCpoVVfVIvDKb79BFpY0D76L8kuw/RnE6MbfC+P2rKUcyW5V4jjoYukkjEN2kJpB5 TLHs003ksgjqajz4eHrJWTNJ/LUkRSiMGNUFyghEWfIPlonU+YStVg5p6dfYOe4FqtZh 8p6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:arc-authentication-results; bh=a2nhvnNspyF6Y4GmS00VTTUKHxAccIsjkMLbCt0DvsE=; b=E37Ia8A8voL59SScUjb8U8EwLigpYlyHUEw2TI87dglHE56cLe3zoCo7UHko7H2BYD XquLZzKjwjRFPq46rmMNow1MIkUitAmifOYGd/H+qi3w2pO+cNDb+1SGxrJ0XWl2NAWu KDseCJ86OBBW5jRx8RogAISph+8LZ3vOnHBf/mWpdWlBx4EmIFuZwjU0Z3xE0cbZka1K NTVcv1UFbBQQv1e0H10iEyYWmJffOvI6egp/MAbkVmtb+vcMmcxdH+rejWorSD9z48/j hwscOtybZi9z3k/RaitP8EmBzIQko5NhnLLuGCcnbDGu9I+qhHGf++E02fsLa74W4IZF 29mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=vtuDQ2Rp; 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 d132si3095238pgc.187.2017.11.28.10.24.17; Tue, 28 Nov 2017 10:24:29 -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=vtuDQ2Rp; 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 S1753142AbdK1SXI (ORCPT + 78 others); Tue, 28 Nov 2017 13:23:08 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:36179 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751648AbdK1SXH (ORCPT ); Tue, 28 Nov 2017 13:23:07 -0500 Received: by mail-pl0-f68.google.com with SMTP id b12so423551plm.3 for ; Tue, 28 Nov 2017 10:23:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=a2nhvnNspyF6Y4GmS00VTTUKHxAccIsjkMLbCt0DvsE=; b=vtuDQ2Rpe62/A/lfZbmQBIMkTonq4Vals1qcwsIWmMdRCyq8vFFg+VDE4ygk5+SodF Oo+6qtsMhr4KojzEa2xKiNtrVMNQMaPGkEgrQpb0FO2pB8r2Eo1iE8nzSDQuoFmVEdRJ PDQ7PDoxIIG0gG2mIl3E0w89l1bRxZlJum4X6YwYNJ5IfVvwbMu0PIuhM0XRtrWHjA0d 5sXya3I/vIPrGJz0RfCKA55Sax71/MEw3mYHL5JuEMVKCFQV1N8iR2wY7wyFHczgqGk1 AYG3HcQngVYxIuvzYRb8XALOs5xuuSP1oMQNNz9SYv6Cb3WCMsgvx6YGNXsL5kU2AHVV 1ZNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=a2nhvnNspyF6Y4GmS00VTTUKHxAccIsjkMLbCt0DvsE=; b=YzlBws0lA0yBmi+h+Gu3EmXj2LGHNvRFH5Qy7E7S3Qqy7R4uF17h3q0jUdYLsc8dAB XPUd26pMDZHMCmkzVtOHYu/J7T3YsnBAVe+dbtj1kQhOVATJPaEYRHdGoESyaZmkL4rQ YENf7K9xKCY43oi4jOC7EeEec79OSTQsxYEYAnNjhSYQWq7WJiLS/sbhfWNnklAPstY5 P4hCce5kEqwL8AflYDBm21L+AMyX6TPgbdHs6UttX0YzMDo1F9ops9E6SFi53Mz/wi5p LUgM2Dc/PYejbvgun0hox2IreGUPghGzFmr19ECXJbd2sPAHer1/6Z3QSexDD1NSGmOC ifMA== X-Gm-Message-State: AJaThX6jaLp/suPoS/qsatYVED/WbXtKfoCpEKJJtbfzY2JwFH+j9wsm sHp/xnnk1Czl0pgVop481W7D9g== X-Received: by 10.84.195.36 with SMTP id i33mr35848pld.189.1511893386646; Tue, 28 Nov 2017 10:23:06 -0800 (PST) Received: from cakuba.netronome.com ([75.53.12.129]) by smtp.gmail.com with ESMTPSA id c185sm36610994pfb.48.2017.11.28.10.23.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Nov 2017 10:23:06 -0800 (PST) Date: Tue, 28 Nov 2017 10:23:03 -0800 From: Jakub Kicinski To: Greg Kroah-Hartman Cc: Nicolai Stange , linux-kernel@vger.kernel.org, oss-drivers@netronome.com, Arnd Bergmann Subject: Re: [PATCH v2] debugfs: add definition of debugfs_real_fops() if CONFIG_DEBUG_FS unset Message-ID: <20171128102303.72b4d0a3@cakuba.netronome.com> In-Reply-To: <20171128142300.GA14578@kroah.com> References: <20171127203544.7708-1-jakub.kicinski@netronome.com> <20171128142300.GA14578@kroah.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Nov 2017 15:23:00 +0100, Greg Kroah-Hartman wrote: > On Mon, Nov 27, 2017 at 12:35:44PM -0800, Jakub Kicinski wrote: > > 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(+) > > Arnd sent me a better patch for this last week that I'll queue up now. Arnd's patch assumes all call sites can be eliminated, i.e. all of the users are static functions assigned to static fops and compiler is clever enough. It does solve my immediate problem but let's wait and see if that bites us on the rear later :) From 1585320176891154678@xxx Tue Nov 28 14:25:35 +0000 2017 X-GM-THRID: 1585246399786885535 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread