[powerpc:next-test 21/79] arch/powerpc/platforms/powermac/feature.c:137:19: error: unused function 'simple_feature_tweak'

Arnd Bergmann arnd at arndb.de
Fri Aug 18 22:36:37 AEST 2023


On Fri, Aug 18, 2023, at 09:59, kernel test robot wrote:
> tree:   
> https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git 
> next-test
> head:   c56963d48343b50998bacc6df949217c950163e3
> commit: 54f30b83fe627453082f15d83d7820b28b2d24bb [21/79] powerpc: 
> address missing-prototypes warnings

>
> If you fix the issue in a separate patch/commit (i.e. not just a new 
> version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp at intel.com>
> | Closes: 
> https://lore.kernel.org/oe-kbuild-all/202308181501.AR5HMDWC-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
>>> arch/powerpc/platforms/powermac/feature.c:137:19: error: unused function 'simple_feature_tweak' [-Werror,-Wunused-function]
>    static inline int simple_feature_tweak(struct device_node *node, int type,
>                      ^

This looks unrelated to my patch, but is easily addressed by marking
the function __maybe_unused. The warning is triggered by clang specific
behavior that treats inline functions in .c files differently, see
6863f5643dd7 ("kbuild: allow Clang to find unused static inline functions
for W=1 build")

     Arnd


More information about the Linuxppc-dev mailing list