Message ID | 20220419010158.47034-3-takahiro.akashi@linaro.org |
---|---|
State | Accepted |
Commit | 37168e396450f3a915c8a9ae9fa65caa3168920b |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp2858362map; Mon, 18 Apr 2022 18:02:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIdBGftCAiZDDb3S6JPj158o+6YWTCWIUhnoj1/BIA5Um1ewxwzikw0UeG9FyydJcIBSbx X-Received: by 2002:aa7:d311:0:b0:423:e539:8581 with SMTP id p17-20020aa7d311000000b00423e5398581mr8006872edq.111.1650330173091; Mon, 18 Apr 2022 18:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650330173; cv=none; d=google.com; s=arc-20160816; b=qVwZOwTjBC+EcWV/7Jy+blSRPOUVUxQ5rrEq1hmmjBE3b3cSUzK0NudsQweBPivD6+ y/wD2X8v3mqmf7tXJwqICw01Y7BDYQ/3KuhhZrs0wnbi5zSglrz1pYvQcLwqbgVx5Acv f70eZHC/n9LCopg1QgiMaF37jkqFn44Mg8vp0ealMfAGD2Gc2kMeo+6iWpHCQJy8NgIF eVJta6LMqw7yqfysbrEi1Lgn6+wAUranxXnqz4EuYmP/8MNx0kGvc2Zy6orMeN9l9ydt ym4rHnF8nJMFTfdWSVOhRWeLypI3EMLbtOpAQie0Pd+wB2Dzqd1o6llFLrG99HzyzRox cPmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jx1MEzabu+zPiZhYQiQQNm/tbJqhJwlf4t+f7OvJdOA=; b=Gl992EEg/jSZpoagtGqe9AA/CIbggNP1Gc2SAyKVy4WEwBLFE26UoAtbDgIATNSgd8 709LA3oEG9bL/kmJeg9IAVqwOACxBUPBw0NR1jarCnlc8Q6QRcLHHxS4vG7GNSx6NWzp 1qKebiFJpXvxTEUwyWRniQr7KEJWUo4lp3LgoXbHbWynD6Lbq9LXJRR8UgbPWV1JW7Lt t2VplflS06MCRSYsxGFPhVajCOB6BcHExDln1dlvluEvsb2UlluOl8AtctXogO0vPa1x a8gNOswrwQrUMXcMn4mEag2WvRhC5yBowEMK7R0zowDmjLTmR/w+EG6+urDBtbDpt4jE OkgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DbeQ+5fg; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id d3-20020a170906c20300b006e88cd8b684si8037847ejz.727.2022.04.18.18.02.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:02:53 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DbeQ+5fg; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 <u-boot@lists.denx.de>; 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 <u-boot@lists.denx.de>; 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-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 <takahiro.akashi@linaro.org> To: trini@konsulko.com, sjg@chromium.org, xypron.glpk@gmx.de Cc: u-boot@lists.denx.de, AKASHI Takahiro <takahiro.akashi@linaro.org> 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 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean |
Series |
disk: don't compile in partition support for spl/tpl if not really necessary
|
expand
|
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 *
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 <takahiro.akashi@linaro.org> --- include/part.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)