Thread (29 messages) 29 messages, 6 authors, 1d ago

Re: [PATCH v3 05/20] driver core: update kerneldoc for platform_device_alloc()

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2026-07-08 11:12:17
Also in: dri-devel, driver-core, imx, intel-xe, linux-arm-msm, linux-devicetree, linux-i2c, linux-iommu, linux-mips, linux-pm, linux-sound, linux-usb, linuxppc-dev, lkml, platform-driver-x86

On Wed, Jul 08, 2026 at 12:42:58AM -0700, Bartosz Golaszewski wrote:
On Tue, 7 Jul 2026 18:05:29 +0200, Andy Shevchenko
[off-list ref] said:
quoted
On Mon, Jul 06, 2026 at 02:44:17PM +0200, Bartosz Golaszewski wrote:
quoted
Users of platform_device_alloc() + platform_device_add() must not modify
certain fields of the dynamically created platform device object. Update
the kernel doc to say which fields are affected and which functions to
use.
Consider using __private checker attribute for them as well. It will make
sparse scream.
Sure but let's leave it for another series.
Sure, just a side note comment that you know that we have some facilities for
that type of problems.

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help