drm/radeon: Remove __counted_by from ClockInfoArray.clockInfo[]
Subsystems (2)
Alex Deucher
maintainerPATCH 1/1 drm/radeon: Remove __counted_by from ClockInfoArray.clockInfo[]
clockInfo[] is a generic uchar pointer to variable sized structures which vary from ASIC to ASIC.
--- drivers/gpu/drm/radeon/pptable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/pptable.h +1 -1
@@ -450,7 +450,7 @@ typedef struct _ClockInfoArray{//sizeof(ATOM_PPLIB_CLOCK_INFO) UCHAR ucEntrySize; - UCHAR clockInfo[] __counted_by(ucNumEntries); +UCHAR clockInfo[]/*__counted_by(ucNumEntries)*/ ; }ClockInfoArray; typedef struct _NonClockInfoArray{
Signature · 1 line
2.52.0
Quoted 5 lines · Alex Deucher
clockInfo[] is a generic uchar pointer to variable sized structures which vary from ASIC to ASIC.
Signed-off-by Alex Deucher <[email protected]>
There is one more -
https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/radeon/pptable.h#L463
Thanks,
Lijo
Quoted 17 lines
--- drivers/gpu/drm/radeon/pptable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/pptable.h +1
-1@@ -450,7 +450,7 @@ typedef struct _ClockInfoArray{//sizeof(ATOM_PPLIB_CLOCK_INFO) UCHAR ucEntrySize; - UCHAR clockInfo[] __counted_by(ucNumEntries); +UCHAR clockInfo[]/*__counted_by(ucNumEntries)*/ ; }ClockInfoArray; typedef struct _NonClockInfoArray{
Quoted 6 lines · Lijo
Quoted 3 lines · Alex Deucher
clockInfo[] is a generic uchar pointer to variable sized structures which vary from ASIC to ASIC.
Quoted 8 lines
Quoted 2 lines
Signed-off-by Alex Deucher <[email protected]>Reviewed-by Lijo Lazar <[email protected]>There is one more -
https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/radeon/ pptable.h#L463
Please ignore. False alarm, has the right datatype.
Thanks,
Lijo
Quoted 19 lines
Thanks,
LijoQuoted 15 lines
---
drivers/gpu/drm/radeon/pptable.h| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/pptable.h +1
-1@@ -450,7 +450,7 @@ typedef struct _ClockInfoArray{ //sizeof(ATOM_PPLIB_CLOCK_INFO) UCHAR ucEntrySize; - UCHAR clockInfo[] __counted_by(ucNumEntries); + UCHAR clockInfo[] /*__counted_by(ucNumEntries)*/; }ClockInfoArray; typedef struct _NonClockInfoArray{
Quoted 13 lines · Lijo
Quoted 9 lines · Lijo
Quoted 5 lines · Alex Deucher
clockInfo[] is a generic uchar pointer to variable sized structures which vary from ASIC to ASIC.
Signed-off-by Alex Deucher <[email protected]>
Quoted 8 lines
Quoted 6 lines
Reviewed-by Lijo Lazar <[email protected]>There is one more -
https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/radeon/
pptable.h#L463Please ignore. False alarm, has the right datatype.
Right. Thanks!
Quoted 25 lines
Thanks,
LijoQuoted 20 lines
Thanks,
LijoQuoted 16 lines
--- drivers/gpu/drm/radeon/pptable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/ renamed from drivers/gpu/drm/radeon/pptable.h +0
-0
radeon/pptable.h
index969a8fb0ee9e0..f4e71046dc91c100644drivers/gpu/drm/radeon/pptable.h +1
-1@@ -450,7 +450,7 @@ typedef struct _ClockInfoArray{//sizeof(ATOM_PPLIB_CLOCK_INFO) UCHAR ucEntrySize; - UCHAR clockInfo[] __counted_by(ucNumEntries); +UCHAR clockInfo[]/*__counted_by(ucNumEntries)*/ ; }ClockInfoArray; typedef struct _NonClockInfoArray{
Quoted 7 lines · Lijo
Quoted 3 lines · Alex Deucher
clockInfo[] is a generic uchar pointer to variable sized structures which vary from ASIC to ASIC.
Quoted 7 lines
Quoted 2 lines
Signed-off-by Alex Deucher <[email protected]>Reviewed-by Lijo Lazar <[email protected]>There is one more -
https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/radeon/pptable.h#L463
Thanks, I'll squash that one in too.
Alex
Quoted 22 lines
Thanks,
LijoQuoted 17 lines
--- drivers/gpu/drm/radeon/pptable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/pptable.h +1
-1@@ -450,7 +450,7 @@ typedef struct _ClockInfoArray{//sizeof(ATOM_PPLIB_CLOCK_INFO) UCHAR ucEntrySize; - UCHAR clockInfo[] __counted_by(ucNumEntries); +UCHAR clockInfo[]/*__counted_by(ucNumEntries)*/ ; }ClockInfoArray; typedef struct _NonClockInfoArray{