mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Robin Hack <rhack@redhat.com>
To: Eunbong Song <eunb.song@samsung.com>
Cc: ak@linux.intel.com, sasha.levin@oracle.com,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [PATCH] Re: tools/liblockdep: Build failure
Date: Tue, 1 Apr 2014 12:21:59 +0200	[thread overview]
Message-ID: <20140401102159.GC10429@bigoook.brq.redhat.com> (raw)
In-Reply-To: <20140401081144.GB10429@bigoook.brq.redhat.com>

From: Robin Hack <rhack@redhat.com>
Copy asmlinkage macro to lockdep/uinclude/linux/linkage.h.

diff --git a/tools/lib/lockdep/uinclude/linux/linkage.h b/tools/lib/lockdep/uinclude/linux/linkage.h
index fab00ff..6799a5b 100644
--- a/tools/lib/lockdep/uinclude/linux/linkage.h
+++ b/tools/lib/lockdep/uinclude/linux/linkage.h
@@ -1,3 +1,19 @@
+#ifndef _LOCKDEP_ULINKAGE_H
+#define _LOCKDEP_ULINKAGE_H
 
-/* empty file */
+#if GCC_VERSION >= 40600
+/*
+ * Tell the optimizer that something else uses this function or variable.
+ */
+#define __visible __attribute__((externally_visible))
+#else
+#define __visible
+#endif
 
+#define CPP_ASMLINKAGE __visible
+
+#ifndef asmlinkage
+#define asmlinkage CPP_ASMLINKAGE
+#endif
+
+#endif


  reply	other threads:[~2014-04-01 10:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-01  6:04 Eunbong Song
2014-04-01  8:02 ` Robin Hack
2014-04-01  8:11   ` Robin Hack
2014-04-01 10:21     ` Robin Hack [this message]
2014-04-01 10:34       ` [PATCH] " Robin Hack
2014-04-01 15:34       ` Andi Kleen
2014-04-01 15:47         ` Sasha Levin

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=20140401102159.GC10429@bigoook.brq.redhat.com \
    --to=rhack@redhat.com \
    --cc=ak@linux.intel.com \
    --cc=eunb.song@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sasha.levin@oracle.com \
    /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

Powered by JetHome