From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753829AbdBTP4L (ORCPT ); Mon, 20 Feb 2017 10:56:11 -0500 Received: from mga02.intel.com ([134.134.136.20]:12514 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752666AbdBTP4K (ORCPT ); Mon, 20 Feb 2017 10:56:10 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,186,1484035200"; d="scan'208";a="227549314" Message-ID: <1487606145.2714.3.camel@linux.intel.com> Subject: Re: [PATCH] platform: intel_turbo_max_3: make it explicitly non-modular From: Srinivas Pandruvada To: Darren Hart , Paul Gortmaker Cc: linux-kernel@vger.kernel.org, Andy Shevchenko , platform-driver-x86@vger.kernel.org Date: Mon, 20 Feb 2017 07:55:45 -0800 In-Reply-To: <20170217033712.GA25241@wisp> References: <20170214003700.8978-1-paul.gortmaker@windriver.com> <20170217033712.GA25241@wisp> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.4 (3.22.4-2.fc25) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2017-02-16 at 19:37 -0800, Darren Hart wrote: > On Mon, Feb 13, 2017 at 07:37:00PM -0500, Paul Gortmaker wrote: > > The Kconfig currently controlling compilation of this code is: > > > > drivers/platform/x86/Kconfig:config INTEL_TURBO_MAX_3 > > drivers/platform/x86/Kconfig:   bool "Intel Turbo Boost Max > > Technology 3.0 enumeration driver" > > > > ...meaning that it currently is not being built as a module by > > anyone. > > > > Lets remove the couple traces of modular infrastructure use, so > > that > > when reading the driver there is no doubt it is builtin-only. > > > > Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code. > > > > We also delete the MODULE_LICENSE tag etc. since all that > > information > > was (or is now) contained at the top of the file in the comments. > > > > We do uncover some implicit includes during build coverage that > > were hidden behind the module.h which pulls in a lot of dependants. > > > > Paul, this all looks so very familiar... have we been through this > before? Maybe > for another driver... > > > Cc: Darren Hart > > Cc: Andy Shevchenko > > Cc: Srinivas Pandruvada > > Srinivas, any objections? This module can be loadable just by adding EXPORT_GPL to two scheduler function. I was hoping that someone will require those functions to be exported. But any way I have no objections in this case as this driver doesn't have to be loadable at all. Thanks, Srinivas > > > Cc: platform-driver-x86@vger.kernel.org > > Signed-off-by: Paul Gortmaker > > --- > >  drivers/platform/x86/intel_turbo_max_3.c | 11 +++++------ > >  1 file changed, 5 insertions(+), 6 deletions(-) > > > > diff --git a/drivers/platform/x86/intel_turbo_max_3.c > > b/drivers/platform/x86/intel_turbo_max_3.c > > index 0103f5b32e34..4f60d8e32a0a 100644 > > --- a/drivers/platform/x86/intel_turbo_max_3.c > > +++ b/drivers/platform/x86/intel_turbo_max_3.c > > @@ -3,6 +3,8 @@ > >   * Copyright (c) 2017, Intel Corporation. > >   * All rights reserved. > >   * > > + * Author: Srinivas Pandruvada > m> > > + * > >   * This program is free software; you can redistribute it and/or > > modify it > >   * under the terms and conditions of the GNU General Public > > License, > >   * version 2, as published by the Free Software Foundation. > > @@ -16,7 +18,9 @@ > >  #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > >   > >  #include > > -#include > > +#include > > +#include > > +#include > >  #include > >  #include > >  #include > > @@ -123,7 +127,6 @@ static const struct x86_cpu_id > > itmt_legacy_cpu_ids[] = { > >   ICPU(INTEL_FAM6_BROADWELL_X), > >   {} > >  }; > > -MODULE_DEVICE_TABLE(x86cpu, itmt_legacy_cpu_ids); > >   > >  static int __init itmt_legacy_init(void) > >  { > > @@ -146,7 +149,3 @@ static int __init itmt_legacy_init(void) > >   return 0; > >  } > >  late_initcall(itmt_legacy_init) > > - > > -MODULE_DESCRIPTION("Intel Turbo Boost Max 3.0 enumeration > > driver"); > > -MODULE_AUTHOR("Srinivas Pandruvada > l.com>"); > > -MODULE_LICENSE("GPL v2"); > > --  > > 2.11.0 > > > > > >