Blame SOURCES/bpftrace-0.10.0-Fix-KBUILD_MODNAME.patch

18bb42
From 042675755d1ec2446105af700cd9cfb1bace905c Mon Sep 17 00:00:00 2001
18bb42
From: Masanori Misono <m.misono760@gmail.com>
18bb42
Date: Wed, 27 May 2020 17:54:52 +0900
18bb42
Subject: [PATCH] Fix KBUILD_MODNAME
18bb42
18bb42
Use "bpftrace" instead of '"bpftrace"'. Previously this causes build
18bb42
error if included header files use KBUILD_MODNAME.
18bb42
---
18bb42
 src/utils.cpp | 2 +-
18bb42
 1 file changed, 1 insertion(+), 1 deletion(-)
18bb42
18bb42
diff --git a/src/utils.cpp b/src/utils.cpp
18bb42
index dc82689..cec77cf 100644
18bb42
--- a/src/utils.cpp
18bb42
+++ b/src/utils.cpp
18bb42
@@ -363,7 +363,7 @@ std::vector<std::string> get_kernel_cflags(
18bb42
   cflags.push_back("-D__HAVE_BUILTIN_BSWAP16__");
18bb42
   cflags.push_back("-D__HAVE_BUILTIN_BSWAP32__");
18bb42
   cflags.push_back("-D__HAVE_BUILTIN_BSWAP64__");
18bb42
-  cflags.push_back("-DKBUILD_MODNAME='\"bpftrace\"'");
18bb42
+  cflags.push_back("-DKBUILD_MODNAME=\"bpftrace\"");
18bb42
 
18bb42
   // If ARCH env variable is set, pass this along.
18bb42
   if (archenv)
18bb42
-- 
18bb42
2.25.4
18bb42