amdgpu: add missing extern "C" headers
PATCH 1/1 amdgpu: add missing extern "C" headers
From: Nicolai Hähnle <[email protected]>
Signed-off-by Nicolai Hähnle <[email protected]>
--- amdgpu/amdgpu.h | 8 ++++++++ 1 file changed, 8 insertions(+)
amdgpu/amdgpu.h +8 -0
@@ -30,20 +30,24 @@* User wanted to use libdrm_amdgpu functionality must include * this file. * */ #ifndef _AMDGPU_H_ #define _AMDGPU_H_ #include <stdint.h> #include <stdbool.h> +#ifdef __cplusplus +extern "C" { +#endif + struct drm_amdgpu_info_hw_ip; /*--------------------------------------------------------------------------*/ /* --------------------------- Defines ------------------------------------ */ /*--------------------------------------------------------------------------*/ /** * Define max. number of Command Buffers (IB) which could be sent to the single * hardware IP to accommodate CE/DE requirements *
@@ -1317,11 +1321,15 @@ int amdgpu_cs_destroy_semaphore(amdgpu_semaphore_handle sem);/** * Get the ASIC marketing name * * \param dev - \c [in] Device handle. See #amdgpu_device_initialize() * * \return the constant string of the marketing name * "NULL" means the ASIC is not found */ const char *amdgpu_get_marketing_name (amdgpu_device_handle dev); +#ifdef __cplusplus +} +#endif +#endif /* #ifdef _AMDGPU_H_ */
Signature · 6 lines
2.9.3 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20170513210455.20552-1-nhaehnle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Quoted 6 lines · Nicolai Hähnle
From: Nicolai Hähnle <[email protected]>
Signed-off-by Nicolai Hähnle <[email protected]>--- amdgpu/amdgpu.h | 8 ++++++++ 1 file changed, 8 insertions(+)
This header is synchronized with the kernel, see include/drm/README.
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 552992b2-07e1-0414-056d-0b67ed568e09-otUistvHUpPR7s880joybQ@public.gmane.org
Michel Dänzer
Reviewed-byQuoted 9 lines · Michel Dänzer
Quoted 6 lines · Nicolai Hähnle
From: Nicolai Hähnle <[email protected]>
Signed-off-by Nicolai Hähnle <[email protected]>--- amdgpu/amdgpu.h | 8 ++++++++ 1 file changed, 8 insertions(+)This header is synchronized with the kernel, see
include/drm/README.
Sorry, brainfart.
Reviewed-by Michel Dänzer <[email protected]>
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx