[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.0.83.0704072338490.27057@sigma.j-a-k-j.com>
Date: Sat, 7 Apr 2007 23:39:27 -0400 (EDT)
From: "John Anthony Kazos Jr." <jakj@...-k-j.com>
To: aeb@....nl
cc: linux-kernel@...r.kernel.org
Subject: [PATCH 2/5] partitions: Add Kconfig dependency to clear benign
compiler warning
From: John Anthony Kazos Jr. <jakj@...-k-j.com>
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@...-k-j.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists