Patch "drm/bridge: ps8640: Fix size mismatch warning w/ len" has been added to the 6.6-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

    drm/bridge: ps8640: Fix size mismatch warning w/ len

to the 6.6-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:
     drm-bridge-ps8640-fix-size-mismatch-warning-w-len.patch
and it can be found in the queue-6.6 subdirectory.

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



commit 60f7fe0dba377efda73d4153e89f62b6df1869d6
Author: Douglas Anderson <dianders@xxxxxxxxxxxx>
Date:   Mon Dec 18 09:04:54 2023 -0800

    drm/bridge: ps8640: Fix size mismatch warning w/ len
    
    [ Upstream commit 35ba6bd582cf926a082296b7e9a876ec81136cb1 ]
    
    After commit 26195af57798 ("drm/bridge: ps8640: Drop the ability of
    ps8640 to fetch the EDID"), I got an error compiling:
    
      error: comparison of distinct pointer types
      ('typeof (len) *' (aka 'unsigned int *') and
       'typeof (msg->size) *' (aka 'unsigned long *'))
      [-Werror,-Wcompare-distinct-pointer-types]
    
    Fix it by declaring the `len` as size_t.
    
    The above error only shows up on downstream kernels without commit
    d03eba99f5bf ("minmax: allow min()/max()/clamp() if the arguments have
    the same signedness."), but since commit 26195af57798 ("drm/bridge:
    ps8640: Drop the ability of ps8640 to fetch the EDID") is a "Fix" that
    will likely be backported it seems nice to make it easy. ...plus it's
    more correct to declare `len` as size_t anyway.
    
    Fixes: 26195af57798 ("drm/bridge: ps8640: Drop the ability of ps8640 to fetch the EDID")
    Reviewed-by: Stephen Boyd <swboyd@xxxxxxxxxxxx>
    Signed-off-by: Douglas Anderson <dianders@xxxxxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20231218090454.1.I5c6eb80b2f746439c4b58efab788e00701d08759@changeid
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/bridge/parade-ps8640.c b/drivers/gpu/drm/bridge/parade-ps8640.c
index d264b80d909de..541e4f5afc4c8 100644
--- a/drivers/gpu/drm/bridge/parade-ps8640.c
+++ b/drivers/gpu/drm/bridge/parade-ps8640.c
@@ -210,7 +210,7 @@ static ssize_t ps8640_aux_transfer_msg(struct drm_dp_aux *aux,
 	struct ps8640 *ps_bridge = aux_to_ps8640(aux);
 	struct regmap *map = ps_bridge->regmap[PAGE0_DP_CNTL];
 	struct device *dev = &ps_bridge->page[PAGE0_DP_CNTL]->dev;
-	unsigned int len = msg->size;
+	size_t len = msg->size;
 	unsigned int data;
 	unsigned int base;
 	int ret;




[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