linux-stable/drivers/gpu/drm/i915
Arnd Bergmann c40845e319 kbuild: make -Woverride-init warnings more consistent
The -Woverride-init warn about code that may be intentional or not,
but the inintentional ones tend to be real bugs, so there is a bit of
disagreement on whether this warning option should be enabled by default
and we have multiple settings in scripts/Makefile.extrawarn as well as
individual subsystems.

Older versions of clang only supported -Wno-initializer-overrides with
the same meaning as gcc's -Woverride-init, though all supported versions
now work with both. Because of this difference, an earlier cleanup of
mine accidentally turned the clang warning off for W=1 builds and only
left it on for W=2, while it's still enabled for gcc with W=1.

There is also one driver that only turns the warning off for newer
versions of gcc but not other compilers, and some but not all the
Makefiles still use a cc-disable-warning conditional that is no
longer needed with supported compilers here.

Address all of the above by removing the special cases for clang
and always turning the warning off unconditionally where it got
in the way, using the syntax that is supported by both compilers.

Fixes: 2cd3271b7a ("kbuild: avoid duplicate warning options")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2024-03-31 11:32:26 +09:00
..
display drm/i915: Add missing ; to __assign_str() macros in tracepoint code 2024-03-18 10:24:25 -04:00
gem Merge drm/drm-next into drm-misc-next-fixes 2024-03-07 13:30:43 +01:00
gt Short summary of fixes pull: 2024-03-01 19:38:13 +10:00
gvt Merge tag 'drm-intel-next-2024-02-27-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2024-02-28 11:02:55 +10:00
pxp Merge tag 'drm-intel-gt-next-2023-12-08' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2023-12-13 11:20:49 +10:00
selftests drm for 6.9: 2024-03-13 18:34:05 -07:00
soc drm/i915/mtl: Add fake PCH for Meteor Lake 2024-01-03 09:17:00 -08:00
.gitignore
Kconfig Merge tag 'drm-intel-next-2024-02-27-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2024-02-28 11:02:55 +10:00
Kconfig.debug drm/i915/dp: Add support for DP tunnel BW allocation 2024-02-27 17:34:44 +02:00
Kconfig.profile
Makefile kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
TODO.txt
i915_active.c drm/i915: Fix premature release of request's reusable memory 2023-08-01 10:56:34 +01:00
i915_active.h
i915_active_types.h
i915_cmd_parser.c drm/i915: Use kmap_local_page() in i915_cmd_parser.c 2023-12-15 09:34:30 +00:00
i915_cmd_parser.h
i915_config.c
i915_config.h
i915_debugfs.c Merge tag 'drm-intel-gt-next-2024-02-15' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2024-02-16 11:19:15 +10:00
i915_debugfs.h
i915_debugfs_params.c drm/i915/mtl: Apply notify_guc to all GTs 2023-11-06 14:42:44 +02:00
i915_debugfs_params.h
i915_deps.c
i915_deps.h
i915_driver.c drm-misc-next for v6.9: 2024-02-16 13:16:40 +10:00
i915_driver.h drm/i915: Update DRIVER_DATE to 20230929 2023-09-29 12:43:23 +03:00
i915_drm_client.c drm/i915: Update shared stats to use the new gem helper 2024-02-16 12:52:50 +01:00
i915_drm_client.h drm/i915: remove i915_drm_client::id 2024-02-19 15:35:23 -05:00
i915_drv.h Merge tag 'drm-intel-gt-next-2024-02-15' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2024-02-16 11:19:15 +10:00
i915_file_private.h
i915_fixed.h
i915_gem.c Merge tag 'drm-intel-gt-next-2024-02-15' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2024-02-16 11:19:15 +10:00
i915_gem.h
i915_gem_evict.c
i915_gem_evict.h
i915_gem_gtt.c
i915_gem_gtt.h
i915_gem_ww.c
i915_gem_ww.h
i915_getparam.c drm/i915/pxp: Optimize GET_PARAM:PXP_STATUS 2023-08-15 13:28:18 -07:00
i915_getparam.h
i915_gpu_error.c drm/i915: Use struct resource for memory region IO as well 2024-02-07 01:58:40 +02:00
i915_gpu_error.h Merge tag 'drm-intel-gt-next-2023-12-08' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2023-12-13 11:20:49 +10:00
i915_hwmon.c drm/i915/hwmon: Fix static analysis tool reported issues 2023-12-18 15:29:10 +02:00
i915_hwmon.h
i915_ioc32.c
i915_ioc32.h
i915_ioctl.c
i915_ioctl.h
i915_iosf_mbi.h
i915_irq.c drm/i915/irq: Clear GFX_MSTR_IRQ as part of IRQ reset 2023-09-25 09:04:32 -07:00
i915_irq.h
i915_memcpy.c drivers/gpu/drm/i915/i915_memcpy.c: fix missing includes 2023-12-17 20:25:27 -05:00
i915_memcpy.h
i915_mitigations.c
i915_mitigations.h
i915_mm.c
i915_mm.h
i915_module.c
i915_params.c drm/i915/display: Move enable_dp_mst under display 2023-10-26 12:16:39 +03:00
i915_params.h drm/i915/display: Move enable_dp_mst under display 2023-10-26 12:16:39 +03:00
i915_pci.c Merge tag 'drm-intel-gt-next-2023-10-19' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2023-10-20 16:15:25 +10:00
i915_pci.h
i915_perf.c Merge tag 'drm-intel-gt-next-2024-02-15' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2024-02-16 11:19:15 +10:00
i915_perf.h
i915_perf_oa_regs.h
i915_perf_types.h drm/i915: remove i915_perf_stream::size_exponent 2024-02-19 15:35:30 -05:00
i915_pmu.c drm/i915: Track gt pm wakerefs 2023-11-20 12:36:56 +01:00
i915_pmu.h
i915_priolist_types.h
i915_pvinfo.h
i915_query.c Merge tag 'drm-intel-gt-next-2024-02-15' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2024-02-16 11:19:15 +10:00
i915_query.h
i915_reg.h drm/i915: Rename the DSM/GSM registers 2024-02-07 01:59:01 +02:00
i915_reg_defs.h
i915_request.c drm/i915: remove execute_cb::signal 2024-02-19 15:36:28 -05:00
i915_request.h
i915_scatterlist.c
i915_scatterlist.h drm/i915: Implement for_each_sgt_daddr_next 2023-09-30 13:49:22 +02:00
i915_scheduler.c
i915_scheduler.h
i915_scheduler_types.h
i915_selftest.h
i915_suspend.c
i915_suspend.h
i915_sw_fence.c
i915_sw_fence.h
i915_sw_fence_work.c
i915_sw_fence_work.h
i915_switcheroo.c
i915_switcheroo.h
i915_syncmap.c drm/i915: Add flex arrays to struct i915_syncmap 2024-02-12 11:59:37 +00:00
i915_syncmap.h
i915_sysfs.c drm/i915: move gpu error sysfs to i915_gpu_error.c 2023-11-02 14:12:45 +02:00
i915_sysfs.h
i915_tasklet.h
i915_trace.h drm/i915: use direct alias for i915 in requests 2023-07-24 17:24:35 +02:00
i915_trace_points.c
i915_ttm_buddy_manager.c drm/i915: Move the size computations to drm buddy 2023-09-11 20:18:13 +02:00
i915_ttm_buddy_manager.h
i915_user_extensions.c
i915_user_extensions.h
i915_utils.c drm/i915: Bypass LMEMBAR/GTTMMADR for MTL stolen memory access 2024-02-07 01:58:54 +02:00
i915_utils.h drm/i915: Bypass LMEMBAR/GTTMMADR for MTL stolen memory access 2024-02-07 01:58:54 +02:00
i915_vgpu.c
i915_vgpu.h
i915_vma.c Merge drm/drm-next into drm-intel-next 2023-09-15 11:23:38 +03:00
i915_vma.h drm/i915/fbc: Moved fence related code away from intel_fbc 2023-08-07 08:28:28 +03:00
i915_vma_resource.c drm/i915/vma: constify unbind_fence_ops 2023-08-25 09:02:55 +03:00
i915_vma_resource.h
i915_vma_types.h drm/i915: remove i915_vma::obj_hash 2024-02-19 15:36:34 -05:00
intel_clock_gating.c Merge drm/drm-next into drm-intel-next 2023-10-04 18:06:27 +03:00
intel_clock_gating.h
intel_device_info.c Merge drm/drm-next into drm-intel-next 2023-10-04 18:06:27 +03:00
intel_device_info.h Merge tag 'drm-intel-gt-next-2023-10-19' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2023-10-20 16:15:25 +10:00
intel_gvt.c drm/i915: Replace dead 01.org link 2024-02-05 11:15:26 +08:00
intel_gvt.h
intel_gvt_mmio_table.c drm/i915/gvt: don't include gvt.h from intel_gvt_mmio_table.h 2023-10-11 14:19:04 +03:00
intel_mchbar_regs.h
intel_memory_region.c drm/i915: Print memory region info during probe 2024-02-07 01:58:46 +02:00
intel_memory_region.h drm/i915: remove intel_memory_region_ops::flags 2024-02-19 15:36:41 -05:00
intel_pci_config.h
intel_pcode.c
intel_pcode.h
intel_region_ttm.c drm/i915: Use struct resource for memory region IO as well 2024-02-07 01:58:40 +02:00
intel_region_ttm.h
intel_runtime_pm.c PM: runtime: Simplify pm_runtime_get_if_active() usage 2024-02-12 16:57:47 +01:00
intel_runtime_pm.h Merge tag 'drm-intel-gt-next-2023-12-08' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2023-12-13 11:20:49 +10:00
intel_sbi.c
intel_sbi.h
intel_step.c drm/i915: Add wrapper for getting display step 2023-10-11 15:19:48 +05:30
intel_step.h drm/i915: Add wrapper for getting display step 2023-10-11 15:19:48 +05:30
intel_uncore.c drm/i915/mtl: Wake GT before sending H2G message 2024-01-23 16:57:47 -08:00
intel_uncore.h
intel_wakeref.c drm/i915: Track gt pm wakerefs 2023-11-20 12:36:56 +01:00
intel_wakeref.h drm/i915: Track gt pm wakerefs 2023-11-20 12:36:56 +01:00
vlv_sideband.c drm/i915/iosf: Drop unused APIs 2023-11-22 19:13:02 +02:00
vlv_sideband.h drm/i915/iosf: Drop unused APIs 2023-11-22 19:13:02 +02:00
vlv_sideband_reg.h
vlv_suspend.c
vlv_suspend.h