Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp270371imu; Thu, 3 Jan 2019 19:27:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN7UqUbFi6p2217pT0pW4GZcRrQ+JuTOh4PIexjhLDGnHY19z1K9Y3fx+ON3DwlD+5P6gITn X-Received: by 2002:a17:902:9f93:: with SMTP id g19mr48566826plq.195.1546572460752; Thu, 03 Jan 2019 19:27:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546572460; cv=none; d=google.com; s=arc-20160816; b=0QveeAQRBF4EMY+5BpuFo3H7vzoCbE3Mpl0J7lNKsk/3VThYSLE5l0tpZioubJR95R RZfUQqn2Rfre3n2VzJkin3gMGIZ5njzsrfNtuV+F4C3dvOF8gqqtY9oILoD/qc2teUqC H5wORg5tL8y5YiT21PHaZaNB5IA7amFXBqwGm77tOR61MdyxkXUV5R4jEcxreovWTREP tWLtA1XQH+Kf2/rKE2QL4eUBOCji+rnsogqoGimbC6T86KMNA4geuqsbhvxqypervIws +lt2y820JNbkj+eIn+tLDU2iOxy1WeCMHInbHSXPWqyz84Phd1pzBE2iXGR2/DACwu4d HG/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date; bh=MFIRySWfGvGUmDUfq6aQ82rMsM4y+igUTr2b2fbeC0A=; b=aPUt1ikmvhfiHTXOaNp1GcY54oNhoJ8+verTOADQIMQn3A7OIZEHNzM11ibY7VzysM gI6QfKCfcV2lW9vrtMp5ERcbsL+b+SFf6NMfQGBULHmebn331wMqYYI2EEcvoLHqSLrC qJsDmMGEtxjxUmgstfmqmaESgPjamBNh2X1fSW496sEMuzLW6Vyh+HLgJ2Azy91QF0m3 mpQdFO6IOkXPakpIUuB8qENpP+Pc3nO32eHWDKXumXlyZE3iHtXyBQbM0Pkk+vrtKjVQ ABfSlmYfCLsPLUvX2BNjXEfT8GltPQlAZp9JKR+ELI4VH4lu8qyUPnR0vfVnlk8Re0Zb zLsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8si5507926pgf.577.2019.01.03.19.27.25; Thu, 03 Jan 2019 19:27:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728327AbfACWIQ (ORCPT + 99 others); Thu, 3 Jan 2019 17:08:16 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:53222 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728075AbfACWIQ (ORCPT ); Thu, 3 Jan 2019 17:08:16 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id C119B2A185; Thu, 3 Jan 2019 17:08:12 -0500 (EST) Date: Fri, 4 Jan 2019 09:08:13 +1100 (AEDT) From: Finn Thain To: Christoph Hellwig cc: Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v8 05/25] char/nvram: Adopt arch_nvram_ops In-Reply-To: <20190103080229.GB11147@infradead.org> Message-ID: References: <66ed571883695314ace53080df8f6dfb132a8b4d.1545784679.git.fthain@telegraphics.com.au> <20190103080229.GB11147@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 Jan 2019, Christoph Hellwig wrote: > > + > > +const struct nvram_ops arch_nvram_ops = { > > + .read_byte = nvram_read_byte, > > + .write_byte = nvram_write_byte, > > + .get_size = nvram_get_size, > > +}; > > +EXPORT_SYMBOL(arch_nvram_ops); > > I think something this internal should always be EXPORT_SYMBOL_GPL. > By "internal" do you mean "not involving interests outside of the Linux Foundation"? TBH, I don't know who's affected. Anyway, this patch series is mostly refactoring. So the policy it enforces towards the use of arch_nvram_ops just reflects the policy already in place: $ git grep -w EXPORT_SYMBOL_GPL | grep nvram $ git grep -w EXPORT_SYMBOL | grep nvram ... arch/powerpc/kernel/setup_32.c:EXPORT_SYMBOL(nvram_read_byte); arch/powerpc/kernel/setup_32.c:EXPORT_SYMBOL(nvram_write_byte); arch/powerpc/kernel/setup_32.c:EXPORT_SYMBOL(nvram_get_size); arch/powerpc/kernel/setup_32.c:EXPORT_SYMBOL(nvram_sync); arch/powerpc/platforms/powermac/nvram.c:EXPORT_SYMBOL(pmac_get_partition); arch/powerpc/platforms/powermac/nvram.c:EXPORT_SYMBOL(pmac_xpram_read); arch/powerpc/platforms/powermac/nvram.c:EXPORT_SYMBOL(pmac_xpram_write); drivers/char/nvram.c:EXPORT_SYMBOL(__nvram_read_byte); drivers/char/nvram.c:EXPORT_SYMBOL(nvram_read_byte); drivers/char/nvram.c:EXPORT_SYMBOL(__nvram_write_byte); drivers/char/nvram.c:EXPORT_SYMBOL(nvram_write_byte); drivers/char/nvram.c:EXPORT_SYMBOL(__nvram_check_checksum); drivers/char/nvram.c:EXPORT_SYMBOL(nvram_check_checksum); ... $ --