Commit 07eca14b authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull core fixes from Ingo Molnar:
 "Two fixes:

   - objtool cross-build fixes

   - removal of an obsolete CPU-hotplug state name from comments"

* 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  objtool: Fix 64-bit build on 32-bit host
  cpu/hotplug: Fix state name in takedown_cpu() comment
parents e56d565d 14c47b54
...@@ -780,8 +780,8 @@ static int takedown_cpu(unsigned int cpu) ...@@ -780,8 +780,8 @@ static int takedown_cpu(unsigned int cpu)
BUG_ON(cpu_online(cpu)); BUG_ON(cpu_online(cpu));
/* /*
* The CPUHP_AP_SCHED_MIGRATE_DYING callback will have removed all * The teardown callback for CPUHP_AP_SCHED_STARTING will have removed
* runnable tasks from the cpu, there's only the idle task left now * all runnable tasks from the CPU, there's only the idle task left now
* that the migration thread is done doing the stop_machine thing. * that the migration thread is done doing the stop_machine thing.
* *
* Wait for the stop thread to go away. * Wait for the stop thread to go away.
......
...@@ -7,9 +7,11 @@ ARCH := x86 ...@@ -7,9 +7,11 @@ ARCH := x86
endif endif
# always use the host compiler # always use the host compiler
CC = gcc HOSTCC ?= gcc
LD = ld HOSTLD ?= ld
AR = ar CC = $(HOSTCC)
LD = $(HOSTLD)
AR = ar
ifeq ($(srctree),) ifeq ($(srctree),)
srctree := $(patsubst %/,%,$(dir $(CURDIR))) srctree := $(patsubst %/,%,$(dir $(CURDIR)))
......
...@@ -76,7 +76,8 @@ int orc_dump(const char *_objname) ...@@ -76,7 +76,8 @@ int orc_dump(const char *_objname)
int fd, nr_entries, i, *orc_ip = NULL, orc_size = 0; int fd, nr_entries, i, *orc_ip = NULL, orc_size = 0;
struct orc_entry *orc = NULL; struct orc_entry *orc = NULL;
char *name; char *name;
unsigned long nr_sections, orc_ip_addr = 0; size_t nr_sections;
Elf64_Addr orc_ip_addr = 0;
size_t shstrtab_idx; size_t shstrtab_idx;
Elf *elf; Elf *elf;
Elf_Scn *scn; Elf_Scn *scn;
...@@ -187,10 +188,10 @@ int orc_dump(const char *_objname) ...@@ -187,10 +188,10 @@ int orc_dump(const char *_objname)
return -1; return -1;
} }
printf("%s+%lx:", name, rela.r_addend); printf("%s+%llx:", name, (unsigned long long)rela.r_addend);
} else { } else {
printf("%lx:", orc_ip_addr + (i * sizeof(int)) + orc_ip[i]); printf("%llx:", (unsigned long long)(orc_ip_addr + (i * sizeof(int)) + orc_ip[i]));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment