/[packages]/updates/8/kernel/current/SOURCES/x86-asm-ensure-asm-proto.h-can-be-included-stand-alo.patch
ViewVC logotype

Contents of /updates/8/kernel/current/SOURCES/x86-asm-ensure-asm-proto.h-can-be-included-stand-alo.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1738277 - (show annotations) (download)
Sat Jul 31 10:13:28 2021 UTC (2 years, 8 months ago) by tmb
File size: 1671 byte(s)
add current -stable queue
1 From 331999f617daeae9d6693a6cb0477dbfee17dd3e Mon Sep 17 00:00:00 2001
2 From: Sasha Levin <sashal@kernel.org>
3 Date: Sun, 11 Apr 2021 10:12:16 +0200
4 Subject: x86/asm: Ensure asm/proto.h can be included stand-alone
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 From: Jan Kiszka <jan.kiszka@siemens.com>
10
11 [ Upstream commit f7b21a0e41171d22296b897dac6e4c41d2a3643c ]
12
13 Fix:
14
15 ../arch/x86/include/asm/proto.h:14:30: warning: ‘struct task_struct’ declared \
16 inside parameter list will not be visible outside of this definition or declaration
17 long do_arch_prctl_64(struct task_struct *task, int option, unsigned long arg2);
18 ^~~~~~~~~~~
19
20 .../arch/x86/include/asm/proto.h:40:34: warning: ‘struct task_struct’ declared \
21 inside parameter list will not be visible outside of this definition or declaration
22 long do_arch_prctl_common(struct task_struct *task, int option,
23 ^~~~~~~~~~~
24
25 if linux/sched.h hasn't be included previously. This fixes a build error
26 when this header is used outside of the kernel tree.
27
28 [ bp: Massage commit message. ]
29
30 Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
31 Signed-off-by: Borislav Petkov <bp@suse.de>
32 Link: https://lkml.kernel.org/r/b76b4be3-cf66-f6b2-9a6c-3e7ef54f9845@web.de
33 Signed-off-by: Sasha Levin <sashal@kernel.org>
34 ---
35 arch/x86/include/asm/proto.h | 2 ++
36 1 file changed, 2 insertions(+)
37
38 --- a/arch/x86/include/asm/proto.h
39 +++ b/arch/x86/include/asm/proto.h
40 @@ -4,6 +4,8 @@
41
42 #include <asm/ldt.h>
43
44 +struct task_struct;
45 +
46 /* misc architecture specific prototypes */
47
48 void syscall_init(void);

  ViewVC Help
Powered by ViewVC 1.1.30