LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: Drop unused CONFIG_PPC_HAS_FEATURE_CALLS
@ 2021-12-03 11:57 Michael Ellerman
  0 siblings, 0 replies; only message in thread
From: Michael Ellerman @ 2021-12-03 11:57 UTC (permalink / raw)
  To: linuxppc-dev

Since ~2002 we have had CONFIG_PPC_HAS_FEATURE_CALLS defined as a faux
CONFIG symbol, firstly in include/asm-ppc/machdep.h, and then later
copied over to powerpc when ppc and ppc64 were merged.

The last in-tree usage was removed in 2005 in commit
7bbd827750e6 ("[PATCH] ppc64: very basic desktop g5 sound support").

I haven't been able to find any meaningful references to it anywhere
else, so I suspect it has been unused for many years. It confuses
scripts/checkkconfigsymbols.py, and seems to serve no purpose, so drop
it.

Note that it's not in a uapi header, ie. it could only be used by
out-of-tree kernel modules, not general userspace code.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---

If anything does use it, just let us know.
---
 arch/powerpc/include/asm/machdep.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h
index e821037f74f0..75687e1f994a 100644
--- a/arch/powerpc/include/asm/machdep.h
+++ b/arch/powerpc/include/asm/machdep.h
@@ -10,11 +10,6 @@
 
 #include <asm/setup.h>
 
-/* We export this macro for external modules like Alsa to know if
- * ppc_md.feature_call is implemented or not
- */
-#define CONFIG_PPC_HAS_FEATURE_CALLS
-
 struct pt_regs;
 struct pci_bus;	
 struct device_node;
-- 
2.31.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-03 11:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-03 11:57 [PATCH] powerpc: Drop unused CONFIG_PPC_HAS_FEATURE_CALLS Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox