Re: [RFC 02/32] Kconfig: introduce HAS_IOPORT option and select it as necessary

2021-12-28 Thread Michael Schmitz
Hi Arnd, Am 29.12.2021 um 16:41 schrieb Arnd Bergmann: On Tue, Dec 28, 2021 at 8:20 PM Michael Schmitz wrote: Am 28.12.2021 um 23:08 schrieb Geert Uytterhoeven: On Mon, Dec 27, 2021 at 5:44 PM Niklas Schnelle wrote: We introduce a new HAS_IOPORT Kconfig option to gate support for I/O port

Re: [PATCH] ARC: dw2 unwind: use swap() to make code cleaner

2021-12-28 Thread Vineet Gupta
On 11/9/21 9:56 PM, cgel@gmail.com wrote: From: Ye Guojin This was found by coccicheck: ./arch/arc/kernel/unwind.c, 251, 22-23, WARNING opportunity for swap() ./arch/arc/kernel/unwind.c, 254, 18-19, WARNING opportunity for swap() Addtionally, adjust the sequence of header files to be

Re: [PATCH] arc: use swap() to make code cleaner

2021-12-28 Thread Vineet Gupta
On 11/9/21 7:07 PM, Yihao Han wrote: Use the macro 'swap()' defined in 'include/linux/minmax.h' to avoid opencoding it. Signed-off-by: Yihao Han Added to ARC tree. Thx, -Vineet ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org

Re: [PATCH] arc: perf: Move static structs to where they're really used

2021-12-28 Thread Vineet Gupta
On 11/29/21 12:37 PM, Alexey Brodkin wrote: It is all well described by Stephen Rothwell who initially spotted that: ->8 After merging the origin tree, today's linux-next build (arc haps_hs_smp_defconfig+kselftest) produced these warnings:

Re: [PATCH] ARC: perf: Remove redundant initialization of variable idx

2021-12-28 Thread Vineet Gupta
On 11/26/21 2:23 PM, Colin Ian King wrote: The variable idx is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Signed-off-by: Colin Ian King Sorry for the delay in getting to this. Added to ARC tree now. Thx,

Re: [RFC 02/32] Kconfig: introduce HAS_IOPORT option and select it as necessary

2021-12-28 Thread Arnd Bergmann
On Tue, Dec 28, 2021 at 8:20 PM Michael Schmitz wrote: > Am 28.12.2021 um 23:08 schrieb Geert Uytterhoeven: > > On Mon, Dec 27, 2021 at 5:44 PM Niklas Schnelle > > wrote: > >> We introduce a new HAS_IOPORT Kconfig option to gate support for > >> I/O port access. In a future patch HAS_IOPORT=n

Re: [RFC 02/32] Kconfig: introduce HAS_IOPORT option and select it as necessary

2021-12-28 Thread Michael Schmitz
Hi Geert, Niklas, Am 28.12.2021 um 23:08 schrieb Geert Uytterhoeven: Hi Niklas, On Mon, Dec 27, 2021 at 5:44 PM Niklas Schnelle wrote: We introduce a new HAS_IOPORT Kconfig option to gate support for I/O port access. In a future patch HAS_IOPORT=n will disable compilation of the I/O

Re: [RFC 02/32] Kconfig: introduce HAS_IOPORT option and select it as necessary

2021-12-28 Thread Mauro Carvalho Chehab
Em Mon, 27 Dec 2021 17:42:47 +0100 Niklas Schnelle escreveu: > We introduce a new HAS_IOPORT Kconfig option to gate support for > I/O port access. In a future patch HAS_IOPORT=n will disable compilation > of the I/O accessor functions inb()/outb() and friends on architectures > which can not

Re: [RFC 02/32] Kconfig: introduce HAS_IOPORT option and select it as necessary

2021-12-28 Thread Geert Uytterhoeven
Hi Niklas, On Mon, Dec 27, 2021 at 5:44 PM Niklas Schnelle wrote: > We introduce a new HAS_IOPORT Kconfig option to gate support for > I/O port access. In a future patch HAS_IOPORT=n will disable compilation > of the I/O accessor functions inb()/outb() and friends on architectures > which can