All of lore.kernel.org
 help / color / mirror / Atom feed
* >=linux-4.1: build fails w/_PAGE_GLOBAL_SHIFT redefined errors in pgtable-bits.h
@ 2015-09-11 19:25 Mike Frysinger
  2015-09-25 19:02 ` Mike Frysinger
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2015-09-11 19:25 UTC (permalink / raw)
  To: linux-mips; +Cc: Steven.Hill


[-- Attachment #1.1: Type: text/plain, Size: 979 bytes --]

this works in linux-4.0, but starting with 4.1, i'm seeing:
  CC      arch/mips/kernel/cpu-probe.o
In file included from ./arch/mips/include/asm/io.h:27:0,
                 from ./arch/mips/include/asm/page.h:176,
                 from include/linux/mm_types.h:15,
                 from include/linux/sched.h:27,
                 from include/linux/ptrace.h:5,
                 from arch/mips/kernel/cpu-probe.c:16:
./arch/mips/include/asm/pgtable-bits.h:164:0: error: "_PAGE_GLOBAL_SHIFT" redefined [-Werror]
./arch/mips/include/asm/pgtable-bits.h:141:0: note: this is the location of the previous definition
cc1: all warnings being treated as errors
make[2]: *** [arch/mips/kernel/cpu-probe.o] Error 1
make[1]: *** [arch/mips/kernel] Error 2
make: *** [arch/mips] Error 2

this warning hits many times, but this one is actually fatal

looks like it's due to:
	be0c37c985eddc46d0d67543898c086f60460e2e MIPS: Rearrange PTE bits into fixed positions.

my config is attached
-mike

[-- Attachment #1.2: config.gz --]
[-- Type: application/octet-stream, Size: 19001 bytes --]

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: >=linux-4.1: build fails w/_PAGE_GLOBAL_SHIFT redefined errors in pgtable-bits.h
  2015-09-11 19:25 >=linux-4.1: build fails w/_PAGE_GLOBAL_SHIFT redefined errors in pgtable-bits.h Mike Frysinger
@ 2015-09-25 19:02 ` Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2015-09-25 19:02 UTC (permalink / raw)
  To: linux-mips, macro, ralf; +Cc: Steven.Hill, stable

[-- Attachment #1: Type: text/plain, Size: 1507 bytes --]

On 11 Sep 2015 15:25, Mike Frysinger wrote:
> this works in linux-4.0, but starting with 4.1, i'm seeing:
>   CC      arch/mips/kernel/cpu-probe.o
> In file included from ./arch/mips/include/asm/io.h:27:0,
>                  from ./arch/mips/include/asm/page.h:176,
>                  from include/linux/mm_types.h:15,
>                  from include/linux/sched.h:27,
>                  from include/linux/ptrace.h:5,
>                  from arch/mips/kernel/cpu-probe.c:16:
> ./arch/mips/include/asm/pgtable-bits.h:164:0: error: "_PAGE_GLOBAL_SHIFT" redefined [-Werror]
> ./arch/mips/include/asm/pgtable-bits.h:141:0: note: this is the location of the previous definition
> cc1: all warnings being treated as errors
> make[2]: *** [arch/mips/kernel/cpu-probe.o] Error 1
> make[1]: *** [arch/mips/kernel] Error 2
> make: *** [arch/mips] Error 2
> 
> this warning hits many times, but this one is actually fatal
> 
> looks like it's due to:
> 	be0c37c985eddc46d0d67543898c086f60460e2e MIPS: Rearrange PTE bits into fixed positions.
> 
> my config is attached

looks like this is fixed for linux-4.3 with:

commit 1cfa8de2880e5512f9037c7804ea47a79cc8232c
Author:     Maciej W. Rozycki <macro@linux-mips.org>
AuthorDate: Sun May 3 10:36:19 2015 +0100
Commit:     Ralf Baechle <ralf@linux-mips.org>
CommitDate: Sun Aug 30 13:16:40 2015 +0200

    MIPS: pgtable-bits.h: Correct _PAGE_GLOBAL_SHIFT build failure

can that get included in linux-4.1 and linux-4.2 stable ?
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-25 19:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-11 19:25 >=linux-4.1: build fails w/_PAGE_GLOBAL_SHIFT redefined errors in pgtable-bits.h Mike Frysinger
2015-09-25 19:02 ` Mike Frysinger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.