Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp150399rdh; Wed, 22 Nov 2023 23:00:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmPRy4aKj7BrZTsoXYJVrhVkZy7MtbyRN/UZzHvjP1ACdZnysYss2scApsbNgv5hT5YnNt X-Received: by 2002:a17:902:d4c6:b0:1cf:69ac:4bf8 with SMTP id o6-20020a170902d4c600b001cf69ac4bf8mr2773629plg.13.1700722831519; Wed, 22 Nov 2023 23:00:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700722831; cv=none; d=google.com; s=arc-20160816; b=XPRmtmm/OtipWxCgfrr0Umry6V/jOS3ytU+DTwtnBsfauVS3qS3XAf1Tt7UUZ0DWaP nkHsH3xYE7nSMYisM5PMqqEptYr0/uEvSq7esXhMsb/w+Ue2v/pmRZSU1pmw0uRe7fI9 Jqz0V/zuULaxJeggCwKH1khmzdT3t6sT5PWIBui3FRZHd7GAZ2JI9frrHRMJl/GMJIFK iCtspI354Qas248hgj5HzHDPgXkj7zQRyABa9Xvt8OYHty7z/CCXqu131x8Ut6v/scsD UGbmqgHBG5tGIE4oSin/rit5WuRPjL1H+P8MosIxxIiu2ZwE6Unipz3O4fLuV/AeyJju kTxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=mS3JNLvGQvKADwLKE/oQXAi5XlkAkOYKPyyyEhqSh2w=; fh=vFeZu37IcAKd5WaP+BYg43d0psZLfNpFQ67WQpsVTEI=; b=DfJ8nJ23JVDL0Nm5fhejjdE0ErUUQ5R/9nFR9Q7epnJjoKpOwcWglAybvwNk22SARZ MvjzEMDFfsVNQMYfIP09MmD/bFSUjahrjUQqW8j6KoXv7BiBPsUlExZAV1TSdew4WGS5 x6xTctbOoreHVEMBvx1iXS3aN044lEbrRvIq8vXQ7+NnED2YJWFNGPqVvgYKZZXJM+40 Ip+oUR8gnpWuS7Nr3s/PO4kQ6+2FU0UWThnqtgAcWZeqgGRZYCvCmflqwPWWLfg4apkj 1roehiaF5EP/l4F7n/2NAOduUUDGExpEBJzHXzg7QoJ5hFpNFtvvxvdGSX4jMPyiC/X/ o/DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O8dtWN9v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id e17-20020a17090301d100b001c9fe071f2bsi620161plh.8.2023.11.22.23.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 23:00:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O8dtWN9v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 01C08807D8C8; Wed, 22 Nov 2023 23:00:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbjKWHAN (ORCPT + 99 others); Thu, 23 Nov 2023 02:00:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbjKWHAK (ORCPT ); Thu, 23 Nov 2023 02:00:10 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95AE2B9 for ; Wed, 22 Nov 2023 23:00:16 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77F59C433C8; Thu, 23 Nov 2023 07:00:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700722816; bh=gtU+Ip4vBdqkXNcVYMAHTdA7Yf0OaFIdHF1c43xiML0=; h=From:To:Cc:Subject:Date:From; b=O8dtWN9vYKsRY/QVCQnJOZQMygs9qZR3wKEwAqgHsbtp3o9Uz8TuFWQhWw85jtvUI XXAGrFMsnzJ2LKoaVjLqUGMYPMMJ/jNPe5VrslWFx9QWIUoKSVlyURITZdFufAyv45 mGY/lb0py1rl6lxM52ZFUn46m6W3AbHjnrhG0Dr84YSj8Prx+c4z9zbTgAIkwFYR9U O69VHy8DBgf6FPoL4o40OT8DuBtUFqJ+4m2zBa4n9ZhEW1h9ZBb5xDmCVqh/KINU9J HWsGLxOsUuBs6vCzxdLvGl8YkcF4RY4l9GkjVpBZktIRdFMDhvxH348Fxs5uPFQPiU IIShg0B1Izf6A== From: Arnd Bergmann To: "Rafael J. Wysocki" Cc: Arnd Bergmann , Zhang Rui , Len Brown , Daniel Lezcano , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ACPI: thermal_lib: include "internal.h" for function prototypes Date: Thu, 23 Nov 2023 07:59:57 +0100 Message-Id: <20231123070010.4013969-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 howler.vger.email 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 (howler.vger.email [0.0.0.0]); Wed, 22 Nov 2023 23:00:27 -0800 (PST) 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 -- 2.39.2