devlink: Add comments to use netlink gen tool
Subsystems (3)
PATCH 1/1 devlink: Add comments to use netlink gen tool
Add the comment to remind people not to manually modify the net/devlink/netlink_gen.c, but to use tools/net/ynl/ynl-regen.sh to generate it.
Signed-off-by William Tu <[email protected]>
Suggested-by Jiri Pirko <[email protected]>
--- include/uapi/linux/devlink.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
include/uapi/linux/devlink.h +3 -1
@@ -614,7 +614,9 @@ enum devlink_attr {DEVLINK_ATTR_REGION_DIRECT ,/* flag */ -/* add new attributes above here, update the policy in devlink.c */ +/* Add new attributes above here, update the spec in +* Documentation/netlink/specs/devlink.yaml and re-generate +* net/devlink/netlink_gen.c. */ __DEVLINK_ATTR_MAX,DEVLINK_ATTR_MAX = __DEVLINK_ATTR_MAX -1
Signature · 1 line
2.38.1
Jakub Kicinski
maintainerinclude/uapi/linux/devlink.h enum devlink_attr { · line 619
Quoted 5 lines · On Fri, 8 Mar 2024 02:15:46 +0200 William Tu wrote:
include/uapi/linux/devlink.h +3
-1-/* add new attributes above here, update the policy in devlink.c */ +/* Add new attributes above here, update the spec in +* Documentation/netlink/specs/devlink.yaml and re-generate +* net/devlink/netlink_gen.c. */
Unless someone feels strongly I reckon we should heed checkpatch's advice and put the */ on a separate line.
Signature · 1 line
pw-bot: cr
Quoted 9 lines · Jakub Kicinski
External email: Use caution opening links or attachments
include/uapi/linux/devlink.h enum devlink_attr { · line 619
Quoted 5 lines · On Fri, 8 Mar 2024 02:15:46 +0200 William Tu wrote:
include/uapi/linux/devlink.h +3
-1-/* add new attributes above here, update the policy in devlink.c */ +/* Add new attributes above here, update the spec in +* Documentation/netlink/specs/devlink.yaml and re-generate +* net/devlink/netlink_gen.c. */
Quoted 4 lines
Unless someone feels strongly I reckon we should heed checkpatch's advice and put the */ on a separate line.
--
pw-bot: cr
Will do, thanks
William