Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1148700rdf; Wed, 22 Nov 2023 06:56:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkKHzUsQMJLxOBAzxHUo0j/3Z91e2r0c70lZZZ4kYr2PIL05DNuQ0k3gvxAbkfks0K3ZsV X-Received: by 2002:a05:6830:1310:b0:6d3:16dc:8b50 with SMTP id p16-20020a056830131000b006d316dc8b50mr2954040otq.8.1700665018631; Wed, 22 Nov 2023 06:56:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700665018; cv=none; d=google.com; s=arc-20160816; b=xrd1WKnwfQDdeEeP9qhnbO4dKicugesvduGhK9Nd/x3AoyZ8RloUbFpHk4+nABdD+z iMXKEP/+B6nOr0lGX4v6wvv4EBqlR71/Lz/1z2IziOPLlajrF1LtvoZJh1xr/2jN9Rrn kYLFo/48tZsp45MPtsqrQ+Fbvlo6f/Toave1yuiC5bGPu4r3WVDG/Zs1qdsXzYfI6TyU CyM5wzHphY5ukFno1Ln8ot5ylXU8AqkgLmQLvgftBUSMZs0L+wp8j9C7rtnb9ZTqoyMu i43KcUzeffBYKoTD5IwHHi3fttkaCx2NNdXVAwwUsrrMkDsjIY/IT0v0geyfZ77xxyNz 4SGQ== 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 :dkim-signature; bh=DlRpn0YExbwmZYTM470D32GCVHZUUU3U4GDP0MEdp30=; fh=XrsBLfJ3oJYrrN4w/jyaWzQf2ga/PY8IUBoTkvwEcFI=; b=K8+fjdB1jhfxSFpLq4iGCs9ljc4rrZlHPCyEJjzMMuLT3/PQVJR5cDY9M9AXpZ4bIG +s3udGTAic38atCFBaEqHkrhRVFJP/goWyCO7yAu9o9uNdcMmZ0+w+vIXmSSCxwJS7TG 596c0ldyArQwJAxUpWDGtrsFeFvLDXXAnNwLZjsXaUWemjHNFwo1BR4/dJip1YYOMg3S f3yfQnhUfngUsOnMGNTPNU2Z/mU5n4rFT66GmRdcNS+jytbRFhcGofWORE9nS2P+KUb7 rQYH1dANUTAdpRZsN0ipZL5AKP8YuWttRXAi1OqLijBi7T4HS9wOjPjOUO20blQX3asH QrQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R1gSCxG6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id by18-20020a056a02059200b005b90af19430si13248617pgb.595.2023.11.22.06.56.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 06:56:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R1gSCxG6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0B74780CA0A9; Wed, 22 Nov 2023 06:56:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232091AbjKVO4r (ORCPT + 99 others); Wed, 22 Nov 2023 09:56:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234611AbjKVO4p (ORCPT ); Wed, 22 Nov 2023 09:56:45 -0500 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9955992 for ; Wed, 22 Nov 2023 06:56:41 -0800 (PST) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-5cb8440a23cso21851397b3.3 for ; Wed, 22 Nov 2023 06:56:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700665000; x=1701269800; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DlRpn0YExbwmZYTM470D32GCVHZUUU3U4GDP0MEdp30=; b=R1gSCxG635L3tmxoUHRdp5rXmgsQ/CbMt8l9I2pK/qrWMssJ1GqLiByJW4+GmSdPZU 1xBfEfPr+dOX2dLJyJIh8GaDea7MvKJirgsAyuGPokRgcnEGdqZfr5ngvnCnS2q9qp/R XRGsQkehfDjXLEUxaNwmlAbcGfr3WRhMdYDrv4dATMXlwN2P7DRALUtIdCZNgwDEhJkf IwkcHxyGyFPV92Jm9MUzt9Wi7HU0AWeg7ZYpQMFYXS5E9ujrXkU7a6twQyAv8ec+aXQs RIJ27P1/u+9F1KcWawzX9CpxZbyH91UbsEc96vfrayk4Prdevwl1UHaJCnJ2tF2uUOHZ xIpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700665000; x=1701269800; 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=DlRpn0YExbwmZYTM470D32GCVHZUUU3U4GDP0MEdp30=; b=uMW+ee+nEdVXZQ3slFCCg2echCTJRfFahrv/RsubHcMBkJpsAIInlQU3WRLGiKYhrk AGOOxXdElJbATEaWoomskEZj1br7eCEvBcf551AXsN8hvov7ZB8LXr/LOVBrCv4Ve948 Xs3etVAJrRU77JvFUWlsvLXnTbysirtTtbQqWv0HLOoXbgiaRRStegM5x6DY0edmxVNW KlRi471XAIfQpsBdfA56FD7jCAxnDOuo2N9Omxd+xvhCFmkk2xeSyli8IcUciuejM0ye CkAWl28izqoodGMIw3YltDUxgcSxvOtHPatyxVu/Vi6EeyInFQUT71SDEsZW+x/JX29+ OEkg== X-Gm-Message-State: AOJu0YyuKjGsCxkaLR+dxOxgdQ9QbucaqhjGn2cthDxyyyy1EG0kUzdm bH8wEPTmUuCPweMHz6doGc1CCZGUbObzgLePUuNx9A== X-Received: by 2002:a0d:d692:0:b0:5c9:e98c:a6ae with SMTP id y140-20020a0dd692000000b005c9e98ca6aemr2364566ywd.4.1700665000626; Wed, 22 Nov 2023 06:56:40 -0800 (PST) MIME-Version: 1.0 References: <170060515641.2447486.11798332619205301829.stgit@djiang5-mobl3> In-Reply-To: <170060515641.2447486.11798332619205301829.stgit@djiang5-mobl3> From: Linus Walleij Date: Wed, 22 Nov 2023 15:56:28 +0100 Message-ID: Subject: Re: [PATCH v2] acpi: Fix ARM32 platforms compile issue introduced by fw_table changes To: Dave Jiang Cc: rafael@kernel.org, "Rafael J. Wysocki" , lenb@kernel.org, robert.moore@intel.com, Jonathan.Cameron@huawei.com, dan.j.williams@intel.com, guohanjun@huawei.com, arnd@arndb.de, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, cfsworks@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 06:56:56 -0800 (PST) On Tue, Nov 21, 2023 at 11:19=E2=80=AFPM Dave Jiang = wrote: > Linus reported that: > After commit a103f46633fd the kernel stopped compiling for > several ARM32 platforms that I am building with a bare metal > compiler. Bare metal compilers (arm-none-eabi-) don't > define __linux__. > > This is because the header is now > in the include path for : > > CC arch/arm/kernel/irq.o > CC kernel/sysctl.o > CC crypto/api.o > In file included from ../include/acpi/acpi.h:22, > from ../include/linux/fw_table.h:29, > from ../include/linux/acpi.h:18, > from ../include/linux/irqchip.h:14, > from ../arch/arm/kernel/irq.c:25: > ../include/acpi/platform/acenv.h:218:2: error: #error Unknown target envi= ronment > 218 | #error Unknown target environment > | ^~~~~ > > The issue is caused by the introducing of splitting out the ACPI code to > support the new generic fw_table code. > > Rafael suggested [1] moving the fw_table.h include in linux/acpi.h to bel= ow > the linux/mutex.h. Remove the two includes in fw_table.h. Add include of > linux/acpi.h in fw_table.c before the fw_table.h include. > > Link: https://lore.kernel.org/linux-acpi/CAJZ5v0idWdJq3JSqQWLG5q+b+b=3Dzk= EdWR55rGYEoxh7R6N8kFQ@mail.gmail.com/ > Fixes: a103f46633fd ("acpi: Move common tables helper functions to common= lib") > Reported-by: Linus Walleij > Suggested-by: Rafael J. Wysocki > Signed-off-by: Dave Jiang This works fine on my end. Tested-by: Linus Walleij Yours, Linus Walleij