Re: [PATCH 6.1 000/372] 6.1.64-rc1 review

From: Greg Kroah-Hartman
Date: Sat Nov 25 2023 - 10:28:58 EST


On Fri, Nov 24, 2023 at 11:25:43PM +0100, Nam Cao wrote:
> On Fri, Nov 24, 2023 at 05:46:27PM +0000, Greg Kroah-Hartman wrote:
> > This is the start of the stable review cycle for the 6.1.64 release.
> > There are 372 patches in this series, all will be posted as a response
> > to this one. If anyone has any issues with these being applied, please
> > let me know.
> >
> > Responses should be made by Sun, 26 Nov 2023 17:19:17 +0000.
> > Anything received after that time might be too late.
> >
> > The whole patch series can be found in one patch at:
> > https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.64-rc1.gz
> > or in the git tree and branch at:
> > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.1.y
> > and the diffstat can be found below.
> >
> > thanks,
> >
> > greg k-h
>
> I got the following build error with riscv64 defconfig:
>
> CC drivers/perf/riscv_pmu_sbi.o
> In file included from /home/namcao/linux-deb/linux/arch/riscv/include/asm/ptrace.h:10,
> from /home/namcao/linux-deb/linux/arch/riscv/include/uapi/asm/bpf_perf_event.h:5,
> from /home/namcao/linux-deb/linux/include/uapi/linux/bpf_perf_event.h:11,
> from /home/namcao/linux-deb/linux/include/linux/perf_event.h:18,
> from /home/namcao/linux-deb/linux/include/linux/perf/riscv_pmu.h:12,
> from /home/namcao/linux-deb/linux/drivers/perf/riscv_pmu_sbi.c:14:
> /home/namcao/linux-deb/linux/drivers/perf/riscv_pmu_sbi.c: In function ‘pmu_sbi_ovf_handler’:
> /home/namcao/linux-deb/linux/drivers/perf/riscv_pmu_sbi.c:582:40: error: ‘riscv_pmu_irq_num’ undeclared (first use in this function); did you mean ‘riscv_pmu_irq’?
> 582 | csr_clear(CSR_SIP, BIT(riscv_pmu_irq_num));
> | ^~~~~~~~~~~~~~~~~
> /home/namcao/linux-deb/linux/arch/riscv/include/asm/csr.h:400:45: note: in definition of macro ‘csr_clear’
> 400 | unsigned long __v = (unsigned long)(val); \
> | ^~~
> /home/namcao/linux-deb/linux/drivers/perf/riscv_pmu_sbi.c:582:36: note: in expansion of macro ‘BIT’
> 582 | csr_clear(CSR_SIP, BIT(riscv_pmu_irq_num));
> | ^~~
> /home/namcao/linux-deb/linux/drivers/perf/riscv_pmu_sbi.c:582:40: note: each undeclared identifier is reported only once for each function it appears in
> 582 | csr_clear(CSR_SIP, BIT(riscv_pmu_irq_num));
> | ^~~~~~~~~~~~~~~~~
> /home/namcao/linux-deb/linux/arch/riscv/include/asm/csr.h:400:45: note: in definition of macro ‘csr_clear’
> 400 | unsigned long __v = (unsigned long)(val); \
> | ^~~
> /home/namcao/linux-deb/linux/drivers/perf/riscv_pmu_sbi.c:582:36: note: in expansion of macro ‘BIT’
> 582 | csr_clear(CSR_SIP, BIT(riscv_pmu_irq_num));
> | ^~~

Should now be fixed, I'll push out a -rc2 soon to verify.

thanks,

greg k-h