Skip to content

Commit 8b73240

Browse files
akpm00hnaz
authored andcommitted
not-adding-modules-range-to-kcore-if-its-equal-to-vmcore-range-checkpatch-fixes
ERROR: space prohibited after that open parenthesis '(' torvalds#34: FILE: fs/proc/kcore.c:613: + if ( (MODULES_VADDR != VMALLOC_START) && ERROR: space prohibited before that close parenthesis ')' torvalds#35: FILE: fs/proc/kcore.c:614: + (MODULES_END != VMALLOC_END) ) { total: 2 errors, 0 warnings, 12 lines checked ./patches/not-adding-modules-range-to-kcore-if-its-equal-to-vmcore-range.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Baoquan He <[email protected]> Cc: Paul Gortmaker <[email protected]> Cc: Xishi Qiu <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 329e1cd commit 8b73240

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: fs/proc/kcore.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,7 @@ static void __init proc_kcore_text_init(void)
610610
struct kcore_list kcore_modules;
611611
static void __init add_modules_range(void)
612612
{
613-
if ( (MODULES_VADDR != VMALLOC_START) &&
614-
(MODULES_END != VMALLOC_END) ) {
613+
if (MODULES_VADDR != VMALLOC_START && MODULES_END != VMALLOC_END) {
615614
kclist_add(&kcore_modules, (void *)MODULES_VADDR,
616615
MODULES_END - MODULES_VADDR, KCORE_VMALLOC);
617616
}

0 commit comments

Comments
 (0)