linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/8] Guard linkstation_physmap_partitions.
@ 2008-07-31  3:51 Tony Breeds
  2008-07-31  3:51 ` [PATCH 3/8] Silennce warning in arch/powerpc/mm/mem.c Tony Breeds
                   ` (6 more replies)
  0 siblings, 7 replies; 19+ messages in thread
From: Tony Breeds @ 2008-07-31  3:51 UTC (permalink / raw)
  To: Paul Mackerras, Benjamin Herrenschmidt; +Cc: linuxppc-dev

linkstation_physmap_partitions is only used when CONFIG_MTD_PHYSMAP is
defined, so likewise guard the declaration.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
---
 arch/powerpc/platforms/embedded6xx/linkstation.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/platforms/embedded6xx/linkstation.c b/arch/powerpc/platforms/embedded6xx/linkstation.c
index eb5d74e..bec68af 100644
--- a/arch/powerpc/platforms/embedded6xx/linkstation.c
+++ b/arch/powerpc/platforms/embedded6xx/linkstation.c
@@ -21,6 +21,7 @@
 
 #include "mpc10x.h"
 
+#ifdef CONFIG_MTD_PHYSMAP
 static struct mtd_partition linkstation_physmap_partitions[] = {
 	{
 		.name   = "mtd_firmimg",
@@ -53,6 +54,7 @@ static struct mtd_partition linkstation_physmap_partitions[] = {
 		.size   = 0x0f0000,
 	},
 };
+#endif /* CONFIG_MTD_PHYSMAP */
 
 static int __init linkstation_add_bridge(struct device_node *dev)
 {
-- 
1.5.6.3

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2008-08-01  1:40 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-31  3:51 [PATCH 1/8] Guard linkstation_physmap_partitions Tony Breeds
2008-07-31  3:51 ` [PATCH 3/8] Silennce warning in arch/powerpc/mm/mem.c Tony Breeds
2008-07-31  3:51 ` [PATCH 2/8] Guard htab_dt_scan_hugepage_blocks appropriately Tony Breeds
2008-07-31  3:51 ` [PATCH 7/8] Guard from_rtc_time() in arch/powerpc/platforms/powermac/time.c Tony Breeds
2008-07-31  3:51 ` [PATCH 4/8] Silence warnings in arch/powerpc/platforms/52xx/mpc52xx_pci.c Tony Breeds
2008-07-31  4:08   ` Jon Smirl
2008-07-31  4:21     ` Tony Breeds
2008-07-31  5:27     ` Grant Likely
2008-07-31  3:51 ` [PATCH 8/8] Enable -Werror in arch/powerpc/{kernel,lib,mm,platforms} Tony Breeds
2008-07-31  3:51 ` [PATCH 6/8] Explictly undefine DEBUG in arch/powerpc/platforms/pseries/eeh_driver.c Tony Breeds
2008-07-31  4:53   ` Michael Ellerman
2008-07-31  6:54   ` [PATCH v2] Guard print_device_node_tree() if #if 0 Tony Breeds
2008-07-31  3:51 ` [PATCH 5/8] Silence warning in arch/powerpc/mm/ppc_mmu_32.c Tony Breeds
2008-07-31  5:21   ` Stephen Rothwell
2008-07-31  6:54     ` Milton Miller
2008-08-01  1:40       ` Tony Breeds
2008-07-31  6:58     ` Tony Breeds
2008-07-31  6:57   ` [PATCH v2] Force printing of 'total_memory' to unsigned long long in ppc_mmu_32.c Tony Breeds
2008-08-01  1:38     ` [PATCH v3] " Tony Breeds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).