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 D3361C433EF for ; Thu, 23 Jun 2022 13:25:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A9A248432F; Thu, 23 Jun 2022 15:25:55 +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="KYhIJkTJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AEC5684383; Thu, 23 Jun 2022 15:25:54 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (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 9573C83FF6 for ; Thu, 23 Jun 2022 15:25:52 +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 dfw.source.kernel.org (Postfix) with ESMTPS id 8D1E761D55; Thu, 23 Jun 2022 13:25:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0388C3411B; Thu, 23 Jun 2022 13:25:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655990750; bh=ufb15463K9htrKcCemQ8c9aLnnU2APgmNba8dj+R6s8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KYhIJkTJZXADUSmlT3/hJB8y0/WasOmbagj52vr5dKU8DVZfRjX8JIDqOyr3Vfpe5 h09X6vQx1xopQpQSlFmBJODXEHkpw4s5AdwciL11DccInBGTRc2gekFOxnq3mi3ioA IoWRK8vTdw0w2tZTBgKfZjgOlfasRtDa7jIVyp9L6cw/y/RaDR4ScQ3/lK0gIcKGyq GOkNt9rNHVMF6RaB7COGxl5XNvYGL27Q2/+9OXpzVExedEhsNjsIJua8uKx/7SBsW2 voLKh5K6VjqOPhgztmo3KxRKwr1T7crxDsGMeykO4HrAjyos4EH7Ieud6exfPgyxTB AJS8zZEFtkx4g== Received: by pali.im (Postfix) id 2AA8279F; Thu, 23 Jun 2022 15:25:47 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Priyanka Jain , "Peng Fan (OSS)" Cc: u-boot@lists.denx.de Subject: [PATCH v2] board: freescale: p1_p2_rdb_pc: Allow to compile without __SW_BOOT_SD macro Date: Thu, 23 Jun 2022 15:25:36 +0200 Message-Id: <20220623132536.6585-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220428190620.20378-1-pali@kernel.org> References: <20220428190620.20378-1-pali@kernel.org> 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.6 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 --- Changes in v2: * Rebase on top of next branch, commit 9121478ee6f2aee381f8fe49d8997d43527d351a --- 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 947bbc9a5ab7..ffa9aebad1c0 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 @@ -224,8 +224,11 @@ int checkboard(void) val = (in & 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