[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z88C7ZzM88skw+qr@pc>
Date: Mon, 10 Mar 2025 16:19:09 +0100
From: Salah Triki <salah.triki@...il.com>
To: Christian König <christian.koenig@....com>
Cc: Felix Kuehling <felix.kuehling@....com>,
Alex Deucher <alexander.deucher@....com>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm: amdkfd: Replace (un)register_chrdev() by
(unregister/alloc)_chrdev_region()
> > register_chrdev() registers 256 minor numbers, calling it will result in
> > calling kmalloc_array(256, sizeof(struct probe), GFP_KERNEL) whereas
> > calling alloc_chrdev_region() with count parameter equals to 1, which is
> > the number of minor numbers requested, will result in calling
> > kmalloc_array(1, sizeof(stuct probe), GFP_KERNEL).
> >
Is it worth replacing register_chrdev() by alloc_chrdev_region() for
this ? If so I will change the patch description.
Best Regards,
Salah Triki
Powered by blists - more mailing lists