Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp478122rwl; Thu, 6 Apr 2023 23:52:50 -0700 (PDT) X-Google-Smtp-Source: AKy350ahKmy+JuyXscLshA1FWTjfJWXvRF2iqS+tyrfz3CVw2kpm8tD2kP/OrXJukP3RJquVwXdQ X-Received: by 2002:a17:90b:17d0:b0:234:d1c:f112 with SMTP id me16-20020a17090b17d000b002340d1cf112mr1402577pjb.0.1680850370122; Thu, 06 Apr 2023 23:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680850370; cv=none; d=google.com; s=arc-20160816; b=Qi5L9n7ueFiu4G85GpDhvOj+OrBbBHgSgXLLSEAVY3JL5cAL+rwRvFlr59aGx4Kvoz iF1gJz6izaxX0NXUCSHNAfMtzc7TWqXJuJntsXzod0B0KzyX9CFtKqJ6vMsNmkX8OPrV dlpoaftKg7gNT1mgIUDUJagRPCJw40zPyutBv92GZmKhv/XPqTKepKDVEml9muY/5XsP 7/UU2soY38Dh/CljSKVntH5WkEL4RmDEfGHLs8O8hvTkUQZ9X9C6q/Er+G3NImeaiWkC mjnxK4XN/CWi7+5id/tnwFMhUIBjIf8bfORRcvcII/VLwooDHY9egKEH3Xej1lft4XT2 rdfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WXZIkLNgVT8pl3GOjcOArn2fWk4iaFpfjFnat93lwSs=; b=iSIjag9li8QQv0rXfklkiWR+WRbguRcEcupuazyFUAFEgtxPMDhXAAJK5MeTleOCrS BnpAOct65L9RFJmOpeCaKdhrBvydBM9OQha4IzP2e2hlx+wYhI2DkfERa0vLCSanm015 AVjtmNorbnq3QQI5pwOh2vQ47P5YYRdgU1nzacfSdCBdlr2UTb70H7k78AZo4tUABs5x NAgWVxaOULFO6yb6LsMadPISWDXbpfGXTNoZoOhCfK0CloPTA2S5/yFrfJjALA6OMnhs R3bgUyb97X3dw8rDtXloJUmY/Lb3DOMiszzoXYodfPJfBSFvkE3LFi76F8gzHAtFlODw h/jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oINbUe+s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk1-20020a17090b4a0100b0023d3fad2294si3199593pjb.10.2023.04.06.23.52.36; Thu, 06 Apr 2023 23:52:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oINbUe+s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230487AbjDGGid (ORCPT + 99 others); Fri, 7 Apr 2023 02:38:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjDGGib (ORCPT ); Fri, 7 Apr 2023 02:38:31 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB8435B88; Thu, 6 Apr 2023 23:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680849510; x=1712385510; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=vVTkW3Ec4gZLzzZYVf3Rwf4yfSnUAronz8v0/X06PYw=; b=oINbUe+sO0aveyOOut7kmDcW0atWqwKhK/RQkiyPvt4lnIkhBs85s5+c 8gtVcRgphaax3NmzmtLKXmT4E+5eszyFVCZiTz//chs08h62IOCNE+fIB vH8Opc8fpxNYqwlEwNUQMOJhvz6ogd/21gpTc6M4Li37uVR7HznljYkxu Nbh77/O4FnZ6Hj1TA40H78wCP1YbKQS02CetJ6p+O9PEoM4H8rRhg1fpp j2u63xC/bV8Ovf/RGZpb0I9JJ0r3AJpCzi/5RDGYMxLzj4LaII5mvrj/f n9IvzyiXAgDfzXIGkyVuqooXntLwBinr16QYYbwxxBZBzXoHInAjgdLST w==; X-IronPort-AV: E=McAfee;i="6600,9927,10672"; a="370770656" X-IronPort-AV: E=Sophos;i="5.98,326,1673942400"; d="scan'208";a="370770656" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2023 23:38:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10672"; a="664790120" X-IronPort-AV: E=Sophos;i="5.98,326,1673942400"; d="scan'208";a="664790120" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orsmga006.jf.intel.com with ESMTP; 06 Apr 2023 23:38:26 -0700 Date: Fri, 7 Apr 2023 14:26:34 +0800 From: Xu Yilun To: Ilpo =?iso-8859-1?Q?J=E4rvinen?= Cc: Wu Hao , Tom Rix , Moritz Fischer , linux-fpga@vger.kernel.org, Lee Jones , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, Russ Weight , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] mfd: intel-m10-bmc: Move core symbols to own namespace Message-ID: References: <20230405080152.6732-1-ilpo.jarvinen@linux.intel.com> <20230405080152.6732-2-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230405080152.6732-2-ilpo.jarvinen@linux.intel.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-04-05 at 11:01:49 +0300, Ilpo J?rvinen wrote: > Create INTEL_M10_BMC_CORE namespace for symbols exported by > intel-m10-bmc-core. Is it necessary for handshake register, or just an independent improvement? > > Signed-off-by: Ilpo J?rvinen > --- > drivers/mfd/intel-m10-bmc-core.c | 2 +- > drivers/mfd/intel-m10-bmc-pmci.c | 1 + > drivers/mfd/intel-m10-bmc-spi.c | 1 + > 3 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/mfd/intel-m10-bmc-core.c b/drivers/mfd/intel-m10-bmc-core.c > index dac9cf7bcb4a..b94412813887 100644 > --- a/drivers/mfd/intel-m10-bmc-core.c > +++ b/drivers/mfd/intel-m10-bmc-core.c > @@ -98,7 +98,7 @@ const struct attribute_group *m10bmc_dev_groups[] = { > &m10bmc_group, > NULL, > }; > -EXPORT_SYMBOL_GPL(m10bmc_dev_groups); > +EXPORT_SYMBOL_NS_GPL(m10bmc_dev_groups, INTEL_M10_BMC_CORE); > > int m10bmc_dev_init(struct intel_m10bmc *m10bmc, const struct intel_m10bmc_platform_info *info) Why this function is not included in namespace? Thanks, Yilun > { > diff --git a/drivers/mfd/intel-m10-bmc-pmci.c b/drivers/mfd/intel-m10-bmc-pmci.c > index 8821f1876dd6..0392ef8b57d8 100644 > --- a/drivers/mfd/intel-m10-bmc-pmci.c > +++ b/drivers/mfd/intel-m10-bmc-pmci.c > @@ -453,3 +453,4 @@ module_dfl_driver(m10bmc_pmci_driver); > MODULE_DESCRIPTION("MAX10 BMC PMCI-based interface"); > MODULE_AUTHOR("Intel Corporation"); > MODULE_LICENSE("GPL"); > +MODULE_IMPORT_NS(INTEL_M10_BMC_CORE); > diff --git a/drivers/mfd/intel-m10-bmc-spi.c b/drivers/mfd/intel-m10-bmc-spi.c > index 957200e17fed..edd266557ab9 100644 > --- a/drivers/mfd/intel-m10-bmc-spi.c > +++ b/drivers/mfd/intel-m10-bmc-spi.c > @@ -166,3 +166,4 @@ MODULE_DESCRIPTION("Intel MAX 10 BMC SPI bus interface"); > MODULE_AUTHOR("Intel Corporation"); > MODULE_LICENSE("GPL v2"); > MODULE_ALIAS("spi:intel-m10-bmc"); > +MODULE_IMPORT_NS(INTEL_M10_BMC_CORE); > -- > 2.30.2 >