Skip to content

Commit 273ba85

Browse files
Sebastian Andrzej SiewiorPeter Zijlstra
authored andcommitted
Revert "mm/page_alloc: mark pagesets as __maybe_unused"
The local_lock() is now using a proper static inline function which is enough for llvm to accept that the variable is used. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2d2f8f0 commit 273ba85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/page_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static DEFINE_MUTEX(pcp_batch_high_lock);
128128
struct pagesets {
129129
local_lock_t lock;
130130
};
131-
static DEFINE_PER_CPU(struct pagesets, pagesets) __maybe_unused = {
131+
static DEFINE_PER_CPU(struct pagesets, pagesets) = {
132132
.lock = INIT_LOCAL_LOCK(lock),
133133
};
134134

0 commit comments

Comments
 (0)