* + drm-i915-switch-to-__nonnull_args-macro.patch added to mm-nonmm-unstable branch
@ 2026-10-29 6:19 Andrew Morton
2026-10-29 8:46 ` Jani Nikula
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Morton @ 2026-10-29 6:19 UTC (permalink / raw)
To: mm-commits, willy, tzimmermann, tursulin, skhan, simona,
ryan_chen, rodrigo.vivi, rdunlap, pavel, ojeda, mripard,
maarten.lankhorst, lee, kees, joonas.lahtinen, joe, joel,
jani.nikula, jani.nikula, corbet, christian.koenig, billy_tsai,
apw, andy.shevchenko, andy, andrew, andi.shyti, andi.shyti,
alexander.deucher, airlied, d, akpm
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 5015 bytes --]
The patch titled
Subject: drm/i915: switch to __nonnull_args() macro
has been added to the -mm mm-nonmm-unstable branch. Its filename is
drm-i915-switch-to-__nonnull_args-macro.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/drm-i915-switch-to-__nonnull_args-macro.patch
This patch will later appear in the mm-nonmm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: Dmitry Ilvokhin <d@ilvokhin.com>
Subject: drm/i915: switch to __nonnull_args() macro
Date: Wed, 28 Oct 2026 08:19:44 +0000
Commit 22302af28d3f ("cleanup: Annotate guard constructors with
nonnull") added the macro __nonnull_args() to wrap raw compiler
attribute.
Replace __attribute__((nonnull)) with __nonnull_args() to standardize
nonnull attribute usage across the tree and keep the attribute's quirks
in one place rather than open-coded at every call site.
Link: https://lore.kernel.org/33ec8080594f9f4ef1d50e36497339c9a6897393.1793027261.git.d@ilvokhin.com
Signed-off-by: Dmitry Ilvokhin <d@ilvokhin.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: David Airlie <airlied@gmail.com>
Cc: Simona Vetter <simona@ffwll.ch>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Tvrtko Ursulin <tursulin@ursulin.net>
Cc: Lee Jones <lee@kernel.org>
Cc: Pavel Machek <pavel@kernel.org>
Cc: Joel Stanley <joel@jms.id.au>
Cc: Andrew Jeffery <andrew@codeconstruct.com.au>
Cc: Ryan Chen <ryan_chen@aspeedtech.com>
Cc: Billy Tsai <billy_tsai@aspeedtech.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Kees Cook <kees@kernel.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Andi Shyti <andi.shyti@kernel.org>
---
drivers/gpu/drm/i915/gem/i915_gem_object.h | 4 ++--
drivers/gpu/drm/i915/i915_request.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
--- a/drivers/gpu/drm/i915/gem/i915_gem_object.h~drm-i915-switch-to-__nonnull_args-macro
+++ a/drivers/gpu/drm/i915/gem/i915_gem_object.h
@@ -127,7 +127,7 @@ __deprecated
struct drm_gem_object *
drm_gem_object_lookup(struct drm_file *file, u32 handle);
-__attribute__((nonnull))
+__nonnull_args()
static inline struct drm_i915_gem_object *
i915_gem_object_get(struct drm_i915_gem_object *obj)
{
@@ -135,7 +135,7 @@ i915_gem_object_get(struct drm_i915_gem_
return obj;
}
-__attribute__((nonnull))
+__nonnull_args()
static inline void
i915_gem_object_put(struct drm_i915_gem_object *obj)
{
--- a/drivers/gpu/drm/i915/i915_request.h~drm-i915-switch-to-__nonnull_args-macro
+++ a/drivers/gpu/drm/i915/i915_request.h
@@ -437,12 +437,12 @@ void i915_request_cancel(struct i915_req
long i915_request_wait_timeout(struct i915_request *rq,
unsigned int flags,
long timeout)
- __attribute__((nonnull(1)));
+ __nonnull_args(1);
long i915_request_wait(struct i915_request *rq,
unsigned int flags,
long timeout)
- __attribute__((nonnull(1)));
+ __nonnull_args(1);
#define I915_WAIT_INTERRUPTIBLE BIT(0)
#define I915_WAIT_PRIORITY BIT(1) /* small priority bump for the request */
#define I915_WAIT_ALL BIT(2) /* used by i915_gem_object_wait() */
_
Patches currently in -mm which might be from d@ilvokhin.com are
docs-xforms_lists-support-__nonnull_args.patch
string-switch-to-__nonnull_args-macro.patch
lib-list_sort-switch-to-__nonnull_args-macro.patch
xarray-switch-to-__nonnull_args-macro.patch
drm-i915-switch-to-__nonnull_args-macro.patch
drm-amdgpu-switch-to-__nonnull_args-macro.patch
drm-gem-switch-to-__nonnull_args-macro.patch
leds-pwm-switch-to-__nonnull_args-macro.patch
soc-aspeed-lpc-snoop-switch-to-__nonnull_args-macro.patch
checkpatch-suggest-nonnull-attribute-conversion.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: + drm-i915-switch-to-__nonnull_args-macro.patch added to mm-nonmm-unstable branch
2026-10-29 6:19 + drm-i915-switch-to-__nonnull_args-macro.patch added to mm-nonmm-unstable branch Andrew Morton
@ 2026-10-29 8:46 ` Jani Nikula
0 siblings, 0 replies; 2+ messages in thread
From: Jani Nikula @ 2026-10-29 8:46 UTC (permalink / raw)
To: Andrew Morton, mm-commits, willy, tzimmermann, tursulin, skhan,
simona, ryan_chen, rodrigo.vivi, rdunlap, pavel, ojeda, mripard,
maarten.lankhorst, lee, kees, joonas.lahtinen, joe, joel, corbet,
christian.koenig, billy_tsai, apw, andy.shevchenko, andy, andrew,
andi.shyti, andi.shyti, alexander.deucher, airlied, d, akpm
On Wed, 28 Oct 2026, Andrew Morton <akpm@linux-foundation.org> wrote:
> The patch titled
> Subject: drm/i915: switch to __nonnull_args() macro
> has been added to the -mm mm-nonmm-unstable branch. Its filename is
> drm-i915-switch-to-__nonnull_args-macro.patch
>
> This patch will shortly appear at
> https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/drm-i915-switch-to-__nonnull_args-macro.patch
>
> This patch will later appear in the mm-nonmm-unstable branch at
> git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
I already applied this to drm-intel-next as per Dmitry's cover letter.
BR,
Jani.
>
> Before you just go and hit "reply", please:
> a) Consider who else should be cc'ed
> b) Prefer to cc a suitable mailing list as well
> c) Ideally: find the original patch on the mailing list and do a
> reply-to-all to that, adding suitable additional cc's
>
> *** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
>
> The -mm tree is included into linux-next via various
> branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
> and is updated there most days
>
> ------------------------------------------------------
> From: Dmitry Ilvokhin <d@ilvokhin.com>
> Subject: drm/i915: switch to __nonnull_args() macro
> Date: Wed, 28 Oct 2026 08:19:44 +0000
>
> Commit 22302af28d3f ("cleanup: Annotate guard constructors with
> nonnull") added the macro __nonnull_args() to wrap raw compiler
> attribute.
>
> Replace __attribute__((nonnull)) with __nonnull_args() to standardize
> nonnull attribute usage across the tree and keep the attribute's quirks
> in one place rather than open-coded at every call site.
>
> Link: https://lore.kernel.org/33ec8080594f9f4ef1d50e36497339c9a6897393.1793027261.git.d@ilvokhin.com
> Signed-off-by: Dmitry Ilvokhin <d@ilvokhin.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> Suggested-by: Miguel Ojeda <ojeda@kernel.org>
> Reviewed-by: Andy Shevchenko <andy@kernel.org>
> Acked-by: Jani Nikula <jani.nikula@intel.com>
> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
> Cc: Alex Deucher <alexander.deucher@amd.com>
> Cc: Christian König <christian.koenig@amd.com>
> Cc: David Airlie <airlied@gmail.com>
> Cc: Simona Vetter <simona@ffwll.ch>
> Cc: Jani Nikula <jani.nikula@linux.intel.com>
> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: Tvrtko Ursulin <tursulin@ursulin.net>
> Cc: Lee Jones <lee@kernel.org>
> Cc: Pavel Machek <pavel@kernel.org>
> Cc: Joel Stanley <joel@jms.id.au>
> Cc: Andrew Jeffery <andrew@codeconstruct.com.au>
> Cc: Ryan Chen <ryan_chen@aspeedtech.com>
> Cc: Billy Tsai <billy_tsai@aspeedtech.com>
> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Cc: Maxime Ripard <mripard@kernel.org>
> Cc: Thomas Zimmermann <tzimmermann@suse.de>
> Cc: Kees Cook <kees@kernel.org>
> Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
> Cc: Andy Whitcroft <apw@canonical.com>
> Cc: Joe Perches <joe@perches.com>
> Cc: Jonathan Corbet <corbet@lwn.net>
> Cc: Shuah Khan <skhan@linuxfoundation.org>
> Cc: Randy Dunlap <rdunlap@infradead.org>
> Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
> Cc: Andi Shyti <andi.shyti@kernel.org>
> ---
>
> drivers/gpu/drm/i915/gem/i915_gem_object.h | 4 ++--
> drivers/gpu/drm/i915/i915_request.h | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> --- a/drivers/gpu/drm/i915/gem/i915_gem_object.h~drm-i915-switch-to-__nonnull_args-macro
> +++ a/drivers/gpu/drm/i915/gem/i915_gem_object.h
> @@ -127,7 +127,7 @@ __deprecated
> struct drm_gem_object *
> drm_gem_object_lookup(struct drm_file *file, u32 handle);
>
> -__attribute__((nonnull))
> +__nonnull_args()
> static inline struct drm_i915_gem_object *
> i915_gem_object_get(struct drm_i915_gem_object *obj)
> {
> @@ -135,7 +135,7 @@ i915_gem_object_get(struct drm_i915_gem_
> return obj;
> }
>
> -__attribute__((nonnull))
> +__nonnull_args()
> static inline void
> i915_gem_object_put(struct drm_i915_gem_object *obj)
> {
> --- a/drivers/gpu/drm/i915/i915_request.h~drm-i915-switch-to-__nonnull_args-macro
> +++ a/drivers/gpu/drm/i915/i915_request.h
> @@ -437,12 +437,12 @@ void i915_request_cancel(struct i915_req
> long i915_request_wait_timeout(struct i915_request *rq,
> unsigned int flags,
> long timeout)
> - __attribute__((nonnull(1)));
> + __nonnull_args(1);
>
> long i915_request_wait(struct i915_request *rq,
> unsigned int flags,
> long timeout)
> - __attribute__((nonnull(1)));
> + __nonnull_args(1);
> #define I915_WAIT_INTERRUPTIBLE BIT(0)
> #define I915_WAIT_PRIORITY BIT(1) /* small priority bump for the request */
> #define I915_WAIT_ALL BIT(2) /* used by i915_gem_object_wait() */
> _
>
> Patches currently in -mm which might be from d@ilvokhin.com are
>
> docs-xforms_lists-support-__nonnull_args.patch
> string-switch-to-__nonnull_args-macro.patch
> lib-list_sort-switch-to-__nonnull_args-macro.patch
> xarray-switch-to-__nonnull_args-macro.patch
> drm-i915-switch-to-__nonnull_args-macro.patch
> drm-amdgpu-switch-to-__nonnull_args-macro.patch
> drm-gem-switch-to-__nonnull_args-macro.patch
> leds-pwm-switch-to-__nonnull_args-macro.patch
> soc-aspeed-lpc-snoop-switch-to-__nonnull_args-macro.patch
> checkpatch-suggest-nonnull-attribute-conversion.patch
>
--
Jani Nikula, Intel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-29 8:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-29 6:19 + drm-i915-switch-to-__nonnull_args-macro.patch added to mm-nonmm-unstable branch Andrew Morton
2026-10-29 8:46 ` Jani Nikula
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.