From patchwork Thu Feb 22 06:47:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 1902586 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=oAlo5zPv; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TgNyL3WNPz23cl for ; Thu, 22 Feb 2024 17:48:26 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 200E88802E; Thu, 22 Feb 2024 07:48:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="oAlo5zPv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 74B7088051; Thu, 22 Feb 2024 07:48:12 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8C6E68803E for ; Thu, 22 Feb 2024 07:48:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dan.carpenter@linaro.org Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-41275f1b45aso10319675e9.3 for ; Wed, 21 Feb 2024 22:48:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708584482; x=1709189282; darn=lists.denx.de; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=Wp+o4Nz/nYqtKpCioaLTD8CsJQ6aK+axnusdZWEnDj8=; b=oAlo5zPvjM4Zx+RR7zZKRE47sDIUNvTWkRhqrxhxvkv0YREKnujhJp50a96Ujz/R8B BhpB5ru9ky5r14WNtTMN8jslZ/8/gys8gWfRHBfJGIbzBy5iyzMrBdoUMPEGzGcqn9Sm JNDNsExEWICS4zMMQRyoAQK75b9FCIVPl64vS0+FDfKKXgxU9npB4qqGOpOPAFP5t+qs dHK+SUMIlFpN0jQHQbxpOCoEQidKZtZ27kcExjp0oLQwUJUXhZEgqrlbwWUQFJw1gKMp TIpFKAv8kvaC+0+wlQoeOrxOyTm4KzuCfkPcMdkKVf+zEVApe0noaZcUAOWRcq1/milZ onQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708584482; x=1709189282; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Wp+o4Nz/nYqtKpCioaLTD8CsJQ6aK+axnusdZWEnDj8=; b=rlb7gkvbpm/MNi5UrfOgn5mLagPqFhBziY6WvUXCqD0uneMXUmQX4fQ0mWEjmnST8c zKcbjLTFwvKMH5DY8KeuKIFZDZRnXzkEysifynmlzWLh9eJ42jcHcgmne7J8Rt5Iwcfd ke0Ev60/n70e5H8NipWNC9F4jQfqA8BV/4gXaChkzV4/F9QA+hvVvkeZACc8rkCoOiUV 4Rm7cnEc6m7sVtE8iJDfUxWrqo4bLQLfCwUtNZVE2NRezPK4ypH3RyQrdd04gKY7MgMZ jAa3CavumDMMFQykAdWA7Ntbxi4cFDQbcAaRo8fwB/84+yNkv08Igi6kRY6QrFGJ/f/b i5Dg== X-Forwarded-Encrypted: i=1; AJvYcCVP7Js1BYWDmucDZp/5Qz+BEpeqSK0i4RTZrrLduAYkZ858kdD5X2qVgtn/02u/hfx/lGrFTFZ9/ANN2iQ/CY/NjDhGQw== X-Gm-Message-State: AOJu0YzGw/8eLyMDM4VzqpmLxkmZ/i8Pqm1vIM5B2M+iEJjfZqSOSq/o q7hZolgZYNyQpvmO0zD3TUTQCqNGbqHli8wQDAqifx5BmnwR3wDJMB1Bis4yW9E= X-Google-Smtp-Source: AGHT+IFf1UjLEJnGTOdm88xLPr18SpqendBdw74aqxpJQgBYQ/ybENzyhoYoGafAf2qN0XR/tPDj1A== X-Received: by 2002:a05:600c:3590:b0:412:6d65:abd5 with SMTP id p16-20020a05600c359000b004126d65abd5mr6515979wmq.10.1708584481981; Wed, 21 Feb 2024 22:48:01 -0800 (PST) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id e6-20020a05600c4e4600b0041276d96349sm4623455wmq.8.2024.02.21.22.48.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 22:48:01 -0800 (PST) Date: Thu, 22 Feb 2024 09:47:58 +0300 From: Dan Carpenter To: Rayagonda Kokatanur Cc: Tom Rini , Simon Glass , Andrew Davis , Linus Walleij , Bin Meng , Sumit Garg , Fabio Estevam , Andre Przywara , Alper Nebi Yasak , Yang Xiwen , =?iso-8859-1?q?Cs=F3k=E1s?= Bence , Peng Fan , u-boot@lists.denx.de Subject: [PATCH] ARM: Enable CONFIG_64BIT for static analysis Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email haha only kidding X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean In the Makefile there is a line that says this: # the checker needs the correct machine size CHECKFLAGS += $(if $(CONFIG_64BIT),-m64,-m32) So set CONFIG_64BIT so that we don't pass -m32 to the static checker. Signed-off-by: Dan Carpenter --- arch/arm/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index fde85dc0d537..4c7be7cf9c33 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1,11 +1,15 @@ menu "ARM architecture" depends on ARM +config 64BIT + bool + config SYS_ARCH default "arm" config ARM64 bool + select 64BIT select PHYS_64BIT select SYS_CACHE_SHIFT_6 imply SPL_SEPARATE_BSS