drm/amdgpu
Simon Ser 82b2b1e898 amdgpu: silence uninitialized variable warning
The compiler isn't smart enough to tell that this can't happen:

    [30/74] Compiling C object amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_bo.c.o
    In file included from ../amdgpu/amdgpu_internal.h:32,
                     from ../amdgpu/amdgpu_bo.c:39:
    ../xf86atomic.h: In function ‘amdgpu_find_bo_by_cpu_mapping’:
    ../xf86atomic.h:47:54: warning: ‘bo’ may be used uninitialized [-Wmaybe-uninitialized]
       47 | # define atomic_inc(x) ((void) __sync_fetch_and_add (&(x)->atomic, 1))
          |                                                      ^
    ../amdgpu/amdgpu_bo.c:536:27: note: ‘bo’ was declared here
      536 |         struct amdgpu_bo *bo;
          |                           ^~

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2022-10-23 17:47:24 +02:00
..
.editorconfig Add meson build system 2018-01-12 09:40:48 -08:00
Android.mk amdgpu: Only remember the device's marketing name 2017-12-05 12:50:20 +01:00
Makefile.sources amdgpu: remove the hash table implementation 2018-08-07 13:27:33 +02:00
amdgpu-symbols.txt amdgpu: implement new CTX OP to set/get stable pstates 2022-01-20 18:32:46 +01:00
amdgpu.h amdgpu: implement new CTX OP to set/get stable pstates 2022-01-20 18:32:46 +01:00
amdgpu_asic_id.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
amdgpu_bo.c amdgpu: silence uninitialized variable warning 2022-10-23 17:47:24 +02:00
amdgpu_cs.c amdgpu: implement new CTX OP to set/get stable pstates 2022-01-20 18:32:46 +01:00
amdgpu_device.c amdgpu: Add a default marketing name if none is found 2022-10-17 16:19:44 -04:00
amdgpu_gpu_info.c amdgpu: add function of INFO ioctl for querying video caps 2021-04-06 08:58:57 -04:00
amdgpu_internal.h amdgpu: increase cpu_map_count storage size 2020-03-23 13:18:01 +01:00
amdgpu_vamgr.c amdgpu: Add vamgr for capture/replay. 2021-06-15 13:08:20 +00:00
amdgpu_vm.c amdgpu: annotate public functions 2018-09-19 22:46:45 -07:00
handle_table.c amdgpu: fix off by one in handle_table_insert 2018-08-16 08:50:04 +02:00
handle_table.h amdgpu: add handle table implementation v2 2018-08-07 13:27:16 +02:00
libdrm_amdgpu.pc.in amdgpu: add libdrm as private requirement/dependency 2016-02-04 13:22:50 +00:00
meson.build meson: use the modern interface for pkg.generate 2022-01-20 10:20:40 -08:00