mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bernardo Innocenti <bernie@develer.com>
To: Oliver Neukum <oliver@neukum.org>
Cc: linux-kernel@vger.kernel.org
Subject: PATCH: remove redundant offsetof() macro in HFS
Date: Sat, 12 Jul 2003 13:56:54 +0200	[thread overview]
Message-ID: <200307121356.54726.bernie@develer.com> (raw)

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



                 reply	other threads:[~2003-07-12 11:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200307121356.54726.bernie@develer.com \
    --to=bernie@develer.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oliver@neukum.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®