Thread (40 messages) 40 messages, 7 authors, 2004-01-08

Re: Would setting the CONFIG_RTC option break the powerpc kernel on your machine ?

From: Sven Luther <hidden>
Date: 2004-01-07 10:54:37

On Wed, Jan 07, 2004 at 09:44:28PM +1100, Benjamin Herrenschmidt wrote:
On Wed, 2004-01-07 at 20:53, Sven Luther wrote:
quoted
On Wed, Jan 07, 2004 at 07:30:06PM +1100, Benjamin Herrenschmidt wrote:
quoted
quoted
 1) could a #ifdef __powerpc__ not be enough ?
No. _machine is only defined for the "multiarch" config (PREP/CHRP/PMAC)
Ok. I suppose it doesn't make sense also to include the #ifdef
CONFIG_ALL_PPC in a #ifdef __powerpc__ ?
Yup, useless to stack them.
quoted
quoted
quoted
 2) The other failures in rtc_init return -EIO, not -ENODEV.
Well, in this case, -ENODEV makes more sense, though nothing really
cares except the kind of error message the user will get when using
it as a module.
I think i will keep it as the others for the debian package.
Why ? The error is definitely not an IO error :) Nothing really relies
on this error code anyway...
So, would it be meaningfull to change all the others to NODEV too ?

Friendly,

Sven Luther

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help