[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 04/07: New upstream snapshot
From: |
Samuel Thibault |
Subject: |
[hurd] 04/07: New upstream snapshot |
Date: |
Mon, 11 Sep 2017 07:10:07 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch master
in repository hurd.
commit ba0a6224b9b10f1c23f057b48e5ea28aa453ce26
Author: Samuel Thibault <address@hidden>
Date: Sun Sep 10 23:33:11 2017 +0000
New upstream snapshot
---
.../contrib/include/linux/compiler-gcc7.h | 25 ++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/libdde-linux26/contrib/include/linux/compiler-gcc7.h
b/libdde-linux26/contrib/include/linux/compiler-gcc7.h
new file mode 100644
index 0000000..125834e
--- /dev/null
+++ b/libdde-linux26/contrib/include/linux/compiler-gcc7.h
@@ -0,0 +1,25 @@
+#ifndef __LINUX_COMPILER_H
+#error "Please don't include <linux/compiler-gcc7.h> directly, include
<linux/compiler.h> instead."
+#endif
+
+#define __used __attribute__((__used__))
+#define __must_check __attribute__((warn_unused_result))
+#define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
+#define __always_inline inline __attribute__((always_inline))
+
+/*
+ * A trick to suppress uninitialized variable warning without generating any
+ * code
+ */
+#define uninitialized_var(x) x = x
+
+/* Mark functions as cold. gcc will assume any path leading to a call
+ to them will be unlikely. This means a lot of manual unlikely()s
+ are unnecessary now for any paths leading to the usual suspects
+ like BUG(), printk(), panic() etc. [but let's keep them for now for
+ older compilers]
+
+ gcc also has a __attribute__((__hot__)) to move hot functions into
+ a special section, but I don't see any sense in this right now in
+ the kernel context */
+#define __cold __attribute__((__cold__))
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch master updated (06ae5f7 -> 4e939e9), Samuel Thibault, 2017/09/11
- [hurd] 05/07: Merge branch 'upstream-merged', Samuel Thibault, 2017/09/11
- [hurd] 07/07: upload, Samuel Thibault, 2017/09/11
- [hurd] 04/07: New upstream snapshot,
Samuel Thibault <=
- [hurd] 06/07: Add libgcrypt20-dev build dependency, Samuel Thibault, 2017/09/11
- [hurd] 03/07: refresh patches, Samuel Thibault, 2017/09/11
- [hurd] 02/07: Merge branch 'upstream-merged', Samuel Thibault, 2017/09/11
- [hurd] 01/07: New upstream snapshot, Samuel Thibault, 2017/09/11