Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2450280pxv; Sat, 17 Jul 2021 13:56:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCThOLa7uWY6WPrOPG7BnC6XSuQmLB2zoyQrOTUVo3llZkJwialWN4Vz9i9L3dWEhePzDy X-Received: by 2002:a92:d210:: with SMTP id y16mr11432164ily.295.1626555381652; Sat, 17 Jul 2021 13:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626555381; cv=none; d=google.com; s=arc-20160816; b=zso+WjXpFp0cn+tCM8tU22tKBmYicYYE1zWoq+lqH38V0bxUivJgCnGyKxocCb8UqM /Z51hXqYpAcxrmBKvtsuhdHmc7VMYBAtKq6/HpoNwEzqCk7z8Am8k+DZ+CzQgnA6aSew h6QnPBlHSVHQzyeCx/rlHmdPKUgQfd51yDNLe4WJhh97evsuwC1mhMJ6QaphHjlAAOKJ Wf/8czNqkNZk4x5sUKWcuH6hOY4EayLveKxOSgbQTmoqcSFQz4BDX9xAMM823P4QbZxU iT1a9oNOzxTkTBfPFdhdHp5MW6FUZsyPyJLlqcCekCt4xlyZde+sH2PNDoAHBXDrf/vQ D9tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=AzejeF7pARl9nvNZ/SKXjtBr8tSI+wQVjunUNUziOkA=; b=gAqiSBAHvdC0Zs6h0xowK5FrWZ+fQ956NudgYWEAmaJgZhY20Qkyy4VK7bbagKOJ+S cLR/QOFt+IHLkKHOOdBAWzs3YpUg3RaEp0D8EtuDOzRkPAK6U6YXw1aRC7yISjJGI3Zo kBCM8fr6/6CD8/CGAgEl8h1NmkBdWmnCSja0nsKK/lsRa+yV4y9O93kym+vH3QxrE00z T/9HyRbGr4roblI3kCrB0z+BnRK/COgGOMpOVVi9DWz6JxmAHcK5WGvfz2SKUBSBQXJq FP9juZc/34nkKKOHv7he+EOpmjsGucsaR/p7yITBMeFzUwoCLPhUmbuhmSyvBotWMdJZ ZNlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="yG/94pT+"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si13727415ilv.18.2021.07.17.13.56.06; Sat, 17 Jul 2021 13:56:21 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="yG/94pT+"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235379AbhGQU6D (ORCPT + 99 others); Sat, 17 Jul 2021 16:58:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233721AbhGQU6C (ORCPT ); Sat, 17 Jul 2021 16:58:02 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C718BC061765 for ; Sat, 17 Jul 2021 13:55:05 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id c1so8662151pfc.13 for ; Sat, 17 Jul 2021 13:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AzejeF7pARl9nvNZ/SKXjtBr8tSI+wQVjunUNUziOkA=; b=yG/94pT++KysRkRR7Ee9X/reRZojfKEcZDLOovFdsOCIl6tMAHuE4febS8dZjRq5on KakPilolQePL2d3aMUyd0sD2TpYRm3tFxj9hcX+iuHw+lTBEHfYq8POysMd5FJbVILZq b8CQb+EfVh6yJZzKi3jm+4bSd90uJQgsJBmJLGe3ZJSJIYCLeIkEdLUyG4qCERiR/D3Y CLFZxGYQ2TrtobRV/SdNOcMAnBKcFjZrQJtjrVYq7LWy4xElrWV7FvFTn060p8a4rY4U adR8o5Jt47WSv1Zror7vG7WmZ4dkwESOOo1I1AuekVMbzXvKduiajK3Zbz5E0/tyNsPV XgfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AzejeF7pARl9nvNZ/SKXjtBr8tSI+wQVjunUNUziOkA=; b=srKHFK2VABSYToLIyB0Uf/ASG4XtMPzhbWDujyGMUbf7+6fnsgyV/Ez7NTZyCNOh6a P6Dr5z7gD3w40q/vLo93ULOivpsI3V3W9vNAiJ9HNFmKJVRPWvIAMwwo6E4uiWZTfowt bKrgNYeGEcz24ey5NSqBpF1r/rm8Qa9dN6HJW95Y7wD+kmEm3IywRBT2Hnl98BdE+yLW YJ6M3tCCbDztmM64DFV27MYZwSo3gyXKcb6f/i9lZVaNAJoY0b1yqYaBsSmuNsuZR+mM mgqCeNVgumzMZlrzLSLhhJ8qHX2z7NwgJ+C5TbAgWE8YVn6fC+jkJNrKFUlsMh4sQ8fd 3yIA== X-Gm-Message-State: AOAM531VzcKRLzH524hpz87D+Y249nVzNRqJ/64Qx30ke+XpLrI25EMD aAYriuVfMw4qpRxZCzG6kWypcCIkwbGKraBeqfvqwA== X-Received: by 2002:a65:6248:: with SMTP id q8mr16976866pgv.279.1626555305105; Sat, 17 Jul 2021 13:55:05 -0700 (PDT) MIME-Version: 1.0 References: <20210712220447.957418-1-iwona.winiarska@intel.com> <20210712220447.957418-7-iwona.winiarska@intel.com> <59428599ef7efb2521bd62c49a3bc55c710f29de.camel@intel.com> <6807a14deb52956ad2fe390b1811dd98901a642a.camel@intel.com> In-Reply-To: From: Dan Williams Date: Sat, 17 Jul 2021 13:54:54 -0700 Message-ID: Subject: Re: [PATCH 06/14] peci: Add core infrastructure To: "gregkh@linuxfoundation.org" 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" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 16, 2021 at 11:13 PM gregkh@linuxfoundation.org wrote: > > 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. Fair enough. /me goes to update drivers/cxl/