From: Kamil Konieczny <kamil.konieczny@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
Mohammed Anas <triallax@tutanota.com>,
Stefano Ragni <st3r4g@protonmail.com>,
Bernd Kuhls <bernd@kuhls.net>,
Reagan Bohan <xbjfk.github@gmail.com>, Yureka <yuka@yuka.dev>,
Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Subject: [PATCH i-g-t v2 1/1] tests/intel/kms_pm_backlight: Fixed build on musl
Date: Fri, 23 Aug 2024 17:57:47 +0200 [thread overview]
Message-ID: <20240823155747.69745-2-kamil.konieczny@linux.intel.com> (raw)
In-Reply-To: <20240823155747.69745-1-kamil.konieczny@linux.intel.com>
Fix compilation on musl by including proper POSIX header for
basename. Also while at this, sort out other headers.
v2: sorting more headers (Janusz)
Cc: Mohammed Anas <triallax@tutanota.com>
Cc: Stefano Ragni <st3r4g@protonmail.com>
Cc: Bernd Kuhls <bernd@kuhls.net>
Cc: Reagan Bohan <xbjfk.github@gmail.com>
Reported-by: Yureka <yuka@yuka.dev>
Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Reviewed-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
---
tests/intel/kms_pm_backlight.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/tests/intel/kms_pm_backlight.c b/tests/intel/kms_pm_backlight.c
index 8672afa7a..140a95bcc 100644
--- a/tests/intel/kms_pm_backlight.c
+++ b/tests/intel/kms_pm_backlight.c
@@ -35,15 +35,17 @@
* Test category: functionality test
*/
-#include "igt.h"
-#include <limits.h>
-#include <sys/types.h>
-#include <sys/stat.h>
+#include <errno.h>
#include <fcntl.h>
+#include <libgen.h> /* for POSIX basename */
+#include <limits.h>
#include <stdio.h>
-#include <errno.h>
-#include <unistd.h>
+#include <sys/stat.h>
+#include <sys/types.h>
#include <time.h>
+#include <unistd.h>
+
+#include "igt.h"
#include "igt_device.h"
#include "igt_device_scan.h"
--
2.43.0
next prev parent reply other threads:[~2024-08-23 15:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-23 15:57 [PATCH i-g-t v1 0/1] Fix compilation for musl in intel/kms_pm_backlight Kamil Konieczny
2024-08-23 15:57 ` Kamil Konieczny [this message]
2024-08-23 19:46 ` ✓ CI.xeBAT: success for Fix compilation for musl in intel/kms_pm_backlight (rev2) Patchwork
2024-08-23 19:57 ` ✓ Fi.CI.BAT: " Patchwork
2024-08-24 2:18 ` ✗ CI.xeFULL: failure " Patchwork
2024-08-26 10:57 ` Kamil Konieczny
2024-08-25 0:23 ` ✗ Fi.CI.IGT: " Patchwork
2024-08-26 11:00 ` Kamil Konieczny
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=20240823155747.69745-2-kamil.konieczny@linux.intel.com \
--to=kamil.konieczny@linux.intel.com \
--cc=bernd@kuhls.net \
--cc=igt-dev@lists.freedesktop.org \
--cc=janusz.krzysztofik@linux.intel.com \
--cc=st3r4g@protonmail.com \
--cc=triallax@tutanota.com \
--cc=xbjfk.github@gmail.com \
--cc=yuka@yuka.dev \
/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