Re: [PATCH v2 6/7] powerpc/secvar: Extend sysfs to include config vars

2023-01-04 Thread Andrew Donnellan
On Fri, 2022-12-30 at 15:20 +1100, Russell Currey wrote: > The forthcoming pseries consumer of the secvar API wants to expose a > number of config variables.  Allowing secvar implementations to > provide > their own sysfs attributes makes it easy for consumers to expose what > they need to. > >

Re: [Skiboot] [PATCH 1/3] core/device: Add function to return child node using name and length

2023-01-04 Thread Athira Rajeev
> On 05-Jan-2023, at 12:35 PM, Madhavan Srinivasan wrote: > > > On Mon, 2 Jan 2023 08:45:22 +0530 > Athira Rajeev wrote: > >> Add a function dt_find_by_name_len() that returns the child node if >> it matches the first "n" characters of a given name, otherwise NULL. >> This is helpful for

[PATCH] macintosh/macio-adb: add missing iounmap() on error in macio_init()

2023-01-04 Thread Yang Yingliang
Add missing iounmap(), if request_irq() fails. Signed-off-by: Yang Yingliang --- drivers/macintosh/macio-adb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/macintosh/macio-adb.c b/drivers/macintosh/macio-adb.c index 55a9f8c3a150..779f1268286e 100644 ---

Re: [PATCH 07/10] tty: Convert ->dtr_rts() to take bool argument

2023-01-04 Thread Jiri Slaby
On 04. 01. 23, 16:15, Ilpo Järvinen wrote: Convert the raise/on parameter in ->dtr_rts() to bool through the callchain. The parameter is used like bool. In USB serial, there remains a few implicit bool -> larger type conversions because some devices use u8 in their control messages.

Re: [RFC PATCH] mm: remove zap_page_range and change callers to use zap_vma_page_range

2023-01-04 Thread Alistair Popple
Mike Kravetz writes: > On 12/19/22 13:06, Michal Hocko wrote: >> On Fri 16-12-22 11:20:12, Mike Kravetz wrote: >> > zap_page_range was originally designed to unmap pages within an address >> > range that could span multiple vmas. While working on [1], it was >> > discovered that all callers

[PATCH rcu 04/27] arch/powerpc/kvm: Remove "select SRCU"

2023-01-04 Thread Paul E. McKenney
Now that the SRCU Kconfig option is unconditionally selected, there is no longer any point in selecting it. Therefore, remove the "select SRCU" Kconfig statements. Signed-off-by: Paul E. McKenney Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: --- arch/powerpc/kvm/Kconfig

[PATCH v2] powerpc: Fix a wrong version calculation issue in ld_version

2023-01-04 Thread Ojaswin Mujoo
** The Issue ** The ld_version() function seems to compute the wrong version value for certain ld versions like the following: $ ld --version GNU ld (GNU Binutils; SUSE Linux Enterprise 15) 2.37.20211103-150100.7.37 For input 2.37.20211103, the value computed is 20234803 which is way more

[PATCH 07/14] powerpc/vdso: Improve linker flags

2023-01-04 Thread Nathan Chancellor
When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, there are several warnings in the PowerPC vDSO: clang-16: error: -Wl,-soname=linux-vdso32.so.1: 'linker' input unused [-Werror,-Wunused-command-line-argument] clang-16: error: -Wl,--hash-style=both: 'linker' input unused

[PATCH 06/14] powerpc/vdso: Remove unused '-s' flag from ASFLAGS

2023-01-04 Thread Nathan Chancellor
When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, it warns that ASFLAGS contains '-s', which is a linking phase option, so it is unused. clang-16: error: argument unused during compilation: '-s' [-Werror,-Wunused-command-line-argument] Looking at the GAS sources, '-s' is only

[PATCH 08/14] powerpc/vdso: Remove an unsupported flag from vgettimeofday-32.o with clang

2023-01-04 Thread Nathan Chancellor
When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, it warns: clang-16: error: argument unused during compilation: '-fno-stack-clash-protection' [-Werror,-Wunused-command-line-argument] This flag is supported for 64-bit powerpc but not 32-bit, hence the warning. Just remove the

[PATCH 05/14] powerpc: Remove linker flag from KBUILD_AFLAGS

2023-01-04 Thread Nathan Chancellor
When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, it points out that KBUILD_AFLAGS contains a linker flag, which will be used: clang: error: -Wl,-a32: 'linker' input unused [-Werror,-Wunused-command-line-argument] This was likely supposed to be '-Wa,-a$(BITS)'. However, this

[PATCH 00/14] Remove clang's -Qunused-arguments from KBUILD_CPPFLAGS

2023-01-04 Thread Nathan Chancellor
Hi all, Clang can emit a few different warnings when it encounters a flag that it recognizes but does not support internally. These warnings are elevated to errors within {as,cc}-option via -Werror to catch unsupported flags that should not be added to KBUILD_{A,C}FLAGS; see commit c3f0d0bc5b01

Re: [PATCH] mm: remove zap_page_range and create zap_vma_pages

2023-01-04 Thread Heiko Carstens
On Tue, Jan 03, 2023 at 04:27:32PM -0800, Mike Kravetz wrote: > zap_page_range was originally designed to unmap pages within an address > range that could span multiple vmas. While working on [1], it was > discovered that all callers of zap_page_range pass a range entirely within > a single vma.

Re: [PATCH] mm: remove zap_page_range and create zap_vma_pages

2023-01-04 Thread Peter Xu
On Tue, Jan 03, 2023 at 04:27:32PM -0800, Mike Kravetz wrote: > zap_page_range was originally designed to unmap pages within an address > range that could span multiple vmas. While working on [1], it was > discovered that all callers of zap_page_range pass a range entirely within > a single vma.

Re: [PATCH] PCI/AER: Rate limit the reporting of the correctable errors

2023-01-04 Thread Rajat Khandelwal
Hi Leon, Thanks for the ack. On 1/4/2023 12:16 PM, Leon Romanovsky wrote: On Wed, Jan 04, 2023 at 10:27:33AM +0530, Rajat Khandelwal wrote: Hi Bjorn, Thanks for the acknowledgement. On 1/4/2023 12:44 AM, Bjorn Helgaas wrote: [+cc Paul, Sasha, Leon, Frederick] (Please cc folks who have

[PATCH 07/10] tty: Convert ->dtr_rts() to take bool argument

2023-01-04 Thread Ilpo Järvinen
Convert the raise/on parameter in ->dtr_rts() to bool through the callchain. The parameter is used like bool. In USB serial, there remains a few implicit bool -> larger type conversions because some devices use u8 in their control messages. Signed-off-by: Ilpo Järvinen ---

Re: Linux 6.2-rc2

2023-01-04 Thread Michael Ellerman
Ard Biesheuvel writes: > On Tue, 3 Jan 2023 at 03:13, Linus Torvalds > wrote: >> >> On Mon, Jan 2, 2023 at 5:45 PM Guenter Roeck wrote: >> > >> > ... and reverting commit 99cb0d917ff indeed fixes the problem. >> >> Hmm. My gut feel is that this just exposes some bug in binutils. ... >> It