Re: Further madness in fs/partitions/check.c?

From: Thunder from the hill (thunder@ngforever.de)
Date: Sat Jul 13 2002 - 10:19:20 EST


Hi,

On Sat, 13 Jul 2002, James Bottomley wrote:
> This is transient code to save the device in the driver_data. It is
> later picked back out at line 229. It conforms to the old programmer
> principle that if you can always guarantee your data takes up less space
> than a pointer (on all archs), then you might as well just cast the data
> into the pointer instead of wasting a malloc for it.

However, it issues a warning.

                                                        Regards,
                                                        Thunder

-- 
(Use http://www.ebb.org/ungeek if you can't decode)
------BEGIN GEEK CODE BLOCK------
Version: 3.12
GCS/E/G/S/AT d- s++:-- a? C++$ ULAVHI++++$ P++$ L++++(+++++)$ E W-$
N--- o?  K? w-- O- M V$ PS+ PE- Y- PGP+ t+ 5+ X+ R- !tv b++ DI? !D G
e++++ h* r--- y- 
------END GEEK CODE BLOCK------

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 15 2002 - 22:00:26 EST