mirror_ubuntu-kernels/tools/net/ynl/generated
Jakub Kicinski c0119e62b2 tools: ynl-gen: change spacing around __attribute__
checkpatch gets confused and treats __attribute__ as a function call.
It complains about white space before "(":

WARNING:SPACING: space prohibited between function name and open parenthesis '('
+	struct netdev_queue_get_rsp obj __attribute__ ((aligned (8)));

No spaces wins in the kernel:

  $ git grep 'attribute__((.*aligned(' | wc -l
  480
  $ git grep 'attribute__ ((.*aligned (' | wc -l
  110
  $ git grep 'attribute__ ((.*aligned(' | wc -l
  94
  $ git grep 'attribute__((.*aligned (' | wc -l
  63

So, whatever, change the codegen.

Note that checkpatch also thinks we should use __aligned(),
but this is user space code.

Link: https://lore.kernel.org/all/202310190900.9Dzgkbev-lkp@intel.com/
Acked-by: Stanislav Fomichev <sdf@google.com>
Reviewed-by: Amritha Nambiar <amritha.nambiar@intel.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20231020221827.3436697-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-10-23 10:15:36 -07:00
..
devlink-user.c netlink: specs: devlink: fix reply command values 2023-10-13 17:27:27 -07:00
devlink-user.h tools: ynl-gen: change spacing around __attribute__ 2023-10-23 10:15:36 -07:00
ethtool-user.c tools: ynl: generate code for the ethtool family 2023-06-12 11:01:03 +01:00
ethtool-user.h tools: ynl-gen: change spacing around __attribute__ 2023-10-23 10:15:36 -07:00
fou-user.c tools: ynl: regen: regenerate the if ladders 2023-06-09 14:40:31 -07:00
fou-user.h tools: ynl-gen: change spacing around __attribute__ 2023-10-23 10:15:36 -07:00
handshake-user.c tools: ynl: regen: stop generating common notification handlers 2023-06-09 14:40:31 -07:00
handshake-user.h tools: ynl-gen: change spacing around __attribute__ 2023-10-23 10:15:36 -07:00
Makefile tools: ynl: use ynl-gen -o instead of stdout in Makefile 2023-10-11 13:33:06 -07:00
netdev-user.c tools: ynl: extend netdev sample to dump xdp-rx-metadata-features 2023-09-15 11:26:58 -07:00
netdev-user.h tools: ynl-gen: change spacing around __attribute__ 2023-10-23 10:15:36 -07:00