diff options
author | 2024-07-11 21:11:03 -0300 | |
---|---|---|
committer | 2024-07-15 09:44:54 -0300 | |
commit | 136a8066676e593cd29627219467fc222c8f3b04 (patch) | |
tree | 1773779df02767f48a7f2c51fce7856e9219f4f4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iommufd: Fix error pointer checking (diff) | |
download | wireguard-linux-136a8066676e593cd29627219467fc222c8f3b04.tar.xz wireguard-linux-136a8066676e593cd29627219467fc222c8f3b04.zip |
iommufd: Put constants for all the uAPI enums
Relying on position in the enum makes it subtly harder when doing merge
resolutions or backporting as it is easy to grab a patch and not notice it
is a uAPI change with a differently ordered enum. This may become a bigger
problem in next cycles when iommu_hwpt_invalidate_data_type and other
per-driver enums have patches flowing through different trees.
So lets start including constants for all the uAPI enums to make this
safer.
No functional change.
Link: https://lore.kernel.org/r/0-v1-2c06ec044924+133-iommufd_uapi_const_jgg@nvidia.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Tested-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions