Re: [PATCH 1/1] drm/radeon: fix compilation error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2/16/21 4:23 PM, Christian König wrote:


Am 16.02.21 um 16:22 schrieb Nirmoy Das:
Fixes below compilation error:
conflicting types for ‘r100_debugfs_mc_info_init’

Fixes: 6f8672d6523bfe38e ("drm/radeon: do not use drm middle layer for
debugfs")
Signed-off-by: Nirmoy Das <nirmoy.das@xxxxxxx>
Reported-by: Mark Broadworth <Mark.Broadworth@xxxxxxx>

Reviewed-by: Christian König <christian.koenig@xxxxxxx>

---
Hi Alex,

Can you please squash this with the "Fixes" commit.
I am not sure how I missed it.
I even tested the patch with my radeon card before pushing.

Strange I'm pretty sure I've seen those lines in the original patch.


That hunk is actually missing from the original patch too but there

are multiple similar hunks.


I know what happened: I use "rsync -u .." to fast sync linux source with

the test machine. I think I accidentally fixed some compilation errors for

r100_debugfs_mc_info_init() in the test machine instead of the devel machine.

"rsync -u" wouldn't replace newer files in the dest machine leaving a correct/working

copy in the test machine but incorrect one in the devel machine from where I created the

patch.


Regards,

Nirmoy


Christian.


  drivers/gpu/drm/radeon/r300.c        | 6 +-----
  drivers/gpu/drm/radeon/radeon_asic.h | 2 +-
  2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c
index 03b0d4a81f7a..92643dfdd8a8 100644
--- a/drivers/gpu/drm/radeon/r300.c
+++ b/drivers/gpu/drm/radeon/r300.c
@@ -1326,12 +1326,8 @@ void r300_set_reg_safe(struct radeon_device *rdev)
  void r300_mc_program(struct radeon_device *rdev)
  {
      struct r100_mc_save save;
-    int r;

-    r = r100_debugfs_mc_info_init(rdev);
-    if (r) {
-        dev_err(rdev->dev, "Failed to create r100_mc debugfs file.\n");
-    }
+    r100_debugfs_mc_info_init(rdev);

      /* Stops all mc clients */
      r100_mc_stop(rdev, &save);
diff --git a/drivers/gpu/drm/radeon/radeon_asic.h b/drivers/gpu/drm/radeon/radeon_asic.h
index 2c77f151ef62..1cf2a5e0d91d 100644
--- a/drivers/gpu/drm/radeon/radeon_asic.h
+++ b/drivers/gpu/drm/radeon/radeon_asic.h
@@ -108,7 +108,7 @@ int r100_pci_gart_init(struct radeon_device *rdev);
  void r100_pci_gart_fini(struct radeon_device *rdev);
  int r100_pci_gart_enable(struct radeon_device *rdev);
  void r100_pci_gart_disable(struct radeon_device *rdev);
-int r100_debugfs_mc_info_init(struct radeon_device *rdev);
+void  r100_debugfs_mc_info_init(struct radeon_device *rdev);
  int r100_gui_wait_for_idle(struct radeon_device *rdev);
  int r100_ib_test(struct radeon_device *rdev, struct radeon_ring *ring);
  void r100_irq_disable(struct radeon_device *rdev);
--
2.30.0


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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux