diff options
-rw-r--r-- | arch/powerpc/include/asm/feature-fixups.h | 2 | ||||
-rw-r--r-- | arch/powerpc/lib/feature-fixups.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/feature-fixups.h b/arch/powerpc/include/asm/feature-fixups.h index cbd4dfa4bce2..96a7d067fbb2 100644 --- a/arch/powerpc/include/asm/feature-fixups.h +++ b/arch/powerpc/include/asm/feature-fixups.h | |||
@@ -165,7 +165,7 @@ label##2: \ | |||
165 | .pushsection sect,"a"; \ | 165 | .pushsection sect,"a"; \ |
166 | .align 2; \ | 166 | .align 2; \ |
167 | label##3: \ | 167 | label##3: \ |
168 | .long label##1b-label##3b; \ | 168 | FTR_ENTRY_OFFSET label##1b-label##3b; \ |
169 | .popsection; | 169 | .popsection; |
170 | 170 | ||
171 | #endif /* __ASM_POWERPC_FEATURE_FIXUPS_H */ | 171 | #endif /* __ASM_POWERPC_FEATURE_FIXUPS_H */ |
diff --git a/arch/powerpc/lib/feature-fixups.c b/arch/powerpc/lib/feature-fixups.c index 4dee652dfcad..e640175b65ae 100644 --- a/arch/powerpc/lib/feature-fixups.c +++ b/arch/powerpc/lib/feature-fixups.c | |||
@@ -112,7 +112,8 @@ void do_feature_fixups(unsigned long value, void *fixup_start, void *fixup_end) | |||
112 | 112 | ||
113 | void do_lwsync_fixups(unsigned long value, void *fixup_start, void *fixup_end) | 113 | void do_lwsync_fixups(unsigned long value, void *fixup_start, void *fixup_end) |
114 | { | 114 | { |
115 | int *start, *end, *dest; | 115 | long *start, *end; |
116 | unsigned int *dest; | ||
116 | 117 | ||
117 | if (!(value & CPU_FTR_LWSYNC)) | 118 | if (!(value & CPU_FTR_LWSYNC)) |
118 | return ; | 119 | return ; |