]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
topology: mark a function as __init to save some memory
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 21 Jun 2020 08:11:06 +0000 (10:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jul 2020 12:35:37 +0000 (14:35 +0200)
'topology_sysfs_init()' is only called via 'device_initcall'.
It can be marked as __init to save a few bytes of memory.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20200621081106.881915-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/topology.c

index 4e033d4cc0dcffcaf3f201e68100afa0f7abcfbb..ad8d33c6077b6af0bee0198f9f3a1a1a571622b4 100644 (file)
@@ -133,7 +133,7 @@ static int topology_remove_dev(unsigned int cpu)
        return 0;
 }
 
-static int topology_sysfs_init(void)
+static int __init topology_sysfs_init(void)
 {
        return cpuhp_setup_state(CPUHP_TOPOLOGY_PREPARE,
                                 "base/topology:prepare", topology_add_dev,