Commit f4bdfeaf authored by Uladzislau Rezki (Sony)'s avatar Uladzislau Rezki (Sony) Committed by Linus Torvalds

mm/vmalloc: remove quoted strings split across lines

A checkpatch.pl script complains on splitting a text across lines.  It is
because if a user wants to find an entire string he or she will not
succeeded.

<snip>
WARNING: quoted string split across lines
+               "vmalloc size %lu allocation failure: "
+               "page order %u allocation failed",

total: 0 errors, 1 warnings, 10 lines checked
<snip>

Link: https://lkml.kernel.org/r/20210521204359.19943-1-urezki@gmail.comSigned-off-by: default avatarUladzislau Rezki (Sony) <urezki@gmail.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Hillf Danton <hdanton@sina.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Oleksiy Avramchenko <oleksiy.avramchenko@sonymobile.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent cd61413b
...@@ -2784,8 +2784,7 @@ static void *__vmalloc_area_node(struct vm_struct *area, gfp_t gfp_mask, ...@@ -2784,8 +2784,7 @@ static void *__vmalloc_area_node(struct vm_struct *area, gfp_t gfp_mask,
if (!area->pages) { if (!area->pages) {
warn_alloc(gfp_mask, NULL, warn_alloc(gfp_mask, NULL,
"vmalloc size %lu allocation failure: " "vmalloc error: size %lu, failed to allocated page array size %lu",
"page array size %lu allocation failed",
nr_small_pages * PAGE_SIZE, array_size); nr_small_pages * PAGE_SIZE, array_size);
free_vm_area(area); free_vm_area(area);
return NULL; return NULL;
...@@ -2831,16 +2830,14 @@ static void *__vmalloc_area_node(struct vm_struct *area, gfp_t gfp_mask, ...@@ -2831,16 +2830,14 @@ static void *__vmalloc_area_node(struct vm_struct *area, gfp_t gfp_mask,
*/ */
if (area->nr_pages != nr_small_pages) { if (area->nr_pages != nr_small_pages) {
warn_alloc(gfp_mask, NULL, warn_alloc(gfp_mask, NULL,
"vmalloc size %lu allocation failure: " "vmalloc error: size %lu, page order %u, failed to allocate pages",
"page order %u allocation failed",
area->nr_pages * PAGE_SIZE, page_order); area->nr_pages * PAGE_SIZE, page_order);
goto fail; goto fail;
} }
if (vmap_pages_range(addr, addr + size, prot, area->pages, page_shift) < 0) { if (vmap_pages_range(addr, addr + size, prot, area->pages, page_shift) < 0) {
warn_alloc(gfp_mask, NULL, warn_alloc(gfp_mask, NULL,
"vmalloc size %lu allocation failure: " "vmalloc error: size %lu, failed to map pages",
"failed to map pages",
area->nr_pages * PAGE_SIZE); area->nr_pages * PAGE_SIZE);
goto fail; goto fail;
} }
...@@ -2886,8 +2883,8 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align, ...@@ -2886,8 +2883,8 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align,
if ((size >> PAGE_SHIFT) > totalram_pages()) { if ((size >> PAGE_SHIFT) > totalram_pages()) {
warn_alloc(gfp_mask, NULL, warn_alloc(gfp_mask, NULL,
"vmalloc size %lu allocation failure: " "vmalloc error: size %lu, exceeds total pages",
"exceeds total pages", real_size); real_size);
return NULL; return NULL;
} }
...@@ -2918,8 +2915,8 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align, ...@@ -2918,8 +2915,8 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align,
gfp_mask, caller); gfp_mask, caller);
if (!area) { if (!area) {
warn_alloc(gfp_mask, NULL, warn_alloc(gfp_mask, NULL,
"vmalloc size %lu allocation failure: " "vmalloc error: size %lu, vm_struct allocation failed",
"vm_struct allocation failed", real_size); real_size);
goto fail; goto fail;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment