Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1802408pxb; Thu, 7 Oct 2021 15:45:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1vRfgeRTFEmFCeQLfzw48mkFgcA+Cdr5nlm4h9TtR4D5VzNkJ8vjqBMGNc2bTG1jbkSBG X-Received: by 2002:a50:d809:: with SMTP id o9mr9924496edj.149.1633646757411; Thu, 07 Oct 2021 15:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633646757; cv=none; d=google.com; s=arc-20160816; b=0wBoarcUG0w/Ua/XzorAWz2Tg0rZ6FHjlCmn1IChoVxu8QXVOnJCTcq2PNEJqU0wVf s9QN6/RHHDLiK0PYg+y2aLJ4dNTj53qGkqeEVxI0fCx5wxMBWf+LSQ0MpjnwPB/jpLDQ bBsJed6YvBea8r9mwk3pziDkx3VwpqVV0QU6nzLFtrLxHdag9lZk40aD4VjL/Xki7ne8 DjF6rPdvKRopG1xppSFBNUP56ooFuigqx7fu0axEd0RPDAjGw1OS6MRosieg9LrvlT31 f2Sq9wBQWasWUvgqOuUemy6d01/fnva+N++b8LvFr8WWWjbp3Ic9uuIMEyGvEv4fTynh Y+wA== 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=jqpcvvl386bx1gPuTlre4q9J/DGcDYFjm1lcO6usPDw=; b=lE2OLitLYGqG1KBu6aB5+P6kHUnKBrZF5WKFbDuIuLZlTvRSaby9l+EzFnae/GoKSf dbwI/J/XupyP4j8HqYm2412q85lq7Uq9BocOQETEhrJ36FO61OupBBZYHpM9UiY7oJku vFDfSv6vkDuTcVTfx8kvaNwhTFUcilwSVyfZOMyzHHycSMVH03dHl3ynxCwlLjEba4pB RwPped1mbev6h8vYrBxAndZqjeT+zgf6WmnRuv25kKiga9mR2xuYYswIEnw+3QhWhCkl 9aUb7iIJE3f3rlFcpGbDptB7wLxmA2v/Na6C9tbedL2z9JMtzXVjQfynIN3Mhu2cNAPi z2jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w0x3HtI6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si741568ejp.519.2021.10.07.15.45.33; Thu, 07 Oct 2021 15:45:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w0x3HtI6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234649AbhJGT6B (ORCPT + 99 others); Thu, 7 Oct 2021 15:58:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231993AbhJGT6A (ORCPT ); Thu, 7 Oct 2021 15:58:00 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9A9CC061570 for ; Thu, 7 Oct 2021 12:56:05 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id n8so27765943lfk.6 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=kFpVZ3JwZSEjtp17KgrwUagiJaunxKYQ69uig/K5iAAYYN1LSOw+1LAxyVfZViWSW+ sDcskNUb3nWrejf/elKCdc+0Q6Aizh/+TRKZwXCcaW+5DJEbV1boeR4SokaT1cGqsMVN 2V7Zf/9Vgn5HtnLUhjDs9HLCMIdvCE8yd1EClEnOFaRhcJAOZ2GhhfbxmxPP9QSjP5VN LPhAE7Y8BrOGGqQIdQNEIuDDdCYex7YsC8XAGzVBtCpkSdyWy+/s2zbCOMuXmmk8p/qU XdB0/glbF+cbJdupd5/hWEFr8ojGpRvwKC6ThS7DNefRCi0TY2DlC7NvZkHVlgrVzOk2 pKGA== X-Gm-Message-State: AOAM533stRaswTyz2lrr+mcBmlXm0VhsKj2I6/Bf0EAKMbdCqmdXIoBd QG3Yz0l8jsy68+eP7u6f+R4CwSVT97N8XQ== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- 2.33.0