Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 466466 Details for
Bug 603472
>=app-emulation/virtualbox-guest-additions-5.1.12 fails to build with kernel 4.9.0 - error: uninitialized const member in 'union atomic_read(const atomic_t*)::<anonymous>'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Mock up a __builtin_types_compatible_p for C++
0004-compiler.h-Mock-up-a-__builtin_types_compatible_p-fo.patch (text/plain), 1.16 KB, created by
Joakim Tjernlund
on 2017-03-09 19:02:47 UTC
(
hide
)
Description:
Mock up a __builtin_types_compatible_p for C++
Filename:
MIME Type:
Creator:
Joakim Tjernlund
Created:
2017-03-09 19:02:47 UTC
Size:
1.16 KB
patch
obsolete
>From b604f9dea81b91f888fc723c6601e62b0c5b2350 Mon Sep 17 00:00:00 2001 >From: Joakim Tjernlund <joakim.tjernlund@infinera.com> >Date: Thu, 9 Mar 2017 18:31:12 +0100 >Subject: [PATCH] compiler.h: Mock up a __builtin_types_compatible_p for C++ > >As g++/clang++ does not have one. >--- > include/linux/compiler.h | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > >diff --git a/include/linux/compiler.h b/include/linux/compiler.h >index 0a047fd..16410cf 100644 >--- a/include/linux/compiler.h >+++ b/include/linux/compiler.h >@@ -78,6 +78,18 @@ extern void __chk_io_ptr(const volatile void __iomem *); > #include <linux/compiler-clang.h> > #endif > >+#ifdef __cplusplus >+/* C++ does not have __builtin_types_compatible_p, mock one up */ >+template <typename type1, typename type2> struct _types_compatible_p { >+ static const int result = 0; >+}; >+ >+template <typename type1> struct _types_compatible_p<type1, type1> { >+ static const int result = 1; >+}; >+ >+#define __builtin_types_compatible_p( type1, type2 ) _types_compatible_p< type1, type2 >::result >+#endif > /* > * Generic compiler-dependent macros required for kernel > * build go below this comment. Actual compiler/compiler version >-- >2.10.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 603472
:
457128
|
462468
|
464534
|
464536
|
466462
|
466464
| 466466