Linux Documentation
 help / color / mirror / Atom feed
* [PATCH 00/10] treewide: switch to __nonnull_args() macro
@ 2026-10-28  8:19 Dmitry Ilvokhin
  2026-10-28  8:19 ` [PATCH 01/10] docs: xforms_lists: support __nonnull_args() Dmitry Ilvokhin
                   ` (9 more replies)
  0 siblings, 10 replies; 19+ messages in thread
From: Dmitry Ilvokhin @ 2026-10-28  8:19 UTC (permalink / raw)
  To: Alex Deucher, Christian König, David Airlie, Simona Vetter,
	Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
	Lee Jones, Pavel Machek, Joel Stanley, Andrew Jeffery, Ryan Chen,
	Billy Tsai, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	Kees Cook, Andy Shevchenko, Matthew Wilcox, Andrew Morton,
	Andy Whitcroft, Joe Perches, Jonathan Corbet, Shuah Khan,
	Randy Dunlap
  Cc: amd-gfx, dri-devel, linux-kernel, intel-gfx, linux-leds,
	linux-arm-kernel, linux-aspeed, linux-hardening, linux-fsdevel,
	linux-mm, linux-doc, Miguel Ojeda, Dmitry Ilvokhin

Commit 22302af28d3f ("cleanup: Annotate guard constructors with
nonnull") added the __nonnull_args() macro to wrap the raw compiler
attribute, keeping the attribute's quirks in one place rather than
open-coded at every call site.

This series replaces the remaining open-coded __attribute__((nonnull))
users with __nonnull_args() to standardize nonnull attribute usage
across the tree.

Each patch can be applied separately by the respective maintainers. The
only dependency is kernel-doc: the string and lib/list_sort patches need
patch 1 ("docs: xforms_lists: support __nonnull_args()") in the same
release, otherwise strends() and list_sort() drop out of the generated
documentation.

Latest Sparse release could not properly parse __nonnull_args() without
arguments. Fix was proposed [1] and merged, but until updated version of
Sparse will reach wide masses it might trip on __nonnull_args() without
arguments.

There are few more instances of __attribute__((nonnull)) usages left in
the tools subdirectory, they are perf related copied files and can
(should?) be updated separately after this patchset lands.

Build-tested allmodconfig with GCC 11.5.0 and clang 22.1.8.

[1]: https://lore.kernel.org/all/20261019175633.415493-19-bvanassche@acm.org/

Dmitry Ilvokhin (10):
  docs: xforms_lists: support __nonnull_args()
  string: Switch to __nonnull_args() macro
  lib/list_sort: Switch to __nonnull_args() macro
  xarray: switch to __nonnull_args() macro
  drm/i915: switch to __nonnull_args() macro
  drm/amdgpu: switch to __nonnull_args() macro
  drm/gem: Switch to __nonnull_args() macro
  leds: pwm: Switch to __nonnull_args() macro
  soc: aspeed: lpc-snoop: Switch to __nonnull_args() macro
  checkpatch: suggest nonnull attribute conversion

 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c    | 2 +-
 drivers/gpu/drm/i915/gem/i915_gem_object.h | 4 ++--
 drivers/gpu/drm/i915/i915_request.h        | 4 ++--
 drivers/leds/leds-pwm.c                    | 2 +-
 drivers/soc/aspeed/aspeed-lpc-snoop.c      | 4 ++--
 include/drm/drm_gem.h                      | 2 +-
 include/linux/list_sort.h                  | 4 ++--
 include/linux/string.h                     | 2 +-
 include/linux/xarray.h                     | 4 ++--
 lib/list_sort.c                            | 6 +++---
 scripts/checkpatch.pl                      | 3 +++
 tools/include/linux/compiler.h             | 4 ++++
 tools/lib/python/kdoc/xforms_lists.py      | 1 +
 13 files changed, 25 insertions(+), 17 deletions(-)


base-commit: 6b4b543fa18757297ac756a6fe6e64f506b7844a
-- 
2.53.0-Meta


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2026-10-28 16:11 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-28  8:19 [PATCH 00/10] treewide: switch to __nonnull_args() macro Dmitry Ilvokhin
2026-10-28  8:19 ` [PATCH 01/10] docs: xforms_lists: support __nonnull_args() Dmitry Ilvokhin
2026-10-28  8:19 ` [PATCH 02/10] string: Switch to __nonnull_args() macro Dmitry Ilvokhin
2026-10-28  9:48   ` Andy Shevchenko
2026-10-28  8:19 ` [PATCH 03/10] lib/list_sort: " Dmitry Ilvokhin
2026-10-28  9:47   ` Andy Shevchenko
2026-10-28  8:19 ` [PATCH 04/10] xarray: switch " Dmitry Ilvokhin
2026-10-28  8:19 ` [PATCH 05/10] drm/i915: " Dmitry Ilvokhin
2026-10-28  9:49   ` Andy Shevchenko
2026-10-28 11:33   ` Jani Nikula
2026-10-28 11:44   ` Andi Shyti
2026-10-28  8:19 ` [PATCH 06/10] drm/amdgpu: " Dmitry Ilvokhin
2026-10-28  8:19 ` [PATCH 07/10] drm/gem: Switch " Dmitry Ilvokhin
2026-10-28 11:44   ` Andi Shyti
2026-10-28  8:19 ` [PATCH 08/10] leds: pwm: " Dmitry Ilvokhin
2026-10-28  9:49   ` Andy Shevchenko
2026-10-28  8:19 ` [PATCH 09/10] soc: aspeed: lpc-snoop: " Dmitry Ilvokhin
2026-10-28  8:19 ` [PATCH 10/10] checkpatch: suggest nonnull attribute conversion Dmitry Ilvokhin
2026-10-28 16:11   ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox