lkml.org 
[lkml]   [2023]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH-next] crypto: aspeed: fix type warnings
    On Thu, Feb 02, 2023 at 03:23:29AM +0000, Neal Liu wrote:
    >
    > I cannot tell which way is better. Do you prefer to keep the iomem marker?

    The whole point of iomem is to prevent you from directly
    dereferencing that memory. So casting it away to remove the
    warning simply defeats its purpose.

    If you're worried about the overhead of readb perhaps you can
    look into readb_relaxed after considering the effects of the
    barriers.

    Cheers,
    --
    Email: Herbert Xu <herbert@gondor.apana.org.au>
    Home Page: http://gondor.apana.org.au/~herbert/
    PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

    \
     
     \ /
      Last update: 2023-03-27 00:06    [W:3.448 / U:0.152 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site