diff options
author | Rahul Kumar Gupta <rahul.kumarxx.gupta@intel.com> | 2016-03-31 02:55:10 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2016-03-30 16:18:09 -0700 |
commit | dcfd63ce736d22cb95ec90bfe62116e01b4d306d (patch) | |
tree | 5f7109dd74f997e42b0945f6790bdf9cd7ab22af /meta-isg/common/recipes-extended/qat/qat16/qat16_2.5.0-80-qat-change-in-return-type-of-func-in-kernel-v4.4.patch | |
parent | abb8758eb800c37c6c2700b3c45ffdb723b4d2ae (diff) | |
download | meta-intel-dcfd63ce736d22cb95ec90bfe62116e01b4d306d.tar.gz |
meta-isg: qat16: fix v2.5.0 build with kernel v4.4
The qat recipe currently relies on EXTRA_OEMAKE having been set to
"-e MAKEFLAGS=" in bitbake.conf to operate. It is necessary to make this
explicit so that the default in bitbake.conf can be changed.
The prototype of a func used in QAT16 is changed in kernel v4.4
Also, make sure that we point to the correct include path to the local
headers.
Signed-off-by: Rahul Kumar Gupta <rahul.kumarxx.gupta@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta-isg/common/recipes-extended/qat/qat16/qat16_2.5.0-80-qat-change-in-return-type-of-func-in-kernel-v4.4.patch')
-rw-r--r-- | meta-isg/common/recipes-extended/qat/qat16/qat16_2.5.0-80-qat-change-in-return-type-of-func-in-kernel-v4.4.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-isg/common/recipes-extended/qat/qat16/qat16_2.5.0-80-qat-change-in-return-type-of-func-in-kernel-v4.4.patch b/meta-isg/common/recipes-extended/qat/qat16/qat16_2.5.0-80-qat-change-in-return-type-of-func-in-kernel-v4.4.patch new file mode 100644 index 00000000..b427799b --- /dev/null +++ b/meta-isg/common/recipes-extended/qat/qat16/qat16_2.5.0-80-qat-change-in-return-type-of-func-in-kernel-v4.4.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From f056dbedd106e03860de66d5c84cd018da087dda Mon Sep 17 00:00:00 2001 | ||
2 | From: Rahul Kumar Gupta <rahul.kumarxx.gupta@intel.com> | ||
3 | Date: Tue, 22 Mar 2016 00:59:36 +0800 | ||
4 | Subject: [PATCH 1/2] qat: change in return type of func in kernel v4.4 | ||
5 | |||
6 | Upstream-Status: Submitted | ||
7 | |||
8 | The function 'seq_puts' return type is changed from 'int' to 'void'. | ||
9 | Now use of 'ret' variable is not valid. So used another condition to check | ||
10 | for overflow. | ||
11 | |||
12 | Signed-off-by: Rahul Kumar Gupta <rahul.kumarxx.gupta@intel.com> | ||
13 | --- | ||
14 | quickassist/adf/drivers/common/linux/src/adf_proc_debug.c | 6 +++--- | ||
15 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
16 | |||
17 | diff --git a/quickassist/adf/drivers/common/linux/src/adf_proc_debug.c b/quickassist/adf/drivers/common/linux/src/adf_proc_debug.c | ||
18 | index 7d81eaa..a1dd917 100755 | ||
19 | --- a/quickassist/adf/drivers/common/linux/src/adf_proc_debug.c | ||
20 | +++ b/quickassist/adf/drivers/common/linux/src/adf_proc_debug.c | ||
21 | @@ -132,13 +132,13 @@ static int adf_debug_show(struct seq_file *sfile, void *v) | ||
22 | { | ||
23 | debug_file_info_t* file_info = sfile->private; | ||
24 | if (file_info && file_info->seq_read && file_info->page) { | ||
25 | - int ret = 0, old_offset = file_info->offset; | ||
26 | + int old_offset = file_info->offset; | ||
27 | file_info->offset = | ||
28 | file_info->seq_read(file_info->private_data, | ||
29 | file_info->page, PAGE_SIZE - 1, | ||
30 | file_info->offset); | ||
31 | - ret = seq_puts(sfile, (char*)file_info->page); | ||
32 | - if (ret) { | ||
33 | + seq_puts(sfile, (char*)file_info->page); | ||
34 | + if (sfile->count == sfile->size) { | ||
35 | /* run out of space - need to reprint */ | ||
36 | file_info->offset = old_offset; | ||
37 | } | ||
38 | -- | ||
39 | 1.9.1 | ||
40 | |||