Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1636712
| From | Catalin Marinas <catalin.marinas@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [GIT PULL] arm64 updates for 4.12 |
| Date | 2017-05-05 22:20 +0200 |
| Message-ID | <tDRRM-6Av-25@gated-at.bofh.it> (permalink) |
| References | <tDO7w-437-5@gated-at.bofh.it> <tDRf4-63i-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, May 05, 2017 at 12:38:32PM -0700, Linus Torvalds wrote:
> On Fri, May 5, 2017 at 9:13 AM, Catalin Marinas <catalin.marinas@arm.com> wrote:
> > diff --cc arch/arm64/include/asm/bug.h
>
> Hmm. The trivial resolution I did gets a different diff as the end
> result, but your diff looks different.
>
> I think you used "-U2" to make for a smaller and more targeted context..
>
> So I think the trivial resolution is what you meant. But I couldn't
> test it, so I thought I'd mention this oddity.
I indeed used -U2 as I thought that the rest of non-conflicting changes
were just complicating the diff. Sorry about the confusion. Here's the
default diff:
diff --cc arch/arm64/include/asm/bug.h
index a9be1072933c,0bfe1df12b19..000000000000
--- a/arch/arm64/include/asm/bug.h
+++ b/arch/arm64/include/asm/bug.h
@@@ -45,19 -42,27 +42,26 @@@
_BUGVERBOSE_LOCATION(__FILE__, __LINE__) \
".short " #flags "\n\t" \
".popsection\n" \
- \
- "1: brk %[imm]" \
- :: [imm] "i" (BUG_BRK_IMM) \
- )
+ "1: "
+ #else
+ #define __BUG_ENTRY(flags) ""
+ #endif
+
+ #define __BUG_FLAGS(flags) \
+ asm volatile ( \
+ __BUG_ENTRY(flags) \
+ "brk %[imm]" :: [imm] "i" (BUG_BRK_IMM) \
+ );
- #define BUG() do { \
- _BUG_FLAGS(0); \
- unreachable(); \
+
+ #define BUG() do { \
+ __BUG_FLAGS(0); \
+ unreachable(); \
} while (0)
- #define __WARN_FLAGS(flags) _BUG_FLAGS(BUGFLAG_WARNING|(flags))
-#define __WARN_TAINT(taint) \
- __BUG_FLAGS(BUGFLAG_TAINT(taint))
++#define __WARN_FLAGS(flags) __BUG_FLAGS(BUGFLAG_WARNING|(flags))
- #endif /* ! CONFIG_GENERIC_BUG */
+ #define HAVE_ARCH_BUG
#include <asm-generic/bug.h>
--
Catalin
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[GIT PULL] arm64 updates for 4.12 Catalin Marinas <catalin.marinas@arm.com> - 2017-05-05 18:20 +0200
Re: [GIT PULL] arm64 updates for 4.12 Linus Torvalds <torvalds@linux-foundation.org> - 2017-05-05 21:40 +0200
Re: [GIT PULL] arm64 updates for 4.12 Catalin Marinas <catalin.marinas@arm.com> - 2017-05-05 22:20 +0200
csiph-web