Skip to contentSkip to conversation

New: rtc won't compile because expect return from void function

Bug 589 Martin J. Bligh 1 participant 1 message Apr 15, 2003

lore
Share & tools
lore
#0 lore raw

http://bugme.osdl.org/show_bug.cgi?id=589

Summary: rtc won't compile because expect return from void
function
Kernel Version: 2.5.67
Status: NEW
Severity: normal
Owner: [email protected]
Submitter: [email protected]

Distribution:  Debian
Hardware Environment:  P4
Software Environment:  gcc 2.95.3

Problem Description:

rtc fails to compile because of this line in drivers/char/genrtc.c (in gen_rtc_proc_output, ca line 453):

flags = get_rtc_time(&tm);

get_rtc_time is a void function. Also, though it will compile, just setting flags to '0' would result in proc output not being accurate, since flags is ANDed to various items.