* PATCH: remove redundant offsetof() macro in HFS
@ 2003-07-12 11:56 Bernardo Innocenti
0 siblings, 0 replies; only message in thread
From: Bernardo Innocenti @ 2003-07-12 11:56 UTC (permalink / raw)
To: Oliver Neukum; +Cc: linux-kernel
Hello Oliver,
exactly the same definition of offsetof() is already present
in include/linux/stddef.h, therefore this one is redundant.
Applies to 2.5.75.
--- linux-2.5.x/include/linux/hfs_sysdep.h.orig 2003-07-12 13:52:56.000000000 +0200
+++ linux-2.5.x/include/linux/hfs_sysdep.h 2003-07-12 13:53:02.000000000 +0200
@@ -28,9 +28,6 @@
extern struct timezone sys_tz;
-#undef offsetof
-#define offsetof(TYPE, MEMB) ((size_t) &((TYPE *)0)->MEMB)
-
/* Typedefs for integer types by size and signedness */
typedef __u8 hfs_u8;
typedef __u16 hfs_u16;
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-07-12 11:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-12 11:56 PATCH: remove redundant offsetof() macro in HFS Bernardo Innocenti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).