lkml.org 
[lkml]   [2006]   [Jul]   [6]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
Patch in this message
/
DateThu, 6 Jul 2006 02:04:34 -0400 (EDT)
FromParag Warudkar <>
Subject[PATCH] intelfbhw.c: intelfbhw_get_p1p2 defined but not used
intelfbhw_get_p1p2 is used only if REGDUMP is defined - compile it in only 
if REGDUMP is defined - one less compiler warning.

Patch against 2.6.18-rc1.

Parag

--- linux-2.6.17/drivers/video/intelfb/intelfbhw.c.orig	2006-07-06 01:48:55.000000000 -0400
+++ linux-2.6.17/drivers/video/intelfb/intelfbhw.c	2006-07-06 01:49:45.000000000 -0400
@@ -614,6 +614,7 @@ static int calc_vclock(int index, int m1
 	return vco / p;
 }
 
+#if REGDUMP
 static void
 intelfbhw_get_p1p2(struct intelfb_info *dinfo, int dpll, int *o_p1, int *o_p2)
 {
@@ -639,7 +640,7 @@ intelfbhw_get_p1p2(struct intelfb_info *
 	*o_p1 = p1;
 	*o_p2 = p2;
 }
-
+#endif
 
 void
 intelfbhw_print_hw_state(struct intelfb_info *dinfo, struct intelfb_hwstate *hw)
\
 
 \ /
  Last update: 2006-07-06 06:07    [from the cache]
©2003-2008