# Re: \[PATCH v3 05/20\] driver core: update kerneldoc for platform\_device\_alloc()

- From: Andy Shevchenko \<andriy.shevchenko@linux.intel.com\>
- Date: 2026-07-07 16:05:58 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/07/17226280
- Thread: https://ratatoskr.run/netdev/2026/07/17218951/t.md

```text
On Mon, Jul 06, 2026 at 02:44:17PM +0200, Bartosz Golaszewski wrote:
> 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.

> Suggested-by: Manuel Ebner <redacted>
> Signed-off-by: Bartosz Golaszewski <redacted>

-- 
With Best Regards,
Andy Shevchenko



```
