[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 12 Dec 2023 08:19:44 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Edward Cree <ecree.xilinx@...il.com>
Cc: Simon Horman <horms@...nel.org>, edward.cree@....com,
linux-net-drivers@....com, davem@...emloft.net, pabeni@...hat.com,
edumazet@...gle.com, netdev@...r.kernel.org, habetsm.xilinx@...il.com,
Jonathan Cooper <jonathan.s.cooper@....com>
Subject: Re: [PATCH net-next 7/7] sfc: add debugfs node for filter table
contents
On Tue, 12 Dec 2023 15:14:17 +0000 Edward Cree wrote:
> On 12/12/2023 13:58, Edward Cree wrote:
> > On 11/12/2023 19:17, Simon Horman wrote:
> >> On Mon, Dec 11, 2023 at 05:18:32PM +0000, edward.cree@....com wrote:
> [...]
> >>
> >> Hi Edward,
> >>
> >> I think that probably the above should be static inline.
> >
> > Yep, in fact there are instances of this from patch 2 onwards (most
> > of those aren't even static). Clearly I hadn't had enough sleep
> > the day I wrote this :/
> Or maybe it's *today* I haven't had enough sleep...
> Unlike the functions in patches 2-4, which are stubs for the
> CONFIG_DEBUG_FS=n build, these functions should *not* be "static
> inline", because they are intended to be referenced from ops
> structs or passed as callbacks.
> The check on patchwork is actually a false positive here, because
> this is not a function that's defined in the header file. It's
> part of the body of a *macro*, EFX_DEBUGFS_RAW_PARAMETER.
> Functions are only defined when some C file expands the macro.
>
> I will update the commit message to call out and explain this; I
> believe the code is actually fine.
Fair point, second time in a ~month we see this sort of false positive.
I'll throw [^\\]$ at the end of the regex to try to avoid matching stuff
that's most likely a macro.
This one looks legit tho:
+void efx_debugfs_print_filter(char *s, size_t l, struct efx_filter_spec *spec) {}
Powered by blists - more mailing lists