Re: next-20220715 build fail due to 579b9239c1f386 (powerpc, ps3_defconfig, GCC 12.1.0)

2022-07-16 Thread Bagas Sanjaya
On 7/17/22 10:27, Bagas Sanjaya wrote: > Hi everyone, > > I built next-20220715 tree, using powerpc64-unknown-linux-gnu-gcc > (GCC 12.1.0) and ps3_defconfig. The build errored on W=1 build > (-Werror=missing-prototypes): > > CC arch/powerpc/mm/book3s64/pgtable.o > CC

[PATCH v2 1/2] asm-generic: Remove pci.h copying remaining code to x86

2022-07-16 Thread Stafford Horne
The generic pci.h header now only provides a definition of pci_get_legacy_ide_irq which is used by architectures that support PNP. Of the architectures that use asm-generic/pci.h this is only x86. This patch removes the old pci.h in order to make room for a new pci.h to be used by arm64, riscv,

next-20220715 build fail due to 579b9239c1f386 (powerpc, ps3_defconfig, GCC 12.1.0)

2022-07-16 Thread Bagas Sanjaya
Hi everyone, I built next-20220715 tree, using powerpc64-unknown-linux-gnu-gcc (GCC 12.1.0) and ps3_defconfig. The build errored on W=1 build (-Werror=missing-prototypes): CC arch/powerpc/mm/book3s64/pgtable.o CC arch/powerpc/kernel/process.o

[PATCH] cyrpto:delete the rebundant word "block" in comments

2022-07-16 Thread shaom Deng
there is rebundant word "block" in comments, so remove it Signed-off-by: shaom Deng --- arch/powerpc/crypto/aes-spe-glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/crypto/aes-spe-glue.c b/arch/powerpc/crypto/aes-spe-glue.c index

[PATCH] kvm:remove the unexpected word "that" in comments

2022-07-16 Thread shaom Deng
delete the repeated word "that" in comments Signed-off-by: shaom Deng --- arch/powerpc/kvm/book3s_64_mmu_hv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/book3s_64_mmu_hv.c b/arch/powerpc/kvm/book3s_64_mmu_hv.c index 514fd45c1994..73c6db20cd8a 100644

Re: [PATCH v7 00/25] Rust support

2022-07-16 Thread Conor Dooley
Hey, Maybe I am just missing something blatantly obvious here, but trying to build rust support in -next fails for me. I am using ClangBuiltLinux clang version 15.0.0 5b0788fef86ed7008a11f6ee19b9d86d42b6fcfa and LLD 15.0.0. Is it just expected that building -next with rust support is not a good

Re: [PATCH v7 00/25] Rust support

2022-07-16 Thread Miguel Ojeda
On Sat, Jul 16, 2022 at 3:51 PM wrote: > > Ah right, sorry for the noise so. I checked the ml but didn't see a > report there. No apologies needed -- thanks to you for the report, instead! :) > Thanks Miguel, good to know! I'll just wait around for a new version. > Just been trying to get my CI

Re: [PATCH v7 00/25] Rust support

2022-07-16 Thread Miguel Ojeda
Hi Conor, On Sat, Jul 16, 2022 at 2:42 PM Conor Dooley wrote: > > Maybe I am just missing something blatantly obvious here, but trying > to build rust support in -next fails for me. I am using ClangBuiltLinux > clang version 15.0.0 5b0788fef86ed7008a11f6ee19b9d86d42b6fcfa and LLD > 15.0.0. Is it

Re: [PATCH v2 1/2] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-07-16 Thread Pali Rohár
On Friday 15 July 2022 15:32:56 Guilherme G. Piccoli wrote: > On 15/07/2022 14:11, Pali Rohár wrote: > > [...] > >> > >> I found this sentence a bit weird, "in the similar way like it is doing > >> kernel for other architectures", but other than that: > > > > If you have some idea how to improve

Re: [PATCH v7 21/25] Kbuild: add Rust support

2022-07-16 Thread Miguel Ojeda
Hi Masahiro, On Sat, Jul 16, 2022 at 10:23 AM Masahiro Yamada wrote: > > Is it intentional to print the successful message to stderr? I think it makes sense to change it to `stdout`, given the message is the main point of running `rustavailable` for normal users, and those that just want the

Re: [PATCH v7 21/25] Kbuild: add Rust support

2022-07-16 Thread Masahiro Yamada
On Mon, May 23, 2022 at 11:04 AM Miguel Ojeda wrote: > > Having all the new files in place, we now enable Rust support > in the build system, including `Kconfig` entries related to Rust, > the Rust configuration printer, the target specification > generation script, the version detection script

[PATCH] powerpc/powermac/udbg_scc: Fix refcount leak bug in udbg_scc_init()

2022-07-16 Thread Liang He
During the iteration of for_each_child_of_node(), we need to call of_node_put() for the old references stored in to 'ch_def' and 'ch_a' as their refcounters have been increased in last iteration. Fixes: 51d3082fe6e5 ("[PATCH] powerpc: Unify udbg (#2)") Signed-off-by: Liang He ---

[PATCH] powerpc/powermac/pfunc_base: Fix refcount leak bug in macio_gpio_init_one()

2022-07-16 Thread Liang He
We should call of_node_put() for the reference 'gparent' escaped out of the for_each_child_of_node() as it has increased the refcount. Fixes: 5b9ca526917b ("[PATCH] 3/5 powerpc: Add platform functions interpreter") Signed-off-by: Liang He --- arch/powerpc/platforms/powermac/pfunc_base.c | 2 ++

[PATCH] powerpc/powermac/low_i2c: Fix refcount leak bug in kw_i2c_probe()

2022-07-16 Thread Liang He
We should call of_node_put() for the reference 'parent' returned by of_get_parent() which has increased the refcount. Fixes: 730745a5c450 ("[PATCH] 1/5 powerpc: Rework PowerMac i2c part 1") Signed-off-by: Liang He --- arch/powerpc/platforms/powermac/low_i2c.c | 1 + 1 file changed, 1

[PATCH] powerpc/powermac/feature: Fix refcount leak bug

2022-07-16 Thread Liang He
In probe_one_macio(), we should call of_node_put() for the refernece 'node' escaped out of the for_each_node_by_name() which has increased its refcount. While the 'node' will finally escaped into a global reference, we should still call of_node_put() in fail path which will stop global reference