linux-yocto/drivers/gpu/drm/i915
Joel Granados 1751f872cc treewide: const qualify ctl_tables where applicable
Add the const qualifier to all the ctl_tables in the tree except for
watchdog_hardlockup_sysctl, memory_allocation_profiling_sysctls,
loadpin_sysctl_table and the ones calling register_net_sysctl (./net,
drivers/inifiniband dirs). These are special cases as they use a
registration function with a non-const qualified ctl_table argument or
modify the arrays before passing them on to the registration function.

Constifying ctl_table structs will prevent the modification of
proc_handler function pointers as the arrays would reside in .rodata.
This is made possible after commit 78eb4ea25c ("sysctl: treewide:
constify the ctl_table argument of proc_handlers") constified all the
proc_handlers.

Created this by running an spatch followed by a sed command:
Spatch:
    virtual patch

    @
    depends on !(file in "net")
    disable optional_qualifier
    @

    identifier table_name != {
      watchdog_hardlockup_sysctl,
      iwcm_ctl_table,
      ucma_ctl_table,
      memory_allocation_profiling_sysctls,
      loadpin_sysctl_table
    };
    @@

    + const
    struct ctl_table table_name [] = { ... };

sed:
    sed --in-place \
      -e "s/struct ctl_table .table = &uts_kern/const struct ctl_table *table = \&uts_kern/" \
      kernel/utsname_sysctl.c

Reviewed-by: Song Liu <song@kernel.org>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> # for kernel/trace/
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> # SCSI
Reviewed-by: Darrick J. Wong <djwong@kernel.org> # xfs
Acked-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Corey Minyard <cminyard@mvista.com>
Acked-by: Wei Liu <wei.liu@kernel.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
Acked-by: Baoquan He <bhe@redhat.com>
Acked-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Acked-by: Anna Schumaker <anna.schumaker@oracle.com>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
2025-01-28 13:48:37 +01:00
..
display Mainly individually changelogged singleton patches. The patch series in 2025-01-26 17:50:53 -08:00
gem Kthreads affinity follow either of 4 existing different patterns: 2025-01-21 17:10:05 -08:00
gt Kthreads affinity follow either of 4 existing different patterns: 2025-01-21 17:10:05 -08:00
gvt drm/i915/gvt: always pass struct intel_display * to register macros 2024-12-16 18:09:18 +02:00
pxp Merge tag 'drm-intel-gt-next-2024-10-23' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-next 2024-10-25 05:57:38 +10:00
selftests Kthreads affinity follow either of 4 existing different patterns: 2025-01-21 17:10:05 -08:00
soc drm/i915/soc: stop using IS_GEN9_LP() and IS_GEN9_BC() 2024-10-02 12:06:20 +03:00
.gitignore
i915_active_types.h
i915_active.c Merge tag 'drm-intel-gt-next-2025-01-10' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-next 2025-01-13 08:05:00 +10:00
i915_active.h drm/i915: Remove deadcode 2024-12-30 01:31:31 +01:00
i915_cmd_parser.c
i915_cmd_parser.h
i915_config.c
i915_config.h
i915_debugfs_params.c
i915_debugfs_params.h
i915_debugfs.c drm/i915/debugfs: add dedicated intel_display_caps debugfs for display 2024-09-19 12:43:13 +03:00
i915_debugfs.h
i915_deps.c
i915_deps.h
i915_driver.c Merge drm/drm-next into drm-intel-next 2025-01-07 18:07:54 +02:00
i915_driver.h drm: remove driver date from struct drm_driver and all drivers 2024-12-05 12:35:42 +02:00
i915_drm_client.c drm: make drm-active- stats optional 2024-12-19 16:56:17 +01:00
i915_drm_client.h
i915_drv.h drm/i915/dg2: Introduce DG2_D subplatform 2024-12-11 23:45:08 +01:00
i915_file_private.h
i915_gem_evict.c
i915_gem_evict.h
i915_gem_gtt.c drm/i915: Fixed an typo in i915_gem_gtt.c 2024-11-25 10:59:00 -05:00
i915_gem_gtt.h
i915_gem_ww.c
i915_gem_ww.h
i915_gem.c drm/i915: remove unnecessary display includes 2024-08-26 10:56:51 +03:00
i915_gem.h
i915_getparam.c drm/i915/overlay: add intel_overlay_available() and use it 2024-11-22 13:56:35 +02:00
i915_getparam.h
i915_gpu_error.c Linux 6.13-rc3 2024-12-19 12:00:02 +10:00
i915_gpu_error.h drm/i915/display: move device info and params handling to snapshot 2024-09-13 10:44:15 +03:00
i915_hwmon.c drm/i915/hwmon: expose package temperature 2024-09-13 11:21:16 +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: hide display_irqs_enabled access 2024-11-22 13:56:35 +02:00
i915_irq.h drm/i915/irq: s/gen3/gen2/ 2024-10-15 17:29:30 +03:00
i915_memcpy.c
i915_memcpy.h
i915_mitigations.c
i915_mitigations.h
i915_mm.c drm/i915: ensure segment offset never exceeds allowed max 2024-12-05 14:29:48 +01:00
i915_mm.h drm/i915/gem: Calculate object page offset for partial memory mapping 2024-08-21 15:28:33 +02:00
i915_module.c drm/i915: deprecate the i915.modeset module parameter 2024-08-29 17:53:02 +03:00
i915_params.c drm/i915: deprecate the i915.modeset module parameter 2024-08-29 17:53:02 +03:00
i915_params.h
i915_pci.c drm/intel/pciids: rename i915_pciids.h to just pciids.h 2024-10-29 16:14:04 +02:00
i915_pci.h
i915_perf_oa_regs.h
i915_perf_types.h
i915_perf.c treewide: const qualify ctl_tables where applicable 2025-01-28 13:48:37 +01:00
i915_perf.h
i915_pmu.c drm/i915/pmu: Remove pointless synchronize_rcu() call 2024-11-05 11:24:33 -08:00
i915_pmu.h drm/i915/pmu: Replace closed with registered 2024-11-05 11:24:33 -08:00
i915_priolist_types.h
i915_pvinfo.h
i915_query.c
i915_query.h
i915_reg_defs.h drm/i915/irq: add struct i915_irq_regs triplet 2024-10-03 15:42:41 +03:00
i915_reg.h drm/i915: move DDI_CLK_VALFREQ next to other Cx0 PHY registers 2024-12-16 14:20:02 +02:00
i915_request.c drm/i915/request: Remove unnecessary modification of hrtimer:: Function 2024-11-07 02:47:04 +01:00
i915_request.h
i915_scatterlist.c drm/i915/gem: Suppress oom warning in favour of ENOMEM to userspace 2024-06-28 00:11:01 +02:00
i915_scatterlist.h
i915_scheduler_types.h
i915_scheduler.c drm/i915: Fix memory leak by correcting cache object name in error handler 2024-12-09 10:29:06 +00:00
i915_scheduler.h
i915_selftest.h
i915_sw_fence_work.c
i915_sw_fence_work.h
i915_sw_fence.c drm/i915/fence: Mark debug_fence_free() with __maybe_unused 2024-09-02 13:25:31 +03:00
i915_sw_fence.h
i915_switcheroo.c
i915_switcheroo.h
i915_syncmap.c
i915_syncmap.h
i915_sysfs.c drm/i915: Replace double blank with single blank after comma 2024-08-08 12:26:33 +01:00
i915_sysfs.h
i915_tasklet.h
i915_trace_points.c
i915_trace.h drm/i915: extract intel_uncore_trace.[ch] 2024-12-16 18:09:31 +02:00
i915_ttm_buddy_manager.c
i915_ttm_buddy_manager.h
i915_user_extensions.c
i915_user_extensions.h
i915_utils.c drm next for 6.12-rc1 2024-09-19 10:18:15 +02:00
i915_utils.h drm/i915: use IS_ENABLED() instead of defined() on config options 2024-09-05 21:12:08 +03:00
i915_vgpu.c
i915_vgpu.h
i915_vma_resource.c
i915_vma_resource.h
i915_vma_types.h
i915_vma.c drm/i915: use NULL for zero wakeref_t instead of plain integer 0 2024-10-04 10:29:24 +03:00
i915_vma.h drm: Fix kerneldoc for "Returns" section 2024-08-26 16:40:09 +02:00
intel_clock_gating.c drm/i915: remove all IS_<PLATFORM>_GT<N>() macros 2024-10-24 13:14:37 +03:00
intel_clock_gating.h
intel_cpu_info.c drm/i915: Introduce intel_cpu_info.c for CPU IDs 2024-12-11 23:45:09 +01:00
intel_cpu_info.h drm/i915: Introduce intel_cpu_info.c for CPU IDs 2024-12-11 23:45:09 +01:00
intel_device_info.c drm/i915/dg2: Introduce DG2_D subplatform 2024-12-11 23:45:08 +01:00
intel_device_info.h drm/i915/dg2: Introduce DG2_D subplatform 2024-12-11 23:45:08 +01:00
intel_gvt_mmio_table.c drm/i915: split out i9xx_wm_regs.h 2024-12-16 14:20:02 +02:00
intel_gvt.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
intel_gvt.h
intel_mchbar_regs.h drm/i915/hwmon: expose package temperature 2024-09-13 11:21:16 +02:00
intel_memory_region.c drm/i915: Allow NULL memory region 2024-07-23 09:34:13 +00:00
intel_memory_region.h
intel_pci_config.h
intel_pcode.c
intel_pcode.h
intel_region_ttm.c
intel_region_ttm.h
intel_runtime_pm.c drm/i915: use NULL for zero wakeref_t instead of plain integer 0 2024-10-04 10:29:24 +03:00
intel_runtime_pm.h drm/i915/dp: Assume panel power is off if runtime suspended 2024-10-11 14:55:01 +03:00
intel_sbi.c drm/i915/sbi: add a dedicated mutex for LPT/WPT IOSF sideband 2024-11-05 12:19:34 +02:00
intel_sbi.h drm/i915/sbi: add a dedicated mutex for LPT/WPT IOSF sideband 2024-11-05 12:19:34 +02:00
intel_step.c drm/i915: remove display stepping handling 2024-08-22 15:48:17 +03:00
intel_step.h drm/i915: remove unused leftover basedie step code 2024-08-26 11:38:44 +03:00
intel_uncore_trace.c drm/i915: extract intel_uncore_trace.[ch] 2024-12-16 18:09:31 +02:00
intel_uncore_trace.h drm/i915: extract intel_uncore_trace.[ch] 2024-12-16 18:09:31 +02:00
intel_uncore.c drm/i915/uncore: add to_intel_uncore() and use it 2024-12-16 18:09:38 +02:00
intel_uncore.h drm/i915/uncore: add to_intel_uncore() and use it 2024-12-16 18:09:38 +02:00
intel_wakeref.c drm/i915: use NULL for zero wakeref_t instead of plain integer 0 2024-10-04 10:29:24 +03:00
intel_wakeref.h drm/i915: switch intel_wakeref_t underlying type to struct ref_tracker * 2024-09-30 17:54:13 +03:00
Kconfig Backmerge v6.12-rc6 of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into drm-next 2024-11-04 14:25:33 +10:00
Kconfig.debug
Kconfig.profile
Makefile drm/i915/display: add intel_display_conversion.c to hide stuff better 2024-12-16 18:09:35 +02:00
TODO.txt
vlv_sideband_reg.h
vlv_sideband.c drm/i915: hide VLV PUNIT IOSF sideband qos handling better 2024-11-05 12:19:34 +02:00
vlv_sideband.h drm/i915: add a dedicated mutex for VLV/CHV IOSF sideband 2024-11-05 12:19:34 +02:00
vlv_suspend.c drm/i915: extract intel_uncore_trace.[ch] 2024-12-16 18:09:31 +02:00
vlv_suspend.h