mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 02:20:15 +01:00
The inline function is_power_of_two should be set as static since it's only called in pattern.c, otherwise it will encounter below build error. [114/136] Linking target tests/modetest/modetest FAILED: tests/modetest/modetest cc -o tests/modetest/modetest tests/modetest/modetest.p/buffers.c.o tests/modetest/modetest.p/cursor.c.o tests/modetest/modetest.p/modetest.c.o -Wl,--as-needed -Wl,--no-undefined -fno-omit-frame-pointer '-Wl,-rpath,$ORIGIN/../..' -Wl,-rpath-link,/home/ray/repo/drm/build/ -Wl,--start-group libdrm.so.2.125.0 tests/util/libutil.a -lm -pthread /usr/lib/x86_64-linux-gnu/libcairo.so -Wl,--end-group /usr/bin/ld: tests/util/libutil.a.p/pattern.c.o: in function `check_yuv': /home/ray/repo/drm/build/../tests/util/pattern.c:1989: undefined reference to `is_power_of_two' /usr/bin/ld: /home/ray/repo/drm/build/../tests/util/pattern.c:1990: undefined reference to `is_power_of_two' /usr/bin/ld: /home/ray/repo/drm/build/../tests/util/pattern.c:1991: undefined reference to `is_power_of_two' collect2: error: ld returned 1 exit status Signed-off-by: Huang Rui <ray.huang@amd.com> |
||
|---|---|---|
| .. | ||
| Android.bp | ||
| Android.sources.bp | ||
| common.h | ||
| format.c | ||
| format.h | ||
| kms.c | ||
| kms.h | ||
| meson.build | ||
| pattern.c | ||
| pattern.h | ||