From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SkCHK-0001Jm-8L for barebox@lists.infradead.org; Thu, 28 Jun 2012 10:48:52 +0000 From: Sascha Hauer Date: Thu, 28 Jun 2012 12:48:47 +0200 Message-Id: <1340880527-6895-4-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1340880527-6895-1-git-send-email-s.hauer@pengutronix.de> References: <1340880527-6895-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 3/3] dos partitions: enable disk size guessing only for bios disks To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- common/partitions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/partitions.c b/common/partitions.c index 74b4f12..c5bce6e 100644 --- a/common/partitions.c +++ b/common/partitions.c @@ -119,7 +119,7 @@ static void __maybe_unused try_dos_partition(struct block_device *blk, table = (struct partition_entry *)&buffer[446]; /* valid for x86 BIOS based disks only */ - if (blk->num_blocks == 0) + if (IS_ENABLED(CONFIG_DISK_BIOS) && blk->num_blocks == 0) blk->num_blocks = disk_guess_size(blk->dev, table); for (i = 0; i < 4; i++) { -- 1.7.10 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox