aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorLinus Torvalds <[email protected]>2025-05-27 21:35:51 +0000
committerLinus Torvalds <[email protected]>2025-05-27 21:35:51 +0000
commit550ccb178de2f379f5e1a1833dd6f4bdafef4b68 (patch)
treee5616f0b392463705b444df5f42506a8328756f8 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentMerge tag 'nolibc-20250526-for-6.16-1' of git://git.kernel.org/pub/scm/linux/... (diff)
downloadkernel-550ccb178de2f379f5e1a1833dd6f4bdafef4b68.tar.gz
kernel-550ccb178de2f379f5e1a1833dd6f4bdafef4b68.zip
Make 'cc-option' work correctly for the -Wno-xyzzy pattern
This is the follow-up to commit a79be02bba5c ("Fix mis-uses of 'cc-option' for warning disablement") where I mentioned that the best fix would be to just make 'cc-option' a bit smarter, and work for all compiler options, including the '-Wno-xyzzy' pattern that it used to accept unknown options for. It turns out that fixing cc-option is pretty straightforward: just rewrite any '-Wno-xyzzy' option pattern to use '-Wxyzzy' instead for testing. That makes the whole artificial distinction between 'cc-option' and 'cc-disable-warning' go away, and we can happily forget about the odd build rule that you have to treat compiler options that disable warnings specially. The 'cc-disable-warning' helper remains as a backwards compatibility syntax for now, but is implemented in terms of the new and improved cc-option. Acked-by: Masahiro Yamada <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Stephen Rothwell <[email protected]> Cc: Thomas Weißschuh <[email protected]> Cc: Nathan Chancellor <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions