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 380C9C433F5 for ; Tue, 22 Feb 2022 21:08:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235691AbiBVVIf (ORCPT ); Tue, 22 Feb 2022 16:08:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235073AbiBVVId (ORCPT ); Tue, 22 Feb 2022 16:08:33 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72994D4C99 for ; Tue, 22 Feb 2022 13:08:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645564086; x=1677100086; h=date:from:to:cc:subject:message-id:mime-version; bh=CUf0MQWpt9tm7nVh/BUEV/0yb1lNen2ySTEuE5OFQOI=; b=DRoCDfdx7BhQM3V57G4TMRzFnQEZQ1B8RefJdyJeTgHBYdE5C+Bi58C5 IyIgalz6iEAwoGhZW+RbYi/iT6nj43O2UFARR47KNqUVeylGwx4O+e+TD R599eNzJcyhXuxam/qXdjIClFjvSa6SUqNZzNcDsvMPzY6Y1MRADNZtoX veh33VN9GYYkLtHGUFBYH7grL+8pQSFItYfJF3coBJ44LOQ3XnOnHGegN 2IpNloRAh5vRxIg40heDrR9kFFvS4n9TVC7luPJ2RCKA+WV8f6aGXed9y ThyfKMfHoofdcxxCTTyN435muxQ7AQgI77kRDoklJNjKbGzQbuTh825eV g==; X-IronPort-AV: E=McAfee;i="6200,9189,10266"; a="251734748" X-IronPort-AV: E=Sophos;i="5.88,389,1635231600"; d="scan'208";a="251734748" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2022 13:08:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,389,1635231600"; d="scan'208";a="543086777" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 22 Feb 2022 13:08:03 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nMcOA-0000cU-Ie; Tue, 22 Feb 2022 21:08:02 +0000 Date: Wed, 23 Feb 2022 05:07:42 +0800 From: kernel test robot To: Ingo Molnar Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [mingo-tip:sched/headers 2300/2324] drivers/hwtracing/coresight/coresight-syscfg.c:383:8: error: implicit declaration of function 'try_module_get' Message-ID: <202202230454.RRWaaMcG-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: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers head: 7d9efc989eceed6a8fa475a186880ec4a1ad54a3 commit: b6ac2dbb891219be5e264504adb69b35c95647a8 [2300/2324] headers/deps: driver/core: Optimize dependencies, remove inclusion config: arm64-randconfig-r012-20220221 (https://download.01.org/0day-ci/archive/20220223/202202230454.RRWaaMcG-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=b6ac2dbb891219be5e264504adb69b35c95647a8 git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git git fetch --no-tags mingo-tip sched/headers git checkout b6ac2dbb891219be5e264504adb69b35c95647a8 # 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/hwtracing/coresight/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/hwtracing/coresight/coresight-syscfg.c:383:8: error: implicit declaration of function 'try_module_get' [-Werror,-Wimplicit-function-declaration] (!try_module_get(owner_info->owner_handle))) ^ >> drivers/hwtracing/coresight/coresight-syscfg.c:392:3: error: implicit declaration of function 'module_put' [-Werror,-Wimplicit-function-declaration] module_put(owner_info->owner_handle); ^ 2 errors generated. vim +/try_module_get +383 drivers/hwtracing/coresight/coresight-syscfg.c a13d5a246aca17c Mike Leach 2021-08-18 374 eb2ec49606c2a02 Mike Leach 2021-11-24 375 /* eb2ec49606c2a02 Mike Leach 2021-11-24 376 * Conditionally up reference count on owner to prevent unload. eb2ec49606c2a02 Mike Leach 2021-11-24 377 * eb2ec49606c2a02 Mike Leach 2021-11-24 378 * module loaded configs need to be locked in to prevent premature unload. eb2ec49606c2a02 Mike Leach 2021-11-24 379 */ eb2ec49606c2a02 Mike Leach 2021-11-24 380 static int cscfg_owner_get(struct cscfg_load_owner_info *owner_info) eb2ec49606c2a02 Mike Leach 2021-11-24 381 { eb2ec49606c2a02 Mike Leach 2021-11-24 382 if ((owner_info->type == CSCFG_OWNER_MODULE) && eb2ec49606c2a02 Mike Leach 2021-11-24 @383 (!try_module_get(owner_info->owner_handle))) eb2ec49606c2a02 Mike Leach 2021-11-24 384 return -EINVAL; eb2ec49606c2a02 Mike Leach 2021-11-24 385 return 0; eb2ec49606c2a02 Mike Leach 2021-11-24 386 } eb2ec49606c2a02 Mike Leach 2021-11-24 387 eb2ec49606c2a02 Mike Leach 2021-11-24 388 /* conditionally lower ref count on an owner */ eb2ec49606c2a02 Mike Leach 2021-11-24 389 static void cscfg_owner_put(struct cscfg_load_owner_info *owner_info) eb2ec49606c2a02 Mike Leach 2021-11-24 390 { eb2ec49606c2a02 Mike Leach 2021-11-24 391 if (owner_info->type == CSCFG_OWNER_MODULE) eb2ec49606c2a02 Mike Leach 2021-11-24 @392 module_put(owner_info->owner_handle); eb2ec49606c2a02 Mike Leach 2021-11-24 393 } eb2ec49606c2a02 Mike Leach 2021-11-24 394 :::::: The code at line 383 was first introduced by commit :::::: eb2ec49606c2a02d6382d56a0e19f34e515fde3f coresight: syscfg: Update load API for config loadable modules :::::: TO: Mike Leach :::::: CC: Mathieu Poirier --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org