lkml.org 
[lkml]   [2018]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] tile/pci_gx: Make setup_pcie_rc_delay __init
Date
The early_param() is only called during kernel initialization, So Linux
marks the functions of it with __init macro to save memory.

But it forgot to mark setup_pcie_rc_delay(). So, Make it __init as well.

Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Chris Metcalf<cmetcalf@mellanox.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
---
arch/tile/kernel/pci_gx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/tile/kernel/pci_gx.c b/arch/tile/kernel/pci_gx.c
index 9aa238ac7b35..9a874e98b1cc 100644
--- a/arch/tile/kernel/pci_gx.c
+++ b/arch/tile/kernel/pci_gx.c
@@ -617,7 +617,7 @@ static void fixup_read_and_payload_sizes(struct pci_controller *controller)
}
}

-static int setup_pcie_rc_delay(char *str)
+static int __init setup_pcie_rc_delay(char *str)
{
unsigned long delay = 0;
unsigned long trio_index;
--
2.14.3


\
 
 \ /
  Last update: 2018-01-18 00:19    [W:0.041 / U:3.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site