Skip to content

Commit 1eafbd8

Browse files
committed
powerpc/powermac: Fix unused function warning
Clang reports: arch/powerpc/platforms/powermac/feature.c:137:19: error: unused function 'simple_feature_tweak' It's only used inside the #ifndef CONFIG_PPC64 block, so move it in there to fix the warning. While at it drop the inline, the compiler will decide whether it should be inlined or not. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
1 parent eac030b commit 1eafbd8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/powerpc/platforms/powermac/feature.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ static struct pmac_mb_def pmac_mb;
134134
* Here are the chip specific feature functions
135135
*/
136136

137-
static inline int simple_feature_tweak(struct device_node *node, int type,
138-
int reg, u32 mask, int value)
137+
#ifndef CONFIG_PPC64
138+
139+
static int simple_feature_tweak(struct device_node *node, int type, int reg,
140+
u32 mask, int value)
139141
{
140142
struct macio_chip* macio;
141143
unsigned long flags;
@@ -154,8 +156,6 @@ static inline int simple_feature_tweak(struct device_node *node, int type,
154156
return 0;
155157
}
156158

157-
#ifndef CONFIG_PPC64
158-
159159
static long ohare_htw_scc_enable(struct device_node *node, long param,
160160
long value)
161161
{

0 commit comments

Comments
 (0)