kernel: Use our offsetof() from <sys/types.h> instead of a local one.
authorSascha Wildner <saw@online.de>
Sun, 3 Mar 2013 19:23:26 +0000 (20:23 +0100)
committerSascha Wildner <saw@online.de>
Sun, 3 Mar 2013 19:23:26 +0000 (20:23 +0100)
commit7198764d31519bcbb6ed931b4d9e7fe8e8fb0cf9
tree7e9932c7d5232aa0630c96bfea4476ac8f0e35de
parentcad75e5660065e248f015b06be05c56fc3e241bd
kernel: Use our offsetof() from <sys/types.h> instead of a local one.

On GCC 4.1 and later, our offsetof() winds up being __builtin_offsetof(),
which is constant to GCC, so as a nice benefit this commit also fixes two
GCC 4.7 warnings:

.../dirhash.h:97:95: warning: variably modified 'dh_firstfree' at file scope
.../vdevice.h:145:2: warning: variably modified '_ArrayTables' at file scope

There are more offsetof() candidates I need to get to but since those two
fix warnings, I commit them now.
sys/dev/raid/hptmv/array.h
sys/dev/raid/hptmv/vdevice.h
sys/vfs/ufs/dir.h