gem5-dev@gem5.org

The gem5 Developer List

View all threads

[XS] Change in gem5/gem5[hotfix-v23-0-0-1]: dev: Fix Linux specific includes to be portable

BB
Bobby Bruce (Gerrit)
Mon, Jul 10, 2023 10:52 PM

Bobby Bruce has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/72225?usp=email )

Change subject: dev: Fix Linux specific includes to be portable
......................................................................

dev: Fix Linux specific includes to be portable

This allows for compilation in non-linux systems (e.g., Mac OS).

Change-Id: Ib6c9406baf42db8caaad335ebc670c1905584ea2

M src/dev/hsa/kfd_ioctl.h
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
Matt Sinclair: Looks good to me, approved; Looks good to me, approved
Bobby Bruce: Looks good to me, approved

diff --git a/src/dev/hsa/kfd_ioctl.h b/src/dev/hsa/kfd_ioctl.h
index c953787..b7997c4 100644
--- a/src/dev/hsa/kfd_ioctl.h
+++ b/src/dev/hsa/kfd_ioctl.h
@@ -23,9 +23,10 @@
#ifndef KFD_IOCTL_H_INCLUDED
#define KFD_IOCTL_H_INCLUDED

+#include <sys/ioctl.h>
+#include <sys/types.h>
+
#include <cstdint>
-#include <linux/ioctl.h>
-#include <linux/types.h>

namespace gem5
{

--
To view, visit
https://gem5-review.googlesource.com/c/public/gem5/+/72225?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: public/gem5
Gerrit-Branch: hotfix-v23-0-0-1
Gerrit-Change-Id: Ib6c9406baf42db8caaad335ebc670c1905584ea2
Gerrit-Change-Number: 72225
Gerrit-PatchSet: 1
Gerrit-Owner: Bobby Bruce bbruce@ucdavis.edu
Gerrit-Reviewer: Bobby Bruce bbruce@ucdavis.edu
Gerrit-Reviewer: Gabe Black gabe.black@gmail.com
Gerrit-Reviewer: Matt Sinclair mattdsinclair@gmail.com
Gerrit-CC: kokoro noreply+kokoro@google.com

Bobby Bruce has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/72225?usp=email ) Change subject: dev: Fix Linux specific includes to be portable ...................................................................... dev: Fix Linux specific includes to be portable This allows for compilation in non-linux systems (e.g., Mac OS). Change-Id: Ib6c9406baf42db8caaad335ebc670c1905584ea2 --- M src/dev/hsa/kfd_ioctl.h 1 file changed, 3 insertions(+), 2 deletions(-) Approvals: Matt Sinclair: Looks good to me, approved; Looks good to me, approved Bobby Bruce: Looks good to me, approved diff --git a/src/dev/hsa/kfd_ioctl.h b/src/dev/hsa/kfd_ioctl.h index c953787..b7997c4 100644 --- a/src/dev/hsa/kfd_ioctl.h +++ b/src/dev/hsa/kfd_ioctl.h @@ -23,9 +23,10 @@ #ifndef KFD_IOCTL_H_INCLUDED #define KFD_IOCTL_H_INCLUDED +#include <sys/ioctl.h> +#include <sys/types.h> + #include <cstdint> -#include <linux/ioctl.h> -#include <linux/types.h> namespace gem5 { -- To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/72225?usp=email To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: public/gem5 Gerrit-Branch: hotfix-v23-0-0-1 Gerrit-Change-Id: Ib6c9406baf42db8caaad335ebc670c1905584ea2 Gerrit-Change-Number: 72225 Gerrit-PatchSet: 1 Gerrit-Owner: Bobby Bruce <bbruce@ucdavis.edu> Gerrit-Reviewer: Bobby Bruce <bbruce@ucdavis.edu> Gerrit-Reviewer: Gabe Black <gabe.black@gmail.com> Gerrit-Reviewer: Matt Sinclair <mattdsinclair@gmail.com> Gerrit-CC: kokoro <noreply+kokoro@google.com>