Patch "staging: media: atomisp: Fix size_t format specifier in hmm_alloc() debug statemenet" has been added to the 5.10-stable tree

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

 



This is a note to let you know that I've just added the patch titled

    staging: media: atomisp: Fix size_t format specifier in hmm_alloc() debug statemenet

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     staging-media-atomisp-fix-size_t-format-specifier-in.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit ceac92acb21555d0131711ff91d850cb51206dd7
Author: Borislav Petkov <bp@xxxxxxx>
Date:   Thu Nov 26 19:11:50 2020 +0100

    staging: media: atomisp: Fix size_t format specifier in hmm_alloc() debug statemenet
    
    [ Upstream commit bfe21ef195a9f2785747e698dfd19f75554e2d91 ]
    
    Fix this build warning on 32-bit:
    
      drivers/staging/media/atomisp/pci/hmm/hmm.c: In function â??hmm_allocâ??:
      drivers/staging/media/atomisp/pci/hmm/hmm.c:272:3: warning: format â??%ldâ?? \
         expects argument of type â??long intâ??, but argument 6 has type â??size_t {aka unsigned int}â?? [-Wformat=]
         "%s: pages: 0x%08x (%ld bytes), type: %d from highmem %d, user ptr %p, cached %d\n",
         ^
    
    Fixes: 03884c93560c ("media: atomisp: add debug for hmm alloc")
    Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
    Cc: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
    Signed-off-by: Borislav Petkov <bp@xxxxxxx>
    Link: https://lore.kernel.org/r/20201126181150.10576-1-bp@xxxxxxxxx
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/staging/media/atomisp/pci/hmm/hmm.c b/drivers/staging/media/atomisp/pci/hmm/hmm.c
index e0eaff0f8a228..6a5ee46070898 100644
--- a/drivers/staging/media/atomisp/pci/hmm/hmm.c
+++ b/drivers/staging/media/atomisp/pci/hmm/hmm.c
@@ -269,7 +269,7 @@ ia_css_ptr hmm_alloc(size_t bytes, enum hmm_bo_type type,
 		hmm_set(bo->start, 0, bytes);
 
 	dev_dbg(atomisp_dev,
-		"%s: pages: 0x%08x (%ld bytes), type: %d from highmem %d, user ptr %p, cached %d\n",
+		"%s: pages: 0x%08x (%zu bytes), type: %d from highmem %d, user ptr %p, cached %d\n",
 		__func__, bo->start, bytes, type, from_highmem, userptr, cached);
 
 	return bo->start;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux