# Re: \[PATCH\] powerpc: Fix circular dependency between percpu.h and mmu.h

- From: Michael Ellerman \<hidden\>
- Date: 2020-08-04 13:42:07 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2020/08/9518215
- Thread: https://ratatoskr.run/linuxppc-dev/2020/08/9518212/t.md

```text
On Tue, 4 Aug 2020 23:05:58 +1000, Michael Ellerman wrote:
> Recently random.h started including percpu.h (see commit
> f227e3ec3b5c ("random32: update the net random state on interrupt and
> activity")), which broke corenet64_smp_defconfig:
> 
>   In file included from /linux/arch/powerpc/include/asm/paca.h:18,
>                    from /linux/arch/powerpc/include/asm/percpu.h:13,
>                    from /linux/include/linux/random.h:14,
>                    from /linux/lib/uuid.c:14:
>   /linux/arch/powerpc/include/asm/mmu.h:139:22: error: unknown type name 'next_tlbcam_idx'
>     139 | DECLARE_PER_CPU(int, next_tlbcam_idx);
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc: Fix circular dependency between percpu.h and mmu.h
      https://git.kernel.org/powerpc/c/0c83b277ada72b585e6a3e52b067669df15bcedb

cheers
```
