From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 536A9C433EF for ; Sat, 22 Jan 2022 13:14:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232798AbiAVNNo (ORCPT ); Sat, 22 Jan 2022 08:13:44 -0500 Received: from mga06.intel.com ([134.134.136.31]:2895 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230329AbiAVNNk (ORCPT ); Sat, 22 Jan 2022 08:13:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642857220; x=1674393220; h=date:from:to:cc:subject:message-id:mime-version; bh=2sJ0wbIgA19cnk5VVCPT1WO+w96chFBBiTgVZNwfn80=; b=Z7vU2BGU9aHlqjdmxs1jd2+xTZT338dsTx6CKrt2KROVPlSSBPGvgr6a mMj7254tF6gMxenJiCmRF0X8ovODpuLV3l+6CqfuD4MG319ScwnPE1fum hoIjb+eby4HL3n/dL/pkR80lSgqbsocRpuxvh1ixSKYYhC6FkoEqEhXfR zdnPRqIRaB+I/kbJk/wqO0wPqm5CEtHXFH/j2pLkE260T2Uqak4WMoC3p 933IhNUT/vCHONR7Q5L00Jpo4gRgZlaEq7pa3+r+Y6cDBj0GBVTS/6jxE pic9bnU6dEB4bbYC5B+PDgQvnBDzgYBjBG25lt5covuNn3kBAph1A4rTw g==; X-IronPort-AV: E=McAfee;i="6200,9189,10234"; a="306537613" X-IronPort-AV: E=Sophos;i="5.88,308,1635231600"; d="scan'208";a="306537613" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2022 05:13:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,308,1635231600"; d="scan'208";a="478547731" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 22 Jan 2022 05:13:37 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nBGD3-000GQ3-2u; Sat, 22 Jan 2022 13:13:37 +0000 Date: Sat, 22 Jan 2022 21:13:29 +0800 From: kernel test robot To: Ben Widawsky Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Alison Schofield , Vishal Verma , Ira Weiny , Ben Widawsky , Dan Williams , linux-kernel@vger.kernel.org Subject: [cxl:preview 46/53] drivers/cxl/core/memdev.c:222:6: warning: no previous prototype for function 'detach_memdev' Message-ID: <202201222155.g7TX2HHO-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview head: e675fabdbbcdb6e32dba688a20fb0bd42e0e2d5d commit: 2b2d6579d0ee25b92d9af10c407c11cb4e3e0afe [46/53] cxl/mem: Add the cxl_mem driver config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20220122/202201222155.g7TX2HHO-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce) 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 # https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=2b2d6579d0ee25b92d9af10c407c11cb4e3e0afe git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git git fetch --no-tags cxl preview git checkout 2b2d6579d0ee25b92d9af10c407c11cb4e3e0afe # 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=i386 SHELL=/bin/bash drivers/cxl/core/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/cxl/core/memdev.c:222:6: warning: no previous prototype for function 'detach_memdev' [-Wmissing-prototypes] void detach_memdev(struct work_struct *work) ^ drivers/cxl/core/memdev.c:222:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void detach_memdev(struct work_struct *work) ^ static 1 warning generated. vim +/detach_memdev +222 drivers/cxl/core/memdev.c 221 > 222 void detach_memdev(struct work_struct *work) 223 { 224 struct cxl_memdev *cxlmd; 225 226 cxlmd = container_of(work, typeof(*cxlmd), detach_work); 227 device_release_driver(&cxlmd->dev); 228 put_device(&cxlmd->dev); 229 } 230 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org