[PATCH] Recognize arc64

2021-04-21 Thread Vineet Gupta
This paves way for setting up arc64 software ecosystem. $ make check cd testsuite && bash config-guess.sh && rm uname PASS: config.guess checks (135 tests) cd testsuite && bash config-sub.sh PASS: config.sub checks (852 tests) PASS: config.sub idempotency checks (789 tests) PASS: config.sub

RE: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems

2021-04-21 Thread David Laight
From: Arnd Bergmann > Sent: 20 April 2021 22:20 > > On Tue, Apr 20, 2021 at 11:14 PM Vineet Gupta > wrote: > > On 4/20/21 12:07 AM, Arnd Bergmann wrote: > > > > > > > which means that half the 32-bit architectures do this. This may > > > cause more problems when arc and/or microblaze want to

Re: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems

2021-04-21 Thread Arnd Bergmann
On Wed, Apr 21, 2021 at 10:43 AM David Laight wrote: > From: Arnd Bergmann Sent: 20 April 2021 22:20 > > On Tue, Apr 20, 2021 at 11:14 PM Vineet Gupta > > wrote: > > > On 4/20/21 12:07 AM, Arnd Bergmann wrote: > > > > > > > > > > which means that half the 32-bit architectures do this. This may

[PATCH v3 0/3] asm-generic/io.h: Silence -Wnull-pointer-arithmetic warning on PCI_IOBASE

2021-04-21 Thread Niklas Schnelle
Hi, This is version 3 of my attempt to get rid of a clang -Wnull-pointer-arithmetic warning for the use of PCI_IOBASE in asm-generic/io.h. This was originally found on s390 but should apply to all platforms leaving PCI_IOBASE undefined while making use of the inb() and friends helpers from

[PATCH v3 1/3] sparc: explicitly set PCI_IOBASE to 0

2021-04-21 Thread Niklas Schnelle
Instead of relying on the fallback in asm-generic/io.h which sets PCI_IOBASE 0 if it is not defined set it explicitly. Link: https://lore.kernel.org/lkml/CAK8P3a3PK9zyeP4ymELtc2ZYnymECoACiigw9Za+pvSJpCk5=g...@mail.gmail.com/ Signed-off-by: Niklas Schnelle --- v1 -> v2: - Improved comment (David

[PATCH v3 2/3] ARC: io.h: Include asm/bug.h

2021-04-21 Thread Niklas Schnelle
From: Niklas Schnelle In a future change asm-generic/io.h will make inb() and friends WARN_ONCE() on systems without I/O port support. This requires WARN_ONCE() from asm/bug.h to be included so include it in the arch specific io.h as done by other architectures. Signed-off-by: Niklas Schnelle

[PATCH v3 3/3] asm-generic/io.h: Silence -Wnull-pointer-arithmetic warning on PCI_IOBASE

2021-04-21 Thread Niklas Schnelle
When PCI_IOBASE is not defined, it is set to 0 such that it is ignored in calls to the readX/writeX primitives. This triggers clang's -Wnull-pointer-arithmetic warning and will result in illegal accesses on platforms that do not support I/O ports if drivers do still attempt to access them. Make

RE: [PATCH v3 3/3] asm-generic/io.h: Silence -Wnull-pointer-arithmetic warning on PCI_IOBASE

2021-04-21 Thread David Laight
From: Niklas Schnelle > Sent: 21 April 2021 12:18 > > When PCI_IOBASE is not defined, it is set to 0 such that it is ignored > in calls to the readX/writeX primitives. This triggers clang's > -Wnull-pointer-arithmetic warning and will result in illegal accesses on > platforms that do not support

Re: [PATCH v3 3/3] asm-generic/io.h: Silence -Wnull-pointer-arithmetic warning on PCI_IOBASE

2021-04-21 Thread Niklas Schnelle
On Wed, 2021-04-21 at 11:24 +, David Laight wrote: > From: Niklas Schnelle > > Sent: 21 April 2021 12:18 > > > > When PCI_IOBASE is not defined, it is set to 0 such that it is ignored > > in calls to the readX/writeX primitives. This triggers clang's > > -Wnull-pointer-arithmetic warning and

[PATCH] ARC: kgdb: add 'fallthrough' to prevent a warning

2021-04-21 Thread Randy Dunlap
Use the 'fallthrough' macro to document that this switch case does indeed fall through to the next case. ../arch/arc/kernel/kgdb.c: In function 'kgdb_arch_handle_exception': ../arch/arc/kernel/kgdb.c:141:6: warning: this statement may fall through [-Wimplicit-fallthrough=] 141 | if