Re: [PATCH] dma-buf: Remove unnecessary kmalloc() cast

2024-07-03 Thread Suren Baghdasaryan
On Tue, Jul 2, 2024 at 8:15 AM Suren Baghdasaryan wrote: > > On Tue, Jul 2, 2024 at 7:34 AM Andrew Morton > wrote: > > > > On Tue, 2 Jul 2024 09:13:35 +0200 Christian König > > wrote: > > > > > yes that is > > > intentionally a define and not an inline function. > > > > > > See this patch here

Re: [PATCH] dma-buf: Remove unnecessary kmalloc() cast

2024-07-02 Thread Suren Baghdasaryan
On Tue, Jul 2, 2024 at 7:34 AM Andrew Morton wrote: > > On Tue, 2 Jul 2024 09:13:35 +0200 Christian König > wrote: > > > yes that is > > intentionally a define and not an inline function. > > > > See this patch here which changed that: > > > > commit 2c321f3f70bc284510598f712b702ce8d60c4d14 > >

Re: [PATCH] dma-buf: Remove unnecessary kmalloc() cast

2024-07-02 Thread Andrew Morton
On Tue, 2 Jul 2024 09:13:35 +0200 Christian König wrote: > yes that is > intentionally a define and not an inline function. > > See this patch here which changed that: > > commit 2c321f3f70bc284510598f712b702ce8d60c4d14 > Author: Suren Baghdasaryan > Date:   Sun Apr 14 19:07:31 2024 -0700 >

Re: [PATCH] dma-buf: Remove unnecessary kmalloc() cast

2024-07-02 Thread Christian König
Am 02.07.24 um 08:40 schrieb Christoph Hellwig: On Mon, Jul 01, 2024 at 11:26:34PM -0700, Andrew Morton wrote: No, I do think the cast is useful: struct page *page = dma_fence_chain_alloc(); will presently generate a warning. We want this. Your change will remove that useful warning.