From patchwork Tue Apr 19 01:01:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 1618581 X-Patchwork-Delegate: xypron.glpk@gmx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=DbeQ+5fg; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kj5Bl0tClz9sFx for ; Tue, 19 Apr 2022 11:02:55 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9E07783B15; Tue, 19 Apr 2022 03:02:50 +0200 (CEST) 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="DbeQ+5fg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9DDBA83B38; Tue, 19 Apr 2022 03:02:35 +0200 (CEST) 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-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) (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 6E82783B08 for ; Tue, 19 Apr 2022 03:02:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pg1-x530.google.com with SMTP id 203so2939889pgb.3 for ; Mon, 18 Apr 2022 18:02:30 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=jx1MEzabu+zPiZhYQiQQNm/tbJqhJwlf4t+f7OvJdOA=; b=DbeQ+5fgCNJ/5iBeLJidDt87APwwYo9qax1Dsrjx7DIXJmgamZrIb9TPWUKWIUUZJl r0jJY0WVE6OzNL6XuPmFmGH/pXuQuTtJAByfgNrOO050IVSo5UsFDEzGars+H/HwQktq 6NN4HW/vSnyA7ilrInKOfg1LFEWpHsLkap/6br9skf3T4+vVkGAVKmxFgUC+L6EJl893 ofL5H+sWFDj99PWNri6kXyQqbVreO11Sra76/ykbN20/P0Ku3ZdyaOJLIqXj43ix7PZk zIoLEDwt7IxG7C26TGiQSPN0HvLt8JZlfZGgxXNj3EK4IorYPb7/UIvWqFaE4YoOKa6a k9AA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=jx1MEzabu+zPiZhYQiQQNm/tbJqhJwlf4t+f7OvJdOA=; b=IAKIRadX9T42lVbYtyxIsewctHMlrkZQd8kLx3FdXomVJ9y9vi1dVoYJeEtJSXOsDl zUhs73shEEzuandwMCxztWzH+zGklpmZUHZgTd79oVTLn8vvqxoqPpmqHU6oa6z0AjX0 rt5AYrA9VLlGYaLdHLfPsvCXL5qZtiqTMh/tseFAHcDT0fQ8KEm8WfyWXJH7FS1etQ1K CDLAljaFv9wH7C/WxMsc+LztjcbMSScQCTTNWYU0OreXbuygsL3KQwpHwPaa6ryomu4r KtAhUzP0vtEVGM+8yEei6B/Hy3Zr2z95+G+yuQlL89/GkKjWBsZqWQz3EblcKgepRuhg UY0Q== X-Gm-Message-State: AOAM533rj9tMArMcx+GrfX05qX4XeC0QyWCkSNP34uNwJ46Uk2g8hGzo qAxAfCjSmFX/EGunw98B61nHQd/zb3kI6A== X-Google-Smtp-Source: ABdhPJwbkp0O7D5JA+tX6nukCW7J6s2yNx97LSI30nZVdneito6oeXyJi3zsrXVAKiuZti+xjQZ0+A== X-Received: by 2002:a65:618d:0:b0:39c:f337:7ea8 with SMTP id c13-20020a65618d000000b0039cf3377ea8mr12713552pgv.104.1650330148845; Mon, 18 Apr 2022 18:02:28 -0700 (PDT) Received: from localhost.localdomain ([2400:4050:c3e1:100:5858:d3a6:5cad:ceeb]) by smtp.gmail.com with ESMTPSA id l2-20020a056a0016c200b004f7e3181a41sm14791729pfc.98.2022.04.18.18.02.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:02:28 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com, sjg@chromium.org, xypron.glpk@gmx.de Cc: u-boot@lists.denx.de, AKASHI Takahiro Subject: [PATCH 2/7] disk: enable function prototypes in part.h for SPL/TPL Date: Tue, 19 Apr 2022 10:01:53 +0900 Message-Id: <20220419010158.47034-3-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220419010158.47034-1-takahiro.akashi@linaro.org> References: <20220419010158.47034-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 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 Since CONFIG_[SPL|TPL]_PARTITIONS were introduced, part.h has not been updated. Due to this, while the build won't fail, some functionality may possibly break as some partition-related functions are nullified even though some partition table types are enabled for SPL/TPL. Fixes: commit 88ca8e26958b ("disk: Add an option for partitions in SPL") Signed-off-by: AKASHI Takahiro --- include/part.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/part.h b/include/part.h index 1196220817e4..9975fad97121 100644 --- a/include/part.h +++ b/include/part.h @@ -87,7 +87,7 @@ struct disk_part { }; /* Misc _get_dev functions */ -#ifdef CONFIG_PARTITIONS +#if CONFIG_IS_ENABLED(PARTITIONS) /** * blk_get_dev() - get a pointer to a block device given its type and number * @@ -497,7 +497,7 @@ int layout_mbr_partitions(struct disk_partition *p, int count, #endif -#ifdef CONFIG_PARTITIONS +#if CONFIG_IS_ENABLED(PARTITIONS) /** * part_driver_get_count() - get partition driver count *