of: mark early_init_dt_alloc_reserved_memory_arch static
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Feb 2019 13:35:45 +0000 (14:35 +0100)
committerRob Herring <robh@kernel.org>
Thu, 28 Feb 2019 17:40:49 +0000 (11:40 -0600)
This function is only used in of_reserved_mem.c, and never overridden
despite the __weak marker.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/of_reserved_mem.c
include/linux/of_reserved_mem.h

index 9e02a5d..e773063 100644 (file)
@@ -26,7 +26,7 @@
 static struct reserved_mem reserved_mem[MAX_RESERVED_REGIONS];
 static int reserved_mem_count;
 
-int __init __weak early_init_dt_alloc_reserved_memory_arch(phys_addr_t size,
+static int __init early_init_dt_alloc_reserved_memory_arch(phys_addr_t size,
        phys_addr_t align, phys_addr_t start, phys_addr_t end, bool nomap,
        phys_addr_t *res_base)
 {
index 67ab8d2..60f5419 100644 (file)
@@ -35,13 +35,6 @@ int of_reserved_mem_device_init_by_idx(struct device *dev,
                                       struct device_node *np, int idx);
 void of_reserved_mem_device_release(struct device *dev);
 
-int early_init_dt_alloc_reserved_memory_arch(phys_addr_t size,
-                                            phys_addr_t align,
-                                            phys_addr_t start,
-                                            phys_addr_t end,
-                                            bool nomap,
-                                            phys_addr_t *res_base);
-
 void fdt_init_reserved_mem(void);
 void fdt_reserved_mem_save_node(unsigned long node, const char *uname,
                               phys_addr_t base, phys_addr_t size);