[PATCH 2/5] partitions: Add Kconfig dependency to clear benigncompiler warning

From: John Anthony Kazos Jr.
Date: Sat Apr 07 2007 - 23:39:50 EST


From: John Anthony Kazos Jr. <jakj@xxxxxxxxxxx>

Adds a dependency to ACORN_PARTITION_RISCIX in fs/partitions/Kconfig to
prevent compilation of the function riscix_partition which is used only
within ACORN_PARTITION_CUMANA and ACORN_PARTITION_ADFS sections, thereby
preventing an unused-function compiler warning if ACORN_PARTITION_RISCIX
is defined and neither of the other two are.

Signed-off-by: John Anthony Kazos Jr. <jakj@xxxxxxxxxxx>

---

Nothing depending on RISCIX is defined except inside CUMANA and ADFS, so
without either of those, nothing using the RISCIX stuff is compiled, hance
the unused-function warning.

--- linux-2.6.20.6-orig/fs/partitions/Kconfig 2007-04-06 16:02:48.000000000 -0400
+++ linux-2.6.20.6-mod/fs/partitions/Kconfig 2007-04-07 22:10:15.000000000 -0400
@@ -62,7 +62,7 @@ config ACORN_PARTITION_POWERTEC
config ACORN_PARTITION_RISCIX
bool "RISCiX partition support" if PARTITION_ADVANCED
default y if ARCH_ACORN
- depends on ACORN_PARTITION
+ depends on ACORN_PARTITION && (ACORN_PARTITION_CUMANA || ACORN_PARTITION_ADFS)
help
Once upon a time, there was a native Unix port for the Acorn series
of machines called RISCiX. If you say 'Y' here, Linux will be able
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/