upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / intel-gpu-tools / trunk / remove-crc32-table-from-common-section.patch
blob767dcd7117ed1df491c07a71849f406aadd4a90f
1 From d7438d4c9e345d4537085d417da38a06e7c91f26 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?=
3 <zbigniew.kempczynski@intel.com>
4 Date: Fri, 13 Jan 2023 20:25:52 +0100
5 Subject: [PATCH] lib/igt_crc: Remove crc32 table from common section
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 I've incidentally put crc32 table definition to the header file
11 instead of exporting it via extern keyword. Remove this symbol
12 from common section to be C89 conformant.
14 Signed-off-by: Zbigniew KempczyƄski <zbigniew.kempczynski@intel.com>
15 Cc: Petri Latvala <petri.latvala@intel.com>
16 Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
17 Fixes: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/126
18 Reviewed-by: Petri Latvala <petri.latvala@intel.com>
19 ---
20 lib/igt_crc.h | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
23 diff --git a/lib/igt_crc.h b/lib/igt_crc.h
24 index 5c0b934e..bd36cb61 100644
25 --- a/lib/igt_crc.h
26 +++ b/lib/igt_crc.h
27 @@ -24,7 +24,7 @@
28 * All crc tables are globals to allow direct in-code use.
31 -const uint32_t igt_crc32_tab[256];
32 +extern const uint32_t igt_crc32_tab[256];
34 uint32_t igt_cpu_crc32(const void *buf, size_t size);
36 --
37 GitLab