]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
kernel-resource-allow-region_intersects-users-to-hold-resource_lock-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 22 Apr 2021 06:43:07 +0000 (16:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 May 2021 22:09:26 +0000 (08:09 +1000)
make __region_intersects static

Reported-by: kernel test robot <lkp@intel.com>
Cc: Alistair Popple <apopple@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
kernel/resource.c

index 8faae19f8236ea168fad391806d51837a08f0430..f4aeeda7ee28d0805fc9f77162f00bf0b2f2156e 100644 (file)
@@ -502,8 +502,8 @@ int __weak page_is_ram(unsigned long pfn)
 }
 EXPORT_SYMBOL_GPL(page_is_ram);
 
-int __region_intersects(resource_size_t start, size_t size, unsigned long flags,
-                       unsigned long desc)
+static int __region_intersects(resource_size_t start, size_t size,
+                       unsigned long flags, unsigned long desc)
 {
        struct resource res;
        int type = 0; int other = 0;