Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7399311ybp; Wed, 16 Oct 2019 08:07:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAJMZBdilN/lZoe+o1E2E8BS4pvYO7LbGGJ59/vCQMh7LOeCirZ2UIeMfYHW24hnkzQd2d X-Received: by 2002:a5d:540e:: with SMTP id g14mr3251853wrv.177.1571238429230; Wed, 16 Oct 2019 08:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571238429; cv=none; d=google.com; s=arc-20160816; b=GVzfL4InUkJdycYi2Tf/BmI2qpbtL2PHhwA3tD1Zy49XtDV3WHaEBOZbI9hDo1H9B3 ENQERYlIr2BS3cXEEGFKT1tsJDjUkoReziM0x31Z2xPRt1iA5EMpl5ptMoaUORbGEJgg yQQVdsT3ejt8vJ5AnY/2xsG4v/DRQilMO6z/J0nJVF/TnAhZru7DH4iVm02Fv+blLoJb 8Nz4fRYflNcmf4tYSdJ5+PDuzvMb2efTlUT80V9HugP4el/Dk39nFACHu/xomteRk+6e ih7sSUXXl80b0z62MSo2Cs1mvRXCYbOWMtWj2oR83g0nb3UZU2jR7jNHSBu2fg+ONCOC FKng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=YGZyt4ZReO+s3SR1quvzA6O/adN4fqErnusRgVyJXtw=; b=DCejGvzY1GyMYKijM8hsrySOVfI5Z2+G1N/u7EnXJWNSwj744LMuDwvIyQGV1SXtAd w6NaDZHz+dWYxsBJPLnw7G/tNF/JBg+UoM8lAf2JrwG/aAekyhRu/It4ZY7FDROjZaoh PYVLha0lOBNeEoUkAwnKRt6vmHTU2UGDUc1Jelpr2bgo2nvgr+m6jZ+R4m76xFAyvg/j kXxN9qwJbeBQvB1rjAWppoJNNSTvsjhEXezUvvFLNilcb+Y8j0T092Wgzbb9zVO9nXHs uATZhNS3/jlV9GPf/Fp5ztU9+hEhn41ZwNvo9u6P1edXT+r6AecEfO498NA9Y4zYon3E EzTA== 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 m5si15576878ejr.125.2019.10.16.08.06.36; Wed, 16 Oct 2019 08:07:09 -0700 (PDT) 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 S2405134AbfJPLco (ORCPT + 99 others); Wed, 16 Oct 2019 07:32:44 -0400 Received: from mx2.suse.de ([195.135.220.15]:35322 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2405015AbfJPLco (ORCPT ); Wed, 16 Oct 2019 07:32:44 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E4670AD12; Wed, 16 Oct 2019 11:32:41 +0000 (UTC) Subject: Re: [PATCH] drivers: mcb: use symbol namespaces To: Johannes Thumshirn , Greg KH Cc: Linux Kernel Mailinglist , Jessica Yu References: <20191016100158.1400-1-jthumshirn@suse.de> From: Michael Moese Autocrypt: addr=mmoese@suse.de; keydata= mQENBFpMxXQBCAC7Z72NqEDJW9vUrNbkIaAxobHAoZBtLK1RsorBlqYgqsUilu5ACfDazfox u7uw07rkSIFdBZU2ghPwdWr8j0LM/5DEpf6+jY+PU6AUiKzji4UHbJVLViHVs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EAAYkBJQQYAQIADwUCWkzFdAIbDAUJ B4TOAAAKCRBgITdchjV+dAHWB/9VrimlVzbdURLP0ZSttHtO8WdxPiYdmvl8G08a6yy59nc7 5qnkc7EKQ9XMisejZqsbSXbWxmgpA65rBtXrFomi0qoaDHzUlKVGlEU9YkkJo+/PEsgvxnWF J4vR0aLRYNOO9PvWRhJ6aHkWlCz2i9n6xsVA6PILYBiSQW22rvpH6AHu7WH7k3ddHmh4hmfw yxpDl1qL127wmZGUMLArb+mIEbG+Ftre84TwpvHLq9J1+xwo7/A+dEDfWwzDb3GjeL+TNar9 ZpY8cPYiHNDqnPUoNhHdhSJuvoIuNBhUU3RalPbNRYkuitKUWfJYMvIypGO4+YBj61TIvOaY nDZS/ArT Message-ID: <3a7a65f6-e1e8-7ab5-f407-d979da6f60dd@suse.de> Date: Wed, 16 Oct 2019 13:32:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20191016100158.1400-1-jthumshirn@suse.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16.10.19 12:01, Johannes Thumshirn wrote: > Now that we have symbol namespaces, use them in MCB to not pollute the > default namespace with MCB internals. > > Signed-off-by: Johannes Thumshirn Reviewed-by: Michael Moese > --- > drivers/gpio/gpio-menz127.c | 1 + > drivers/iio/adc/men_z188_adc.c | 1 + > drivers/mcb/mcb-core.c | 28 ++++++++++++++-------------- > drivers/mcb/mcb-lpc.c | 1 + > drivers/mcb/mcb-parse.c | 2 +- > drivers/mcb/mcb-pci.c | 1 + > drivers/tty/serial/8250/8250_men_mcb.c | 1 + > drivers/tty/serial/men_z135_uart.c | 1 + > drivers/watchdog/menz69_wdt.c | 1 + > 9 files changed, 22 insertions(+), 15 deletions(-) > > diff --git a/drivers/gpio/gpio-menz127.c b/drivers/gpio/gpio-menz127.c > index 70fdb42a8e88..1e21c661d79d 100644 > --- a/drivers/gpio/gpio-menz127.c > +++ b/drivers/gpio/gpio-menz127.c > @@ -211,3 +211,4 @@ MODULE_AUTHOR("Andreas Werner "); > MODULE_DESCRIPTION("MEN 16z127 GPIO Controller"); > MODULE_LICENSE("GPL v2"); > MODULE_ALIAS("mcb:16z127"); > +MODULE_IMPORT_NS(MCB); > diff --git a/drivers/iio/adc/men_z188_adc.c b/drivers/iio/adc/men_z188_adc.c > index 3b2fbb7ce431..196c8226381e 100644 > --- a/drivers/iio/adc/men_z188_adc.c > +++ b/drivers/iio/adc/men_z188_adc.c > @@ -167,3 +167,4 @@ MODULE_AUTHOR("Johannes Thumshirn "); > MODULE_LICENSE("GPL"); > MODULE_DESCRIPTION("IIO ADC driver for MEN 16z188 ADC Core"); > MODULE_ALIAS("mcb:16z188"); > +MODULE_IMPORT_NS(MCB); > diff --git a/drivers/mcb/mcb-core.c b/drivers/mcb/mcb-core.c > index b72e82efaee5..38fbb3b59873 100644 > --- a/drivers/mcb/mcb-core.c > +++ b/drivers/mcb/mcb-core.c > @@ -191,7 +191,7 @@ int __mcb_register_driver(struct mcb_driver *drv, struct module *owner, > > return driver_register(&drv->driver); > } > -EXPORT_SYMBOL_GPL(__mcb_register_driver); > +EXPORT_SYMBOL_NS_GPL(__mcb_register_driver, MCB); > > /** > * mcb_unregister_driver() - Unregister a @mcb_driver from the system > @@ -203,7 +203,7 @@ void mcb_unregister_driver(struct mcb_driver *drv) > { > driver_unregister(&drv->driver); > } > -EXPORT_SYMBOL_GPL(mcb_unregister_driver); > +EXPORT_SYMBOL_NS_GPL(mcb_unregister_driver, MCB); > > static void mcb_release_dev(struct device *dev) > { > @@ -249,7 +249,7 @@ int mcb_device_register(struct mcb_bus *bus, struct mcb_device *dev) > > return ret; > } > -EXPORT_SYMBOL_GPL(mcb_device_register); > +EXPORT_SYMBOL_NS_GPL(mcb_device_register, MCB); > > static void mcb_free_bus(struct device *dev) > { > @@ -301,7 +301,7 @@ struct mcb_bus *mcb_alloc_bus(struct device *carrier) > kfree(bus); > return ERR_PTR(rc); > } > -EXPORT_SYMBOL_GPL(mcb_alloc_bus); > +EXPORT_SYMBOL_NS_GPL(mcb_alloc_bus, MCB); > > static int __mcb_devices_unregister(struct device *dev, void *data) > { > @@ -323,7 +323,7 @@ void mcb_release_bus(struct mcb_bus *bus) > { > mcb_devices_unregister(bus); > } > -EXPORT_SYMBOL_GPL(mcb_release_bus); > +EXPORT_SYMBOL_NS_GPL(mcb_release_bus, MCB); > > /** > * mcb_bus_put() - Increment refcnt > @@ -338,7 +338,7 @@ struct mcb_bus *mcb_bus_get(struct mcb_bus *bus) > > return bus; > } > -EXPORT_SYMBOL_GPL(mcb_bus_get); > +EXPORT_SYMBOL_NS_GPL(mcb_bus_get, MCB); > > /** > * mcb_bus_put() - Decrement refcnt > @@ -351,7 +351,7 @@ void mcb_bus_put(struct mcb_bus *bus) > if (bus) > put_device(&bus->dev); > } > -EXPORT_SYMBOL_GPL(mcb_bus_put); > +EXPORT_SYMBOL_NS_GPL(mcb_bus_put, MCB); > > /** > * mcb_alloc_dev() - Allocate a device > @@ -371,7 +371,7 @@ struct mcb_device *mcb_alloc_dev(struct mcb_bus *bus) > > return dev; > } > -EXPORT_SYMBOL_GPL(mcb_alloc_dev); > +EXPORT_SYMBOL_NS_GPL(mcb_alloc_dev, MCB); > > /** > * mcb_free_dev() - Free @mcb_device > @@ -383,7 +383,7 @@ void mcb_free_dev(struct mcb_device *dev) > { > kfree(dev); > } > -EXPORT_SYMBOL_GPL(mcb_free_dev); > +EXPORT_SYMBOL_NS_GPL(mcb_free_dev, MCB); > > static int __mcb_bus_add_devices(struct device *dev, void *data) > { > @@ -412,7 +412,7 @@ void mcb_bus_add_devices(const struct mcb_bus *bus) > { > bus_for_each_dev(&mcb_bus_type, NULL, NULL, __mcb_bus_add_devices); > } > -EXPORT_SYMBOL_GPL(mcb_bus_add_devices); > +EXPORT_SYMBOL_NS_GPL(mcb_bus_add_devices, MCB); > > /** > * mcb_get_resource() - get a resource for a mcb device > @@ -428,7 +428,7 @@ struct resource *mcb_get_resource(struct mcb_device *dev, unsigned int type) > else > return NULL; > } > -EXPORT_SYMBOL_GPL(mcb_get_resource); > +EXPORT_SYMBOL_NS_GPL(mcb_get_resource, MCB); > > /** > * mcb_request_mem() - Request memory > @@ -454,7 +454,7 @@ struct resource *mcb_request_mem(struct mcb_device *dev, const char *name) > > return mem; > } > -EXPORT_SYMBOL_GPL(mcb_request_mem); > +EXPORT_SYMBOL_NS_GPL(mcb_request_mem, MCB); > > /** > * mcb_release_mem() - Release memory requested by device > @@ -469,7 +469,7 @@ void mcb_release_mem(struct resource *mem) > size = resource_size(mem); > release_mem_region(mem->start, size); > } > -EXPORT_SYMBOL_GPL(mcb_release_mem); > +EXPORT_SYMBOL_NS_GPL(mcb_release_mem, MCB); > > static int __mcb_get_irq(struct mcb_device *dev) > { > @@ -495,7 +495,7 @@ int mcb_get_irq(struct mcb_device *dev) > > return __mcb_get_irq(dev); > } > -EXPORT_SYMBOL_GPL(mcb_get_irq); > +EXPORT_SYMBOL_NS_GPL(mcb_get_irq, MCB); > > static int mcb_init(void) > { > diff --git a/drivers/mcb/mcb-lpc.c b/drivers/mcb/mcb-lpc.c > index 8f1bde437a7e..506676754538 100644 > --- a/drivers/mcb/mcb-lpc.c > +++ b/drivers/mcb/mcb-lpc.c > @@ -168,3 +168,4 @@ module_exit(mcb_lpc_exit); > MODULE_AUTHOR("Andreas Werner "); > MODULE_LICENSE("GPL"); > MODULE_DESCRIPTION("MCB over LPC support"); > +MODULE_IMPORT_NS(MCB); > diff --git a/drivers/mcb/mcb-parse.c b/drivers/mcb/mcb-parse.c > index 3b69e6aa3d88..0266bfddfbe2 100644 > --- a/drivers/mcb/mcb-parse.c > +++ b/drivers/mcb/mcb-parse.c > @@ -253,4 +253,4 @@ int chameleon_parse_cells(struct mcb_bus *bus, phys_addr_t mapbase, > > return ret; > } > -EXPORT_SYMBOL_GPL(chameleon_parse_cells); > +EXPORT_SYMBOL_NS_GPL(chameleon_parse_cells, MCB); > diff --git a/drivers/mcb/mcb-pci.c b/drivers/mcb/mcb-pci.c > index 14866aa22f75..dc88232d9af8 100644 > --- a/drivers/mcb/mcb-pci.c > +++ b/drivers/mcb/mcb-pci.c > @@ -131,3 +131,4 @@ module_pci_driver(mcb_pci_driver); > MODULE_AUTHOR("Johannes Thumshirn "); > MODULE_LICENSE("GPL"); > MODULE_DESCRIPTION("MCB over PCI support"); > +MODULE_IMPORT_NS(MCB); > diff --git a/drivers/tty/serial/8250/8250_men_mcb.c b/drivers/tty/serial/8250/8250_men_mcb.c > index 02c5aff58a74..80a5c063ed70 100644 > --- a/drivers/tty/serial/8250/8250_men_mcb.c > +++ b/drivers/tty/serial/8250/8250_men_mcb.c > @@ -174,3 +174,4 @@ MODULE_AUTHOR("Michael Moese MODULE_ALIAS("mcb:16z125"); > MODULE_ALIAS("mcb:16z025"); > MODULE_ALIAS("mcb:16z057"); > +MODULE_IMPORT_NS(MCB); > diff --git a/drivers/tty/serial/men_z135_uart.c b/drivers/tty/serial/men_z135_uart.c > index e5d3ebab6dae..4f53a4caabf6 100644 > --- a/drivers/tty/serial/men_z135_uart.c > +++ b/drivers/tty/serial/men_z135_uart.c > @@ -930,3 +930,4 @@ MODULE_AUTHOR("Johannes Thumshirn "); > MODULE_LICENSE("GPL v2"); > MODULE_DESCRIPTION("MEN 16z135 High Speed UART"); > MODULE_ALIAS("mcb:16z135"); > +MODULE_IMPORT_NS(MCB); > diff --git a/drivers/watchdog/menz69_wdt.c b/drivers/watchdog/menz69_wdt.c > index ed18238c5407..8973f98bc6a5 100644 > --- a/drivers/watchdog/menz69_wdt.c > +++ b/drivers/watchdog/menz69_wdt.c > @@ -168,3 +168,4 @@ module_mcb_driver(men_z069_driver); > MODULE_AUTHOR("Johannes Thumshirn "); > MODULE_LICENSE("GPL v2"); > MODULE_ALIAS("mcb:16z069"); > +MODULE_IMPORT_NS(MCB); > -- Michael Moese QA Engineer PGP Fingerprint: 4CCE 3896 F873 2CA5 2382 3C6F 6021 375C 8635 7E74 SUSE Software Solutions Germany GmbH Maxfeldstr. 5 90409 Nürnberg Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer