summaryrefslogtreecommitdiff
path: root/debian/patches/upstreamme0005-linux-net-fix-build-with-O0.patch
blob: 169eff556e61d7bc7406a06a2b5c43040c3e8cc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 92e98a7f4d4fa75b286a067e1d1caef514fccb0d Mon Sep 17 00:00:00 2001
From: Justus Winter <4winter@informatik.uni-hamburg.de>
Date: Sat, 18 Jul 2015 18:52:22 +0200
Subject: [PATCH gnumach 5/5] linux/net: fix build with -O0

* linux/src/drivers/net/pci-scan.c: Avoid #erroring out.
---
 linux/src/drivers/net/pci-scan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/linux/src/drivers/net/pci-scan.c b/linux/src/drivers/net/pci-scan.c
index 60525b7..ffb7b12 100644
--- a/linux/src/drivers/net/pci-scan.c
+++ b/linux/src/drivers/net/pci-scan.c
@@ -31,7 +31,7 @@ static int min_pci_latency = 32;
 #if ! defined(__KERNEL__)
 #define __KERNEL__ 1
 #endif
-#if !defined(__OPTIMIZE__)
+#if !defined(__OPTIMIZE__) && /* Mach glue, we think this is ok now: */ 0
 #warning  You must compile this file with the correct options!
 #warning  See the last lines of the source file.
 #error You must compile this driver with the proper options, including "-O".
-- 
2.1.4