Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1020336rwd; Thu, 25 May 2023 07:08:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7e08nDJM5sDJJQ0WvwaQzkHc5mBuTaQQ9oRt2+LuqZIxg3hhkimqxcUVRfARx38tk1aXjw X-Received: by 2002:a17:90a:b30d:b0:23d:a2a:3ae4 with SMTP id d13-20020a17090ab30d00b0023d0a2a3ae4mr2008727pjr.44.1685023719295; Thu, 25 May 2023 07:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685023719; cv=none; d=google.com; s=arc-20160816; b=BlNeZGj2A8RV4TqA1IP0RFtmIscN1A8y5qf8jCqgOH4odcrQIpMSiuV2XQ3EjsmEDL xK7WhIl2rcGY24h7YyreaI645Z45FZr9vw8yl3f47JKJMiIhpQ1C6TNxRrIkxv9j9RjP zLk8YqqyI+RRK66tMT5CBLYwjtqCa7wP/1Jyfy0Q7aPzR3hoUUM3unZ7A1Q9pQ9jLSAt ms1VDy/sprTYQnGvdA6cceHHByGQ7r1dIaghiyoQKMhBwt+mT0iRF3ygBooUiyyZ4qdQ kmeZvfBMxU5kGQK1flNr6+ClyZDLvYHEPjL7pPvCv6JsIPY/mUXVF/lFHMfIxTA3ARVf blfA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8B9aQ7Lplcn7G2JB0WPPOQOR+fAGdexdV4KhX+LOA7s=; b=zMu1mhrlcusMfgYkgU84hhv15Ya4rFP5iCA60vJhVQNfKyg0NWdNUMEomaA/4rfWhj smyrzl9OtOzYSRXwksC2VRfLlTwWLoZ5cOwDEXeb1h9dGKQhqawoW95xzK/56YGTCdPQ zh+0sqnmEcofzADwrcAaMNTUvpaJ9vdHrasjnWTwHCrboMqiiKFUcz+u4UQ+qexnBYdE cNAYbwDJNxNZBOPWar1yT3K6rQgt4y46iJgAGoa03SV3wT79EQ4NZG5BWo7QQWOQiqIE R3be8KDtSI4pjmvUI2VpfotZlF5f/k5Xvh325120pY1lQ2zC0qy7/7raLbT4ebLfJjeU LEmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CxESNjIk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w7-20020a17090aea0700b0024e341eddabsi1603071pjy.53.2023.05.25.07.08.08; Thu, 25 May 2023 07:08:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CxESNjIk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241496AbjEYOCd (ORCPT + 99 others); Thu, 25 May 2023 10:02:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241486AbjEYOCa (ORCPT ); Thu, 25 May 2023 10:02:30 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B3ADE41 for ; Thu, 25 May 2023 07:02:05 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-3094910b150so2109496f8f.0 for ; Thu, 25 May 2023 07:02:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685023323; x=1687615323; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8B9aQ7Lplcn7G2JB0WPPOQOR+fAGdexdV4KhX+LOA7s=; b=CxESNjIkH3BboOwT79PfxTbJqEYO+ulPMr3xuPgq2RQc2zfHIA96lwJCDWHXUrvzm6 piAYphSeATpyEUOwZ6GBdLtnJ4aDCc6tfX5DVVhVxBPEykCgBBh9EFG4dpc6XDeKqE67 VkDHGrzXmUDv07jcMWvLfTEp/6bsqma5lwiNy9qGZ0GuRx4DcybOPU5p+kSGRuWUruvO Y1G7iYNI6MR73/gHHYrDnZGZcYDqolv410rYhvZnlHxLAO1FTad0IvgF+YzIBKHEvxsM bNlX7G9V77O1U5KNpzXOVby1gYgLgnP04O8EMEZ8qzh51m3REi+0rd7wRUdPancKMU4C S+2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685023323; x=1687615323; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8B9aQ7Lplcn7G2JB0WPPOQOR+fAGdexdV4KhX+LOA7s=; b=Oheg0sygr6IzpfSle6oUFu553xFZLHeymxMQT/4uKJ/nLB1lKoR5Zj8qKqT9hCr8x/ OwsJsWIGOXB6jj5u5xJ7YCLqilv72JgJHPo3u3EF0Fz2lnvl8x5YzhWq2/+5AL6NS1a9 ocq+uammCrd2O1j5iw4+IHs/ry5Y3H6RmKplCWG7nM/yI7+agWEQbvFruTgMNxU4/L5w 4dpfDPkZnUVOhnRSdJZmC/zvXl+/3QaoFKIRjLujTOuhI1Dfjd6b0vA8stV2q9gI+Wpp ZPtgjTay1aAoim/Y959s8DpVKrsZnrdoqhUZ/RGDgw5l8FZfZb/ONae4Az14LRBzg2tr oyKA== X-Gm-Message-State: AC+VfDyURClFCy/k1RgC2A/FGgVMGAhsyoflAZLjHU9b9lOkTf1jEP+U QiZg9JQGRRTC9LZGl9EF5O8Hsw== X-Received: by 2002:a5d:69c4:0:b0:2cf:f01f:ed89 with SMTP id s4-20020a5d69c4000000b002cff01fed89mr2474905wrw.24.1685023323146; Thu, 25 May 2023 07:02:03 -0700 (PDT) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:5aef:8608:89d7:7961]) by smtp.gmail.com with ESMTPSA id u4-20020adfdd44000000b003063176ef09sm1944866wrm.6.2023.05.25.07.02.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 07:02:02 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rafael@kernel.org Cc: linux-pm@vger.kernel.org, thierry.reding@gmail.com, Lukasz Luba , Amit Kucheria , Zhang Rui , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 3/8] thermal/core: Reorder the headers inclusion Date: Thu, 25 May 2023 16:01:30 +0200 Message-Id: <20230525140135.3589917-4-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230525140135.3589917-1-daniel.lezcano@linaro.org> References: <20230525140135.3589917-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 The next changes will move the thermal device structure inside the thermal core code. Consequently, the traces must be included after thermal_core.h as this one contains the thermal zone device structure definition the traces need. Reorder the inclusions. No functional changes intended. Signed-off-by: Daniel Lezcano --- drivers/thermal/gov_power_allocator.c | 6 +++--- drivers/thermal/thermal_core.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/thermal/gov_power_allocator.c b/drivers/thermal/gov_power_allocator.c index d1c6ad92e5b4..6056ed15460b 100644 --- a/drivers/thermal/gov_power_allocator.c +++ b/drivers/thermal/gov_power_allocator.c @@ -11,12 +11,12 @@ #include #include -#define CREATE_TRACE_POINTS -#include "thermal_trace_ipa.h" - #define THERMAL_CORE_SUBSYS #include "thermal_core.h" +#define CREATE_TRACE_POINTS +#include "thermal_trace_ipa.h" + #define INVALID_TRIP -1 #define FRAC_BITS 10 diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 6bca97e27d59..afcd4197babd 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -21,13 +21,13 @@ #include #include -#define CREATE_TRACE_POINTS -#include "thermal_trace.h" - #define THERMAL_CORE_SUBSYS #include "thermal_core.h" #include "thermal_hwmon.h" +#define CREATE_TRACE_POINTS +#include "thermal_trace.h" + static DEFINE_IDA(thermal_tz_ida); static DEFINE_IDA(thermal_cdev_ida); -- 2.34.1