kernel_samsung_a53x/include/soc/samsung
Nahuel Gómez 82eba12440 exynos-pm: fix build without CONFIG_SEC_PM_DEBUG
We remove the checks to allow the function to be used anyway.

../drivers/soc/samsung/exynos-pm/exynos-pm.c:107:10: error: declaration of 'struct wakeup_stat_name' will not be visible outside of this function [-Werror,-Wvisibility]
  107 |                 struct wakeup_stat_name *ws_names)
      |                        ^
../drivers/soc/samsung/exynos-pm/exynos-pm.c:114:18: error: incomplete definition of type 'struct wakeup_stat_name'
  114 |                 name = ws_names->name[bit];
      |                        ~~~~~~~~^
../drivers/soc/samsung/exynos-pm/exynos-pm.c:107:10: note: forward declaration of 'struct wakeup_stat_name'
  107 |                 struct wakeup_stat_name *ws_names)
      |                        ^
../drivers/soc/samsung/exynos-pm/exynos-pm.c:131:25: error: no member named 'ws_names' in 'struct exynos_pm_info'
  131 |         if (unlikely(!pm_info->ws_names))
      |                       ~~~~~~~  ^
../include/linux/compiler.h:78:42: note: expanded from macro 'unlikely'
   78 | # define unlikely(x)    __builtin_expect(!!(x), 0)
      |                                             ^
../drivers/soc/samsung/exynos-pm/exynos-pm.c:143:51: error: no member named 'ws_names' in 'struct exynos_pm_info'
  143 |                 exynos_show_wakeup_reason_sysint(wss, &pm_info->ws_names[i]);
      |                                                        ~~~~~~~  ^
../drivers/soc/samsung/exynos-pm/exynos-pm.c:465:11: error: no member named 'ws_names' in 'struct exynos_pm_info'
  465 |         pm_info->ws_names = kzalloc(sizeof(*pm_info->ws_names) * n, GFP_KERNEL);
      |         ~~~~~~~  ^
../drivers/soc/samsung/exynos-pm/exynos-pm.c:465:47: error: no member named 'ws_names' in 'struct exynos_pm_info'
  465 |         pm_info->ws_names = kzalloc(sizeof(*pm_info->ws_names) * n, GFP_KERNEL);
      |                                             ~~~~~~~  ^
../drivers/soc/samsung/exynos-pm/exynos-pm.c:466:16: error: no member named 'ws_names' in 'struct exynos_pm_info'
  466 |         if (!pm_info->ws_names)
      |              ~~~~~~~  ^
../drivers/soc/samsung/exynos-pm/exynos-pm.c:478:14: error: no member named 'ws_names' in 'struct exynos_pm_info'
  478 |                                 pm_info->ws_names[idx].name, size);
      |                                 ~~~~~~~  ^
8 errors generated.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
2024-11-19 17:39:21 +01:00
..
acpm_ipc_ctrl.h
acpm_mfd.h
asv_g_spec.h
bts.h
cal-if.h
cmu_ewf.h
cpu_cooling.h
debug-snapshot-log.h
debug-snapshot.h
dev_cooling.h
dsu_theodul_errata.h
ect_parser.h
exynos-acme.h
exynos-adv-tracer-ipc.h
exynos-bcm_dbg-dt.h
exynos-bcm_dbg-dump.h
exynos-bcm_dbg.h
exynos-cm.h
exynos-cpif-iommu.h
exynos-cpuhp.h
exynos-cpupm.h
exynos-devfreq-dep.h
exynos-devfreq.h
exynos-dm.h
exynos-ehld.h
exynos-el2.h
exynos-el3_mon.h
exynos-gpu-profiler.h
exynos-hvc.h
exynos-itmon.h
exynos-mcinfo.h
exynos-migov-shared.h
exynos-migov.h
exynos-modem-ctrl.h
exynos-pcie-iommu-exp.h
exynos-pd.h
exynos-pm.h
exynos-pmu-if.h
exynos-ppmpu.h
exynos-profiler.h
exynos-s2mpu.h
exynos-sci.h
exynos-sci_dbg.h
exynos-sdm.h
exynos-seclog.h
exynos-seh.h
exynos-smc.h
exynos-ssld.h
exynos-tzasc.h
exynos-ufcc.h
exynos-wow.h
exynos_amb_control.h
exynos_debug_freq.h
exynos_pm_qos.h
freq-qos-tracer.h
fvmap.h
gpu_cooling.h
gpu_info.h
imgloader.h
isp_cooling.h
mcu_ipc.h
memlogger.h
secmem.h
shm_ipc.h
sysevent.h
sysevent_notif.h
tmu.h
xperf.h