<div dir="ltr">There was a minor mistake in this revision.<div>See rev 2 instead: <a href="https://patchwork.freedesktop.org/series/109496/#rev2">https://patchwork.freedesktop.org/series/109496/#rev2</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 7, 2022 at 4:10 PM Jake Freeland <<a href="mailto:jake@technologyfriends.net">jake@technologyfriends.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><a href="https://patchwork.freedesktop.org/patch/506303/" target="_blank">https://patchwork.freedesktop.org/patch/506303/</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 7, 2022 at 6:25 AM Kamil Konieczny <<a href="mailto:kamil.konieczny@linux.intel.com" target="_blank">kamil.konieczny@linux.intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Jake,<br>
<br>
On 2022-10-06 at 23:07:17 -0500, Jake Freeland wrote:<br>
> The `#define sigev_notify_thread_id _sigev_un._tid` macro differs on<br>
> FreeBSD. This patch uses ifdefs to stop the compiler from overriding<br>
> FreeBSD's existing definition.<br>
> <br>
> Signed-off-by: Jake Freeland <<a href="mailto:jfree@freebsd.org" target="_blank">jfree@freebsd.org</a>><br>
<br>
Please send this outside of your series, it can be merged as<br>
separate patch. See also some notes below.<br>
<br>
> ---<br>
> benchmarks/gem_syslatency.c | 2 ++<br>
> lib/igt_aux.h | 2 +-<br>
> tests/i915/gem_close_race.c | 2 ++<br>
> 3 files changed, 5 insertions(+), 1 deletion(-)<br>
> <br>
> diff --git a/benchmarks/gem_syslatency.c b/benchmarks/gem_syslatency.c<br>
> index 395d2e71..366c8af6 100644<br>
> --- a/benchmarks/gem_syslatency.c<br>
> +++ b/benchmarks/gem_syslatency.c<br>
> @@ -53,7 +53,9 @@<br>
> #include "igt_freebsd.h"<br>
> #endif<br>
> <br>
> +#ifdef __linux__<br>
> #define sigev_notify_thread_id _sigev_un._tid<br>
> +#endif<br>
<br>
Instead of this please just include igt_aux.h header.<br>
<br>
> <br>
> static volatile int done;<br>
> <br>
> diff --git a/lib/igt_aux.h b/lib/igt_aux.h<br>
> index c98cf28f..569b92d7 100644<br>
> --- a/lib/igt_aux.h<br>
> +++ b/lib/igt_aux.h<br>
> @@ -48,8 +48,8 @@<br>
> # ifndef HAVE_GETTID<br>
> # define gettid() (pid_t)(syscall(__NR_gettid))<br>
> # endif<br>
> -#endif<br>
> #define sigev_notify_thread_id _sigev_un._tid<br>
--- ^<br>
Put space before define to keep style.<br>
<br>
> +#endif<br>
> <br>
> /* auxialiary igt helpers from igt_aux.c */<br>
> /* generally useful helpers */<br>
> diff --git a/tests/i915/gem_close_race.c b/tests/i915/gem_close_race.c<br>
> index 938fde8f..42fe1657 100644<br>
> --- a/tests/i915/gem_close_race.c<br>
> +++ b/tests/i915/gem_close_race.c<br>
> @@ -61,7 +61,9 @@ static bool has_softpin;<br>
> static uint64_t exec_addr;<br>
> static uint64_t data_addr;<br>
> <br>
> +#ifdef __linux__<br>
> #define sigev_notify_thread_id _sigev_un._tid<br>
> +#endif<br>
<br>
Same here, include igt_aux.h<br>
<br>
Regards,<br>
Kamil<br>
<br>
> <br>
> static void selfcopy(int fd, uint32_t ctx, uint32_t handle, int loops)<br>
> {<br>
> -- <br>
> 2.37.3<br>
> <br>
</blockquote></div>
</blockquote></div>