Thread (5 messages) flat view 5 messages, 1 author, 2021-07-31

Re: [PATCH v2 3/3] partitions/efi: Support NVIDIA Tegra devices

From: Dmitry Osipenko <digetx@gmail.com>
Date: 2021-07-31 18:46:54
Also in: linux-efi, linux-tegra

31.07.2021 21:36, Dmitry Osipenko пишет:
quoted hunk ↗ jump to hunk
diff --git a/block/partitions/efi.c b/block/partitions/efi.c
index e2716792ecc1..dced55c0d2e1 100644
--- a/block/partitions/efi.c
+++ b/block/partitions/efi.c
@@ -98,6 +98,15 @@ static int force_gpt;
 static int __init
 force_gpt_fn(char *str)
 {
+	/*
+	 * This check allows to properly parse cmdline variants like
+	 * "gpt gpt_sector=<sector>" and "gpt_sector=<sector> gpt" since
+	 * "gpt" overlaps with the "gpt_sector=", see tegra_gpt_sector_fn().
+	 * The argument is absent for a boolean cmdline option.
+	 */
+	if (strlen(str))
+		return 0;
This is not needed anymore in this patch, I noticed it only once v2 was
already sent out. Will correct it in v3.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help