Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4675402iob; Sun, 8 May 2022 21:33:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxV2EHjwExTVH3bQm6eADotzTEzwhotfheHFMRDiSwUVCumzeBYk3S9tN7orDgri5HwcOjL X-Received: by 2002:a17:90b:90:b0:1dc:ba92:41c8 with SMTP id bb16-20020a17090b009000b001dcba9241c8mr22484339pjb.161.1652070836570; Sun, 08 May 2022 21:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652070836; cv=none; d=google.com; s=arc-20160816; b=k6A1EC/Lu0RT51mHTJp3n9yA0FwvICh/fjqDdDQ/HAMxm2w8JPaMqqb/gqzplsupnC Kd9MWDAqSLPAPe1pPcVjSATHjkKOlXK8UEsg/XbyhgFpfonMlofxPs7OVeUYnCwLlQRW sB+te83LggJ5CfYG+DOgGLWWP9PWQwbD4MQDmLzOFmaLat1g6ascJ4LIGKzysgprn3ia GuIbgWynJQGZNGZM0aR73LFM+JwTMEmMKw7oQOTpy+/UqZLyDwEJUMr8PkpB1CmoNXUK Uo0iXp0xcxjpNBFa5LIxJfIdpwUyOt9c4bF6dBDz6iH1flWEVbIpUskIUyAau2xwpjqq yW/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=0O6GymFg4PD9fF00hFx0VDGDeic0tVD9r75fPBUPFLo=; b=O4++gSSUHDvSd/7EsrFv6U2C0HCU+wE2jJUMgsca6sbismaQ9+qVRJvcr0dzl3l9Qa sMp8aJbBuAOLevZf/Gh67HEFBs+zXl56LTiipQraG8LmNOdUk0EmyYQ1V41euTuyKl3q bld9HPju5ldQ1aU9HK4GuiPE+NdRt4E5pmZX13G3y7wDrdO7PC540OKIrkCBygcV5dfw ewjiBt3iy8HbhfW9FDta/PJQlloCoPvykm1OC/uHv0xEBtk1Gxx2oA6TxyF5bU2mP+SP U1IqIsYnhlqtiBws5S+3iAj20JHucvOCYBNgtsIUzPdwCg3T+FOpDp8mJsFEibROQ1ET se1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K8WniyiR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j34-20020a635962000000b003a0ab4ec87fsi13514057pgm.740.2022.05.08.21.33.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 21:33:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K8WniyiR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3D65392300; Sun, 8 May 2022 21:31:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345665AbiEGU7B (ORCPT + 99 others); Sat, 7 May 2022 16:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233641AbiEGU67 (ORCPT ); Sat, 7 May 2022 16:58:59 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70DDC205D6 for ; Sat, 7 May 2022 13:55:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651956911; x=1683492911; h=date:from:to:cc:subject:message-id:mime-version; bh=IW5GA9KY5fGNk8pn2J9fOJ9P5JzlJf02ctQI0dsVQ/U=; b=K8WniyiRhyhIp0k+dxXJF0+Kl3ufn9riUB1KzWsgcXs8e+FO5zeTVA7c /+DjGO5k5KZwDLdrl+fpBC3vRw1tqCrSiVIl03M/adg9G9gHVfOSkEtNh GKNNyadRA4dhm8vLVtXtxApPl/SpE/nN/Gv56gCuJudqW5iJFq/zSVpqr 4dxee55VT/bjX7u0WTP1JBWJiC0pmovfKxKS/edySW0ozuAqb+71M97lM ZeKvn5EdwZySoLhH9Amx8jpvqETgdUCdwlebPRxvkjnstC4BJTTZg0jlc WVNvMdMKnsl31P36XJChQF06hlHS7dNWjMwFeAN/sK175ClhZVQOKQIIz Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10340"; a="266343911" X-IronPort-AV: E=Sophos;i="5.91,207,1647327600"; d="scan'208";a="266343911" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2022 13:55:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,207,1647327600"; d="scan'208";a="622361229" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 07 May 2022 13:55:08 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nnRSG-000Ext-7v; Sat, 07 May 2022 20:55:08 +0000 Date: Sun, 8 May 2022 04:54:50 +0800 From: kernel test robot To: Arnd Bergmann Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Masahiro Yamada , Alex Shi , Nick Desaulniers , Miguel Ojeda , Nathan Chancellor Subject: drivers/hwmon/ltq-cputemp.c:23:2: error: call to undeclared function 'ltq_cgu_w32'; ISO C99 and later do not support implicit function declarations Message-ID: <202205080416.vzIXy16B-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 30c8e80f79329617012f07b09b70114592092ea4 commit: e8c07082a810fbb9db303a2b66b66b8d7e588b53 Kbuild: move to -std=gnu11 date: 8 weeks ago config: mips-randconfig-r022-20220507 (https://download.01.org/0day-ci/archive/20220508/202205080416.vzIXy16B-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project af4cf1c6b8ed0d8102fc5e69acdc2fcbbcdaa9a7) 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 mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e8c07082a810fbb9db303a2b66b66b8d7e588b53 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout e8c07082a810fbb9db303a2b66b66b8d7e588b53 # 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=mips SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/hwmon/ltq-cputemp.c:23:2: error: call to undeclared function 'ltq_cgu_w32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ltq_cgu_w32(ltq_cgu_r32(CGU_GPHY1_CR) | CGU_TEMP_PD, CGU_GPHY1_CR); ^ >> drivers/hwmon/ltq-cputemp.c:23:14: error: call to undeclared function 'ltq_cgu_r32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ltq_cgu_w32(ltq_cgu_r32(CGU_GPHY1_CR) | CGU_TEMP_PD, CGU_GPHY1_CR); ^ drivers/hwmon/ltq-cputemp.c:28:2: error: call to undeclared function 'ltq_cgu_w32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ltq_cgu_w32(ltq_cgu_r32(CGU_GPHY1_CR) & ~CGU_TEMP_PD, CGU_GPHY1_CR); ^ drivers/hwmon/ltq-cputemp.c:28:14: error: call to undeclared function 'ltq_cgu_r32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ltq_cgu_w32(ltq_cgu_r32(CGU_GPHY1_CR) & ~CGU_TEMP_PD, CGU_GPHY1_CR); ^ drivers/hwmon/ltq-cputemp.c:39:12: error: call to undeclared function 'ltq_cgu_r32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] value = (ltq_cgu_r32(CGU_GPHY1_CR) >> 9) & 0x01FF; ^ drivers/hwmon/ltq-cputemp.c:92:24: error: use of undeclared identifier 'SOC_TYPE_VR9_2' if (ltq_soc_type() != SOC_TYPE_VR9_2) ^ 6 errors generated. vim +/ltq_cgu_w32 +23 drivers/hwmon/ltq-cputemp.c 7074d0a9275860 Florian Eckert 2017-09-01 20 7074d0a9275860 Florian Eckert 2017-09-01 21 static void ltq_cputemp_enable(void) 7074d0a9275860 Florian Eckert 2017-09-01 22 { 7074d0a9275860 Florian Eckert 2017-09-01 @23 ltq_cgu_w32(ltq_cgu_r32(CGU_GPHY1_CR) | CGU_TEMP_PD, CGU_GPHY1_CR); 7074d0a9275860 Florian Eckert 2017-09-01 24 } 7074d0a9275860 Florian Eckert 2017-09-01 25 :::::: The code at line 23 was first introduced by commit :::::: 7074d0a92758603369655ef5d4f49e6caaae0b4e hwmon: (ltq-cputemp) add cpu temp sensor driver :::::: TO: Florian Eckert :::::: CC: Guenter Roeck -- 0-DAY CI Kernel Test Service https://01.org/lkp