drm/panthor: Remove dead code
Subsystems (3)
PATCH 1/1 drm/panthor: Remove dead code
Remove unused function declaration in panthor_gem.h:
- panthor_gem_prime_import_sg_table()
Remove duplicate macro definitions:
- MAX_CSG_PRIO
- MIN_CS_PER_CSG
- MIN_CSGS
Signed-off-by Florent Tomasin <[email protected]>
--- drivers/gpu/drm/panthor/panthor_fw.c | 1 - drivers/gpu/drm/panthor/panthor_gem.h | 5 ----- drivers/gpu/drm/panthor/panthor_sched.c | 3 --- 3 files changed, 9 deletions(-)
drivers/gpu/drm/panthor/panthor_fw.c +0 -1
@@ -201,7 +201,6 @@ struct panthor_fw_section {#define MIN_CS_PER_CSG 8#define MIN_CSGS 3 -#define MAX_CSG_PRIO 0xf#define CSF_IFACE_VERSION (major, minor, patch) \ (((major) << 24) | ((minor) << 16) | (patch))
drivers/gpu/drm/panthor/panthor_gem.h +0 -5
@@ -85,11 +85,6 @@ struct panthor_gem_object *to_panthor_bo(struct drm_gem_object *obj)struct drm_gem_object *panthor_gem_create_object (struct drm_device *ddev,size_t size); -struct drm_gem_object * -panthor_gem_prime_import_sg_table (struct drm_device *ddev, -struct dma_buf_attachment *attach, -struct sg_table *sgt); - int panthor_gem_create_with_handle(struct drm_file *file, struct drm_device *ddev,
drivers/gpu/drm/panthor/panthor_sched.c +0 -3
@@ -88,9 +88,6 @@#define JOB_TIMEOUT_MS 5000 -#define MIN_CS_PER_CSG 8 - -#define MIN_CSGS 3#define MAX_CSG_PRIO 0xf#define NUM_INSTRS_PER_CACHE_LINE (64 / sizeof(u64))
Signature · 1 line
2.34.1
Quoted 9 lines · On Tue, 7 Jan 2025 17:33:09 +0000 Florent Tomasin <[email protected]>…
Remove unused function declaration in
panthor_gem.h:
-panthor_gem_prime_import_sg_table()Remove duplicate macro definitions:
-MAX_CSG_PRIO
-MIN_CS_PER_CSG
-MIN_CSGSSigned-off-by Florent Tomasin <[email protected]>
Reviewed-by Boris Brezillon <[email protected]>
Quoted 48 lines
--- drivers/gpu/drm/panthor/panthor_fw.c | 1 - drivers/gpu/drm/panthor/panthor_gem.h | 5 ----- drivers/gpu/drm/panthor/panthor_sched.c | 3 --- 3 files changed, 9 deletions(-)drivers/gpu/drm/panthor/panthor_fw.c +0
-1@@ -201,7 +201,6 @@ struct panthor_fw_section {#define MIN_CS_PER_CSG 8#define MIN_CSGS 3 -#define MAX_CSG_PRIO 0xf#define CSF_IFACE_VERSION (major, minor, patch) \ (((major) << 24) | ((minor) << 16) | (patch))drivers/gpu/drm/panthor/panthor_gem.h +0
-5@@ -85,11 +85,6 @@ struct panthor_gem_object *to_panthor_bo(struct drm_gem_object *obj)struct drm_gem_object *panthor_gem_create_object (struct drm_device *ddev,size_t size); -struct drm_gem_object * -panthor_gem_prime_import_sg_table (struct drm_device *ddev, -struct dma_buf_attachment *attach, -struct sg_table *sgt); - int panthor_gem_create_with_handle(struct drm_file *file, struct drm_device *ddev,drivers/gpu/drm/panthor/panthor_sched.c +0
-3@@ -88,9 +88,6 @@#define JOB_TIMEOUT_MS 5000 -#define MIN_CS_PER_CSG 8 - -#define MIN_CSGS 3#define MAX_CSG_PRIO 0xf#define NUM_INSTRS_PER_CACHE_LINE (64 / sizeof(u64))
Quoted 9 lines · Florent Tomasin
Remove unused function declaration in
panthor_gem.h:
-panthor_gem_prime_import_sg_table()Remove duplicate macro definitions:
-MAX_CSG_PRIO
-MIN_CS_PER_CSG
-MIN_CSGSSigned-off-by Florent Tomasin <[email protected]>
Reviewed-by Steven Price <[email protected]>
Quoted 48 lines
--- drivers/gpu/drm/panthor/panthor_fw.c | 1 - drivers/gpu/drm/panthor/panthor_gem.h | 5 ----- drivers/gpu/drm/panthor/panthor_sched.c | 3 --- 3 files changed, 9 deletions(-)drivers/gpu/drm/panthor/panthor_fw.c +0
-1@@ -201,7 +201,6 @@ struct panthor_fw_section {#define MIN_CS_PER_CSG 8#define MIN_CSGS 3 -#define MAX_CSG_PRIO 0xf#define CSF_IFACE_VERSION (major, minor, patch) \ (((major) << 24) | ((minor) << 16) | (patch))drivers/gpu/drm/panthor/panthor_gem.h +0
-5@@ -85,11 +85,6 @@ struct panthor_gem_object *to_panthor_bo(struct drm_gem_object *obj)struct drm_gem_object *panthor_gem_create_object (struct drm_device *ddev,size_t size); -struct drm_gem_object * -panthor_gem_prime_import_sg_table (struct drm_device *ddev, -struct dma_buf_attachment *attach, -struct sg_table *sgt); - int panthor_gem_create_with_handle(struct drm_file *file, struct drm_device *ddev,drivers/gpu/drm/panthor/panthor_sched.c +0
-3@@ -88,9 +88,6 @@#define JOB_TIMEOUT_MS 5000 -#define MIN_CS_PER_CSG 8 - -#define MIN_CSGS 3#define MAX_CSG_PRIO 0xf#define NUM_INSTRS_PER_CACHE_LINE (64 / sizeof(u64))