public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.6.9-rc1 Ia64 build broken due to HPET
@ 2004-09-10  4:12 Darren Williams
  2004-09-10  4:22 ` Darren Williams
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: Darren Williams @ 2004-09-10  4:12 UTC (permalink / raw)
  To: linux-ia64

The ia64 build broke overnight due to this patch
http://marc.theaimsgroup.com/?l=linux-ia64&m\x109211170801213&w=2
any ia64 arch that includes CONFIG_HPET will fail
on the build, this effect generic_defconfig also.


  CC      drivers/char/hpet.o
drivers/char/hpet.c:669: error: `MC' undeclared here (not in a function)
drivers/char/hpet.c:669: error: initializer element is not constant
drivers/char/hpet.c:669: error: (near initialization for `hpet_interpolator.addr')
drivers/char/hpet.c: In function `hpet_init':
drivers/char/hpet.c:956: error: `hpet_cycles_per_sec' undeclared (first use in this function)
drivers/char/hpet.c:956: error: (Each undeclared identifier is reported only once
drivers/char/hpet.c:956: error: for each function it appears in.)
drivers/char/hpet.c:960: error: `hpet_nsecs_per_cycle' undeclared (first use in this function)
make[2]: *** [drivers/char/hpet.o] Error 1

The included patch will need to be scrutinised due
to the fact I had no idea what to assign to:
hpet_interpolator.addr
signed-off-by Darren Williams <dswATgelato.unsw.edu.au>

# ChangeSet
#   2004/09/10 13:11:25+10:00 dsw@vanilla.gelato 
#   Define hpet_cycles_per_sec for hpet clock calculation and assign
#   nsec_per_cyc directly to hpet_interpolator.nsec_per_cyc
#   
#   The assignment of .addr = hpet_control is more than likely bogus
#   time_interpolator.addr requires an address of a counter or function
# 
# drivers/char/hpet.c
#   2004/09/10 13:11:18+10:00 dsw@vanilla.gelato +4 -3
#   Define hpet_cycles_per_sec for hpet clock calculation and assign
#   nsec_per_cyc directly to hpet_interpolator.nsec_per_cyc
#   
#   The assignment of .addr = hpet_control is more than likely bogus
#   time_interpolator.addr requires an address of a counter or function
#   
diff -Nru a/drivers/char/hpet.c b/drivers/char/hpet.c
--- a/drivers/char/hpet.c	2004-09-10 13:36:48 +10:00
+++ b/drivers/char/hpet.c	2004-09-10 13:36:48 +10:00
@@ -665,7 +665,7 @@
 static struct time_interpolator hpet_interpolator = {
 	.source = TIME_SOURCE_MMIO64,
 	.shift = 10,
-	.addr = MC
+	.addr = hpet_control
 };
 
 #endif
@@ -951,13 +951,14 @@
 #ifdef	CONFIG_TIME_INTERPOLATION
 		{
 			struct hpet *hpet;
-
+			long hpet_cycles_per_sec;
+
 			hpet = hpets->hp_hpet;
 			hpet_cycles_per_sec = hpet_time_div(hpets->hp_period);
 			hpet_interpolator.frequency = hpet_cycles_per_sec;
 			hpet_interpolator.drift = hpet_cycles_per_sec *
 			    HPET_DRIFT / 1000000;
-			hpet_nsecs_per_cycle = 1000000000 / hpet_cycles_per_sec;
+			hpet_interpolator.nsec_per_cyc = 1000000000 / hpet_cycles_per_sec;
 			register_time_interpolator(&hpet_interpolator);
 		}
 #endif


--------------------------------------------------
Darren Williams <dsw AT gelato.unsw.edu.au>
Gelato@UNSW <www.gelato.unsw.edu.au>
--------------------------------------------------

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

end of thread, other threads:[~2004-09-13 22:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-10  4:12 [PATCH] 2.6.9-rc1 Ia64 build broken due to HPET Darren Williams
2004-09-10  4:22 ` Darren Williams
2004-09-10 15:05 ` Christoph Lameter
2004-09-11 14:58 ` Darren Williams
2004-09-11 15:35 ` Christoph Lameter
2004-09-11 15:43 ` Christoph Lameter
2004-09-11 16:38 ` Matthew Wilcox
2004-09-11 19:28 ` Gerald Pfeifer
2004-09-11 21:26 ` Alex Williamson
2004-09-13 20:02 ` Alex Williamson
2004-09-13 20:28 ` Christoph Lameter
2004-09-13 22:11 ` Alex Williamson
2004-09-13 22:22 ` Christoph Lameter
2004-09-13 22:44 ` Alex Williamson
2004-09-13 22:50 ` Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox