From patchwork Thu Oct 7 19:56:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 12542931 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADC21C433EF for ; Thu, 7 Oct 2021 19:57:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7D73460F6E for ; Thu, 7 Oct 2021 19:57:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7D73460F6E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=9KqBt6CscACudYwyldHmge0k/mADHuxrYUXjlhUIrSQ=; b=Kktv/9h7pIRxE5 Ql/xbDSep21cPZi+pgZusTbgBiKLVOnqv5cCC1edjywPKxZy0+lgZy55fm2JHF/R1QdCTM6uS6BXp Pz0gFH89wdWD+lkNjR5r8dYXqqbv+a7sg/WL4oHIVDsg6LX3OLnInD5/GY1Z0itfXDbUuLQkQ5jPC KaI2KgkZDv5QhARjifDx8HZYUMVE3XzdlZKNQJFFj84ImRHW4qMIobPaDKiQmJroJbaAzuOknfIvL eulLEJB5gj4CqOanI47ZdOgoyg8PvRl8mjkLH7U+AL71QN9fqYii49tgKhI3Nb2JSY8SOQlvl9dbJ 6dAo19QxHqyzzHy3/udg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mYZUw-000eYo-96; Thu, 07 Oct 2021 19:56:10 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mYZUs-000eYH-F9 for linux-arm-kernel@lists.infradead.org; Thu, 07 Oct 2021 19:56:07 +0000 Received: by mail-lf1-x135.google.com with SMTP id j5so29560174lfg.8 for ; Thu, 07 Oct 2021 12:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jqpcvvl386bx1gPuTlre4q9J/DGcDYFjm1lcO6usPDw=; b=w0x3HtI6PyLR/xm5MhD0TIPZNUaafPUX84ca78HYmn7HdYOgNTKuPs7YJHh3WErDIk KmLCMcgEJYWewlGi8PP8ssYhah1SBVbWLTsryOIU025XgiLUJWauzhdYboIb6iPutKWH hLOLtvK/9Wie6IR057gqUDa82peq1IkysorOhcRs6YI0m2kCtnvNLHvcb9hvhwMTFR79 he8LJ2QRredO3HIrnbs9oPO38zwboCi/zGBZDSh+9qfKFI7xdIFEjj1jTqE7JeG6ic6r q716cF4lIumj6vcRu5UDlVszSSOSKH5Pbs3bfUn7nwFGpMhNaIAaSKBo9GYzfBHiXqhc 1kuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jqpcvvl386bx1gPuTlre4q9J/DGcDYFjm1lcO6usPDw=; b=cRCn/F7up6Bglopvke3ZYHcq4pqZenA1kysUjaQWI7b6G8nLQv1SATVP8ID5HuWThk +pdWbv1lL/JV8XpLmZMDLQwvZG/KZzGJplUkKqFDCoE0lp41niEtPJN0ZJv+l7cTufI3 VqyzGOobb1q1RzKxaHzY8cIw45KvJkEy8INll2OpqAA1V/MouVHI8JNDr26H3LjljbaG d6bi82axw3P8Kvv3Taa//VptqGZtJNl+/tiWeQcu34ap1hNaKkrTK3ZkBaZ7airnrTJF en8EVC9nyccZZAwMjPe6wOTm9geRSTK+efuAwED5QtCR5oYhZ1Eb6Qb/dyKZZ37PH9xY 3NKg== X-Gm-Message-State: AOAM532r4+b2NDzNZcIPW274oMu3fFTXD8rO4MxA6R6J8ksnthqsXD/2 fWIFad7ylY8BxOqxACsdxdGSUA== X-Google-Smtp-Source: ABdhPJxybQdrT1W7cgKjvNrBAzn+LLbQt2R8iC0c/F8kfdJI+F5d/FMNMnqnHoGJsuiNttUR5BDjwA== X-Received: by 2002:a05:6512:2202:: with SMTP id h2mr6335380lfu.151.1633636563739; Thu, 07 Oct 2021 12:56:03 -0700 (PDT) Received: from localhost (c-9b28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.155]) by smtp.gmail.com with ESMTPSA id t17sm25439lfl.223.2021.10.07.12.56.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 12:56:03 -0700 (PDT) From: Anders Roxell To: catalin.marinas@arm.com, will@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] arm64: asm: setup.h: export common variables Date: Thu, 7 Oct 2021 21:56:01 +0200 Message-Id: <20211007195601.677474-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211007_125606_527365_24398402 X-CRM114-Status: GOOD ( 10.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When building the kernel with sparse enabled 'C=1' the following warnings can be seen: arch/arm64/kernel/setup.c:58:13: warning: symbol '__fdt_pointer' was not declared. Should it be static? arch/arm64/kernel/setup.c:84:25: warning: symbol 'boot_args' was not declared. Should it be static? Rework so the variables are exported, since these two variable are created and used in setup.c, also used in head.S. Signed-off-by: Anders Roxell --- arch/arm64/include/asm/setup.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/include/asm/setup.h b/arch/arm64/include/asm/setup.h index d3320618ed14..6437df661700 100644 --- a/arch/arm64/include/asm/setup.h +++ b/arch/arm64/include/asm/setup.h @@ -8,4 +8,10 @@ void *get_early_fdt_ptr(void); void early_fdt_map(u64 dt_phys); +/* + * These two variables are used in the head.S file. + */ +extern phys_addr_t __fdt_pointer __initdata; +extern u64 __cacheline_aligned boot_args[4]; + #endif