Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4841041iob; Mon, 9 May 2022 02:56:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbq/dVn7RmL4TceuJHs0dK60IVOQtpG6/xOMrBzy8ab7aq75623APdcVeGN6vxhgCwdcZ0 X-Received: by 2002:a17:90b:3e84:b0:1dc:5942:af0e with SMTP id rj4-20020a17090b3e8400b001dc5942af0emr17313199pjb.61.1652090186900; Mon, 09 May 2022 02:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652090186; cv=none; d=google.com; s=arc-20160816; b=i72omGnlEHeP3MqKXa3aXWPoq8k7rm9nSxqwllHQzXQV+Up1N8Rcp37U3QsrmkCPoS Urmgndvo90xmQ0I8nKbQN+XjADQk5wxQu8+en0K+VdhT4ICUWgYs+XP+OBZa5pPYhT3W nmhV40U82NhiN5URcgD2ePOj69xYFzo/8XKHPbFRj/NQC9swSdDwQ+M2WNDlPqRjPgOe ZRgfGPRJeUQ1fsQUZ1DU4Ks7l1wrLJZJPICDnRpMg69rQ4HNXbSRHiPwUs7GimBg2vPa QVHjxTZSB+ix/mSgoT8Hlgh8nltnHep7SqS0asKMttR6Tv5iZVVrHb5rM0gsguQxOXsw qBtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=UER95YhL/LdSDTOz/ulO8m1XkwQ4O0+2EBlTjF/ksUc=; b=SklLGVM2gEh9PeYU4MgYXwex6/LNTs6Jk4WhQAKkiX1Olv+GxhuwVQqCvvn/dxJOgA bCnrp1sqn4yk/9TH/LrN8PycgeLtRmjDUWlg1hNKsJpCCW7DQTGneE865+y79Dq570Nv deJOWeDhf0OQEbidgcbqYCGM7TTcoVaOoojwutkxY8qJF4g470CDpGOBRL9M+/wfT6pX k+LyAHggqSocuxFHQF4ZFaY4Vphb6eclMFp9MWP+/BVyx2iRslqqKoFd8E736J38R4hf ArSnPjH4T9KS8WeBYZeYz96oC/ZhMp8MgDRVFWUIr1jV14/cxib0QhTgMo4bG/JpOfIU PiLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ov63tU4N; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id bj9-20020a170902850900b00153b2d16579si9926835plb.385.2022.05.09.02.56.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 02:56:26 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ov63tU4N; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 627C61E05B8; Mon, 9 May 2022 02:39:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230223AbiEIBaJ (ORCPT + 99 others); Sun, 8 May 2022 21:30:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234319AbiEIAHj (ORCPT ); Sun, 8 May 2022 20:07:39 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 942ADDEF1 for ; Sun, 8 May 2022 17:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description; bh=UER95YhL/LdSDTOz/ulO8m1XkwQ4O0+2EBlTjF/ksUc=; b=ov63tU4N3g/lMAU9V7LrP+vhfa iJdiZomwAYWqTcm6mrl/mT25qG6BE5WoNCQ/SBnPGJdw9Mk2wkcpY08+8xNVi0FgqacZ7MsJl2Sja IXMSwW9v4+Bc9smCeKr7X/DxrQUFbGPaTi9LP/r+R7kzFtN4J5zEVaCIPIGieIn7ygKRtuNwo7qmp knKqv20dxmrvqr3Qup2PUm49b0pheF3oCEqXVTqvyij3EwlOPlnb02zk85MAWlbhhgU6tML3O/q7r CgZeoxeYwscxuLcvi9RSOfQ3jPPbJlp4tzTG/lOafR1SpJ/VsHmvqnunCsLarCd09KxDhflyfIQEQ //QBuf5w==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nnqrz-002whA-Ar; Mon, 09 May 2022 00:03:23 +0000 Message-ID: <65c92404-1d6f-6969-89bf-20b8eefaeff6@infradead.org> Date: Sun, 8 May 2022 17:03:16 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: 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 Content-Language: en-US To: kernel test robot , Arnd Bergmann , Florian Eckert 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 , Guenter Roeck References: <202205080416.vzIXy16B-lkp@intel.com> From: Randy Dunlap In-Reply-To: <202205080416.vzIXy16B-lkp@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,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 Hi-- Adding TO: and CC: that are at end of message but are not included originally. On 5/7/22 13:54, kernel test robot wrote: > 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 This driver builds fine if I change it from SOC_FALCON to SOC_XWAY. Maybe its Kconfig entry should be stronger? config SENSORS_LTQ_CPUTEMP bool "Lantiq cpu temperature sensor driver" - depends on LANTIQ + depends on SOC_XWAY ? -- ~Randy