All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH libdrm] amdgpu: add missing extern "C" headers
@ 2017-05-13 21:04 Nicolai Hähnle
       [not found] ` <20170513210455.20552-1-nhaehnle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Nicolai Hähnle @ 2017-05-13 21:04 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Nicolai Hähnle

From: Nicolai Hähnle <nicolai.haehnle@amd.com>

Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
---
 amdgpu/amdgpu.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/amdgpu/amdgpu.h b/amdgpu/amdgpu.h
index fdea905..1901fa8 100644
--- a/amdgpu/amdgpu.h
+++ b/amdgpu/amdgpu.h
@@ -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_ */
-- 
2.9.3

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH libdrm] amdgpu: add missing extern "C" headers
       [not found] ` <20170513210455.20552-1-nhaehnle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2017-05-15  2:12   ` Michel Dänzer
       [not found]     ` <552992b2-07e1-0414-056d-0b67ed568e09-otUistvHUpPR7s880joybQ@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Michel Dänzer @ 2017-05-15  2:12 UTC (permalink / raw)
  To: Nicolai Hähnle
  Cc: Nicolai Hähnle, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On 14/05/17 06:04 AM, Nicolai Hähnle wrote:
> From: Nicolai Hähnle <nicolai.haehnle@amd.com>
> 
> Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
> ---
>  amdgpu/amdgpu.h | 8 ++++++++
>  1 file changed, 8 insertions(+)

This header is synchronized with the kernel, see include/drm/README.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH libdrm] amdgpu: add missing extern "C" headers
       [not found]     ` <552992b2-07e1-0414-056d-0b67ed568e09-otUistvHUpPR7s880joybQ@public.gmane.org>
@ 2017-05-15  2:39       ` Michel Dänzer
  0 siblings, 0 replies; 10+ messages in thread
From: Michel Dänzer @ 2017-05-15  2:39 UTC (permalink / raw)
  To: Nicolai Hähnle
  Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Nicolai Hähnle

On 15/05/17 11:12 AM, Michel Dänzer wrote:
> On 14/05/17 06:04 AM, Nicolai Hähnle wrote:
>> From: Nicolai Hähnle <nicolai.haehnle@amd.com>
>>
>> Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
>> ---
>>  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 <michel.daenzer@amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH libdrm] amdgpu: add missing extern "C" headers
       [not found]         ` <MWHPR1201MB00458FBE22404D8AF12A043EF2E10-3iK1xFAIwjq45V35fqe+hGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
@ 2017-05-15  6:47           ` Christian König
  0 siblings, 0 replies; 10+ messages in thread
From: Christian König @ 2017-05-15  6:47 UTC (permalink / raw)
  To: Xie, AlexBin, Michel Dänzer, Haehnle, Nicolai
  Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 1533 bytes --]

Michel you need more coffee :)

And yes, there are two header files. amdgpu_drm.h is the one synced from 
the kernel, amdgpu.h is the one local to libdrm.

Regards,
Christian.

Am 15.05.2017 um 04:39 schrieb Xie, AlexBin:
>
> Hi Michel,
>
>
> This patch was from Nicolai.
>
>
> Though there are two amdgpu.h, one header is in kernel and the other 
> header is in libdrm. But their content are irrelevant. They are not 
> synchronized.
>
>
> I think include/drm/README is not applicable to this case.
>
>
> Thanks,
>
> Alex Bin Xie
>
>
> ------------------------------------------------------------------------
> *From:* Michel Dänzer <michel-otUistvHUpPR7s880joybQ@public.gmane.org>
> *Sent:* Sunday, May 14, 2017 10:09 PM
> *To:* Xie, AlexBin; Haehnle, Nicolai
> *Cc:* amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
> *Subject:* Re: [PATCH libdrm] amdgpu: add missing extern "C" headers
> On 15/05/17 10:10 AM, Xie, AlexBin wrote:
> >  amdgpu/amdgpu.h | 8 ++++++++
> >  1 file changed, 8 insertions(+)
>
> This header is synchronized with the kernel, see include/drm/README.
>
>
> BTW, don't send patches for review as HTML. Ideally use git send-email.
>
>
> -- 
> Earthling Michel Dänzer               | http://www.amd.com 
> <http://www.amd.com>
> Libre software enthusiast             |             Mesa and X developer
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx



[-- Attachment #1.2: Type: text/html, Size: 4138 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH libdrm] amdgpu: add missing extern "C" headers
       [not found]     ` <5a6edb32-1899-697c-156b-ddeaeaa67147-otUistvHUpPR7s880joybQ@public.gmane.org>
  2017-05-15  2:11       ` Michel Dänzer
@ 2017-05-15  2:39       ` Xie, AlexBin
       [not found]         ` <MWHPR1201MB00458FBE22404D8AF12A043EF2E10-3iK1xFAIwjq45V35fqe+hGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
  1 sibling, 1 reply; 10+ messages in thread
From: Xie, AlexBin @ 2017-05-15  2:39 UTC (permalink / raw)
  To: Michel Dänzer, Haehnle, Nicolai
  Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 1024 bytes --]

Hi Michel,


This patch was from Nicolai.


Though there are two amdgpu.h, one header is in kernel and the other header is in libdrm. But their content are irrelevant. They are not synchronized.


I think include/drm/README is not applicable to this case.


Thanks,

Alex Bin Xie

________________________________
From: Michel Dänzer <michel-otUistvHUpPR7s880joybQ@public.gmane.org>
Sent: Sunday, May 14, 2017 10:09 PM
To: Xie, AlexBin; Haehnle, Nicolai
Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH libdrm] amdgpu: add missing extern "C" headers

On 15/05/17 10:10 AM, Xie, AlexBin wrote:
>  amdgpu/amdgpu.h | 8 ++++++++
>  1 file changed, 8 insertions(+)

This header is synchronized with the kernel, see include/drm/README.


BTW, don't send patches for review as HTML. Ideally use git send-email.


--
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer

[-- Attachment #1.2: Type: text/html, Size: 2312 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH libdrm] amdgpu: add missing extern "C" headers
       [not found]         ` <07b1120e-77d6-15fc-d155-f0ce9b6b2acc-otUistvHUpPR7s880joybQ@public.gmane.org>
@ 2017-05-15  2:34           ` Xie, AlexBin
  0 siblings, 0 replies; 10+ messages in thread
From: Xie, AlexBin @ 2017-05-15  2:34 UTC (permalink / raw)
  To: Michel Dänzer, Haehnle, Nicolai
  Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 900 bytes --]

Hi Michel,


It is fine. There is a glitch in my email client. The same email was sent twice, probably because I pressed a special key.


I am new to open source review method. Perhaps I did not make thing clear enough.



-Alex Bin Xie

________________________________
From: Michel Dänzer <michel-otUistvHUpPR7s880joybQ@public.gmane.org>
Sent: Sunday, May 14, 2017 10:11 PM
To: Xie, AlexBin; Haehnle, Nicolai
Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH libdrm] amdgpu: add missing extern "C" headers

On 15/05/17 11:09 AM, Michel Dänzer wrote:
>
> BTW, don't send patches for review as HTML. Ideally use git send-email.

Sorry Alex, I was confused and thought you sent the patch.


--
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer

[-- Attachment #1.2: Type: text/html, Size: 2300 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH libdrm] amdgpu: add missing extern "C" headers
       [not found]     ` <5a6edb32-1899-697c-156b-ddeaeaa67147-otUistvHUpPR7s880joybQ@public.gmane.org>
@ 2017-05-15  2:11       ` Michel Dänzer
       [not found]         ` <07b1120e-77d6-15fc-d155-f0ce9b6b2acc-otUistvHUpPR7s880joybQ@public.gmane.org>
  2017-05-15  2:39       ` Xie, AlexBin
  1 sibling, 1 reply; 10+ messages in thread
From: Michel Dänzer @ 2017-05-15  2:11 UTC (permalink / raw)
  To: Xie, AlexBin, Haehnle, Nicolai; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On 15/05/17 11:09 AM, Michel Dänzer wrote:
> 
> BTW, don't send patches for review as HTML. Ideally use git send-email.

Sorry Alex, I was confused and thought you sent the patch.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH libdrm] amdgpu: add missing extern "C" headers
       [not found] ` <MWHPR1201MB0045E9D90A0D03FCCFBF7BC1F2E10-3iK1xFAIwjq45V35fqe+hGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
@ 2017-05-15  2:09   ` Michel Dänzer
       [not found]     ` <5a6edb32-1899-697c-156b-ddeaeaa67147-otUistvHUpPR7s880joybQ@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Michel Dänzer @ 2017-05-15  2:09 UTC (permalink / raw)
  To: Xie, AlexBin, Haehnle, Nicolai; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On 15/05/17 10:10 AM, Xie, AlexBin wrote:
>  amdgpu/amdgpu.h | 8 ++++++++
>  1 file changed, 8 insertions(+)

This header is synchronized with the kernel, see include/drm/README.


BTW, don't send patches for review as HTML. Ideally use git send-email.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH libdrm] amdgpu: add missing extern "C" headers
@ 2017-05-15  1:10 Xie, AlexBin
       [not found] ` <MWHPR1201MB0045E9D90A0D03FCCFBF7BC1F2E10-3iK1xFAIwjq45V35fqe+hGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Xie, AlexBin @ 2017-05-15  1:10 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Haehnle, Nicolai


[-- Attachment #1.1: Type: text/plain, Size: 1421 bytes --]

 amdgpu/amdgpu.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/amdgpu/amdgpu.h b/amdgpu/amdgpu.h
index fdea905..1901fa8 100644
--- a/amdgpu/amdgpu.h
+++ b/amdgpu/amdgpu.h
@@ -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_ */
--
2.9.3


Reviewed by: Alex Xie <AlexBin.Xie-5C7GfCeVMHo@public.gmane.org>



[-- Attachment #1.2: Type: text/html, Size: 2620 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH libdrm] amdgpu: add missing extern "C" headers
       [not found] ` <mailman.39.1494763203.10449.amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
@ 2017-05-15  1:06   ` Xie, AlexBin
  0 siblings, 0 replies; 10+ messages in thread
From: Xie, AlexBin @ 2017-05-15  1:06 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Haehnle, Nicolai


[-- Attachment #1.1: Type: text/plain, Size: 1421 bytes --]

 amdgpu/amdgpu.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/amdgpu/amdgpu.h b/amdgpu/amdgpu.h
index fdea905..1901fa8 100644
--- a/amdgpu/amdgpu.h
+++ b/amdgpu/amdgpu.h
@@ -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_ */
--
2.9.3


Reviewed by: Alex Xie <AlexBin.Xie-5C7GfCeVMHo@public.gmane.org>



[-- Attachment #1.2: Type: text/html, Size: 2620 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-05-15  6:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-13 21:04 [PATCH libdrm] amdgpu: add missing extern "C" headers Nicolai Hähnle
     [not found] ` <20170513210455.20552-1-nhaehnle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-15  2:12   ` Michel Dänzer
     [not found]     ` <552992b2-07e1-0414-056d-0b67ed568e09-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-05-15  2:39       ` Michel Dänzer
     [not found] <mailman.39.1494763203.10449.amd-gfx@lists.freedesktop.org>
     [not found] ` <mailman.39.1494763203.10449.amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
2017-05-15  1:06   ` Xie, AlexBin
2017-05-15  1:10 Xie, AlexBin
     [not found] ` <MWHPR1201MB0045E9D90A0D03FCCFBF7BC1F2E10-3iK1xFAIwjq45V35fqe+hGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-05-15  2:09   ` Michel Dänzer
     [not found]     ` <5a6edb32-1899-697c-156b-ddeaeaa67147-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-05-15  2:11       ` Michel Dänzer
     [not found]         ` <07b1120e-77d6-15fc-d155-f0ce9b6b2acc-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-05-15  2:34           ` Xie, AlexBin
2017-05-15  2:39       ` Xie, AlexBin
     [not found]         ` <MWHPR1201MB00458FBE22404D8AF12A043EF2E10-3iK1xFAIwjq45V35fqe+hGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-05-15  6:47           ` Christian König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.