Skip to content

Commit

Permalink
Merge branch 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/lin…
Browse files Browse the repository at this point in the history
…ux/kernel/git/tip/tip into next

Pull x86 boot changes from Ingo Molnar:
 "Two small cleanups"

* 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86, boot: Remove misc.h inclusion from compressed/string.c
  x86, boot: Do not include boot.h in string.c
  • Loading branch information
Linus Torvalds committed Jun 3, 2014
2 parents 3d1a3bd + a9a1710 commit e7a3876
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 0 additions & 4 deletions arch/x86/boot/compressed/string.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#include "misc.h"
#include "../string.c"

/* misc.h might pull in string_32.h which has a macro for memcpy. undef that */
#undef memcpy

#ifdef CONFIG_X86_32
void *memcpy(void *dest, const void *src, size_t n)
{
Expand Down
9 changes: 2 additions & 7 deletions arch/x86/boot/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@
* Very basic string functions
*/

#include "boot.h"
#include <linux/types.h>
#include "ctype.h"

/*
* This file gets included in compressed/string.c which might pull in
* string_32.h and which in turn maps memcmp to __builtin_memcmp(). Undo
* that first.
*/
#undef memcmp
int memcmp(const void *s1, const void *s2, size_t len)
{
u8 diff;
Expand Down

0 comments on commit e7a3876

Please sign in to comment.