lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9198523b-a049-1c92-1818-989bab30628b@redhat.com>
Date:   Tue, 17 Aug 2021 09:17:47 +0200
From:   David Hildenbrand <david@...hat.com>
To:     Muchun Song <songmuchun@...edance.com>, akpm@...ux-foundation.org,
        osalvador@...e.de, mhocko@...e.com
Cc:     linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm: bootmem_info: mark __init on
 register_page_bootmem_info_section

On 17.08.21 06:22, Muchun Song wrote:
> The register_page_bootmem_info_section() is only called from __init
> functions, so mark __init on it as well.
> 
> Signed-off-by: Muchun Song <songmuchun@...edance.com>
> ---
>   mm/bootmem_info.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/mm/bootmem_info.c b/mm/bootmem_info.c
> index 5b152dba7344..f03f42f426f6 100644
> --- a/mm/bootmem_info.c
> +++ b/mm/bootmem_info.c
> @@ -39,7 +39,7 @@ void put_page_bootmem(struct page *page)
>   }
>   
>   #ifndef CONFIG_SPARSEMEM_VMEMMAP
> -static void register_page_bootmem_info_section(unsigned long start_pfn)
> +static void __init register_page_bootmem_info_section(unsigned long start_pfn)
>   {
>   	unsigned long mapsize, section_nr, i;
>   	struct mem_section *ms;
> @@ -74,7 +74,7 @@ static void register_page_bootmem_info_section(unsigned long start_pfn)
>   
>   }
>   #else /* CONFIG_SPARSEMEM_VMEMMAP */
> -static void register_page_bootmem_info_section(unsigned long start_pfn)
> +static void __init register_page_bootmem_info_section(unsigned long start_pfn)
>   {
>   	unsigned long mapsize, section_nr, i;
>   	struct mem_section *ms;
> 

Reviewed-by: David Hildenbrand <david@...hat.com>

-- 
Thanks,

David / dhildenb

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ