Skip to content

Commit 1ebf5af

Browse files
committed
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull core fixes from Thomas Gleixner: "Two small fixes: - Move the large objtool_file struct off the stack so objtool works in setups with a tight stack limit. - Make a few variables static in the watchdog core code" * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: watchdog/core: Make variables static objtool: Move objtool_file struct off the stack
2 parents 9fc13bb + 48084ab commit 1ebf5af

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

kernel/watchdog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ int __read_mostly watchdog_user_enabled = 1;
4242
int __read_mostly nmi_watchdog_user_enabled = NMI_WATCHDOG_DEFAULT;
4343
int __read_mostly soft_watchdog_user_enabled = 1;
4444
int __read_mostly watchdog_thresh = 10;
45-
int __read_mostly nmi_watchdog_available;
45+
static int __read_mostly nmi_watchdog_available;
4646

47-
struct cpumask watchdog_allowed_mask __read_mostly;
47+
static struct cpumask watchdog_allowed_mask __read_mostly;
4848

4949
struct cpumask watchdog_cpumask __read_mostly;
5050
unsigned long *watchdog_cpumask_bits = cpumask_bits(&watchdog_cpumask);

tools/objtool/check.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2184,9 +2184,10 @@ static void cleanup(struct objtool_file *file)
21842184
elf_close(file->elf);
21852185
}
21862186

2187+
static struct objtool_file file;
2188+
21872189
int check(const char *_objname, bool orc)
21882190
{
2189-
struct objtool_file file;
21902191
int ret, warnings = 0;
21912192

21922193
objname = _objname;

0 commit comments

Comments
 (0)