From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CD81FC433EF for ; Thu, 28 Apr 2022 19:06:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4974C83EDF; Thu, 28 Apr 2022 21:06:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.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=kernel.org header.i=@kernel.org header.b="RruWqHIO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1AF9283EE2; Thu, 28 Apr 2022 21:06:49 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BCE0D83ED7 for ; Thu, 28 Apr 2022 21:06:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5400DB82F43; Thu, 28 Apr 2022 19:06:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC720C385A9; Thu, 28 Apr 2022 19:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651172805; bh=ulIBC5M8ZiZ/mSOUhaUwWg1oaUO5H60zOZTKsa0kiLU=; h=From:To:Cc:Subject:Date:From; b=RruWqHIOQwKXJ6EUhL4y7bNJ2dZACcgYUJ44nJdRa8UaGKpeWva0neIMX6Te0GWFA yZNU7SSJD8VnPyWbc9EtsKfaeZV1FBRwPDl6Q2O+fe7LXBafsq26zGfWDYIdZTd94+ 0Y5/F5QbQkk7zO3CgrX3M+OpDJAYxDE65eTdmz+V63H5lwg/kNjYiQzwCViLt8wv0F Muur2CPLtvgOeEaeWl73yfBdBUoi0hCNL4IZ853eqWXM8mcWzkxJ3y4Xuhu1ylWwbm azP+DEEkxPUl1Mqn2AW/BqeKlKGRYix88HBzb8BZEYKxRU8zjTE0cz5R6oP7a8nXjM +2HkqYJhMh4Uw== Received: by pali.im (Postfix) id 0E5648A0; Thu, 28 Apr 2022 21:06:42 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Priyanka Jain , Sinan Akman Cc: u-boot@lists.denx.de Subject: [PATCH] board: freescale: p1_p2_rdb_pc: Allow to compile without __SW_BOOT_SD macro Date: Thu, 28 Apr 2022 21:06:20 +0200 Message-Id: <20220428190620.20378-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.5 at phobos.denx.de X-Virus-Status: Clean Add #ifdef guard for __SW_BOOT_SD macro like there are guards for all other __SW_BOOT_* macros. Signed-off-by: Pali Rohár --- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c index e559a77b2dac..a8318ff40b6a 100644 --- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c @@ -209,8 +209,11 @@ int checkboard(void) val = ((in ^ invert) & io_config) | (out & (~io_config)); puts("rom_loc: "); - if ((val & (~__SW_BOOT_MASK)) == __SW_BOOT_SD) { + if (0) { +#ifdef __SW_BOOT_SD + } else if ((val & (~__SW_BOOT_MASK)) == __SW_BOOT_SD) { puts("sd"); +#endif #ifdef __SW_BOOT_SD2 } else if ((val & (~__SW_BOOT_MASK)) == __SW_BOOT_SD2) { puts("sd"); -- 2.20.1