diff options
| author | Jason Gunthorpe <jgg@nvidia.com> | 2025-11-26 15:21:27 -0400 |
|---|---|---|
| committer | Joerg Roedel <joerg.roedel@amd.com> | 2025-11-27 12:46:10 +0100 |
| commit | 5de863efbf88d995fe96931c5e8f1325b1745b1d (patch) | |
| tree | 776f6a4dd5374a800201efecb6ce34ceba5f634c /tools/lib/python/kdoc/kdoc_files.py | |
| parent | 152c862c172162d1bed85bfb9ecdf62fec9e86ae (diff) | |
iommupt: Avoid a compiler bug with sw_bit
gcc 13, in some cases, gets confused if the __builtin_constant_p() is
inside the switch. It thinks that bitnr can have the value max+1 and
fails. Lift the check outside the switch to avoid it.
Fixes: ef7bfe5bbffd ("iommupt/x86: Support SW bits and permit PT_FEAT_DMA_INCOHERENT")
Fixes: 5448c1558f60 ("iommupt: Add the Intel VT-d second stage page table format")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202511242012.I7g504Ab-lkp@intel.com/
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions
