use inline functions instead of do while(0) for dev_*
authorjsg <jsg@openbsd.org>
Fri, 5 Apr 2024 14:31:57 +0000 (14:31 +0000)
committerjsg <jsg@openbsd.org>
Fri, 5 Apr 2024 14:31:57 +0000 (14:31 +0000)
commit3f7c134ffe9cdb72a35475e1d8777e39978c0bf9
treea5c2cff12ab310eadf3d546551d273923b10fcc1
parentad713c56913c29065923b334e15d64666f293435
use inline functions instead of do while(0) for dev_*

avoids unused variable warning on gcc archs with ttm_tt.c rev 1.21
reported by deraadt@
sys/dev/pci/drm/drm_fb_helper.c
sys/dev/pci/drm/include/linux/device.h