Skip to contentSkip to conversation

ahci: stop exporting ahci_em_messages

PATCH In review Arnd Bergmann 2 participants 2 messages Sep 18, 2019 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ahci: stop exporting ahci_em_messages

The symbol is now static and not used elswhere, which leads to a warning message:

WARNING: "ahci_em_messages" [vmlinux] is a static EXPORT_SYMBOL_GPL

Fixes ed08d40cdec4 ("ahci: Changing two module params with static and __read_mostly")
---
 drivers/ata/libahci.c | 1 -
 1 file changed, 1 deletion(-)
drivers/ata/libahci.c +0 -1
index e4c45d3cca79..bff369d9a1a7 100644
@@ -175,7 +175,6 @@ struct ata_port_operations ahci_pmp_retry_srst_ops = {
 EXPORT_SYMBOL_GPL(ahci_pmp_retry_srst_ops);
 
 static bool ahci_em_messages __read_mostly = true;
-EXPORT_SYMBOL_GPL(ahci_em_messages);
 module_param(ahci_em_messages, bool, 0444);
 /* add other LED protocol types when they become supported */
 MODULE_PARM_DESC(ahci_em_messages,
Signature · 1 line
2.20.0
#1 lore raw
Quoted 4 lines · Arnd Bergmann

The symbol is now static and not used elswhere, which leads to a warning message:

WARNING: "ahci_em_messages" [vmlinux] is a static EXPORT_SYMBOL_GPL

If you look at master, this was fixed in this merge window:

commit 60fc35f327e0a9e60b955c0f3c3ed623608d1baa

Author: Andy Shevchenko <[email protected]>
Date:   Fri Aug 30 22:42:55 2019 +0300

ahci: Do not export local variable ahci_em_messages

Signature · 1 line
Jens Axboe