OpenCloudOS-Kernel/drivers/platform/x86/intel
Hans de Goede 3d46d78480 platform/x86/intel/vsec: Fix wrong type for local status variables
The local status variables in intel_vsec_pci_error_detected()
and intel_vsec_pci_slot_reset() should have pci_ers_result_t as type
(and not pci_channel_state_t).

Also fix a whitespace error as well as intel_vsec_pci_err_handlers not
being marked static.

This fixes the following sparse errors:

drivers/platform/x86/intel/vsec.c:429:38: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted pci_channel_state_t [usertype] status @@     got restricted pci_ers_result_t @@
drivers/platform/x86/intel/vsec.c:429:38: sparse:     expected restricted pci_channel_state_t [usertype] status
drivers/platform/x86/intel/vsec.c:429:38: sparse:     got restricted pci_ers_result_t
drivers/platform/x86/intel/vsec.c:434:24: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted pci_channel_state_t [usertype] status @@     got restricted pci_ers_result_t @@
drivers/platform/x86/intel/vsec.c:434:24: sparse:     expected restricted pci_channel_state_t [usertype] status
drivers/platform/x86/intel/vsec.c:434:24: sparse:     got restricted pci_ers_result_t
drivers/platform/x86/intel/vsec.c:438:16: sparse: sparse: incorrect type in return expression (different base types) @@     expected restricted pci_ers_result_t @@     got restricted pci_channel_state_t [usertype] status @@
drivers/platform/x86/intel/vsec.c:438:16: sparse:     expected restricted pci_ers_result_t
drivers/platform/x86/intel/vsec.c:438:16: sparse:     got restricted pci_channel_state_t [usertype] status
drivers/platform/x86/intel/vsec.c:444:38: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted pci_channel_state_t [usertype] status @@     got restricted pci_ers_result_t @@
drivers/platform/x86/intel/vsec.c:444:38: sparse:     expected restricted pci_channel_state_t [usertype] status
drivers/platform/x86/intel/vsec.c:444:38: sparse:     got restricted pci_ers_result_t
drivers/platform/x86/intel/vsec.c:457:16: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted pci_channel_state_t [usertype] status @@     got restricted pci_ers_result_t @@
drivers/platform/x86/intel/vsec.c:457:16: sparse:     expected restricted pci_channel_state_t [usertype] status
drivers/platform/x86/intel/vsec.c:457:16: sparse:     got restricted pci_ers_result_t
drivers/platform/x86/intel/vsec.c:472:16: sparse: sparse: incorrect type in return expression (different base types) @@     expected restricted pci_ers_result_t @@     got restricted pci_channel_state_t [usertype] status @@
drivers/platform/x86/intel/vsec.c:472:16: sparse:     expected restricted pci_ers_result_t
drivers/platform/x86/intel/vsec.c:472:16: sparse:     got restricted pci_channel_state_t [usertype] status
drivers/platform/x86/intel/vsec.c:480:33: sparse: sparse: symbol 'intel_vsec_pci_err_handlers' was not declared. Should it be static?

Reported-by: kernel test robot <lkp@intel.com>
Cc: Srinivas Pandruvada <srinivas.pandruvada@intel.com>
Cc: David E Box <david.e.box@intel.com>
Cc: Gayatri Kammela <gayatri.kammela@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220801145536.172410-1-hdegoede@redhat.com
2022-08-01 16:56:34 +02:00
..
atomisp2 platform/x86: intel_atomisp2_led: Also turn off the always-on camera LED on the Asus T100TAF 2022-07-10 19:37:19 +02:00
ifs platform/x86/intel/ifs: Mark as BROKEN 2022-07-10 17:35:37 +02:00
int1092 platform/x86: int1092: Fix non sequential device mode handling 2021-10-11 16:38:32 +02:00
int3472 platform/x86: int3472: Add terminator to gpiod_lookup_table 2022-02-21 14:43:47 +01:00
pmc platform/x86: intel/pmc: Add Alder Lake N support to PMC core driver 2022-06-27 09:37:24 +02:00
pmt platform/x86/intel/pmt: telemetry: Fix fixed region handling 2022-07-02 11:49:55 +02:00
speed_select_if platform/x86: ISST: PUNIT device mapping with Sub-NUMA clustering 2022-07-02 11:42:54 +02:00
telemetry platform/x86: intel_telemetry: Move to intel sub-directory 2021-08-20 20:08:09 +02:00
uncore-frequency platform/x86: intel-uncore-freq: Prevent driver loading in guests 2022-04-27 16:50:25 +02:00
wmi platform/x86: intel-wmi-thunderbolt: Move to intel sub-directory 2021-08-20 20:11:23 +02:00
Kconfig platform/x86: p2sb: Move out of X86_PLATFORM_DEVICES dependency 2022-08-01 16:26:38 +02:00
Makefile platform/x86: p2sb: Move out of X86_PLATFORM_DEVICES dependency 2022-08-01 16:26:38 +02:00
bxtwc_tmu.c platform/x86: intel_bxtwc_tmu: Move to intel sub-directory 2021-08-20 20:00:02 +02:00
chtdc_ti_pwrbtn.c platform/x86: intel_chtdc_ti_pwrbtn: Move to intel sub-directory 2021-08-20 20:00:02 +02:00
chtwc_int33fe.c platform/x86: intel_cht_int33fe: Set driver data 2022-05-19 19:42:44 +02:00
crystal_cove_charger.c platform/x86: intel_crystal_cove_charger: Fix IRQ masking / unmasking 2022-01-24 10:41:46 +01:00
hid.c platform/x86/intel: hid: Add Surface Go to VGBS allow list 2022-06-12 14:41:17 +02:00
int0002_vgpio.c platform/x86: intel_int0002_vgpio: Use the new soc_intel_is_byt()/_cht() helpers 2021-10-19 17:31:24 +02:00
ishtp_eclite.c HID: intel-ish-hid: fix module device-id handling 2021-11-11 22:45:40 +01:00
mrfld_pwrbtn.c platform/x86: intel_mrfld_pwrbtn: Move to intel sub-directory 2021-08-20 20:00:02 +02:00
oaktrail.c platform/x86: intel_oaktrail: Move to intel sub-directory 2021-08-20 20:11:23 +02:00
punit_ipc.c platform/x86/intel: punit_ipc: Drop wrong use of ACPI_PTR() 2021-09-13 10:36:52 +02:00
rst.c platform/x86: intel-rst: Move to intel sub-directory 2021-08-20 20:09:43 +02:00
sdsi.c platform/x86/intel/sdsi: Fix bug in multi packet reads 2022-04-27 16:50:25 +02:00
smartconnect.c platform/x86: intel-smartconnect: Move to intel sub-directory 2021-08-20 20:11:12 +02:00
turbo_max_3.c platform/x86: intel_turbo_max_3: Move to intel sub-directory 2021-08-20 20:11:22 +02:00
vbtn.c platform/x86: Replace acpi_bus_get_device() 2022-02-03 11:55:57 +01:00
vsec.c platform/x86/intel/vsec: Fix wrong type for local status variables 2022-08-01 16:56:34 +02:00
vsec.h platform/x86/intel/vsec: Rework early hardware code 2022-07-02 11:49:39 +02:00