linux_dsm_epyc7002/arch/x86/platform/intel-mid/device_libs
Andy Shevchenko 9d0513d82f x86/platform/intel-mid: Revert "Make 'bt_sfi_data' const"
So one of the constification patches unearthed a type casting fragility
of the underlying code:

  276c870547 ("x86/platform/intel-mid: Make 'bt_sfi_data' const")

converted the struct to be const while it is also used as a temporary
container for important data that is used to fill 'parent' and 'name'
fields in struct platform_device_info.

The compiler doesn't notice this due to an explicit type cast that loses
the const - which fragility will be fixed separately.

This type cast turned a seemingly trivial const propagation patch into a
hard to debug data corruptor and crasher bug.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Bhumika Goyal <bhumirks@gmail.com>
Cc: Darren Hart <dvhart@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: julia.lawall@lip6.fr
Cc: platform-driver-x86@vger.kernel.org
Link: http://lkml.kernel.org/r/20171228122523.21802-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2018-01-08 20:01:44 +01:00
..
Makefile
platform_bcm43xx.c
platform_bma023.c
platform_bt.c
platform_emc1403.c
platform_gpio_keys.c
platform_lis331.c
platform_max7315.c
platform_mpu3050.c
platform_mrfld_pinctrl.c
platform_mrfld_power_btn.c
platform_mrfld_rtc.c
platform_mrfld_sd.c
platform_mrfld_spidev.c
platform_mrfld_wdt.c
platform_msic_audio.c
platform_msic_battery.c
platform_msic_gpio.c
platform_msic_ocd.c
platform_msic_power_btn.c
platform_msic_thermal.c
platform_msic.c
platform_msic.h
platform_pcal9555a.c
platform_tc35876x.c
platform_tca6416.c