From patchwork Thu Jun 29 04:09:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 106593 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp653160qge; Wed, 28 Jun 2017 21:09:22 -0700 (PDT) X-Received: by 10.84.141.3 with SMTP id 3mr13136714plu.227.1498709362401; Wed, 28 Jun 2017 21:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498709362; cv=none; d=google.com; s=arc-20160816; b=OGYyphvvLO+ul54PRxvyWgu7SPQoeygjQ97SxWczceuyYZmd8LqVzf4yWmy5ZrZ+LF WYRa3+EztKAM1gmiKTinAwqo2vb6+N/XRVZAccmFv2AimJFx5PLQdUzJUYqwYcvC1nHd hMM8vtqHrKVmCwf8VIQHBA5AXRNU5mv6NvXDWKEEYV0orV3QZRvS+IHkMPAM7/qBHpOo k1NcNiHGQQ5Mljxx4ciFJpRxkuQptjLhUaX5rmzd4UdjroFbfyp0ECW68fCVFQoGAYfv DWZXJcjv6IXfz09DZIhJaHxWF1kQY4NsjLxrWBegCipFSXuNCeejc9cxes0wCGl5ID3f 9/VQ== 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=qfl66pVxjz5Oy3LVOyFnF1AzXecKAjafgdeJKjpXMrs=; b=s5I+w8ouhT3V1b5u4HE4+6w7njX6afhowqMMPJWBRHMZbAqE1ocOc75Cw6qijHoVQd Zr/O/ptpEW5loqjQU58LygfoyQnMPMIq0IvCgpaKYj5iYyEii0BD4HD04gsfR6ZuP45z pMpsWqNBcSO3j2GZqDJGAcAwHk6UNoEx6vWJvrgdVwwgdYvLNPdbKUtqQ2K+jZTLIjzF +XIjyoENlZ7ShAwj5kzJxTrGO5KhXMYVzN/IVaqLizXrGf2rb8Lbpz1H0Gv9Z3oDEE9p 47hL0FtJqrE9KZsq51ZfLzhFOskpTLrUwb4WDPBzYhrZIJp6t49zLuRaM4zmfLMhawwc qCgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=IHJItCwY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1si3192252ple.111.2017.06.28.21.09.21; Wed, 28 Jun 2017 21:09:22 -0700 (PDT) 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=@linaro.org header.b=IHJItCwY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751649AbdF2EJM (ORCPT + 25 others); Thu, 29 Jun 2017 00:09:12 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:33460 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751560AbdF2EJH (ORCPT ); Thu, 29 Jun 2017 00:09:07 -0400 Received: by mail-pf0-f174.google.com with SMTP id e7so43686713pfk.0 for ; Wed, 28 Jun 2017 21:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=qfl66pVxjz5Oy3LVOyFnF1AzXecKAjafgdeJKjpXMrs=; b=IHJItCwYVMZNmkWyzzx4P/m5n6m4Ntk0sXLhDFmexy9unYMZSaMhmdHF1dVbnHD5sG GvafyOpc9sskGKYSKyj3eEEoWS3zjb5Le5dyW+tmFFkWv2Se6Tsc8nbmO7M9/EAdiymw g4Eh263Z+0lp/iML4FHjnkaBTYmzFqQCZC/mE= 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=qfl66pVxjz5Oy3LVOyFnF1AzXecKAjafgdeJKjpXMrs=; b=gNfaqF0hcT2ua0Kq3G2HB6h3xQw/bRv98Mu/KQSwu1jVNi/6i3cfPD2tw9yiy+m2EM nFXtGs6I9x0F/7c1VXOm1QB31WDhCabj4k8LeDsn3LIiIxySCUNIQ5x6ksPzGueWlmtV he931hFI4WVXKpyi6ZTrpVTQEafeO1lrFaTLQKHtyWsxr4tFIxt775X2dWT94vtxRWo2 FqX/TUjU2cKROYo/Cli1A8vlx1eiiqcLLc54vZp/oh2JW3UBpaTZkdHDvgOHgm4Xivm0 Egc+eXEVcjLCXd/ZBBzmD9nV4+NL5X7nlmtRnpZ3QR9nMGLhRf2tnMK8pmjMESq50tz3 IWLw== X-Gm-Message-State: AKS2vOyCUKLbZ1/IPAlTAaaiax3mPowkzLItrt5g2DoXGkDC667gOFYc Qne1766s7vBhKIUM X-Received: by 10.84.128.195 with SMTP id a61mr1469624pla.124.1498709346761; Wed, 28 Jun 2017 21:09:06 -0700 (PDT) Received: from localhost ([122.171.238.149]) by smtp.gmail.com with ESMTPSA id 8sm9326525pfs.23.2017.06.28.21.09.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jun 2017 21:09:06 -0700 (PDT) From: Viresh Kumar To: Greg Kroah-Hartman Cc: Viresh Kumar , Vincent Guittot , rdunlap@infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] debugfs: Add dummy implementation of few helpers Date: Thu, 29 Jun 2017 09:39:02 +0530 Message-Id: <0a00e6c7908c83d938b7db0ace169d86772102de.1498709308.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.13.0.71.gd7076ec9c9cb Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds (missing) dummy implementations of debugfs_create_file_unsafe() and debugfs_create_ulong(). Signed-off-by: Viresh Kumar --- include/linux/debugfs.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.13.0.71.gd7076ec9c9cb diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index 9174b0d28582..222892287eb8 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h @@ -196,6 +196,14 @@ static inline struct dentry *debugfs_create_file(const char *name, umode_t mode, return ERR_PTR(-ENODEV); } +static inline struct dentry *debugfs_create_file_unsafe(const char *name, + umode_t mode, struct dentry *parent, + void *data, + const struct file_operations *fops) +{ + return ERR_PTR(-ENODEV); +} + static inline struct dentry *debugfs_create_file_size(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops, @@ -289,6 +297,14 @@ static inline struct dentry *debugfs_create_u64(const char *name, umode_t mode, return ERR_PTR(-ENODEV); } +static inline struct dentry *debugfs_create_ulong(const char *name, + umode_t mode, + struct dentry *parent, + unsigned long *value) +{ + return ERR_PTR(-ENODEV); +} + static inline struct dentry *debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent, u8 *value)