From: Ashutosh Dixit <ashutosh.dixit@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Sai Teja Pottumuttu <sai.teja.pottumuttu@intel.com>,
Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Subject: [PATCH i-g-t 3/3] tests/amdgpu/amd_hotplug: Fix compile on Ubuntu 24
Date: Thu, 13 Mar 2025 17:20:58 -0700 [thread overview]
Message-ID: <20250314002058.220854-4-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20250314002058.220854-1-ashutosh.dixit@intel.com>
Fix following compile errors on Ubuntu 24:
../tests/amdgpu/amd_hotplug.c: In function ‘is_system_s2idle’:
../tests/amdgpu/amd_hotplug.c:110:14: error: implicit declaration of function ‘open’; did you mean ‘popen’? [-Werror=implicit-function-declaration]
110 | fd = open(MEM_SLEEP_PATH, O_RDONLY);
| ^~~~
| popen
../tests/amdgpu/amd_hotplug.c:110:14: warning: nested extern declaration of ‘open’ [-Wnested-externs]
../tests/amdgpu/amd_hotplug.c:110:35: error: ‘O_RDONLY’ undeclared (first use in this function)
110 | fd = open(MEM_SLEEP_PATH, O_RDONLY);
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
tests/amdgpu/amd_hotplug.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/amdgpu/amd_hotplug.c b/tests/amdgpu/amd_hotplug.c
index ee3256c0b7..93765afb6a 100644
--- a/tests/amdgpu/amd_hotplug.c
+++ b/tests/amdgpu/amd_hotplug.c
@@ -20,6 +20,7 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
+#include <fcntl.h>
#include "igt.h"
#include "igt_amd.h"
--
2.48.1
next prev parent reply other threads:[~2025-03-14 0:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-14 0:20 [PATCH i-g-t 0/3] tests/intel/xe_oa: Fix __for_one_render_engine Ashutosh Dixit
2025-03-14 0:20 ` [PATCH i-g-t 1/3] " Ashutosh Dixit
2025-03-14 7:07 ` Pottumuttu, Sai Teja
2025-03-14 0:20 ` [PATCH i-g-t 2/3] tests/intel/xe_oa: Don't limit sync tests to render engine Ashutosh Dixit
2025-03-14 7:11 ` Pottumuttu, Sai Teja
2025-03-14 0:20 ` Ashutosh Dixit [this message]
2025-03-14 15:18 ` [PATCH i-g-t 3/3] tests/amdgpu/amd_hotplug: Fix compile on Ubuntu 24 Pottumuttu, Sai Teja
2025-03-14 17:22 ` ✓ Xe.CI.Full: success for tests/intel/xe_oa: Fix __for_one_render_engine Patchwork
2025-03-14 23:39 ` ✗ Fi.CI.BUILD: failure for tests/intel/xe_oa: Fix __for_one_render_engine (rev2) Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250314002058.220854-4-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=sai.teja.pottumuttu@intel.com \
--cc=umesh.nerlige.ramappa@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox