Patchwork [2/4] powerpc/ps3: Fix no flash build warning

login
register
mail settings
Submitter Geoff Levand
Date April 16, 2009, 7:05 p.m.
Message ID <20090416190536.684970903@am.sony.com>>
Download mbox | patch
Permalink /patch/26083/
State Accepted
Commit 0d3b2ab6be1500041e11059bee97e83da9da28cc
Delegated to: Paul Mackerras
Headers show

Comments

Geoff Levand - April 16, 2009, 7:05 p.m.
Fix build warnings like these when CONFIG_PS3_FLASH=n:

  arch/powerpc/platforms/ps3/os-area.c: warning: 'update_flash_db' defined but not used

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
 arch/powerpc/platforms/ps3/os-area.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

--- a/arch/powerpc/platforms/ps3/os-area.c
+++ b/arch/powerpc/platforms/ps3/os-area.c
@@ -578,7 +578,7 @@  static void os_area_db_init(struct os_ar
  *
  */
 
-static void update_flash_db(void)
+static void __maybe_unused update_flash_db(void)
 {
 	int result;
 	int file;