linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christopher Li <sparse@chrisli.org>
To: "Jan Pokorný" <pokorny_jan@seznam.cz>
Cc: linux-sparse@vger.kernel.org
Subject: Re: [PATCH] remove unused "container" macro
Date: Wed, 13 Apr 2011 02:05:03 -0700	[thread overview]
Message-ID: <BANLkTiktRmUDCjysa7qx3WYBzy5dKDVK9Q@mail.gmail.com> (raw)
In-Reply-To: <4D9E3D29.2000402@seznam.cz>

Applied.

Chris

On Thu, Apr 7, 2011 at 3:39 PM, Jan Pokorný <pokorny_jan@seznam.cz> wrote:
> This macro seems to be unused since commit e7fb6e0 (4 years ago).
> But my estimation that it does not currently have any practical usage for
> navigating through the sparse structures may be wrong.
>
> Signed-off-by: Jan Pokorny <pokorny_jan@seznam.cz>
> ---
>  ptrlist.h |    3 ---
>  1 files changed, 0 insertions(+), 3 deletions(-)
>
> diff --git a/ptrlist.h b/ptrlist.h
> index fbfc080..58d3bda 100644
> --- a/ptrlist.h
> +++ b/ptrlist.h
> @@ -9,9 +9,6 @@
>  * (C) Copyright Linus Torvalds 2003-2005
>  */
>
> -#define container(ptr, type, member) \
> -       (type *)((void *)(ptr) - offsetof(type, member))
> -
>  /* Silly type-safety check ;) */
>  #define DECLARE_PTR_LIST(listname,type)        struct listname { type *list[1]; }
>  #define CHECK_TYPE(head,ptr)           (void)(&(ptr) == &(head)->list[0])
> --
> 1.7.1
>
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2011-04-13  9:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-07 22:39 [PATCH] remove unused "container" macro Jan Pokorný
2011-04-13  9:05 ` Christopher Li [this message]

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=BANLkTiktRmUDCjysa7qx3WYBzy5dKDVK9Q@mail.gmail.com \
    --to=sparse@chrisli.org \
    --cc=linux-sparse@vger.kernel.org \
    --cc=pokorny_jan@seznam.cz \
    /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;
as well as URLs for NNTP newsgroup(s).