All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - libdm: fix compiling with older gcc
Date: Tue,  6 Apr 2021 20:32:02 +0000 (GMT)	[thread overview]
Message-ID: <20210406203202.6FE1A384607A@sourceware.org> (raw)

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=6f6583afede02dddec41b85f896c9d4e73d87beb
Commit:        6f6583afede02dddec41b85f896c9d4e73d87beb
Parent:        9980ed9527e73d8396f8e1ce877837c0355ba8dc
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Tue Apr 6 22:31:23 2021 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Tue Apr 6 22:31:23 2021 +0200

libdm: fix compiling with older gcc

---
 libdm/misc/dmlib.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libdm/misc/dmlib.h b/libdm/misc/dmlib.h
index 95f4b8ecb..0b937cdda 100644
--- a/libdm/misc/dmlib.h
+++ b/libdm/misc/dmlib.h
@@ -77,7 +77,10 @@
 #  endif
 # endif
 #ifndef DM_EXPORT_NEW_SYMBOL
-#define DM_EXPORT_NEW_SYMBOL(rettype, func, ver) rettype func
+#define DM_EXPORT_NEW_SYMBOL(rettype, func, ver) \
+	__typeof__(func) func ##_v ##ver; \
+	__asm__(".symver " #func "_v" #ver ", " #func "@@DM_" #ver ); \
+	rettype func ##_v ##ver
 #define DM_EXPORT_SYMBOL(func, ver) \
 	__asm__(".symver " #func "_v" #ver ", " #func "@DM_" #ver );
 #define DM_EXPORT_SYMBOL_BASE(func) \



                 reply	other threads:[~2021-04-06 20:32 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=20210406203202.6FE1A384607A@sourceware.org \
    --to=zkabelac@sourceware.org \
    --cc=lvm-devel@redhat.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 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.