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 A5AEAC433F5 for ; Sat, 2 Apr 2022 22:20:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DFF1783986; Sun, 3 Apr 2022 00:20:22 +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="M2cD8MGP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 64C1983991; Sun, 3 Apr 2022 00:20:21 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (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 E37758395A for ; Sun, 3 Apr 2022 00:20:16 +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 9A540B80B2E; Sat, 2 Apr 2022 22:20:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 410D7C340F0; Sat, 2 Apr 2022 22:20:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648938015; bh=uOu0JQ7NNw6o6zE9gRU+2MHTh1s85f5muC6hXsCzVpw=; h=From:To:Cc:Subject:Date:From; b=M2cD8MGPQWjs5iOL90H/YNejHPfoalA8DUh4OB3YnTJ4rYhifIav3gIbh5WJ4Ykun XqX6sVQMpoeLj6dwOxk8bWqpqFXI4O0bYzywAZ4BMeJA0WIguEyZMmo9fG+sIFKLKr tzS+2ANZFYbrtuknXGyPw/kWqtOl/fGpeUnv9ZBCiVHHXM3+BwM5kc4J2lRp+y7prl S3CTjNAMaNaVFzUdABDTJqtf07cflaY87gisONk+R/vBts5yFHKgkef0hNAa5WswVl feqSiVVhZTtx4B942C6m1iLtO33NEEsDKfW/7AmzVYnldsSi4PEoYRcmz+57TzYYKj o5LgtotWGQyhw== Received: by pali.im (Postfix) id AC214819; Sun, 3 Apr 2022 00:20:12 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Peng Fan , Jaehoon Chung Cc: u-boot@lists.denx.de Subject: [PATCH] mmc: mmc_mode_name() is used also when LOGLEVEL >= LOGL_DEBUG Date: Sun, 3 Apr 2022 00:20:10 +0200 Message-Id: <20220402222010.18813-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 When CONFIG_LOGLEVEL is set to LOGL_DEBUG or higher then linker throws error about undefined symbol mmc_mode_name(). So compile mmc_mode_name() also when CONFIG_LOGLEVEL is set to LOGL_DEBUG or higher. Signed-off-by: Pali Rohár --- drivers/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index f6ccd837aa40..8a7d0739006c 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -132,7 +132,7 @@ void mmc_trace_state(struct mmc *mmc, struct mmc_cmd *cmd) } #endif -#if CONFIG_IS_ENABLED(MMC_VERBOSE) || defined(DEBUG) +#if CONFIG_IS_ENABLED(MMC_VERBOSE) || defined(DEBUG) || CONFIG_VAL(LOGLEVEL) >= LOGL_DEBUG const char *mmc_mode_name(enum bus_mode mode) { static const char *const names[] = { -- 2.20.1