lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 4 Apr 2022 20:02:05 +0800
From:   kernel test robot <lkp@...el.com>
To:     Sven Peter <sven@...npeter.dev>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [asahilinux:nvme-v2 5/6] drivers/soc/apple/rtkit.c:591:21: warning:
 no previous prototype for function 'apple_rtkit_init'

tree:   https://github.com/AsahiLinux/linux nvme-v2
head:   76835054c23e3e3505f5967d8580d86618aca6ec
commit: 689dd69e59bb68b19066104c34670d5dc272c946 [5/6] soc: apple: Add RTKit IPC library
config: arm64-randconfig-r005-20220404 (https://download.01.org/0day-ci/archive/20220404/202204041952.mbL4QEVS-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/AsahiLinux/linux/commit/689dd69e59bb68b19066104c34670d5dc272c946
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux nvme-v2
        git checkout 689dd69e59bb68b19066104c34670d5dc272c946
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/soc/apple/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> drivers/soc/apple/rtkit.c:591:21: warning: no previous prototype for function 'apple_rtkit_init' [-Wmissing-prototypes]
   struct apple_rtkit *apple_rtkit_init(struct device *dev, void *cookie,
                       ^
   drivers/soc/apple/rtkit.c:591:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   struct apple_rtkit *apple_rtkit_init(struct device *dev, void *cookie,
   ^
   static 
>> drivers/soc/apple/rtkit.c:805:6: warning: no previous prototype for function 'apple_rtkit_free' [-Wmissing-prototypes]
   void apple_rtkit_free(struct apple_rtkit *rtk)
        ^
   drivers/soc/apple/rtkit.c:805:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void apple_rtkit_free(struct apple_rtkit *rtk)
   ^
   static 
   2 warnings generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for VIDEO_V4L2_SUBDEV_API
   Depends on MEDIA_SUPPORT && VIDEO_DEV && MEDIA_CONTROLLER
   Selected by
   - VIDEO_IMX_MIPI_CSIS && MEDIA_SUPPORT && MEDIA_PLATFORM_SUPPORT && MEDIA_PLATFORM_DRIVERS && (ARCH_MXC || COMPILE_TEST


vim +/apple_rtkit_init +591 drivers/soc/apple/rtkit.c

   590	
 > 591	struct apple_rtkit *apple_rtkit_init(struct device *dev, void *cookie,
   592					     const char *mbox_name, int mbox_idx,
   593					     const struct apple_rtkit_ops *ops)
   594	{
   595		struct apple_rtkit *rtk;
   596		int ret;
   597	
   598		if (!ops)
   599			return ERR_PTR(-EINVAL);
   600	
   601		rtk = kzalloc(sizeof(*rtk), GFP_KERNEL);
   602		if (!rtk)
   603			return ERR_PTR(-ENOMEM);
   604	
   605		rtk->dev = dev;
   606		rtk->cookie = cookie;
   607		rtk->ops = ops;
   608	
   609		init_completion(&rtk->epmap_completion);
   610		init_completion(&rtk->reinit_completion);
   611		init_completion(&rtk->iop_pwr_ack_completion);
   612		init_completion(&rtk->ap_pwr_ack_completion);
   613	
   614		bitmap_zero(rtk->endpoints, APPLE_RTKIT_MAX_ENDPOINTS);
   615		set_bit(APPLE_RTKIT_EP_MGMT, rtk->endpoints);
   616	
   617		rtk->mbox_name = mbox_name;
   618		rtk->mbox_idx = mbox_idx;
   619		rtk->mbox_cl.dev = dev;
   620		rtk->mbox_cl.tx_block = true;
   621		rtk->mbox_cl.knows_txdone = false;
   622		rtk->mbox_cl.rx_callback = &apple_rtkit_rx_callback;
   623	
   624		ret = apple_rtkit_request_mbox_chan(rtk);
   625		if (ret)
   626			return (struct apple_rtkit *)ERR_PTR(ret);
   627	
   628		return rtk;
   629	}
   630	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ