Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers/3.19: 00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch 00_all_0002-netfilter-pull-in-limits.h.patch 00_all_0003-convert-PAGE_SIZE-usage.patch 00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch 00_all_0005-unifdef-drop-unused-errno.h-include.patch 00_all_0006-x86-do-not-build-relocs-tool-when-installing-headers.patch 00_all_0007-timerfd-export-defines-to-userspace.patch 00_all_0008-KVM-ia64-drop-kvm.h-from-installed-user-headers.patch
Date: Mon, 09 Feb 2015 19:25:52
Message-Id: 20150209192549.7B7FCD1F0@oystercatcher.gentoo.org
1 vapier 15/02/09 19:25:49
2
3 Added:
4 00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch
5 00_all_0002-netfilter-pull-in-limits.h.patch
6 00_all_0003-convert-PAGE_SIZE-usage.patch
7 00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch
8 00_all_0005-unifdef-drop-unused-errno.h-include.patch
9 00_all_0006-x86-do-not-build-relocs-tool-when-installing-headers.patch
10 00_all_0007-timerfd-export-defines-to-userspace.patch
11 00_all_0008-KVM-ia64-drop-kvm.h-from-installed-user-headers.patch
12 Log:
13 initial 3.19 patchset based on last 3.18 patchset
14
15 Revision Changes Path
16 1.1 src/patchsets/gentoo-headers/3.19/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch
17
18 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch?rev=1.1&view=markup
19 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch?rev=1.1&content-type=text/plain
20
21 Index: 00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch
22 ===================================================================
23 From 59cefd6901a2f567f1d8268cd47a60569a737e26 Mon Sep 17 00:00:00 2001
24 From: Mike Frysinger <vapier@g.o>
25 Date: Mon, 29 Dec 2008 06:52:59 -0500
26 Subject: [PATCH] linux/stat.h: remove __GLIBC__ checks
27
28 Only check __KERNEL__ so we don't assume the C library is glibc.
29
30 Signed-off-by: Mike Frysinger <vapier@g.o>
31 ---
32 include/uapi/linux/stat.h | 2 +-
33 1 file changed, 1 insertion(+), 1 deletion(-)
34
35 diff --git a/include/uapi/linux/stat.h b/include/uapi/linux/stat.h
36 index 7fec7e3..256ad24 100644
37 --- a/include/uapi/linux/stat.h
38 +++ b/include/uapi/linux/stat.h
39 @@ -2,7 +2,7 @@
40 #define _UAPI_LINUX_STAT_H
41
42
43 -#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
44 +#if defined(__KERNEL__)
45
46 #define S_IFMT 00170000
47 #define S_IFSOCK 0140000
48 --
49 2.2.1
50
51
52
53
54 1.1 src/patchsets/gentoo-headers/3.19/00_all_0002-netfilter-pull-in-limits.h.patch
55
56 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0002-netfilter-pull-in-limits.h.patch?rev=1.1&view=markup
57 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0002-netfilter-pull-in-limits.h.patch?rev=1.1&content-type=text/plain
58
59 Index: 00_all_0002-netfilter-pull-in-limits.h.patch
60 ===================================================================
61 From b6a934c23f67e497d7ced052862be7683d1981a2 Mon Sep 17 00:00:00 2001
62 From: Mike Frysinger <vapier@g.o>
63 Date: Sat, 9 May 2009 17:30:35 -0400
64 Subject: [PATCH] netfilter: pull in limits.h
65
66 A few netfilter sub-headers use INT_MAX which is in limits.h.
67
68 URL: http://bugs.gentoo.org/246160
69 Signed-off-by: Mike Frysinger <vapier@g.o>
70 ---
71 include/uapi/linux/netfilter.h | 1 +
72 1 file changed, 1 insertion(+)
73
74 diff --git a/include/uapi/linux/netfilter.h b/include/uapi/linux/netfilter.h
75 index ef1b1f8..dda752c 100644
76 --- a/include/uapi/linux/netfilter.h
77 +++ b/include/uapi/linux/netfilter.h
78 @@ -4,6 +4,7 @@
79 #include <linux/types.h>
80 #include <linux/compiler.h>
81 #include <linux/sysctl.h>
82 +#include <limits.h>
83
84
85 /* Responses from hook functions. */
86 --
87 2.2.1
88
89
90
91
92 1.1 src/patchsets/gentoo-headers/3.19/00_all_0003-convert-PAGE_SIZE-usage.patch
93
94 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0003-convert-PAGE_SIZE-usage.patch?rev=1.1&view=markup
95 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0003-convert-PAGE_SIZE-usage.patch?rev=1.1&content-type=text/plain
96
97 Index: 00_all_0003-convert-PAGE_SIZE-usage.patch
98 ===================================================================
99 From c98ee5ab05bfbaa7843d2a226bbac5ec9b1efa59 Mon Sep 17 00:00:00 2001
100 From: Mike Frysinger <vapier@g.o>
101 Date: Sat, 13 Feb 2010 03:09:23 -0500
102 Subject: [PATCH] convert PAGE_SIZE usage
103
104 The size of a page may change at runtime or based on kernel settings, so
105 a static value at compile time doesn't work. More importantly, no one
106 exports PAGE_SIZE to user space anymore.
107
108 URL: http://bugs.gentoo.org/301431
109 Signed-off-by: Mike Frysinger <vapier@g.o>
110 ---
111 include/uapi/linux/binfmts.h | 3 ++-
112 include/uapi/linux/resource.h | 3 ++-
113 2 files changed, 4 insertions(+), 2 deletions(-)
114
115 diff --git a/include/uapi/linux/binfmts.h b/include/uapi/linux/binfmts.h
116 index 4eb5972..516bfcf 100644
117 --- a/include/uapi/linux/binfmts.h
118 +++ b/include/uapi/linux/binfmts.h
119 @@ -1,6 +1,7 @@
120 #ifndef _UAPI_LINUX_BINFMTS_H
121 #define _UAPI_LINUX_BINFMTS_H
122
123 +#include <unistd.h>
124 #include <linux/capability.h>
125
126 struct pt_regs;
127 @@ -11,7 +12,7 @@ struct pt_regs;
128 * prevent the kernel from being unduly impacted by misaddressed pointers.
129 * MAX_ARG_STRINGS is chosen to fit in a signed 32-bit integer.
130 */
131 -#define MAX_ARG_STRLEN (PAGE_SIZE * 32)
132 +#define MAX_ARG_STRLEN (sysconf(_SC_PAGESIZE) * 32)
133 #define MAX_ARG_STRINGS 0x7FFFFFFF
134
135 /* sizeof(linux_binprm->buf) */
136 diff --git a/include/uapi/linux/resource.h b/include/uapi/linux/resource.h
137 index 36fb3b5..58efd07 100644
138 --- a/include/uapi/linux/resource.h
139 +++ b/include/uapi/linux/resource.h
140 @@ -68,7 +68,8 @@ struct rlimit64 {
141 * GPG2 wants 64kB of mlocked memory, to make sure pass phrases
142 * and other sensitive information are never written to disk.
143 */
144 -#define MLOCK_LIMIT ((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024)
145 +/* No one currently defines PAGE_SIZE bigger than 64kB */
146 +#define MLOCK_LIMIT (64 * 1024)
147
148 /*
149 * Due to binary compatibility, the actual resource numbers
150 --
151 2.2.1
152
153
154
155
156 1.1 src/patchsets/gentoo-headers/3.19/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch
157
158 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch?rev=1.1&view=markup
159 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch?rev=1.1&content-type=text/plain
160
161 Index: 00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch
162 ===================================================================
163 From ae139b9fdaa2367c58053aa525ed9dc889a767da Mon Sep 17 00:00:00 2001
164 From: Mike Frysinger <vapier@g.o>
165 Date: Mon, 29 Dec 2008 07:39:14 -0500
166 Subject: [PATCH] asm-generic/fcntl.h: namespace kernel file structs
167
168 No one should be using these structs, but just in case they are,
169 keep them available in the __kernel_ namespace.
170
171 Otherwise, trying to include something like:
172 #include <fcntl.h>
173 #include <linux/inotify.h>
174 leads to horrible failure.
175
176 URL: http://bugs.gentoo.org/244470
177 URL: http://bugs.gentoo.org/388633
178 Signed-off-by: Mike Frysinger <vapier@g.o>
179 ---
180 include/uapi/asm-generic/fcntl.h | 6 +++---
181 1 file changed, 3 insertions(+), 3 deletions(-)
182
183 diff --git a/include/uapi/asm-generic/fcntl.h b/include/uapi/asm-generic/fcntl.h
184 index e063eff..a98769e 100644
185 --- a/include/uapi/asm-generic/fcntl.h
186 +++ b/include/uapi/asm-generic/fcntl.h
187 @@ -152,7 +152,7 @@
188 #define F_OWNER_PID 1
189 #define F_OWNER_PGRP 2
190
191 -struct f_owner_ex {
192 +struct __kernel_f_owner_ex {
193 int type;
194 __kernel_pid_t pid;
195 };
196 @@ -192,7 +192,7 @@ struct f_owner_ex {
197 #define __ARCH_FLOCK_PAD
198 #endif
199
200 -struct flock {
201 +struct __kernel_flock {
202 short l_type;
203 short l_whence;
204 __kernel_off_t l_start;
205 @@ -207,7 +207,7 @@ struct flock {
206 #define __ARCH_FLOCK64_PAD
207 #endif
208
209 -struct flock64 {
210 +struct __kernel_flock64 {
211 short l_type;
212 short l_whence;
213 __kernel_loff_t l_start;
214 --
215 2.2.1
216
217
218
219
220 1.1 src/patchsets/gentoo-headers/3.19/00_all_0005-unifdef-drop-unused-errno.h-include.patch
221
222 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0005-unifdef-drop-unused-errno.h-include.patch?rev=1.1&view=markup
223 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0005-unifdef-drop-unused-errno.h-include.patch?rev=1.1&content-type=text/plain
224
225 Index: 00_all_0005-unifdef-drop-unused-errno.h-include.patch
226 ===================================================================
227 From 8c7630a48fc3b78577d9d8d7bd3be6446df3dc1a Mon Sep 17 00:00:00 2001
228 From: Mike Frysinger <vapier@g.o>
229 Date: Tue, 6 Dec 2011 17:22:42 -0500
230 Subject: [PATCH] unifdef: drop unused errno.h include
231
232 This is the only header on my system that ends up requiring kernel
233 headers, so if the kernel headers aren't available, we end up being
234 unable to install kernel headers :).
235
236 Since this file doesn't actually use anything from errno.h, drop
237 the include so it at least makes us a bit more robust on glibc.
238
239 Signed-off-by: Mike Frysinger <vapier@g.o>
240 ---
241 scripts/unifdef.c | 1 -
242 1 file changed, 1 deletion(-)
243
244 diff --git a/scripts/unifdef.c b/scripts/unifdef.c
245 index 7493c0e..c5dfae5 100644
246 --- a/scripts/unifdef.c
247 +++ b/scripts/unifdef.c
248 @@ -48,7 +48,6 @@
249
250 #include <ctype.h>
251 #include <err.h>
252 -#include <errno.h>
253 #include <stdarg.h>
254 #include <stdbool.h>
255 #include <stdio.h>
256 --
257 2.2.1
258
259
260
261
262 1.1 src/patchsets/gentoo-headers/3.19/00_all_0006-x86-do-not-build-relocs-tool-when-installing-headers.patch
263
264 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0006-x86-do-not-build-relocs-tool-when-installing-headers.patch?rev=1.1&view=markup
265 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0006-x86-do-not-build-relocs-tool-when-installing-headers.patch?rev=1.1&content-type=text/plain
266
267 Index: 00_all_0006-x86-do-not-build-relocs-tool-when-installing-headers.patch
268 ===================================================================
269 From c06683c33a3f14be2839bfd8fc842cfc6e543461 Mon Sep 17 00:00:00 2001
270 From: Mike Frysinger <vapier@g.o>
271 Date: Sat, 15 Nov 2014 03:37:38 -0500
272 Subject: [PATCH] x86: do not build relocs tool when installing headers
273
274 This isn't needed to install headers, so don't bother building it.
275 Otherwise we run into a chicken/egg issue where we need the kernel
276 headers in order to install the kernel headers. It's also a waste
277 of time.
278
279 Signed-off-by: Mike Frysinger <vapier@g.o>
280 ---
281 arch/x86/Makefile | 2 ++
282 1 file changed, 2 insertions(+)
283
284 diff --git a/arch/x86/Makefile b/arch/x86/Makefile
285 index 920e616..071a14d 100644
286 --- a/arch/x86/Makefile
287 +++ b/arch/x86/Makefile
288 @@ -170,8 +170,10 @@ KBUILD_CFLAGS += $(call cc-option,-mno-avx,)
289 KBUILD_CFLAGS += $(mflags-y)
290 KBUILD_AFLAGS += $(mflags-y)
291
292 +ifneq ($(filter-out headers_install,$(MAKECMDGOALS)),)
293 archscripts: scripts_basic
294 $(Q)$(MAKE) $(build)=arch/x86/tools relocs
295 +endif
296
297 ###
298 # Syscall table generation
299 --
300 2.2.1
301
302
303
304
305 1.1 src/patchsets/gentoo-headers/3.19/00_all_0007-timerfd-export-defines-to-userspace.patch
306
307 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0007-timerfd-export-defines-to-userspace.patch?rev=1.1&view=markup
308 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0007-timerfd-export-defines-to-userspace.patch?rev=1.1&content-type=text/plain
309
310 Index: 00_all_0007-timerfd-export-defines-to-userspace.patch
311 ===================================================================
312 From 98b140fc7288dbe379417d7c0d334c596ef8a5d4 Mon Sep 17 00:00:00 2001
313 From: Mike Frysinger <vapier@g.o>
314 Date: Tue, 30 Dec 2014 19:14:51 -0500
315 Subject: [PATCH] timerfd: export defines to userspace
316
317 Since userspace is expected to call timerfd syscalls directly with these
318 flags/ioctls, make sure we export them so they don't have to duplicate
319 the values themselves.
320
321 Signed-off-by: Mike Frysinger <vapier@g.o>
322 ---
323 include/linux/timerfd.h | 20 +-------------------
324 include/uapi/linux/Kbuild | 1 +
325 include/uapi/linux/timerfd.h | 36 ++++++++++++++++++++++++++++++++++++
326 3 files changed, 38 insertions(+), 19 deletions(-)
327 create mode 100644 include/uapi/linux/timerfd.h
328
329 diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild
330 index 00b10002..874f431 100644
331 --- a/include/uapi/linux/Kbuild
332 +++ b/include/uapi/linux/Kbuild
333 @@ -389,6 +389,7 @@ header-y += telephony.h
334 header-y += termios.h
335 header-y += thermal.h
336 header-y += time.h
337 +header-y += timerfd.h
338 header-y += times.h
339 header-y += timex.h
340 header-y += tiocl.h
341 diff --git a/include/uapi/linux/timerfd.h b/include/uapi/linux/timerfd.h
342 new file mode 100644
343 index 0000000..6fcfaa8
344 --- /dev/null
345 +++ b/include/uapi/linux/timerfd.h
346 @@ -0,0 +1,36 @@
347 +/*
348 + * include/linux/timerfd.h
349 + *
350 + * Copyright (C) 2007 Davide Libenzi <davidel@×××××××××××.org>
351 + *
352 + */
353 +
354 +#ifndef _UAPI_LINUX_TIMERFD_H
355 +#define _UAPI_LINUX_TIMERFD_H
356 +
357 +#include <linux/types.h>
358 +
359 +/* For O_CLOEXEC and O_NONBLOCK */
360 +#include <linux/fcntl.h>
361 +
362 +/* For _IO helpers */
363 +#include <linux/ioctl.h>
364 +
365 +/*
366 + * CAREFUL: Check include/asm-generic/fcntl.h when defining
367 + * new flags, since they might collide with O_* ones. We want
368 + * to re-use O_* flags that couldn't possibly have a meaning
369 + * from eventfd, in order to leave a free define-space for
370 + * shared O_* flags.
371 + *
372 + * Also make sure to update the masks in include/linux/timerfd.h
373 + * when adding new flags.
374 + */
375 +#define TFD_TIMER_ABSTIME (1 << 0)
376 +#define TFD_TIMER_CANCEL_ON_SET (1 << 1)
377 +#define TFD_CLOEXEC O_CLOEXEC
378 +#define TFD_NONBLOCK O_NONBLOCK
379 +
380 +#define TFD_IOC_SET_TICKS _IOW('T', 0, __u64)
381 +
382 +#endif /* _UAPI_LINUX_TIMERFD_H */
383 --
384 2.2.1
385
386
387
388
389 1.1 src/patchsets/gentoo-headers/3.19/00_all_0008-KVM-ia64-drop-kvm.h-from-installed-user-headers.patch
390
391 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0008-KVM-ia64-drop-kvm.h-from-installed-user-headers.patch?rev=1.1&view=markup
392 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.19/00_all_0008-KVM-ia64-drop-kvm.h-from-installed-user-headers.patch?rev=1.1&content-type=text/plain
393
394 Index: 00_all_0008-KVM-ia64-drop-kvm.h-from-installed-user-headers.patch
395 ===================================================================
396 From c28f41d7bb080caaf04eb7779ebcbe87bba17333 Mon Sep 17 00:00:00 2001
397 From: Mike Frysinger <vapier@g.o>
398 Date: Mon, 9 Feb 2015 12:25:32 -0500
399 Subject: [PATCH] KVM: ia64: drop kvm.h from installed user headers
400
401 The header was deleted, so stop trying to install it.
402
403 Signed-off-by: Mike Frysinger <vapier@g.o>
404 ---
405 arch/ia64/include/uapi/asm/Kbuild | 1 -
406 1 file changed, 1 deletion(-)
407
408 diff --git a/arch/ia64/include/uapi/asm/Kbuild b/arch/ia64/include/uapi/asm/Kbuild
409 index 1b3f5eb..891002b 100644
410 --- a/arch/ia64/include/uapi/asm/Kbuild
411 +++ b/arch/ia64/include/uapi/asm/Kbuild
412 @@ -18,7 +18,6 @@ header-y += intrinsics.h
413 header-y += ioctl.h
414 header-y += ioctls.h
415 header-y += ipcbuf.h
416 -header-y += kvm.h
417 header-y += kvm_para.h
418 header-y += mman.h
419 header-y += msgbuf.h
420 --
421 2.2.1