]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm-consolidate-common-checks-in-hugetlb_get_unmapped_area-fix
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 8 Oct 2024 18:25:48 +0000 (11:25 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:00 +0000 (21:29 -0700)
arch/mips/include/asm/hugetlb.h: remove now-unused local

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410081210.uNLbf3Jk-lkp@intel.com/
Cc: David Hildenbrand <david@redhat.com>
Cc: Donet Tom <donettom@linux.ibm.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Peter Xu <peterx@redhat.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/mips/include/asm/hugetlb.h

index 6a63d82a8ab324c1c89664b12bf1bc0d21965540..d0a86ce83de9155b6aa2bd10befb108428d4d337 100644 (file)
@@ -17,7 +17,6 @@ static inline int prepare_hugepage_range(struct file *file,
                                         unsigned long len)
 {
        unsigned long task_size = STACK_TOP;
-       struct hstate *h = hstate_file(file);
 
        if (len > task_size)
                return -ENOMEM;