From patchwork Tue Apr 19 01:01:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 563286 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp2858234map; Mon, 18 Apr 2022 18:02:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9fMPmAui42jss8da7GWEaxZMysp5512Kfi7i/aPegW/NT6dGPvxNqL1XQG6HeB0ZEQlr7 X-Received: by 2002:a17:906:58c7:b0:6da:955b:d300 with SMTP id e7-20020a17090658c700b006da955bd300mr11229596ejs.481.1650330161688; Mon, 18 Apr 2022 18:02:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650330161; cv=none; d=google.com; s=arc-20160816; b=MD7RBzqHGVKLTgMXx909CmMJRARyRT1k/GdFLPibf62JbrxJwTQgMs2bqOfaMuMR1T 9pPgOC104Gu1NG4dUypXjq+e5S4g+yhx2M2spmhK4XWD+USGRDbFdBsn2TO1rVCDGxcf ZD6noET7RYSQqPFYh+wO9ZlfGOELdg1RLUNw/rrd0fFiBruHH/6k/Q3tfl5j4ea7R/oz /Jvhp5q97RzSLuTIuriAubCqlLaHisCdtlepUQfyqObaZYtNmIKzIVy0Jb8BMcIQcKWG +5i23SFiIP51xEl1sM0mfsLxo8tzD2BOhnI8fAkHweGl2XuBugEyRRwkcrJZY7LsrZAU 2/bQ== 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=APiHcvK8CGTHhk6se+729cCK2Ec01zHKqBuslCn35pQ=; b=eCuz1Eum6x8OJzTa5FQC5DIgy3M0GUYqJymy3F4HTKOumWxYwI78VLWhovsDzxjSHs TP2+DqicBGKmSWxtelubRISd6s0n9Kbc9wRFLNRRtzR2PABuOd3xlIZ5RoLg63wOJxd/ 3/5NNoTHQGM/eufrF6q9hFFu9Is1KGKANCgdz7V47qzGoVIqlrSGXj9zJLwfyQ0+iehJ Vpl2q46tT0e4DkMi8g+veLDLAc9sHrsexCZmXIAtn9oJNxkxhgmiDCcygeMZfT3Ysbpb 9AQZuEfBAiDezySS5ZDx10xHefHI4r2DSFLHHGmaI3enIzXvnTQipcOOC5ulJlhv6nH3 b1TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hd0JgWC2; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id y9-20020a056402358900b00423e4e9acefsi3833199edc.323.2022.04.18.18.02.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:02:41 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hd0JgWC2; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 132F983B20; Tue, 19 Apr 2022 03:02:40 +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="hd0JgWC2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4DA9283B19; Tue, 19 Apr 2022 03:02:32 +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-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) (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 7779283AFF for ; Tue, 19 Apr 2022 03:02:28 +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-x52b.google.com with SMTP id j71so8461252pge.11 for ; Mon, 18 Apr 2022 18:02:28 -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=APiHcvK8CGTHhk6se+729cCK2Ec01zHKqBuslCn35pQ=; b=hd0JgWC29u21ttDBSwr0+M6yme288HMNhSeazJnxf+4Ha9qmt/zeljAjP8mgdXICw0 VSnDuYVXk+DqdUtSzRErMIgpwjuGHFiWezpMRGr5vHkDJcggIEnjaaVl+cYFFAELOKi0 Ma7kGVgbARXDLv3vl9gnZ4RdlSB1/Bo2bPZcLBn/eY7Fm1qNwPbN/XLmusW70yn3D1Cc 0wah9eCNbqqyWNxqDRl3kZFNPp4UefUTM9xEfhJkgYwcRxu41xz832bYxnhZF3TNRw4h L8MIl2uxxThfcxjHutjkXfw0sb0goQTNAtrzqqdkYhr6Wfo7NnS8XSY95BYi7w8hnrw1 Dcvw== 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=APiHcvK8CGTHhk6se+729cCK2Ec01zHKqBuslCn35pQ=; b=f9fEXb+pJEelv8IcbqyqTROwCesqmkorSSpaMHnIcIfIDuEvAhIXsr/sOt+BP/PzBb dhr/MpS4WPKkitAvTQZBRAn3v9Fy75Nk23dD88oFcmHUBkF2hr7MQ0SiXXXxPefaJGQF wx+JzCQrNwglp1r0yfvQSQ07rYbXserLY1oVpvQfn/3bhS08EIWi9EeuRR90onVdPNmD xAPichREdI9jgfBfl01KuhhNxMYMECMmSvg1KvhSmvecOieAg/hVjea7HCLpgajSHGMX PCpJm38D2+vsfLw/K6vamKwAqyMlgYw4FMvLHenKKp1FDuWoCT9FeN3apXb0P8mqSrcG I6sw== X-Gm-Message-State: AOAM533TVixJWiLdcBQjohS+uDZznvd6FJi6lLdZEZZ5EfsiYfsrMxCt ilzU1Ni1h0OLFwhTrVAQ8Jb3rw== X-Received: by 2002:a65:5181:0:b0:3aa:3668:26a9 with SMTP id h1-20020a655181000000b003aa366826a9mr817847pgq.184.1650330146731; Mon, 18 Apr 2022 18:02:26 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:02:26 -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 1/7] disk: include errno.h explicitly in part.h Date: Tue, 19 Apr 2022 10:01:52 +0900 Message-Id: <20220419010158.47034-2-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 Some errno numbers are used in defining inline functions. So "errno.h" should be explicitly included to avoid possible build errors. Signed-off-by: AKASHI Takahiro --- include/part.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/part.h b/include/part.h index 53cfbdd87671..1196220817e4 100644 --- a/include/part.h +++ b/include/part.h @@ -10,6 +10,7 @@ #include #include #include +#include #include struct block_drvr { 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: 563287 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: 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 ; 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-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 * From patchwork Tue Apr 19 01:01:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 563290 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp2858719map; Mon, 18 Apr 2022 18:03:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGeg9qS0AJ0Tnz5eqWERAognHqCw874ex8Q2RtWZMscRydrkbxCBtoinjUy3lZ36O59w9e X-Received: by 2002:aa7:c054:0:b0:41d:5276:a6c4 with SMTP id k20-20020aa7c054000000b0041d5276a6c4mr15121471edo.109.1650330207344; Mon, 18 Apr 2022 18:03:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650330207; cv=none; d=google.com; s=arc-20160816; b=W9kjP1hMWgakHBBMzwMNmNvHlH36YC0TatraPb7DJIh+/y/oHyk1PbOifgHU6U0shf 1wamMrNxhhLKfZvflnz7as7b78vc9LC85rVB/BFq91iIQXUpfcvyK5FlUEWaKYVmeOfG KVmu8+rwQpaszVGmqAOHcCyRmo9RyiWoA8tZpVyWZCPsw6Pq7mChMOh342fz59tVQ+4G r/OaaIGaO4eHFaZlbXEskuKtp8DhEbY3yMMREK9arm65QPb1+78qBBYxGV+Rc3MtMTEV mOZ/bykqv4K595lFAhJbz72/hoxseqdi/zryLLv8g6M7X0ccOHb62PKwaV8eON7ajPUn ahhw== 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=06b7W299bvOTgsq2GBFHEUZTL0z7w3yyEaq7vFkTHOA=; b=NpP0ySre9Vq9eBnPWUXRurMjTna1H436wH1xmPjvpfE/+dE3dQLsfeqNbv3ZYkWuFJ P/bJbgRJezHzQtUyjdJj3aa5/LyVEuXguZ9mXBrj7JcM2jnoM5soy+qccHHiTiF1Oy9u 4KD6HPRRaI1O21U/yNRSpGsI73w5qJdNcSR9tD5MU0N8GdtpNRpXyNXPuSKnvvDdztVV 16p1urvHv9SPohdeHR8bfuQUCrb2yZEGVwoz1dvJC8b+S9uwAY7g6TdceTMYoLusbxR6 hqSWJtdIh6urC3XK6jnIqcxVVRwgR35cAqDWrWPTFyS3OFsiug4E0oLCe4JRJIBq3fVo 7hsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=deTAtYGd; 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: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id m21-20020a1709060d9500b006e8c6590d22si7372201eji.265.2022.04.18.18.03.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:03:27 -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=deTAtYGd; 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 597B083BF6; Tue, 19 Apr 2022 03:03:10 +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="deTAtYGd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B646183B19; Tue, 19 Apr 2022 03:02:39 +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-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) (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 8479A83AFF for ; Tue, 19 Apr 2022 03:02:32 +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-pl1-x636.google.com with SMTP id j8so13697919pll.11 for ; Mon, 18 Apr 2022 18:02:32 -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=06b7W299bvOTgsq2GBFHEUZTL0z7w3yyEaq7vFkTHOA=; b=deTAtYGdzdx1EzqYhQrtue5HnHCU5FDYUoPK8izZNkPR2RRWTWjoJrsbBezYA9jAuO y7mX4A3z6IpgTYuOJsb00KJgoPxW7x/a9hNQNbGbMZ/dM8D3/NVDWB6882OkdwUwTdOx u83/FCWXd8TjsY/ReWII+KUzxU2Dl7wIQV8OKeTvwdc+AEsK8kVUzMCftwnZNyDtgpI4 OkXG9IqsgWTzT/M4Zdbw7JJl+nTksYThKn8u/OqQ5U+YIYV/sikIfobxFfnf9oA4dy9x FdoIK3HHC0Oxpyx/sJX/kjW/H8XuD7r9X6anbXM/PfdojgbtVFpNxurqJeVO+4RPp2iD sOBQ== 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=06b7W299bvOTgsq2GBFHEUZTL0z7w3yyEaq7vFkTHOA=; b=eMQEApOUTOCegXVtkFY2t6QKtVvh1+PnqU/Pu7xuMFUkkdM60+hyrYgCWzBfZez1PK sZh/3qgihOd8z5el136Ko5ieP2aYx5fkfgT9Cq+nV9T1PhsqQ63Z0Gj9H5NKud++zZ+b Yjjzxt4nrNhPBrFwOyUH4HsxN7vy2JV8ipL3yYPOrIJWE3R8RPOwjb9WX50gio0PgvC4 3Z0T+ZjkeKr4eDZEg+04wTZbqXkE9RVSPfsRdpE92Q3aXIaGi959UVmMjNeRDEFt3L40 bR+x3q/aoG6en2xUGbkXzqnTLq6xbfq8c2gK47/Qv2tHmTFgZe0PmYhHCWuRHvJjtP8j zhpQ== X-Gm-Message-State: AOAM532bhg80mnYN/eDzX3xFfpprf30/BwlSefkTDtbFitdBc16uqNMJ 5W/Py87lDALJrKcfRKeOmyLdHw== X-Received: by 2002:a17:90a:3484:b0:1cb:59a0:f30b with SMTP id p4-20020a17090a348400b001cb59a0f30bmr15726849pjb.92.1650330150897; Mon, 18 Apr 2022 18:02:30 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:02:30 -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 3/7] disk: define nullified functions for !PARTITIONS Date: Tue, 19 Apr 2022 10:01:54 +0900 Message-Id: <20220419010158.47034-4-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 Some defconfig enables CMD_PART even if none of any partition table types (CONFIG_*_PARTITION) are enabled. This will lead to the size growth in SPL/TPL code since disk/part.c will be compiled in any way. We will change disk/Kconfig later so that CONFIG_PARTITIONS is only enabled when, at least, one of CONFIG_*_PARTITION is enabled. To make the build work (in particular, "part" command) correctly, a few functions should be defined as void functions in case of !CONFIG_PARTITIONS. Signed-off-by: AKASHI Takahiro --- include/part.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/part.h b/include/part.h index 9975fad97121..5f47a76bc19b 100644 --- a/include/part.h +++ b/include/part.h @@ -276,6 +276,15 @@ static inline int blk_get_device_part_str(const char *ifname, struct disk_partition *info, int allow_whole_dev) { *dev_desc = NULL; return -1; } +static inline int part_get_info_by_name_type(struct blk_desc *dev_desc, + const char *name, + struct disk_partition *info, + int part_type) +{ return -ENOENT; } +static inline int part_get_info_by_name(struct blk_desc *dev_desc, + const char *name, + struct disk_partition *info) +{ return -ENOENT; } static inline int part_get_info_by_dev_and_name_or_num(const char *dev_iface, const char *dev_part_str, From patchwork Tue Apr 19 01:01:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 563288 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp2858476map; Mon, 18 Apr 2022 18:03:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiFX5UqxOmGAx5J5bCzUxyNmyic3A0SV7LKwERj5O4byEdAu/nYKfJxhb+FuZROUbywrY/ X-Received: by 2002:a05:6402:1ac4:b0:41d:83d1:9da7 with SMTP id ba4-20020a0564021ac400b0041d83d19da7mr14769743edb.272.1650330184749; Mon, 18 Apr 2022 18:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650330184; cv=none; d=google.com; s=arc-20160816; b=MEmdx+mbwObVMHnoY2dvfruvFv9OcJcnHZGaQJg2yUx/NfL7gFK348iSiXgyR+9f/z N0SzCBwV7jM7gaHlzXVcY62tFClX9b50MhP1SZuavyp7zFa+ed/vtKOMTG7rD6Rs4sdN cdlYki0hgbb9aOyC+mjHAFU0Eb28XIkn7ICwxTEuqhVcRqfBwg/X3F+yNTW32UFy8bdj MBBzwqmDetMl+bCNZp67t5hoZxLJ4O4MFKWGu9GcBbhuX29Dfqw+Bks6iwZ+TdnacRiN Qz1rrt6wYmwbJTljsv1W5u9/r4upJJ0DdkcwQhnJW22YwT6uQdQnxNXIt5I5b0z/ytX2 bbgA== 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=pBWvN4FUNe0PYcZ0ZQLRFgzPLJclqiGVt8QZrUAG+DM=; b=idNIR3TSbVlsn24tKvHPn9N1JXg8I7rxIxkdPfwSSWRXRPJ+E8FRxnOsuIanDm+8Dl ApXsF9UbErtb2owRM+elrEAVm2uGBugjTYHkgQ8Su8vyRRtah7ig3lBxPUIVIBpwqS/+ rtHz/SsTmV+C/kVro6FuYRnCEAN5KeLSZyDimrGZpNQVNC7QOm9ZyYvF/jihQamvO1tP +QYdLl0FppHTz2mYUQE7gNiOYy1jENwqB74jkQcDspJ/f8ELSMSVafO9L+J/quOVUTbS BG+qzpIPZybxVyPy0HAfcLZGyXi8Th9yyxChYFpTMJh3KwQi9FM6zsR1lCR1zkvedsJM BB7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T6ZbV7ya; 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: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id hp1-20020a1709073e0100b006e87cef4be2si9403696ejc.87.2022.04.18.18.03.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:03:04 -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=T6ZbV7ya; 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 566CF83B25; Tue, 19 Apr 2022 03:02:56 +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="T6ZbV7ya"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DB2F383B25; Tue, 19 Apr 2022 03:02:40 +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-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) (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 C47BF83B34 for ; Tue, 19 Apr 2022 03:02:34 +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-x534.google.com with SMTP id bg9so21948138pgb.9 for ; Mon, 18 Apr 2022 18:02:34 -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=pBWvN4FUNe0PYcZ0ZQLRFgzPLJclqiGVt8QZrUAG+DM=; b=T6ZbV7yaaSMjWgT9LFIe4vc0MWvO/IQUOrbJV1CXVjYfW5TM5WHQLuF3rLtc7/SFln sbw+RznGXELg7D6qurRpXEcrL2i/n20IOcBCObiguqP9MYbgFU/n6RXMC7CYCjcFOVLW fs1WlUEkNzkFEiYn/yzbAf7w/ILJo55d8PHzXjHypqUM/ONo4+tgn4OxOZ04pVgM2t7K 05vYHVwresztXdzD0Usv7PYjk6RO6gaU//48tA2k6RE8ZDitzs26uN6t1Km8GEbh1Hp9 s5zgNa5VFqY1d4ullLADlgYGNpHyjppTxd33nsJmnRxwN8agok9dABi3JXL9AGC/6MKa S/XQ== 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=pBWvN4FUNe0PYcZ0ZQLRFgzPLJclqiGVt8QZrUAG+DM=; b=Uj9tXrr2E/BjLac7m3eqsRlJIj6pFsFI3NaS960Tjo9kB5sbOlnBL2MDwCDscbrUfU jb/6s6cpfuZKe/YlY7yIxmU6SPJSKI6VBVNZFynrqsndWyyvtPrQ8buycmYfZf3p/vFP ovXIQu6cGxWXvohuWmPuSO4ymoeCRZsud4A3p+ps8hEZGsEz9OfubIBY2k9nuqtloeyf TNHmh3WMchF7nLcFNi0ulC0QnSXPLoBRFLWdWgXyYUS8oHK96IBjFnXPqN/gE9xw5hja sIa9DrEkOXbNa9AESEFLwozEd0JsLbYEMKFiDyHlIqfE3oPaV2zf4v+f1lYoWdGmampX +7IQ== X-Gm-Message-State: AOAM532IK3ixCvFkve3Y6GED9ThEycWptTvorV4ny0cBOmkDdLcYeHsl D+V3Vue4c3e/enGmw8YiSEuyGA== X-Received: by 2002:a05:6a00:9a2:b0:505:974f:9fd6 with SMTP id u34-20020a056a0009a200b00505974f9fd6mr14947035pfg.12.1650330153036; Mon, 18 Apr 2022 18:02:33 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:02:32 -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 4/7] sandbox: move a function prototype Date: Tue, 19 Apr 2022 10:01:55 +0900 Message-Id: <20220419010158.47034-5-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 host_get_dev_errr() is defined in drivers/block/sandbox.c, the associated function prototype should be in a more appropriate header file. Fixes: commit 4101f6879256 ("dm: Drop the block_dev_desc_t typedef") Signed-off-by: AKASHI Takahiro --- include/part.h | 1 - include/sandboxblockdev.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/part.h b/include/part.h index 5f47a76bc19b..e5806edb3452 100644 --- a/include/part.h +++ b/include/part.h @@ -104,7 +104,6 @@ struct disk_part { struct blk_desc *blk_get_dev(const char *ifname, int dev); struct blk_desc *mg_disk_get_dev(int dev); -int host_get_dev_err(int dev, struct blk_desc **blk_devp); /* disk/part.c */ int part_get_info(struct blk_desc *dev_desc, int part, diff --git a/include/sandboxblockdev.h b/include/sandboxblockdev.h index 4ca9554e38a0..dc983f0417b2 100644 --- a/include/sandboxblockdev.h +++ b/include/sandboxblockdev.h @@ -26,4 +26,6 @@ struct host_block_dev { */ int host_dev_bind(int dev, char *filename, bool removable); +int host_get_dev_err(int dev, struct blk_desc **blk_devp); + #endif From patchwork Tue Apr 19 01:01:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 563289 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp2858610map; Mon, 18 Apr 2022 18:03:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEhrNo4WCJey4GDR184S4RMJECgd9udsP4xzo9DJCrM8v0IACdd82UntjX2WVxAbhVzE39 X-Received: by 2002:a17:907:9485:b0:6da:aa54:a88 with SMTP id dm5-20020a170907948500b006daaa540a88mr11513736ejc.427.1650330195954; Mon, 18 Apr 2022 18:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650330195; cv=none; d=google.com; s=arc-20160816; b=ORt13cxp/YVS8n0yDqo+I1tOYugOvlNimj96oFt6EZPiqwA8g4oVAeAa0HI6V2dUye 3nKp/EwEExNQPySO9cYIllIcKOYCSYT2OCwvBb/EcDQ1RxiIIsePwnhpyTHeVJMyJ7f/ WoxEKHFJFAJo7WByt9iZjTB7g6HOXUZK6djRRRMRg6cMUEAq64ythaj3CeGDAzm+h/Sv NmXPqGSurOJB3mp5SOzdlgTO1Pm5zXUb6QksAI6CAc9Z+aUdstixJsjV0kpvSw5zNLQB 752cmoYV/VN5FrTh3p2CNOFXjH0xyp+PGqZHZt1/EQAb30hrjArvGBJSL/95JyM6/O0s ssMw== 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=clfrkGVVViQoR+83SxwJLOzT000o3+NLo8Ph+hcdHrU=; b=Z0OGlfoRBAUoP8P/9tWluu/6k6rZ1fc4WDm+QZM2/I59PJMzXYd3r+wOx9gOS/zdul 6RuEj2jpyD37QXUoShl0nukTFIf9FOwZSPiwn/aA1KQ9XDuEfT58HAZZtJyn/8QqStvS uMHwDIDcPWHfIkOrczEpPkbAtNpx4mftnXIkQUYDkB5Ip++ACX/u1a1NdwUE/a6dKglH wWk8rBFCY/kB7XCOE7NN4n+bNjzYV2mjNioMr7GUbh1BuOw8pOpFSQXjl42+0MePR56C WieXARAXacihkeBiT1I5RoqzgHn9Nn+54NKNtRfL/G50N5XLltZgD36XKdd6pBUeqZGl RPSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EmO+UdST; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id m11-20020a056402510b00b0041d9c8d2547si7538729edd.331.2022.04.18.18.03.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:03:15 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EmO+UdST; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 00C7683B4D; Tue, 19 Apr 2022 03:03:01 +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="EmO+UdST"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F210D83B2F; Tue, 19 Apr 2022 03:02:41 +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-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (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 8828A83B0E for ; Tue, 19 Apr 2022 03:02:36 +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-pl1-x629.google.com with SMTP id c12so13727076plr.6 for ; Mon, 18 Apr 2022 18:02:36 -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=clfrkGVVViQoR+83SxwJLOzT000o3+NLo8Ph+hcdHrU=; b=EmO+UdSTDSkCNGCYplKCAHe+itw968BmzpbzyelvQZa2vYK8MWhbZe04v07cdCsXYu UiJoMonjcQyao764ADVxdb3BXTAI9xzSywj1f4SkF9jofTX2QRzlQZPgO8lf7eypDo+6 lJfIY352SM53ERlVe7rPC+N4wRHczWUcttp+Axbt4s5fXmkASnhYkHfmLRq2npwhRtm/ i9aGoZ8BNuq5SygrBHA676U6vtWf3XsZJh5dZGq27LspspGQgJEwaEip9qsoOuSZWX0J VdcCCnAYUHfzJ1clIFFEYwrZOm0xwY+uZOM63wtC0h8zXMEvsuioD8DFp6HdquJWhTkB KdHA== 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=clfrkGVVViQoR+83SxwJLOzT000o3+NLo8Ph+hcdHrU=; b=j1cgmkqsjOuBJmdi6LzwykhLwkH8mseqbYsk9KtvuNTXC4nqwXJp+fzc5DfbQmz3/0 MSXbx5S9NECk/vzosiPkH4aMkiWurYm8E93wKeXHCBHO+LH1CqiJrmDuYiDVD0wh8zar XkEeAbpP/AozevqFyi9S/s+7wPye2DyVezS09xovR34BVCbJ0iIcA4aKPo5o1pBvBcx1 CmyDgr7CeSYguhpSjvI6Cxk9ymTQ/rx2gIOTHHGz8fCjmmy8Lfpx7KpZKmcBsYKDZe56 S4ncQbtRTsQM/g54jJCKww9BITO8GaWdkTMvcwnfz05nmi/AHyg16XZKFkBOIX780c+c DUrg== X-Gm-Message-State: AOAM533WmyRL8rSZgC6gkzPTYEQsKqE4F1ljgtD9PqTxQp2oE/UECDOR C/utLq5uNNKYEGq1/RHn/AzJbw== X-Received: by 2002:a17:90b:100d:b0:1d2:d49a:c341 with SMTP id gm13-20020a17090b100d00b001d2d49ac341mr629533pjb.130.1650330155005; Mon, 18 Apr 2022 18:02:35 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:02:34 -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 5/7] efi_loader: PARTITION_UUIDS should be optional Date: Tue, 19 Apr 2022 10:01:56 +0900 Message-Id: <20220419010158.47034-6-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 In the current implementation, partition table support (either GPT or DOS) is not mandatory. So CONFIG_PARTITION_UUIDS should not be enabled (selected) unconditionally. Fixes: commit 17f8cda505e3 ("efi_loader: set partition GUID in device path for SIG_TYPE_GUID") Signed-off-by: AKASHI Takahiro --- lib/efi_loader/Kconfig | 2 +- lib/efi_loader/efi_device_path.c | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index d50cd2563d3d..bc518d7a413b 100644 --- a/lib/efi_loader/Kconfig +++ b/lib/efi_loader/Kconfig @@ -15,7 +15,7 @@ config EFI_LOADER depends on !EFI_APP default y if !ARM || SYS_CPU = armv7 || SYS_CPU = armv8 select LIB_UUID - select PARTITION_UUIDS + imply PARTITION_UUIDS select HAVE_BLOCK_DEVICE select REGEX imply FAT diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c index 0542aaae16c7..01fb53ae8c40 100644 --- a/lib/efi_loader/efi_device_path.c +++ b/lib/efi_loader/efi_device_path.c @@ -864,11 +864,20 @@ static void *dp_part_node(void *buf, struct blk_desc *desc, int part) break; case SIG_TYPE_GUID: hddp->signature_type = 2; +#if CONFIG_IS_ENABLED(PARTITION_UUIDS) + /* info.uuid exists only with PARTITION_UUIDS */ if (uuid_str_to_bin(info.uuid, - hddp->partition_signature, 1)) + hddp->partition_signature, 1)) { log_warning( "Partition no. %d: invalid guid: %s\n", part, info.uuid); + memset(hddp->partition_signature, 0, + sizeof(hddp->partition_signature)); + } +#else + memset(hddp->partition_signature, 0, + sizeof(hddp->partition_signature)); +#endif break; } From patchwork Tue Apr 19 01:01:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 563291 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp2858834map; Mon, 18 Apr 2022 18:03:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+rUptoMTlNqbIwxPuRqvqPm/H1sFB7uXszh5B9n2QH+nEtPVEQXujY+wMZQD+tU2o/bVw X-Received: by 2002:a05:6402:d62:b0:41d:79e6:1617 with SMTP id ec34-20020a0564020d6200b0041d79e61617mr14933872edb.378.1650330217987; Mon, 18 Apr 2022 18:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650330217; cv=none; d=google.com; s=arc-20160816; b=G/GlPdToFI3nrTBAyqDU7MP5fve6TAVx4WhkvsrJFgn84cN/cqrfSOQwPGxPrVdaYb d1IS30uDynK6/fWnzu8yWSos3ClfiedwbCa51yxP+2b/1d+YyLbJgjDEzJPKtIDKkr13 NzexzxkLzyFzKr2iWTxhvkXr5M4WNMOjZWCRGrM1kNkAAlkdszwwC9Kl3QV+2MSLOrse 83f4dgx5fPnEfrgQIScPh23cY8FkdtL1w4rSIv5bV5TnU7iG0CZMqSCk8IpqT2oBJGtS ZvGyEmimIniQu/fDb6cNRQ5YOnS3Q2trfwvWyZKrQFAQptxZKvwxVvZu24Hd8dIv6ZqB gkjg== 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=RcGKvvE8D7t7w/XKJCF/3BX+XrlXFhRlr+zPixNIJs8=; b=ScgkXg+5WmsC057qsvjXpN3oCo0jXM/Py6h6jg0/57AnOJps0HIx3TqYcUeVXeXL3a qbO0cS/lz4e7Kw6BfowLPtol1t6X/XCE/iqK5bJqHpCPqcLIQHCIXYV28EgDW2vs4qdd nJEkhyYzPu53RXGGBkmcmWHMyVMSa7noG6p/tRaCqaAw7DxA55C7yxFsgnFyYH5pSuuU WzZuJURquv12J4cTpg9rZ0WFofqfYwp3TKu5OnNB7VernhnOy0YbmURHCzi3/BulkbR3 ih0TsMQpV3LWNhD1orJQNR5+ivYFTiuS9xhahWt4AJwHNyna4ksUAe2ok9CfxXZCgZSz TSdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=joggrveO; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id f5-20020a056402328500b00418f91de35csi7420583eda.5.2022.04.18.18.03.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:03:37 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=joggrveO; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 A621883B34; Tue, 19 Apr 2022 03:03:15 +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="joggrveO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3C6DF83B19; Tue, 19 Apr 2022 03:02:45 +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-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) (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 BB29883B11 for ; Tue, 19 Apr 2022 03:02:38 +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-pl1-x62b.google.com with SMTP id b7so4074531plh.2 for ; Mon, 18 Apr 2022 18:02:38 -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=RcGKvvE8D7t7w/XKJCF/3BX+XrlXFhRlr+zPixNIJs8=; b=joggrveO2AMI31fhMkhHl3O4AREd6sSAM3orB9N00J0dFPasSHZh0sN36BWZPzQKmt EHz+uNbobknN5viy5KVOfuf/7JxARz1KbzpXJT/89b5KSV0dvgRPto95P+odO/z4YkfR zHBwgmVr6K9FxA0FJrwUe/SxNm1fw/E4rW/WWv8O+PR4MI5oENThRxPw+JJicQHg3mNr hVpxI/NQyn7w7+gutDcoDx/ZjGekoIbACmVs0ZLuEmNtl6Vv+HlUgdGJEtzv82GQo360 GiIYVYWxzLNs1FO7gEpn3mYh50YdgusVMM9PqoAqRpVO+Gt67HVJNs44eiu2VSChH/Rb ORJg== 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=RcGKvvE8D7t7w/XKJCF/3BX+XrlXFhRlr+zPixNIJs8=; b=cTkEB+j2U+q8abX5A7souPbu5Pcnml+UC8MDY+qiY+Q7V/MtZe2TlxO86zwonlHLPb ORqNWbTl0J1BvrK1NNQHGiRt4x0KVYuahOHx9J7Wjq0eg3ONmcOuFATcimNoWR/pKW4X 18/x0R2VTXY+STwtsuiuv+pjxn//r6BckmtTB6Qt/tlNECwM98Nbm3yLgkpoe9fHRKCl Qv0oTFngTEjo0NKQVsUJaq+P6uXUOoaf7G4KtYN/ZCW6vK3w6Vp1KNV2qER4+owyC0kg MJXMBYQd+6nwrBaZCuZbf+HtV3ippLFqZd+HE1yVw51fYG8J46YbmfzKGm07iJ0VzxRB u6WQ== X-Gm-Message-State: AOAM53031vOIWZd/Jz2dFphPvDNDh21++LzjCui/QOU+uAw/7sq6u1l3 hb9bYAYdAvmuZ6OXl3gFLHnijg== X-Received: by 2002:a17:90b:1bd2:b0:1d2:9340:d02b with SMTP id oa18-20020a17090b1bd200b001d29340d02bmr8756181pjb.1.1650330157164; Mon, 18 Apr 2022 18:02:37 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:02:36 -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 6/7] efi_loader: disk: compile efi_disk when CONFIG_BLK Date: Tue, 19 Apr 2022 10:01:57 +0900 Message-Id: <20220419010158.47034-7-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 Now we can build efi_loader with block device support (CONFIG_BLK) and without CONFIG_PARTITIONS. So change Makefile. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/Makefile b/lib/efi_loader/Makefile index 034d26cf0109..aaaa25cefe01 100644 --- a/lib/efi_loader/Makefile +++ b/lib/efi_loader/Makefile @@ -68,7 +68,7 @@ obj-y += efi_watchdog.o obj-$(CONFIG_EFI_ESRT) += efi_esrt.o obj-$(CONFIG_LCD) += efi_gop.o obj-$(CONFIG_DM_VIDEO) += efi_gop.o -obj-$(CONFIG_PARTITIONS) += efi_disk.o +obj-$(CONFIG_BLK) += efi_disk.o obj-$(CONFIG_NET) += efi_net.o obj-$(CONFIG_GENERATE_ACPI_TABLE) += efi_acpi.o obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += efi_smbios.o From patchwork Tue Apr 19 01:01:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 563292 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp2858935map; Mon, 18 Apr 2022 18:03:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmfyE/flDB3zoBUDtu3Xmmi4JGGknb1CRtfacPGp3jA3+Y12wGFecM5SEX70NECJlKEfql X-Received: by 2002:a17:907:3e16:b0:6df:b4f0:5cc2 with SMTP id hp22-20020a1709073e1600b006dfb4f05cc2mr11457664ejc.285.1650330228484; Mon, 18 Apr 2022 18:03:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650330228; cv=none; d=google.com; s=arc-20160816; b=WJxljFb1Ob49RK7JGbu1nIv10M4G6TwNl6+7zaIGLXPdrK9tLSAU4PuW/oOjzNlQhq bF8Ffy+ff3Segsr5qlzyOduWi02U+0QTIxS4fOxEbJ55EnGdV/0qMrkULc4JuM8UJSOO F9Ab1O56EmoD08lOng7bQdAL0yocNIEBXx/a43YXMkrRsbme2omOvCIZwrXvLURKVmNt o3BeVYQatgsKgQl8K7/Svcx8N7OwxHqbk0mft/Fc4GUQa1zuqyDQY1koTSQO5lAsVCrs tXCy+7WVgahQ34aFSyhtWrbdQNDtZoqA8d6oF7fJUDOHE/Rjg4t2qssMuMVhr8L/jd2N tGnQ== 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=w/SS4LUeKAts98v3pUuAg8qeDuBCnChMho5nbrHQ9Qg=; b=deq9XwIDbAxQGAFLxdDz2T+hytde6Fr2DHxbZX4zW9Tcojd4fdjXxUQtHflL+hCAhm SnsO7FaL5X0CqZGxWMfvzADsIZEUZpJuuY0WmDlYFqjONgbGHsJEQFX9utzfNbefZN/c e8nnKLIipMRxIhiVHuGGFysdkvUiFliWVpwKyDnahI7nhCVzMyvFtWG5HExiVzC9Sbda TBwjUNWKzx8eVNu5xrVtc+bz2553BiqWhGaBeXTo3zc7Bm5wOZCNGonTYuvYUDxhk4h3 6USMW9HqYP6qvo+PO0xR1uK0PHSz6jSKxIONSU/iujDLwGnX94TOv5HP363Pad0j8g7z x2UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ecsQYCOb; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id si11-20020a170906cecb00b006df76385d30si7100246ejb.464.2022.04.18.18.03.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:03:48 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ecsQYCOb; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 7AAF283C11; Tue, 19 Apr 2022 03:03:19 +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="ecsQYCOb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AC2CE83B19; Tue, 19 Apr 2022 03:02:47 +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-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (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 E142683B08 for ; Tue, 19 Apr 2022 03:02:40 +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-pj1-x1030.google.com with SMTP id s14-20020a17090a880e00b001caaf6d3dd1so796968pjn.3 for ; Mon, 18 Apr 2022 18:02:40 -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=w/SS4LUeKAts98v3pUuAg8qeDuBCnChMho5nbrHQ9Qg=; b=ecsQYCObCeTPGewSwVDMURJYGqeTol5IiuOUI/8y+vaKZDN1KkUHERBqh6PYHrgtUi 1uOlYZCMGgEZiwa6Ltlno1P7QAfgGMLzUa3AlOXGlkuD3VxdezZPrnFiGIEjd9sMjfIC dvBUabmwMyjFYniPVKrZHpnC9ahvtfZrlUXz5O5iK7x4s+0GrWYq64Y4aMaqc9clvff1 4g3KF53wDelm6tCwH0h4dSTDoejS2wcL7JjQAekx7onnPiakvu/ggGzQUrUx+a/GsWf5 2kBhddAhjn41j/B0Cx4EzaOJN3OJd/J0Y+95o/nTTgf2+aaVzDF/ikh7p2k/5JZyLJ7m W6rw== 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=w/SS4LUeKAts98v3pUuAg8qeDuBCnChMho5nbrHQ9Qg=; b=Dz1xDJFKA8l8f+QvatRuuQs+M5fvy34s5IHTJZ0vJG15aJgdfZXshd6vwg1EKc8tnr w3c1qChRbSlUqgWY9HiFgeM/sOeUNjZN4BYYGwfK2KkY28i1fezwDdgq8Pf5bUgcOcHn XWXh6qr34xk8o16BxRtkfq6Gn0RSJtQQXPC0rIVAbTfMYGrFs4rmj4k4TjiKQLUdIkIt CeVH2KMOtzD0EiC1vA/kHZbzla5HCyQtBvoXtl8x3mHIOMPQ/vpomyvOYazW4hzixS3I RfnAeHfR8PYXa6W+2spDkBjddlHLdhSceXVDGi1MIRyRHa9oO+w4/loEOeMdWNjpz186 IZ/A== X-Gm-Message-State: AOAM531jTaDM8RpqZ/1miUxbIvBkVm5SsENvtU6YfZJ62/VcxoHr9ZJD yOq73DyqhrvPuwDPqkoS+zfT3g== X-Received: by 2002:a17:90b:4d0d:b0:1ce:ef5d:f1ef with SMTP id mw13-20020a17090b4d0d00b001ceef5df1efmr20869205pjb.91.1650330159302; Mon, 18 Apr 2022 18:02:39 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:02:39 -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 7/7] disk: don't compile in partition support for spl/tpl if not really necessary Date: Tue, 19 Apr 2022 10:01:58 +0900 Message-Id: <20220419010158.47034-8-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 Under the current Kconfigs, disk/part.c will be compiled in even if none of partition table types are enabled. This will lead to the size growth of SPL /TPL code. With this patch, CONFIG_PARTITIONS is selected only if, at least, one of CONFIG_*_PARTITION is enabled. Signed-off-by: AKASHI Takahiro --- disk/Kconfig | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/disk/Kconfig b/disk/Kconfig index 13700322e976..359af3b27e6d 100644 --- a/disk/Kconfig +++ b/disk/Kconfig @@ -2,8 +2,7 @@ menu "Partition Types" config PARTITIONS - bool "Enable Partition Labels (disklabels) support" - default y + bool help Partition Labels (disklabels) Supported: Zero or more of the following: @@ -20,8 +19,7 @@ config PARTITIONS as well. config SPL_PARTITIONS - bool "Enable Partition Labels (disklabels) support in SPL" - default y if PARTITIONS + bool select SPL_SPRINTF select SPL_STRTO help @@ -30,8 +28,7 @@ config SPL_PARTITIONS small amount of size to SPL, typically 500 bytes. config TPL_PARTITIONS - bool "Enable Partition Labels (disklabels) support in TPL" - default y if PARTITIONS + bool select TPL_SPRINTF select TPL_STRTO help @@ -41,57 +38,61 @@ config TPL_PARTITIONS config MAC_PARTITION bool "Enable Apple's MacOS partition table" - depends on PARTITIONS + select PARTITIONS help Say Y here if you would like to use device under U-Boot which were partitioned on a Macintosh. config SPL_MAC_PARTITION bool "Enable Apple's MacOS partition table for SPL" - depends on SPL && PARTITIONS + depends on SPL default y if MAC_PARTITION + select SPL_PARTITIONS config DOS_PARTITION bool "Enable MS Dos partition table" - depends on PARTITIONS default y if DISTRO_DEFAULTS default y if x86 || CMD_FAT || USB_STORAGE + select PARTITIONS help traditional on the Intel architecture, USB sticks, etc. config SPL_DOS_PARTITION bool "Enable MS Dos partition table for SPL" - depends on SPL && PARTITIONS + depends on SPL default n if ARCH_SUNXI default y if DOS_PARTITION + select SPL_PARTITIONS config ISO_PARTITION bool "Enable ISO partition table" - depends on PARTITIONS default y if DISTRO_DEFAULTS default y if MIPS || ARCH_TEGRA + select PARTITIONS config SPL_ISO_PARTITION bool "Enable ISO partition table for SPL" - depends on SPL && PARTITIONS + depends on SPL + select SPL_PARTITIONS config AMIGA_PARTITION bool "Enable AMIGA partition table" - depends on PARTITIONS + select PARTITIONS help Say Y here if you would like to use device under U-Boot which were partitioned under AmigaOS. config SPL_AMIGA_PARTITION bool "Enable AMIGA partition table for SPL" - depends on SPL && PARTITIONS + depends on SPL default y if AMIGA_PARTITION + select SPL_PARTITIONS config EFI_PARTITION bool "Enable EFI GPT partition table" - depends on PARTITIONS default y if DISTRO_DEFAULTS default y if ARCH_TEGRA + select PARTITIONS select LIB_UUID help Say Y here if you would like to use device under U-Boot which @@ -128,9 +129,10 @@ config EFI_PARTITION_ENTRIES_OFF config SPL_EFI_PARTITION bool "Enable EFI GPT partition table for SPL" - depends on SPL && PARTITIONS + depends on SPL default n if ARCH_SUNXI default y if EFI_PARTITION + select SPL_PARTITIONS config PARTITION_UUIDS bool "Enable support of UUID for partition" @@ -143,12 +145,11 @@ config PARTITION_UUIDS config SPL_PARTITION_UUIDS bool "Enable support of UUID for partition in SPL" - depends on SPL && PARTITIONS + depends on SPL_PARTITIONS default y if SPL_EFI_PARTITION config PARTITION_TYPE_GUID bool "Enable support of GUID for partition type" - depends on PARTITIONS depends on EFI_PARTITION help Activate the configuration of GUID type