mirror of
https://github.com/torvalds/linux
synced 2024-09-20 02:57:25 +00:00
usb-storage: export symbols in USB_STORAGE namespace
Modules using these symbols are required to explicitly import the namespace. This patch was generated with the following steps and serves as a reference to use the symbol namespace feature: 1) Define DEFAULT_SYMBOL_NAMESPACE in the corresponding Makefile 2) make (see warnings during modpost about missing imports) 3) make nsdeps Instead of a DEFAULT_SYMBOL_NAMESPACE definition, the EXPORT_SYMBOL_NS variants can be used to explicitly specify the namespace. The advantage of the method used here is that newly added symbols are automatically exported and existing ones are exported without touching their respective EXPORT_SYMBOL macro expansion. Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Matthias Maennich <maennich@google.com> Signed-off-by: Jessica Yu <jeyu@kernel.org>
This commit is contained in:
parent
8140de1ea3
commit
32bca2df7d
|
@ -8,6 +8,8 @@
|
||||||
|
|
||||||
ccflags-y := -I $(srctree)/drivers/scsi
|
ccflags-y := -I $(srctree)/drivers/scsi
|
||||||
|
|
||||||
|
ccflags-y += -DDEFAULT_SYMBOL_NAMESPACE=USB_STORAGE
|
||||||
|
|
||||||
obj-$(CONFIG_USB_UAS) += uas.o
|
obj-$(CONFIG_USB_UAS) += uas.o
|
||||||
obj-$(CONFIG_USB_STORAGE) += usb-storage.o
|
obj-$(CONFIG_USB_STORAGE) += usb-storage.o
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
MODULE_DESCRIPTION("Driver for Alauda-based card readers");
|
MODULE_DESCRIPTION("Driver for Alauda-based card readers");
|
||||||
MODULE_AUTHOR("Daniel Drake <dsd@gentoo.org>");
|
MODULE_AUTHOR("Daniel Drake <dsd@gentoo.org>");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_IMPORT_NS(USB_STORAGE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Status bytes
|
* Status bytes
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
MODULE_DESCRIPTION("SAT support for Cypress USB/ATA bridges with ATACB");
|
MODULE_DESCRIPTION("SAT support for Cypress USB/ATA bridges with ATACB");
|
||||||
MODULE_AUTHOR("Matthieu Castet <castet.matthieu@free.fr>");
|
MODULE_AUTHOR("Matthieu Castet <castet.matthieu@free.fr>");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_IMPORT_NS(USB_STORAGE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The table of devices
|
* The table of devices
|
||||||
|
|
|
@ -54,6 +54,7 @@
|
||||||
MODULE_DESCRIPTION("Driver for Datafab USB Compact Flash reader");
|
MODULE_DESCRIPTION("Driver for Datafab USB Compact Flash reader");
|
||||||
MODULE_AUTHOR("Jimmie Mayfield <mayfield+datafab@sackheads.org>");
|
MODULE_AUTHOR("Jimmie Mayfield <mayfield+datafab@sackheads.org>");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_IMPORT_NS(USB_STORAGE);
|
||||||
|
|
||||||
struct datafab_info {
|
struct datafab_info {
|
||||||
unsigned long sectors; /* total sector count */
|
unsigned long sectors; /* total sector count */
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
MODULE_DESCRIPTION("Driver for ENE UB6250 reader");
|
MODULE_DESCRIPTION("Driver for ENE UB6250 reader");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_IMPORT_NS(USB_STORAGE);
|
||||||
MODULE_FIRMWARE(SD_INIT1_FIRMWARE);
|
MODULE_FIRMWARE(SD_INIT1_FIRMWARE);
|
||||||
MODULE_FIRMWARE(SD_INIT2_FIRMWARE);
|
MODULE_FIRMWARE(SD_INIT2_FIRMWARE);
|
||||||
MODULE_FIRMWARE(SD_RW_FIRMWARE);
|
MODULE_FIRMWARE(SD_RW_FIRMWARE);
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
MODULE_DESCRIPTION("Driver for Freecom USB/IDE adaptor");
|
MODULE_DESCRIPTION("Driver for Freecom USB/IDE adaptor");
|
||||||
MODULE_AUTHOR("David Brown <usb-storage@davidb.org>");
|
MODULE_AUTHOR("David Brown <usb-storage@davidb.org>");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_IMPORT_NS(USB_STORAGE);
|
||||||
|
|
||||||
#ifdef CONFIG_USB_STORAGE_DEBUG
|
#ifdef CONFIG_USB_STORAGE_DEBUG
|
||||||
static void pdump(struct us_data *us, void *ibuffer, int length);
|
static void pdump(struct us_data *us, void *ibuffer, int length);
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
MODULE_DESCRIPTION("Driver for In-System Design, Inc. ISD200 ASIC");
|
MODULE_DESCRIPTION("Driver for In-System Design, Inc. ISD200 ASIC");
|
||||||
MODULE_AUTHOR("Björn Stenberg <bjorn@haxx.se>");
|
MODULE_AUTHOR("Björn Stenberg <bjorn@haxx.se>");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_IMPORT_NS(USB_STORAGE);
|
||||||
|
|
||||||
static int isd200_Initialization(struct us_data *us);
|
static int isd200_Initialization(struct us_data *us);
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
MODULE_DESCRIPTION("Driver for Lexar \"Jumpshot\" Compact Flash reader");
|
MODULE_DESCRIPTION("Driver for Lexar \"Jumpshot\" Compact Flash reader");
|
||||||
MODULE_AUTHOR("Jimmie Mayfield <mayfield+usb@sackheads.org>");
|
MODULE_AUTHOR("Jimmie Mayfield <mayfield+usb@sackheads.org>");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_IMPORT_NS(USB_STORAGE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The table of devices
|
* The table of devices
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
MODULE_DESCRIPTION("Driver for Rio Karma");
|
MODULE_DESCRIPTION("Driver for Rio Karma");
|
||||||
MODULE_AUTHOR("Bob Copeland <me@bobcopeland.com>, Keith Bennett <keith@mcs.st-and.ac.uk>");
|
MODULE_AUTHOR("Bob Copeland <me@bobcopeland.com>, Keith Bennett <keith@mcs.st-and.ac.uk>");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_IMPORT_NS(USB_STORAGE);
|
||||||
|
|
||||||
#define RIO_PREFIX "RIOP\x00"
|
#define RIO_PREFIX "RIOP\x00"
|
||||||
#define RIO_PREFIX_LEN 5
|
#define RIO_PREFIX_LEN 5
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
MODULE_DESCRIPTION("Maxtor USB OneTouch hard drive button driver");
|
MODULE_DESCRIPTION("Maxtor USB OneTouch hard drive button driver");
|
||||||
MODULE_AUTHOR("Nick Sillik <n.sillik@temple.edu>");
|
MODULE_AUTHOR("Nick Sillik <n.sillik@temple.edu>");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_IMPORT_NS(USB_STORAGE);
|
||||||
|
|
||||||
#define ONETOUCH_PKT_LEN 0x02
|
#define ONETOUCH_PKT_LEN 0x02
|
||||||
#define ONETOUCH_BUTTON KEY_PROG1
|
#define ONETOUCH_BUTTON KEY_PROG1
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
MODULE_DESCRIPTION("Driver for Realtek USB Card Reader");
|
MODULE_DESCRIPTION("Driver for Realtek USB Card Reader");
|
||||||
MODULE_AUTHOR("wwang <wei_wang@realsil.com.cn>");
|
MODULE_AUTHOR("wwang <wei_wang@realsil.com.cn>");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_IMPORT_NS(USB_STORAGE);
|
||||||
|
|
||||||
static int auto_delink_en = 1;
|
static int auto_delink_en = 1;
|
||||||
module_param(auto_delink_en, int, S_IRUGO | S_IWUSR);
|
module_param(auto_delink_en, int, S_IRUGO | S_IWUSR);
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
MODULE_DESCRIPTION("Driver for SanDisk SDDR-09 SmartMedia reader");
|
MODULE_DESCRIPTION("Driver for SanDisk SDDR-09 SmartMedia reader");
|
||||||
MODULE_AUTHOR("Andries Brouwer <aeb@cwi.nl>, Robert Baruch <autophile@starband.net>");
|
MODULE_AUTHOR("Andries Brouwer <aeb@cwi.nl>, Robert Baruch <autophile@starband.net>");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_IMPORT_NS(USB_STORAGE);
|
||||||
|
|
||||||
static int usb_stor_sddr09_dpcm_init(struct us_data *us);
|
static int usb_stor_sddr09_dpcm_init(struct us_data *us);
|
||||||
static int sddr09_transport(struct scsi_cmnd *srb, struct us_data *us);
|
static int sddr09_transport(struct scsi_cmnd *srb, struct us_data *us);
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
MODULE_DESCRIPTION("Driver for SanDisk SDDR-55 SmartMedia reader");
|
MODULE_DESCRIPTION("Driver for SanDisk SDDR-55 SmartMedia reader");
|
||||||
MODULE_AUTHOR("Simon Munton");
|
MODULE_AUTHOR("Simon Munton");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_IMPORT_NS(USB_STORAGE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The table of devices
|
* The table of devices
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
MODULE_DESCRIPTION("Driver for SCM Microsystems (a.k.a. Shuttle) USB-ATAPI cable");
|
MODULE_DESCRIPTION("Driver for SCM Microsystems (a.k.a. Shuttle) USB-ATAPI cable");
|
||||||
MODULE_AUTHOR("Daniel Drake <dsd@gentoo.org>, Robert Baruch <autophile@starband.net>");
|
MODULE_AUTHOR("Daniel Drake <dsd@gentoo.org>, Robert Baruch <autophile@starband.net>");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_IMPORT_NS(USB_STORAGE);
|
||||||
|
|
||||||
/* Supported device types */
|
/* Supported device types */
|
||||||
#define USBAT_DEV_HP8200 0x01
|
#define USBAT_DEV_HP8200 0x01
|
||||||
|
|
|
@ -1219,5 +1219,6 @@ static struct usb_driver uas_driver = {
|
||||||
module_usb_driver(uas_driver);
|
module_usb_driver(uas_driver);
|
||||||
|
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_IMPORT_NS(USB_STORAGE);
|
||||||
MODULE_AUTHOR(
|
MODULE_AUTHOR(
|
||||||
"Hans de Goede <hdegoede@redhat.com>, Matthew Wilcox and Sarah Sharp");
|
"Hans de Goede <hdegoede@redhat.com>, Matthew Wilcox and Sarah Sharp");
|
||||||
|
|
Loading…
Reference in a new issue