Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5080892rwe; Tue, 18 Apr 2023 01:35:53 -0700 (PDT) X-Google-Smtp-Source: AKy350avA/FWujQKfSFbod9BJP7/Vq+omfpijZRgNRcpwTA7BMcBaLVb+AGQpqyRvqRh/P3OEN3D X-Received: by 2002:a17:90a:bb8a:b0:247:6c78:6c3f with SMTP id v10-20020a17090abb8a00b002476c786c3fmr1409201pjr.29.1681806953432; Tue, 18 Apr 2023 01:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681806953; cv=none; d=google.com; s=arc-20160816; b=nx0TvaJph5vzdKqrtpXFwcIIFIFG5tD4MrwQcSm0z0q16PDjXJU+xvZwdRLaeW08qu EK++f+zDXIlhsvQMsD/L16RefvDl/9H807YefUeUEJ0TLQDR7t02i56EXMuKWlOqqnVt zeBnf4mU7FeTTb2Jgj2AqkK3k914TZPSjqzi1ha6uWkyq1MrT27nPldp8oG4LLXB6Q14 5yIYRouIgCQIKExOvqaGBJiH73G/KGiM8tsDFttlxK/ohxNgb3sfqQqBKDCx5CwjTv9W dGfAfBq2Ypti1tu3YnBzp/EKq7a+X3jbwEfIGaO7ixKyipoDCSFHq+X350tUbnWGr36v hGZg== 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=R4A6OpstqdNieOolGqqfs3dJZeBWURomNlQRfM9+VC0=; b=TneyfuuoJdu3xfmqfxchICAdUCIsCwtjId4A6tL6+Mq1DND6LaVHK571pCE11wTF8L pn51Km4pycQxfDur+KoukCavGfMA4kQvyr+/j4O4SXdVtRsyBihwyelHfEetCsMdrvia 2GEJVoHboSd6bCys4h+XvEKB9tP4WqShB3siZRZr8dUOLcoRc6wWaGQcKc1GusOzsycL Hki9KR2hWrcDzfpCtk8veCGJglfqMLZkbY0xsaof6XtgIwTHdOJNdce5YgE/md/Yl4pI mcUceyX1GemsTCQvnNMexsZAzcQCZft5ABGWOk1+37bFVokGkJhkuu60NQbb0AP0q5PI xrPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cy3Wr2WK; 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 q12-20020a17090a68cc00b00240e633e032si16140672pjj.8.2023.04.18.01.35.42; Tue, 18 Apr 2023 01:35:53 -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=Cy3Wr2WK; 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 S231346AbjDRIbX (ORCPT + 99 others); Tue, 18 Apr 2023 04:31:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231230AbjDRIbP (ORCPT ); Tue, 18 Apr 2023 04:31:15 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D6764C1C for ; Tue, 18 Apr 2023 01:31:10 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3f169350f05so20750425e9.3 for ; Tue, 18 Apr 2023 01:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681806668; x=1684398668; 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=R4A6OpstqdNieOolGqqfs3dJZeBWURomNlQRfM9+VC0=; b=Cy3Wr2WKfWULNqyX0qg6/HCM9vISkkbv8/UnNAgM8nqb24jM9DjY9bODwDrQLg5+jX PlIxkG23AEggmzoD2NqnHcqPtYsyhUIJ19K4eTQGQw7ZaLLHGWuJWr5o8EP1siTvvGBv VIvMrVA710J+ij1OpVlBRc5hUWszpZ7ccaL2KiRVTmvTRAf93K8jnfQPA6S9gx5qybaL vXYr4xxX17TTvOkzAKAYQ6h8N8+G9WGYjWoNMbibrZA/OkmZxerTSBwT9KTaR4ytXd3s q3ILtS5kYmLWpGZ+91qBCzZTvOwvarbwNmdLjwA9/PWKDfvKU4ayWwTuUI/08Ux6pc/v w4cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681806668; x=1684398668; 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=R4A6OpstqdNieOolGqqfs3dJZeBWURomNlQRfM9+VC0=; b=i8mhwWCMP6jVSF/KdX+GFOazZPINGmG8TmsrfC1aBGUPK+AKHhGCFVPd+gPzgtZBEW CKPvTWZxz+NaWF/4gUwTfjSiZNz9jbacp8RJib2DukooFkWdXTLCPSZh368MpUUxkImT iZRGHNKY/OD3+Prt5COsT8XcOtFeIsR+M8bh23IqSxkXcO9HYpxWmWhuGKVA34jxuCqw ZCj/00wpo7gDeHzYVBjrcnORdTz5jgt2ugz7IvVNUVLn4fkATJBfiKCb6wgq23t365wk iCG0Ez9ZSWbsqgQvDJA7syugGjuJGCWznS/aFw7M2waTp+ySUv43bRbEe+PfAUcSShQm 6tww== X-Gm-Message-State: AAQBX9dQlc/Umb5utVhScMHj5dLnFnpvquibDxH2RV9/GDwfOMZPTAv3 bkvJYt+Q9oWCbskvVR2LtxCyog== X-Received: by 2002:adf:fc90:0:b0:2ef:b4a9:202f with SMTP id g16-20020adffc90000000b002efb4a9202fmr1293915wrr.69.1681806668432; Tue, 18 Apr 2023 01:31:08 -0700 (PDT) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:c25b:18d5:815a:e12b]) by smtp.gmail.com with ESMTPSA id l37-20020a05600c1d2500b003f1738d0d13sm1805978wms.1.2023.04.18.01.31.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 01:31:07 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rafael@kernel.org Cc: rui.zhang@intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, thierry.reding@gmail.com Subject: [PATCH v1 2/3] thermal/core: Reorder the headers inclusion Date: Tue, 18 Apr 2023 10:30:54 +0200 Message-Id: <20230418083055.3611721-3-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230418083055.3611721-1-daniel.lezcano@linaro.org> References: <20230418083055.3611721-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=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 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. 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