Skip to content

Commit f7b548f

Browse files
committed
Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: percpu, x86: Fix percpu_xchg_op() x86: Remove left over system_64.h x86-64: Don't use pointer to out-of-scope variable in dump_trace()
2 parents 95f9354 + 889a7a6 commit f7b548f

3 files changed

Lines changed: 13 additions & 35 deletions

File tree

‎arch/x86/include/asm/percpu.h‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -273,34 +273,34 @@ do { \
273273
typeof(var) pxo_new__ = (nval); \
274274
switch (sizeof(var)) { \
275275
case 1: \
276-
asm("\n1:mov "__percpu_arg(1)",%%al" \
277-
"\n\tcmpxchgb %2, "__percpu_arg(1) \
276+
asm("\n\tmov "__percpu_arg(1)",%%al" \
277+
"\n1:\tcmpxchgb %2, "__percpu_arg(1) \
278278
"\n\tjnz 1b" \
279-
: "=a" (pxo_ret__), "+m" (var) \
279+
: "=&a" (pxo_ret__), "+m" (var) \
280280
: "q" (pxo_new__) \
281281
: "memory"); \
282282
break; \
283283
case 2: \
284-
asm("\n1:mov "__percpu_arg(1)",%%ax" \
285-
"\n\tcmpxchgw %2, "__percpu_arg(1) \
284+
asm("\n\tmov "__percpu_arg(1)",%%ax" \
285+
"\n1:\tcmpxchgw %2, "__percpu_arg(1) \
286286
"\n\tjnz 1b" \
287-
: "=a" (pxo_ret__), "+m" (var) \
287+
: "=&a" (pxo_ret__), "+m" (var) \
288288
: "r" (pxo_new__) \
289289
: "memory"); \
290290
break; \
291291
case 4: \
292-
asm("\n1:mov "__percpu_arg(1)",%%eax" \
293-
"\n\tcmpxchgl %2, "__percpu_arg(1) \
292+
asm("\n\tmov "__percpu_arg(1)",%%eax" \
293+
"\n1:\tcmpxchgl %2, "__percpu_arg(1) \
294294
"\n\tjnz 1b" \
295-
: "=a" (pxo_ret__), "+m" (var) \
295+
: "=&a" (pxo_ret__), "+m" (var) \
296296
: "r" (pxo_new__) \
297297
: "memory"); \
298298
break; \
299299
case 8: \
300-
asm("\n1:mov "__percpu_arg(1)",%%rax" \
301-
"\n\tcmpxchgq %2, "__percpu_arg(1) \
300+
asm("\n\tmov "__percpu_arg(1)",%%rax" \
301+
"\n1:\tcmpxchgq %2, "__percpu_arg(1) \
302302
"\n\tjnz 1b" \
303-
: "=a" (pxo_ret__), "+m" (var) \
303+
: "=&a" (pxo_ret__), "+m" (var) \
304304
: "r" (pxo_new__) \
305305
: "memory"); \
306306
break; \

‎arch/x86/include/asm/system_64.h‎

Lines changed: 0 additions & 22 deletions
This file was deleted.

‎arch/x86/kernel/dumpstack_64.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,13 @@ void dump_trace(struct task_struct *task,
149149
unsigned used = 0;
150150
struct thread_info *tinfo;
151151
int graph = 0;
152+
unsigned long dummy;
152153
unsigned long bp;
153154

154155
if (!task)
155156
task = current;
156157

157158
if (!stack) {
158-
unsigned long dummy;
159159
stack = &dummy;
160160
if (task && task != current)
161161
stack = (unsigned long *)task->thread.sp;

0 commit comments

Comments
 (0)