Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1945081pxv; Fri, 16 Jul 2021 23:14:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXccmEcaZKDzfw31M0RsFCBSTPrMnB2+E//SvJOJ4gb/salWVFBa4QeH+fW9K9yt4PHYDC X-Received: by 2002:a92:cb0b:: with SMTP id s11mr8940941ilo.292.1626502496464; Fri, 16 Jul 2021 23:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626502496; cv=none; d=google.com; s=arc-20160816; b=JWN/xTJOYi011f5YuzBcWfx5/EeJ23unJWX3mFJrFl/KSB/qjdcQaO7p5PwLXJjwBZ bpLjKkU+FdZWLS0IKqSRuhK1WyCHdz2BLzw/AkoAmJh3MilnFaabf0KuTA3yU6tZc7Yh Wo4/99TH+/BOU9HAdbW6KZrA2EhNvaXixBagQ9Yzgx6UhZ1HYUWAXRNRVnhqBPvC5jW0 l7m+BARWT5/CQ60IVj9wy8bQtV/XZNuG21WU2Z90mgn07TM+DK17DxBkUX9tvq+KWmDh 3sySB24R8YKnL38j7omnvglD7sZ6wf8btkkJCFFpRhpVisbwo6KHq+/6bfF6JYcm6N4A qzyQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/7NNy4pLlzGfsaixpiHQlsSod8rTJjwJySv9PkJKUg4=; b=d3cxXBSShcn3a6G/BGi7DGzDr+TShT/3B4ISWytKHlg3jojXKJx3kpjeHpCL4QNtS0 bktKgcW/bjOiWNKFlSXtleJ/SM0XpCxYAprtZz+QmTxReUqagX2rlFpab2NssZmrgtA/ r89wbgym6kiUg3WrAVkXOXoBCbUEqhjMdc6Xi6JGi5PR41u97a1Ula2Sc5LnW/Ya2Ro2 BuMiCKrPLZFBzItFyiS4vSnUVACPuyABrfeYDihKdwi/M8Uh/T0JUsejWxCbEtloaQ7p EJuEYHjDWzQD/q1WvWz7oAXdAqh6coRT6l8aa4uK0lFk7Pre647ADlV+gJZhoA69eeI1 v6cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hco7pen6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si15327668iov.48.2021.07.16.23.14.43; Fri, 16 Jul 2021 23:14:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hco7pen6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230403AbhGQGPy (ORCPT + 99 others); Sat, 17 Jul 2021 02:15:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:41558 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbhGQGPx (ORCPT ); Sat, 17 Jul 2021 02:15:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4B4C56101A; Sat, 17 Jul 2021 06:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626502377; bh=8cLLirT0hvzwP0lrOx0mYq7s2nFKexMw23WQLVT2LaA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hco7pen6gNCqtDfle51bfDisW7MKsJ7n/yhJi/ea0Luopx32VeCXVFVzqjXe1fHsv im88Oz/kBkydDPFmD0wThbs3xhZ7b2i6UZFwJBk6c87sOh3hMd7ha2yC9lJ+sZiRyD I44xXq/isGnKo9KsybOIgKXsc0N8UQhHswUeWkm4= Date: Sat, 17 Jul 2021 08:12:52 +0200 From: "gregkh@linuxfoundation.org" To: Dan Williams Cc: "Winiarska, Iwona" , "linux-kernel@vger.kernel.org" , "openbmc@lists.ozlabs.org" , "corbet@lwn.net" , "jason.m.bills@linux.intel.com" , "Lutomirski, Andy" , "linux-hwmon@vger.kernel.org" , "Luck, Tony" , "jae.hyun.yoo@linux.intel.com" , "mchehab@kernel.org" , "andrew@aj.id.au" , "jdelvare@suse.com" , "mingo@redhat.com" , "bp@alien8.de" , "devicetree@vger.kernel.org" , "tglx@linutronix.de" , "linux@roeck-us.net" , "linux-doc@vger.kernel.org" , "linux-aspeed@lists.ozlabs.org" , "robh+dt@kernel.org" , "yazen.ghannam@amd.com" , "joel@jms.id.au" , "linux-arm-kernel@lists.infradead.org" , "andriy.shevchenko@linux.intel.com" , "x86@kernel.org" , "pierre-louis.bossart@linux.intel.com" Subject: Re: [PATCH 06/14] peci: Add core infrastructure Message-ID: References: <20210712220447.957418-1-iwona.winiarska@intel.com> <20210712220447.957418-7-iwona.winiarska@intel.com> <59428599ef7efb2521bd62c49a3bc55c710f29de.camel@intel.com> <6807a14deb52956ad2fe390b1811dd98901a642a.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 16, 2021 at 02:50:04PM -0700, Dan Williams wrote: > On Fri, Jul 16, 2021 at 2:08 PM Winiarska, Iwona > > > > +} > > > > +EXPORT_SYMBOL_NS_GPL(peci_controller_add, PECI); > > > > > > I think it's cleaner to declare symbol namespaces in the Makefile. In > > > this case, add: > > > > > > cflags-y += -DDEFAULT_SYMBOL_NAMESPACE=PECI > > > > > > ...and just use EXPORT_SYMBOL_GPL as normal in the C file. > > > > > > > I kind of prefer the more verbose EXPORT_SYMBOL_NS_GPL - it also > > doesn't "hide" the fact that we're using namespaces (everything is in > > the C file rather than mixed into Makefile), but it's not a strong > > opinion, so sure - I can change this. > > > > Perhaps as a tie breaker, the maintainer you are submitting this to, > Greg, uses the -DDEFAULT_SYMBOL_NAMESPACE scheme in his subsystem, > drivers/usb/. We did that because namespaces were added _after_ the kernel code was already there. For new code like this, the original use of EXPORT_SYMBOL_NS_GPL() is best as it is explicit and obvious. No need to dig around in a Makefile to find out the namespace name. thanks, greg k-h