Skip to content

Commit 5ef9bdd

Browse files
committed
FRV: Missing node arg in alloc_thread_info_node() macro
There are two alloc_thread_info_node() macros defined (one for debugging and one for normal). The commit that changed them most recently: commit b6a8401 Author: Eric Dumazet <eric.dumazet@gmail.com> Date: Tue Mar 22 16:30:42 2011 -0700 Subject: mm: NUMA aware alloc_thread_info_node() didn't add the node argument into the macro argument list for the normal macro. This results in the following error: kernel/fork.c:267:39: error: macro "alloc_thread_info_node" passed 2 arguments, but takes just 1 kernel/fork.c: In function 'dup_task_struct': kernel/fork.c:267: error: 'alloc_thread_info_node' undeclared (first use in this function) kernel/fork.c:267: error: (Each undeclared identifier is reported only once kernel/fork.c:267: error: for each function it appears in.) Signed-off-by: David Howells <dhowells@redhat.com>
1 parent f55f199 commit 5ef9bdd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/frv/include/asm/thread_info.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ register struct thread_info *__current_thread_info asm("gr15");
8787
#define alloc_thread_info_node(tsk, node) \
8888
kzalloc_node(THREAD_SIZE, GFP_KERNEL, node)
8989
#else
90-
#define alloc_thread_info_node(tsk) \
90+
#define alloc_thread_info_node(tsk, node) \
9191
kmalloc_node(THREAD_SIZE, GFP_KERNEL, node)
9292
#endif
9393

0 commit comments

Comments
 (0)