[PATCH v26 01/20] net: Introduce direct data placement tcp offload
Aurelien Aptel
aaptel at nvidia.com
Tue Feb 25 09:15:57 PST 2025
Aurelien Aptel <aaptel at nvidia.com> writes:
> Paolo Abeni <pabeni at redhat.com> writes:
>>> + /* put in ulp_ddp_sk_del() */
>>> + dev_hold(netdev);
>>
>> You should use netdev_hold()/netdev_put() instead, with a paired reftracker.
>
> Ok, we will pass the tracker as argument.
There is currently a bug in checkpatch, it seems it cannot deal with kernel
typedefs when they are inside a ifdef:
$ cat > test.h
/* SPDX-License-Identifier: MIT */
#if x
int a(netdevice_tracker *p);
#endif
^D
$ ./scripts/checkpatch.pl -f test.h
ERROR: need consistent spacing around '*' (ctx:WxV)
#3: FILE: test.h:3:
+int a(netdevice_tracker *p);
^
total: 1 errors, 0 warnings, 4 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
test.h has style problems, please review.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
If you remove the #if/#endif it is quiet.
I'm reporting this since NIPA is so strict on checkpatch errors.
I've added checkpatch.pl maintainers in the loop.
In the meantime maybe let's ignore this warning in NIPA?
Thanks
More information about the Linux-nvme
mailing list