On Fri, Sep 29, 2023 at 09:43:03AM +0300, Dan Carpenter wrote: > I don't know anything which would warn about this. Generally, in the > kernel we try to avoid casts but perhaps there was a static checker > which likes casts? > > If removing these sorts of casts were an issue we would have known by > now. Thinking about it more, if this caused a static checker warning then probably every kmalloc() would need a cast. regards, dan carpenter