diff mbox series

[v1] ahci: Do not export local variable ahci_em_messages

Message ID 20190830194255.878-1-andriy.shevchenko@linux.intel.com
State Not Applicable
Delegated to: David Miller
Headers show
Series [v1] ahci: Do not export local variable ahci_em_messages | expand

Commit Message

Andy Shevchenko Aug. 30, 2019, 7:42 p.m. UTC
The commit ed08d40cdec4
  ("ahci: Changing two module params with static and __read_mostly")
moved ahci_em_messages to be static while missing the fact of exporting it.

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

Drop export for the local variable ahci_em_messages.

Fixes: ed08d40cdec4 ("ahci: Changing two module params with static and __read_mostly")
Cc: Chuansheng Liu <chuansheng.liu@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/ata/libahci.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Jens Axboe Aug. 30, 2019, 8:26 p.m. UTC | #1
On 8/30/19 1:42 PM, Andy Shevchenko wrote:
> The commit ed08d40cdec4
>    ("ahci: Changing two module params with static and __read_mostly")
> moved ahci_em_messages to be static while missing the fact of exporting it.
> 
> WARNING: "ahci_em_messages" [vmlinux] is a static EXPORT_SYMBOL_GPL
> 
> Drop export for the local variable ahci_em_messages.

Applied, thanks.
diff mbox series

Patch

diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
index e4c45d3cca79..bff369d9a1a7 100644
--- a/drivers/ata/libahci.c
+++ b/drivers/ata/libahci.c
@@ -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,