Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1357475rdh; Fri, 24 Nov 2023 10:28:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnIEQHsLy7EOqr1IUavbLQuLKRQhhmf7KVobLKJk3MZ2uMmU4Uc23YwGrwgvsWmON8/zHp X-Received: by 2002:a17:90b:3906:b0:285:a152:fd3d with SMTP id ob6-20020a17090b390600b00285a152fd3dmr25184pjb.42.1700850535507; Fri, 24 Nov 2023 10:28:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700850535; cv=none; d=google.com; s=arc-20160816; b=OWpVa5+K8IVDBEyk5XcJxMrDUVJ7Yzw9bON7e0BPLnne3ApvJzOhrZiHfLTcul3FJ2 YnLK8qc86TU5ivsVCGCzZMH6z6RW4OoM0FKh6zLvIIMT+6ZKwnnimIThid0safmCho4Z xpya5BieSt1osEGKPUYMvAkM9DM+vU1t0RdcocVuwn/AHoM1tRfM3KNnfd+SlvCE7P5R uQq3klHNNXW02w/KwrrvkKUukPVSozboSOrPUfP9qwNwPOxlKQOtI/EYaM6E2HJGqpkQ HWXyJ5I3L0vCouFzDtWBTr2i0xHMZUio2ZFg/30C8x5yaqPR1Bw5ntagQZrQKgaVdRUZ 3How== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=TmiDNFaG56IsLIF/IfCu9X42CAG4usXs9HQGE2gmZIw=; fh=u6K/ZJHK1IMbmtiGj/6C9ESloHh22KUN0OebgN4T4H0=; b=Mrz/fchV4X1AvrkgF2qY5hggEdI1fj4yYn/F9fFr2/OIqqnIo6UyhOxzukmQUhOLhd No5xATQwbszSrrhPgb3EsVo74eq5A/gH6SnM1S1x5WiMaer0MQkrdIVO8t42RseHH02l MKwlv7XQVF/o1VTTgLu9S4Gyf6KNidO6pEVvfA0ttIkFpkTkmgVv4ym4soPr48oD09vf BR2ToXYXC92VpzMjh2234Ym8Cy/PG340haenB5HwkSGXY5vHFvQG4FCPYwdAOnM8gGGf d2Hu4sJgY6OLj092iGjHx8PRlKzn+R3LLJBQQybUdttxN2A4b6a9EQL4iTAJQjda1qHT HMew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o18-20020a17090aac1200b0026810b074afsi4494766pjq.3.2023.11.24.10.28.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 10:28:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6D3C8804DD99; Fri, 24 Nov 2023 10:28:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231462AbjKXS2p convert rfc822-to-8bit (ORCPT + 99 others); Fri, 24 Nov 2023 13:28:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbjKXS2o (ORCPT ); Fri, 24 Nov 2023 13:28:44 -0500 Received: from mail-oa1-f52.google.com (mail-oa1-f52.google.com [209.85.160.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 019251BDA; Fri, 24 Nov 2023 10:28:51 -0800 (PST) Received: by mail-oa1-f52.google.com with SMTP id 586e51a60fabf-1f947682bfdso249027fac.0; Fri, 24 Nov 2023 10:28:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700850530; x=1701455330; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oLMFfODH5jS5YDFDQszChNMcGREuaPeTgi8qOTAaUV4=; b=Dud0luotF7MeDx3pnMruQU57XyPHns2evqyITZ3plpa0J26zuCXq4X1nGCt5wS3ddu QDvSl1EeNo1/H/M2g1YwLedzjqQGMzcyi9CfNvz6qW2zrBs3O7nJe4kX1ztEYLWnn5be zvCQ9Q2jkUUup3NcYDDwHM0mamgp3B0liKA5sVAHfOrrz8yNA6AB0zcxqeKjuz2rYW1G 95dxlWAbNrw55lNtVvznaxtQgyOuhs6DxuQcbM5H0EtLOjwKG4GwqJTSdBjAF9TSJCUt nlF2cE5XlJwfe5PhRt1nBIiFQ10lZ+XytLtdEh6beu1zJ4cWh4GqrtTDGSZBHNHUzzmp eCmQ== X-Gm-Message-State: AOJu0YwnhntB6fZObdO/xLo3rop38pGun5wKZ/Vvzfk+VRkr6bYuz7Tz V+RThvFgFKuEmJIccsAg+hjhRwqtdgzmkqiq0DQ= X-Received: by 2002:a05:6870:d914:b0:1f9:602e:7b0d with SMTP id gq20-20020a056870d91400b001f9602e7b0dmr5597329oab.2.1700850530254; Fri, 24 Nov 2023 10:28:50 -0800 (PST) MIME-Version: 1.0 References: <20231123070010.4013969-1-arnd@kernel.org> In-Reply-To: <20231123070010.4013969-1-arnd@kernel.org> From: "Rafael J. Wysocki" Date: Fri, 24 Nov 2023 19:28:39 +0100 Message-ID: Subject: Re: [PATCH] ACPI: thermal_lib: include "internal.h" for function prototypes To: Arnd Bergmann Cc: "Rafael J. Wysocki" , Arnd Bergmann , Zhang Rui , Len Brown , Daniel Lezcano , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 24 Nov 2023 10:28:54 -0800 (PST) On Thu, Nov 23, 2023 at 8:00 AM Arnd Bergmann wrote: > > From: Arnd Bergmann > > The newly added functions are declared in a header that is not included > before the definition: > > drivers/acpi/thermal_lib.c:46:5: error: no previous prototype for 'acpi_active_trip_temp' [-Werror=missing-prototypes] > 46 | int acpi_active_trip_temp(struct acpi_device *adev, int id, int *ret_temp) > | ^~~~~~~~~~~~~~~~~~~~~ > drivers/acpi/thermal_lib.c:57:5: error: no previous prototype for 'acpi_passive_trip_temp' [-Werror=missing-prototypes] > 57 | int acpi_passive_trip_temp(struct acpi_device *adev, int *ret_temp) > | ^~~~~~~~~~~~~~~~~~~~~~ > drivers/acpi/thermal_lib.c:63:5: error: no previous prototype for 'acpi_hot_trip_temp' [-Werror=missing-prototypes] > 63 | int acpi_hot_trip_temp(struct acpi_device *adev, int *ret_temp) > | ^~~~~~~~~~~~~~~~~~ > drivers/acpi/thermal_lib.c:69:5: error: no previous prototype for 'acpi_critical_trip_temp' [-Werror=missing-prototypes] > 69 | int acpi_critical_trip_temp(struct acpi_device *adev, int *ret_temp) > | ^~~~~~~~~~~~~~~~~~~~~~~ > > Fixes: 6908097aa5a7 ("ACPI: thermal_lib: Add functions returning temperature in deci-Kelvin") > Signed-off-by: Arnd Bergmann > --- > drivers/acpi/thermal_lib.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/acpi/thermal_lib.c b/drivers/acpi/thermal_lib.c > index 646ff6bda6dd..4e0519ca9739 100644 > --- a/drivers/acpi/thermal_lib.c > +++ b/drivers/acpi/thermal_lib.c > @@ -9,6 +9,7 @@ > #include > #include > #include > +#include "internal.h" > > /* > * Minimum temperature for full military grade is 218°K (-55°C) and > -- Applied, thanks!