Re: drivers/soc/apple/rtkit.c:947:38: warning: cast from 'void (*)(struct apple_rtkit *)' to 'void (*)(void *)' converts to incompatible function type

From: Sven Peter
Date: Fri Nov 04 2022 - 08:14:57 EST


Hi,

On Fri, Nov 4, 2022, at 13:04, kernel test robot wrote:
> tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> master
> head: ee6050c8af96bba2f81e8b0793a1fc2f998fcd20
> commit: 9bd1d9a0d8bb1a549831fd98fcc3105960f7068b soc: apple: Add RTKit
> IPC library
> date: 6 months ago
> config: s390-randconfig-r002-20221104
> compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project
> 2bbafe04fe785a9469bea5a3737f8d7d3ce4aca2)
> reproduce (this is a W=1 build):
> wget
> https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross
> -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # install s390 cross compiling tool for clang build
> # apt-get install binutils-s390x-linux-gnu
> #
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9bd1d9a0d8bb1a549831fd98fcc3105960f7068b
> git remote add linus
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 9bd1d9a0d8bb1a549831fd98fcc3105960f7068b
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1
> O=build_dir ARCH=s390 SHELL=/bin/bash drivers/soc/apple/
>
> If you fix the issue, kindly add following tag where applicable
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>

Thanks for the report, this instance is especially brain-dead since
apple_rtkit_free isn't even used outside of rtkit.c.
I'll send a fix later as well.


Sven