Skip to content

Commit

Permalink
Remove CONFIG_PPC64
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshsal committed Feb 12, 2024
1 parent d9ae214 commit 5d242d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/powerpc/include/asm/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,8 @@ static inline void interrupt_nmi_enter_prepare(struct pt_regs *regs, struct inte
* embedded. With CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK enabled there
* are chances where percpu allocation can come from vmalloc area.
*/
#ifdef CONFIG_PPC64
if (IS_ENABLED(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK) && !is_embed_first_chunk)

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (ppc40x, fedora-38, ppc64)

use of undeclared identifier 'is_embed_first_chunk'; did you mean 'pcpu_embed_first_chunk'?

Check warning on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (ppc40x, fedora-38, ppc64)

address of function 'pcpu_embed_first_chunk' will always evaluate to 'true' [-Wpointer-bool-conversion]

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (mpc885_ads, fedora-38, ppc64)

use of undeclared identifier 'is_embed_first_chunk'; did you mean 'pcpu_embed_first_chunk'?

Check warning on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (mpc885_ads, fedora-38, ppc64)

address of function 'pcpu_embed_first_chunk' will always evaluate to 'true' [-Wpointer-bool-conversion]

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (pmac32, fedora-38, ppc64)

use of undeclared identifier 'is_embed_first_chunk'; did you mean 'pcpu_embed_first_chunk'?

Check warning on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (pmac32, fedora-38, ppc64)

address of function 'pcpu_embed_first_chunk' will always evaluate to 'true' [-Wpointer-bool-conversion]

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (pmac32, fedora-38, ppc64)

use of undeclared identifier 'is_embed_first_chunk'; did you mean 'pcpu_embed_first_chunk'?

Check warning on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (pmac32, fedora-38, ppc64)

address of function 'pcpu_embed_first_chunk' will always evaluate to 'true' [-Wpointer-bool-conversion]

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (mpc885_ads_defconfig, fedora-38)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (mpc885_ads_defconfig, fedora-38)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (ppc40x_defconfig, korg-5.5.0)

'is_embed_first_chunk' undeclared (first use in this function)

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (pmac32_defconfig, korg-5.5.0, /linux/arch/powerpc/configs/pmac32-qemu.config)

'is_embed_first_chunk' undeclared (first use in this function)

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (corenet32_smp_defconfig, fedora-38)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (ppc44x_defconfig, fedora-38, /linux/arch/powerpc/configs/ppc44x-qemu.config)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (mpc885_ads_defconfig, korg-5.5.0)

'is_embed_first_chunk' undeclared (first use in this function)

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (ppc44x_defconfig, korg-5.5.0, /linux/arch/powerpc/configs/ppc44x-qemu.config)

'is_embed_first_chunk' undeclared (first use in this function)

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (ppc40x_defconfig, fedora-38)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (pmac32_defconfig, fedora-38, /linux/arch/powerpc/configs/pmac32-qemu.config)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (pmac32_defconfig, fedora-38, /linux/arch/powerpc/configs/pmac32-qemu.config)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / sparse (pmac32, fedora-38, ppc64)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 344 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / sparse (mpc885_ads_defconfig, fedora-38, ppc64)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?
return;
#endif

/* Otherwise, it should be safe to call it */
nmi_enter();
Expand All @@ -361,10 +359,8 @@ static inline void interrupt_nmi_exit_prepare(struct pt_regs *regs, struct inter
// no nmi_exit for a pseries hash guest taking a real mode exception
} else if (IS_ENABLED(CONFIG_KASAN)) {
// no nmi_exit for KASAN in real mode
#ifdef CONFIG_PPC64
} else if (IS_ENABLED(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK) && !is_embed_first_chunk) {

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (ppc40x, fedora-38, ppc64)

use of undeclared identifier 'is_embed_first_chunk'; did you mean 'pcpu_embed_first_chunk'?

Check warning on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (ppc40x, fedora-38, ppc64)

address of function 'pcpu_embed_first_chunk' will always evaluate to 'true' [-Wpointer-bool-conversion]

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (mpc885_ads, fedora-38, ppc64)

use of undeclared identifier 'is_embed_first_chunk'; did you mean 'pcpu_embed_first_chunk'?

Check warning on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (mpc885_ads, fedora-38, ppc64)

address of function 'pcpu_embed_first_chunk' will always evaluate to 'true' [-Wpointer-bool-conversion]

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (pmac32, fedora-38, ppc64)

use of undeclared identifier 'is_embed_first_chunk'; did you mean 'pcpu_embed_first_chunk'?

Check warning on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (pmac32, fedora-38, ppc64)

address of function 'pcpu_embed_first_chunk' will always evaluate to 'true' [-Wpointer-bool-conversion]

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (pmac32, fedora-38, ppc64)

use of undeclared identifier 'is_embed_first_chunk'; did you mean 'pcpu_embed_first_chunk'?

Check warning on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (pmac32, fedora-38, ppc64)

address of function 'pcpu_embed_first_chunk' will always evaluate to 'true' [-Wpointer-bool-conversion]

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (mpc885_ads_defconfig, fedora-38)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (mpc885_ads_defconfig, fedora-38)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (ppc40x_defconfig, korg-5.5.0)

'is_embed_first_chunk' undeclared (first use in this function)

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (pmac32_defconfig, korg-5.5.0, /linux/arch/powerpc/configs/pmac32-qemu.config)

'is_embed_first_chunk' undeclared (first use in this function)

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (corenet32_smp_defconfig, fedora-38)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (ppc44x_defconfig, fedora-38, /linux/arch/powerpc/configs/ppc44x-qemu.config)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (mpc885_ads_defconfig, korg-5.5.0)

'is_embed_first_chunk' undeclared (first use in this function)

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (ppc44x_defconfig, korg-5.5.0, /linux/arch/powerpc/configs/ppc44x-qemu.config)

'is_embed_first_chunk' undeclared (first use in this function)

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (ppc40x_defconfig, fedora-38)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (pmac32_defconfig, fedora-38, /linux/arch/powerpc/configs/pmac32-qemu.config)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / kernel (pmac32_defconfig, fedora-38, /linux/arch/powerpc/configs/pmac32-qemu.config)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / sparse (pmac32, fedora-38, ppc64)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?

Check failure on line 362 in arch/powerpc/include/asm/interrupt.h

View workflow job for this annotation

GitHub Actions / sparse (mpc885_ads_defconfig, fedora-38, ppc64)

'is_embed_first_chunk' undeclared (first use in this function); did you mean 'pcpu_embed_first_chunk'?
// no nmi_exit if percpu first chunk is not embedded
#endif
} else {
nmi_exit();
}
Expand Down
4 changes: 4 additions & 0 deletions arch/powerpc/include/asm/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@

#define __my_cpu_offset local_paca->data_offset

#ifdef CONFIG_PPC64
#include <linux/jump_label.h>
DECLARE_STATIC_KEY_FALSE(__percpu_embed_first_chunk);

#define is_embed_first_chunk \
(static_key_enabled(&__percpu_embed_first_chunk.key))
#else
#define is_embed_first_chunk (true)
#endif /* CONFIG_PPC64 */

#endif /* CONFIG_SMP */
#endif /* __powerpc64__ */
Expand Down

0 comments on commit 5d242d5

Please sign in to comment.