# Re: \[PATCH\] powerpc/irq: Fix build with CONFIG\_PROC\_FS=n

- From: Shrikanth Hegde \<sshegde@linux.ibm.com\>
- Date: 2026-10-24 07:30:45 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/10/17797367
- Thread: https://ratatoskr.run/linuxppc-dev/2026/10/17779485/t.md

```text


On 10/24/26 5:39 AM, Ritesh Harjani (IBM) wrote:
> Sasha Levin [ref] writes:
>
>> Commit fbb22ceaaf8f ("powerpc/irq: Make irqstats array based") made
>> arch_show_interrupts() call irq_proc_emit_counts(). That function lives
>> in kernel/irq/proc.c, which is only built with CONFIG_PROC_FS, so
>> kernels without procfs no longer link:
>>
>>    powerpc64-linux-ld: arch/powerpc/kernel/irq.o: in function `arch_show_interrupts':
>>    arch/powerpc/kernel/irq.c:134:(.text+0x4b8c): undefined reference to `irq_proc_emit_counts'
>>
>> arch_show_interrupts() is only called from irq_seq_show(), which is in
>> kernel/irq/proc.c as well, so build it only with CONFIG_PROC_FS, as x86
>> already does.
>>
>> Fixes: fbb22ceaaf8f ("powerpc/irq: Make irqstats array based")
>> Reported-by: kernel test robot <redacted>
>> Closes: https://lore.kernel.org/oe-kbuild-all/202609271531.8kf2NTjK-lkp@intel.com/
>
> Looks like it still slipped through.
>
well, fix was posted a day after the report but was never picked up.

See the fix posted here.
https://lore.kernel.org/all/20260930072329.1110379-1-sshegde@linux.ibm.com/

Diff is same. Since it made into linus tree already, all is well.

```
