From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B677C7618B for ; Fri, 26 Jul 2019 15:29:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1B996218D4 for ; Fri, 26 Jul 2019 15:29:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388780AbfGZP3V (ORCPT ); Fri, 26 Jul 2019 11:29:21 -0400 Received: from mga18.intel.com ([134.134.136.126]:57548 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388739AbfGZP3P (ORCPT ); Fri, 26 Jul 2019 11:29:15 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jul 2019 08:29:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,311,1559545200"; d="scan'208";a="322065695" Received: from msmall-mobl.amr.corp.intel.com (HELO [10.251.154.62]) ([10.251.154.62]) by orsmga004.jf.intel.com with ESMTP; 26 Jul 2019 08:29:13 -0700 Subject: Re: [RFC PATCH 01/40] soundwire: add debugfs support To: Greg KH Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, vkoul@kernel.org, jank@cadence.com, srinivas.kandagatla@linaro.org, slawomir.blauciak@intel.com, Sanyog Kale References: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> <20190725234032.21152-2-pierre-louis.bossart@linux.intel.com> <20190726140411.GA8767@kroah.com> From: Pierre-Louis Bossart Message-ID: <1c9448c3-2a98-e5c3-fadf-910e361187ab@linux.intel.com> Date: Fri, 26 Jul 2019 10:29:13 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190726140411.GA8767@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> diff --git a/drivers/soundwire/debugfs.c b/drivers/soundwire/debugfs.c >> new file mode 100644 >> index 000000000000..8d86e100516e >> --- /dev/null >> +++ b/drivers/soundwire/debugfs.c >> @@ -0,0 +1,156 @@ >> +// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) > > No, for debugfs-specific code, that dual license makes no sense, right? > Don't cargo-cult SPDX identifiers please. It's a miss, I used EXPORT_GPL and missed this line, will fix. > >> +// Copyright(c) 2017-19 Intel Corporation. > > Spell the year out fully unless you want lawyers knocking on your door :) haha, will fix. > >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include "bus.h" >> + >> +#ifdef CONFIG_DEBUG_FS >> +struct dentry *sdw_debugfs_root; >> +#endif > > This whole file is not built if that option is not enabled, so why the > #ifdef? Ah, will look into this, thanks!