Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4870690iob; Mon, 9 May 2022 03:40:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNs1sVQ9ljugv8oE+18EFzKzMk2qKFyAVYXFkYi6C2EftgKfjt2m3YfJlUY7hg+Y61Qj7E X-Received: by 2002:a17:90b:4d07:b0:1dc:e9bc:9a96 with SMTP id mw7-20020a17090b4d0700b001dce9bc9a96mr13506325pjb.163.1652092854137; Mon, 09 May 2022 03:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652092854; cv=none; d=google.com; s=arc-20160816; b=YiI6hr32K+udo2p+R4x2dU30KVGBKkUocBEJOwApPkQN6HuQCGY7Qb3JBlbC1UXrNg BvHB0LFYka+6QhMYMpAfYT8ykbEKSfwFRB77U2Mi98T1fUn5AO3QDcl7suCuGJ0X20SU 6cgZ0++a6WH7K2hCX7EIMCE/C5IXhFBh+V9MVMelV+Vc8zhUvSRLkUVYd7lfnSO9KlYI +ZXgLLPfLHSkJU/s1S09ihwvOnj52X/o4zPwcsnsXws4Uz1HaASdPpW4G56Uh4gQynOZ DOXcKxB8Ohp4DhBfURHuPgF83IBtnrAbWSTkflWASzesaEl7wGZ39wBdsa2tgzO48BiV jCRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version; bh=hMPLKbzcbHEsInSfvdDZeNWBSW04vwUt0UzGzkKPb6M=; b=JK/WBQjOF+eunJLPyUvfAZXeY/nvM2A0DUzY3x314j5wvk/tsyUUjYcBVya2RkNpVo VgXDUNmPJ2CNrW1qsSO3BZvxzvQIHTMC2sJ6dwNqFoXRduqv1Wx7xW2LqpLCw9OlVjoC BYYPulbVlU/4zrQjzFfs9V9B9YNuloGHPDVNO1wpUXi0OQuhqq6SPpd9b6yFCRbxBA/v StDCqSnOJqkj0/YsZaWvIhISTnXTrHj0Dnma5NVH2873VE/3TM6dAv+UfHzbTDEnPr5+ gr5wjkirjsYvXx5XETuEV5VYlX91DbQ0znZg3oo+N7GcJUAUUqXhA5Qhw31dyhei5+w7 Hfag== ARC-Authentication-Results: i=1; mx.google.com; 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 rj9-20020a17090b3e8900b001cd44cc15d9si15456656pjb.101.2022.05.09.03.40.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:40:54 -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; 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0671518C593; Mon, 9 May 2022 03:06:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237300AbiEII6L (ORCPT + 99 others); Mon, 9 May 2022 04:58:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233443AbiEIIjr (ORCPT ); Mon, 9 May 2022 04:39:47 -0400 X-Greylist: delayed 1011 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 09 May 2022 01:35:52 PDT Received: from mxout70.expurgate.net (mxout70.expurgate.net [91.198.224.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C528AC067 for ; Mon, 9 May 2022 01:35:51 -0700 (PDT) Received: from [127.0.0.1] (helo=localhost) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1nnyaf-000NM9-2A; Mon, 09 May 2022 10:18:01 +0200 Received: from [195.243.126.94] (helo=securemail.tdt.de) by relay.expurgate.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nnyae-0002yS-G0; Mon, 09 May 2022 10:18:00 +0200 Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id CA7A3240049; Mon, 9 May 2022 10:17:59 +0200 (CEST) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id 7B958240040; Mon, 9 May 2022 10:17:59 +0200 (CEST) Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id E20EE27512; Mon, 9 May 2022 10:17:58 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 09 May 2022 10:17:58 +0200 From: Florian Eckert To: Randy Dunlap Cc: kernel test robot , Arnd Bergmann , 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 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 In-Reply-To: <65c92404-1d6f-6969-89bf-20b8eefaeff6@infradead.org> References: <202205080416.vzIXy16B-lkp@intel.com> <65c92404-1d6f-6969-89bf-20b8eefaeff6@infradead.org> Message-ID: <81b9b2cd3f981b6206e9d8c52b3306b3@dev.tdt.de> X-Sender: fe@dev.tdt.de User-Agent: Roundcube Webmail/1.3.17 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-purgate: clean X-purgate-ID: 151534::1652084280-0000C1DF-9F1DFEF7/0/0 X-purgate-type: clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> >> 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 Fine with me. I think it's better to narrow it down. Because this macro is only available for the SOC_TYPE_XWAY [1] [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h?h=v5.17.6#n10 Best regards -- Florian