Re: [PATCH v2 1/2] NFS: remove redundant __private attribute from nfs_page_class
From: Benjamin Coddington
Date: Sun Apr 19 2026 - 09:43:08 EST
On 19 Apr 2026, at 3:01, Sean Chang wrote:
> The nfs_page_class tracepoint uses a pointer for the 'req' field marked
> with the __private attribute. This causes Sparse to complain about
> dereferencing a private pointer within the trace ring buffer context,
> specifically during the TP_fast_assign() operation.
>
> This fixes a Sparse warning introduced in commit b6ef079fd984 ("nfs:
> more in-depth tracing of writepage events") by removing the redundant
> __private attribute from the 'req' field.
>
> Signed-off-by: Sean Chang <seanwascoding@xxxxxxxxx>
Reviewed-by: Benjamin Coddington <bcodding@xxxxxxxxxxxxxxx>
Ben