]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: xe_gen_wa_oob: replace program_invocation_short_name
authorDaniel Gomez <da.gomez@samsung.com>
Mon, 24 Feb 2025 06:23:13 +0000 (07:23 +0100)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 27 Feb 2025 19:01:15 +0000 (11:01 -0800)
commit89eb42b5539f6ae6a0cabcb39e5b6fcc83c106a1
treea6b14f2edd25d61f257753b69405061e2995a675
parentdd8c01e42f4c5c1eaf02f003d7d588ba6706aa71
drm/xe: xe_gen_wa_oob: replace program_invocation_short_name

program_invocation_short_name may not be available in other systems.
Instead, replace it with the argv[0] to pass the executable name.

Fixes build error when program_invocation_short_name is not available:

drivers/gpu/drm/xe/xe_gen_wa_oob.c:34:3: error: use of
undeclared identifier 'program_invocation_short_name'    34 |
program_invocation_short_name);       |                 ^ 1 error
generated.

Suggested-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250224-macos-build-support-xe-v3-1-d2c9ed3a27cc@samsung.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_gen_wa_oob.c