All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Marek <mmarek@suse.cz>
To: Daniel Tang <dt.tangr@gmail.com>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
	trivial@kernel.org
Subject: Re: [PATCH 2/2] Fix a build warning in scripts/mod/file2alias.c
Date: Wed, 03 Jul 2013 14:31:46 +0200	[thread overview]
Message-ID: <51D419B2.7000502@suse.cz> (raw)
In-Reply-To: <1370745235-12951-2-git-send-email-dt.tangr@gmail.com>

On 9.6.2013 04:33, Daniel Tang wrote:
> On some systems, __used is already defined in sys/cdefs.h and causes
> a build warning:
> 
> scripts/mod/file2alias.c:85:1: warning: "__used" redefined
> In file included from /usr/include/stdio.h:64,
>                  from scripts/mod/modpost.h:1,
> 		                  from scripts/mod/file2alias.c:13:
> 				  /usr/include/sys/cdefs.h:146:1: warning: this is the location of the previous definition
> 
> This adds an extra check before defining the __used macro to see if
> the macro was already defined elsewhere.
> 
> Signed-off-by: Daniel Tang <dt.tangr@gmail.com>

Applied to kbuild.git#kbuild.

Michal


  reply	other threads:[~2013-07-03 12:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-09  2:33 [PATCH 1/2] Fix a build warning in scripts/sortextable.h Daniel Tang
2013-06-09  2:33 ` [PATCH 2/2] Fix a build warning in scripts/mod/file2alias.c Daniel Tang
2013-07-03 12:31   ` Michal Marek [this message]
2013-07-03 12:06 ` [PATCH 1/2] Fix a build warning in scripts/sortextable.h Michal Marek
2013-07-03 12:07   ` Michal Marek
2013-07-03 12:12     ` Daniel Tang
2013-07-03 12:28       ` Michal Marek
2013-07-03 12:37         ` Daniel Tang
2013-07-03 12:57           ` Michal Marek
2013-07-03 13:15             ` Michal Marek

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=51D419B2.7000502@suse.cz \
    --to=mmarek@suse.cz \
    --cc=dt.tangr@gmail.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.