Skip to contentSkip to conversation

drm/amd/display: Remove duplicate include of hubp.h

PATCH In review Wan Jiabing 3 participants 6 messages Apr 29, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/display: Remove duplicate include of hubp.h

In commit 482812d56698e ("drm/amd/display: Set max TTU on DPG enable"), "hubp.h" was added which caused the duplicate include. To be on the safe side, remove the later duplicate include.

---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +0 -1
index 8f0a13807d05..dcaa6b1e16af 100644
@@ -58,7 +58,6 @@
 #include "dc_link_ddc.h"
 #include "dm_helpers.h"
 #include "mem_input.h"
-#include "hubp.h"
 
 #include "dc_link_dp.h"
 #include "dc_dmub_srv.h"
Signature · 6 lines
2.25.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw

Nice catch!

Are you using any tool to identify this problem?

Quoted 24 lines · Wan Jiabing

In commit 482812d56698e ("drm/amd/display: Set max TTU on DPG enable"), "hubp.h" was added which caused the duplicate include. To be on the safe side, remove the later duplicate include.

---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +0 -1
index 8f0a13807d05..dcaa6b1e16af 100644
@@ -58,7 +58,6 @@
 #include "dc_link_ddc.h"
 #include "dm_helpers.h"
 #include "mem_input.h"
-#include "hubp.h"
 
 #include "dc_link_dp.h"
 #include "dc_dmub_srv.h"
Signature · 1 line
2.25.1
Signature · 2 lines
Rodrigo Siqueira
https://siqueira.tech

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#2 lore raw
Quoted 4 lines

Nice catch!

Are you using any tool to identify this problem?

Yes, I have a robot including many detecting scripts :)

Quoted 22 lines
Quoted 19 lines · Wan Jiabing

In commit 482812d56698e ("drm/amd/display: Set max TTU on DPG enable"), "hubp.h" was added which caused the duplicate include. To be on the safe side, remove the later duplicate include.

---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +0 -1
index 8f0a13807d05..dcaa6b1e16af 100644
@@ -58,7 +58,6 @@
 #include "dc_link_ddc.h"
 #include "dm_helpers.h"
 #include "mem_input.h"
-#include "hubp.h"
 
Quoted 9 lines
Quoted 5 lines
drivers/gpu/drm/amd/display/dc/core/dc.c +0 -0
 #include "dc_link_dp.h"
 #include "dc_dmub_srv.h"
Signature · 1 line
2.25.1
Signature · 2 lines
Rodrigo Siqueira
https://siqueira.tech

Yours,
Wan Jiabing

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

Is your robot public available?

btw, applied to amd-staging-drm-next.

Thanks

Quoted 42 lines · Jiabing Wan
Quoted 4 lines

Nice catch!

Are you using any tool to identify this problem?

Yes, I have a robot including many detecting scripts :)

Quoted 22 lines
Quoted 19 lines · Wan Jiabing

In commit 482812d56698e ("drm/amd/display: Set max TTU on DPG enable"), "hubp.h" was added which caused the duplicate include. To be on the safe side, remove the later duplicate include.

---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +0 -1
index 8f0a13807d05..dcaa6b1e16af 100644
@@ -58,7 +58,6 @@
 #include "dc_link_ddc.h"
 #include "dm_helpers.h"
 #include "mem_input.h"
-#include "hubp.h"
 
Quoted 9 lines
Quoted 5 lines
drivers/gpu/drm/amd/display/dc/core/dc.c +0 -0
 #include "dc_link_dp.h"
 #include "dc_dmub_srv.h"
Signature · 1 line
2.25.1
Signature · 2 lines
Rodrigo Siqueira
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsiqueira.tech%2F&data=04%7C01%7CRodrigo.Siqueira%40amd.com%7Cb8ff161b3a904a49e59808d90b0991d9%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637552958013669698%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=I7AtEiOlzUuRQag7uAuArUvfd64l1b3gstq7ZTeucik%3D&reserved=0

Yours,
Wan Jiabing

Signature · 2 lines
Rodrigo Siqueira
https://siqueira.tech

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
Quoted 2 lines

Is your robot public available?

Sorry, I started to write the robot just one week ago.
It is not strong and complete enough so it is not public available now. But I am still working on it. If complete, it can be public available.

In fact, this patch is catched by the script called checkinclude.pl in linux/script. The robot just run the script and catch it ;).

There will be more scripts in the robot and I think it will be public available soon.

Quoted 1 line

btw, applied to amd-staging-drm-next.

Thank you very much.

Quoted 42 lines

Thanks

Quoted 39 lines · Jiabing Wan
Quoted 4 lines

Nice catch!

Are you using any tool to identify this problem?

Yes, I have a robot including many detecting scripts :)

Quoted 31 lines
Quoted 24 lines · Wan Jiabing

In commit 482812d56698e ("drm/amd/display: Set max TTU on DPG enable"), "hubp.h" was added which caused the duplicate include. To be on the safe side, remove the later duplicate include.

---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +0 -1
index 8f0a13807d05..dcaa6b1e16af 100644
@@ -58,7 +58,6 @@
 #include "dc_link_ddc.h"
 #include "dm_helpers.h"
 #include "mem_input.h"
-#include "hubp.h"
 
 #include "dc_link_dp.h"
 #include "dc_dmub_srv.h"
Signature · 1 line
2.25.1
Signature · 2 lines
Rodrigo Siqueira
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsiqueira.tech%2F&data=04%7C01%7CRodrigo.Siqueira%40amd.com%7Cb8ff161b3a904a49e59808d90b0991d9%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637552958013669698%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=I7AtEiOlzUuRQag7uAuArUvfd64l1b3gstq7ZTeucik%3D&reserved=0
Quoted 7 lines
Quoted 3 lines

Yours,
Wan Jiabing

Signature · 2 lines
Rodrigo Siqueira
https://siqueira.tech

Yours,
Wan Jiabing

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

maintainer
#5 lore raw

Well if you are bored we quite often have the problem of unused fields in structures.

If your robot could find fields which are never read, that would be quite helpful I think.

There probably will be a lot of false positives for things like padding, but maybe that yields something.

Christian.

Am 29.04.21 um 17:18 schrieb Jiabing Wan:

Quoted 53 lines
Quoted 2 lines

Is your robot public available?

Sorry, I started to write the robot just one week ago.
It is not strong and complete enough so it is not public available now. But I am still working on it. If complete, it can be public available.

In fact, this patch is catched by the script called checkinclude.pl in linux/script. The robot just run the script and catch it ;).

There will be more scripts in the robot and I think it will be public available soon.

Quoted 1 line

btw, applied to amd-staging-drm-next.

Thank you very much.

Quoted 38 lines

Thanks

Quoted 36 lines · Jiabing Wan
Quoted 4 lines

Nice catch!

Are you using any tool to identify this problem?

Yes, I have a robot including many detecting scripts :)

Quoted 30 lines
Quoted 24 lines · Wan Jiabing

In commit 482812d56698e ("drm/amd/display: Set max TTU on DPG enable"), "hubp.h" was added which caused the duplicate include. To be on the safe side, remove the later duplicate include.

---
  drivers/gpu/drm/amd/display/dc/core/dc.c | 1 -
  1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +0 -1
index 8f0a13807d05..dcaa6b1e16af 100644
@@ -58,7 +58,6 @@
  #include "dc_link_ddc.h"
  #include "dm_helpers.h"
  #include "mem_input.h"
-#include "hubp.h"
 
  #include "dc_link_dp.h"
  #include "dc_dmub_srv.h"
Signature · 1 line
2.25.1
Signature · 2 lines
Rodrigo Siqueira
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsiqueira.tech%2F&data=04%7C01%7Cchristian.koenig%40amd.com%7C99075b6ba68a4c6d4f9108d90b220472%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637553063002111816%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=U5VbADSJ8HJ%2Bq%2BPCGYmCuwks61s5GZtCI4n%2BdjT0LXc%3D&reserved=0
Quoted 10 lines
Quoted 6 lines
Quoted 3 lines

Yours,
Wan Jiabing

Signature · 2 lines
Rodrigo Siqueira
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsiqueira.tech%2F&data=04%7C01%7Cchristian.koenig%40amd.com%7C99075b6ba68a4c6d4f9108d90b220472%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637553063002111816%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=U5VbADSJ8HJ%2Bq%2BPCGYmCuwks61s5GZtCI4n%2BdjT0LXc%3D&reserved=0

Yours,
Wan Jiabing

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel