lkml.org 
[lkml]   [2018]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 4.14 77/89] ALSA: riptide: Properly endian notations
    Date
    From: Takashi Iwai <tiwai@suse.de>

    [ Upstream commit be05e3de3a933156d472127f659d4473c461dcc5 ]

    The SG descriptor of Riptide contains the little-endian values, hence
    we need to define with __le32 properly. This fixes sparse warnings
    like:
    sound/pci/riptide/riptide.c:1112:40: warning: cast to restricted __le32

    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
    ---
    sound/pci/riptide/riptide.c | 8 ++++----
    1 file changed, 4 insertions(+), 4 deletions(-)

    diff --git a/sound/pci/riptide/riptide.c b/sound/pci/riptide/riptide.c
    index 44f3b48d47b1..39a96a873951 100644
    --- a/sound/pci/riptide/riptide.c
    +++ b/sound/pci/riptide/riptide.c
    @@ -470,10 +470,10 @@ struct snd_riptide {
    };

    struct sgd { /* scatter gather desriptor */
    - u32 dwNextLink;
    - u32 dwSegPtrPhys;
    - u32 dwSegLen;
    - u32 dwStat_Ctl;
    + __le32 dwNextLink;
    + __le32 dwSegPtrPhys;
    + __le32 dwSegLen;
    + __le32 dwStat_Ctl;
    };

    struct pcmhw { /* pcm descriptor */
    --
    2.17.1
    \
     
     \ /
      Last update: 2018-09-02 15:11    [W:4.126 / U:0.088 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site