forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel/numa.c: Move logging out of numa.h
Moving these stub functions to a .c file means we can kill a sched.h dependency on printk.h. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
- Loading branch information
Kent Overstreet
committed
Dec 21, 2023
1 parent
04bc786
commit d7a73e3
Showing
3 changed files
with
33 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#include <linux/printk.h> | ||
#include <linux/numa.h> | ||
|
||
/* Stub functions: */ | ||
|
||
#ifndef memory_add_physaddr_to_nid | ||
int memory_add_physaddr_to_nid(u64 start) | ||
{ | ||
pr_info_once("Unknown online node for memory at 0x%llx, assuming node 0\n", | ||
start); | ||
return 0; | ||
} | ||
EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid); | ||
#endif | ||
|
||
#ifndef phys_to_target_node | ||
int phys_to_target_node(u64 start) | ||
{ | ||
pr_info_once("Unknown target node for memory at 0x%llx, assuming node 0\n", | ||
start); | ||
return 0; | ||
} | ||
EXPORT_SYMBOL_GPL(phys_to_target_node); | ||
#endif |