[PATCH] [POWERPC] ucc_geth: Eliminate compile warnings
Medve Emilian-EMMEDVE1
Emilian.Medve at freescale.com
Mon Oct 22 23:47:32 EST 2007
Hello David,
> No piece of code in the kernel should live in a vacuum.
>
> In order to improve overall code quality, every piece of
> driver code should avoid assuming things about pointer
> sizes and things of this nature.
I'm afraid we might be talking about orthogonal issues here. I actively
agree that all code (not only kernel) should be written up to the
coding/quality standards you mention above, but I see a difference
between fixing a warning and making a driver portable (to 64-bit
PowerPCs, to other platforms, etc.). If there is a kernel todo list
somewhere lets add to it the task to make the ucc_geth more portable.
> Then the driver can get enabled into the build on every
> platform, and therefore nobody will break the build of
> this driver again since it will get hit by "allmodconfig"
> et al. builds even on platforms other than the one it is
> meant for.
>
> This hack fix is not acceptable, really.
Are you suggesting we leave those warnings there until somebody decides
to fix all the portability issues of this driver? My patch is a small
and insignificant improvement and not the revolution you're asking for,
but is an small improvement today (I dislike warnings) vs. an improbable
big one in the future.
Leo, as author and maintainer of this driver, what's your take on this?
Cheers,
Emil.
More information about the Linuxppc-dev
mailing list