OpenCloudOS-Kernel/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 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
platform_bcm43xx.c x86/platform/intel-mid: Enable WiFi on Intel Edison 2016-09-01 08:22:42 +02:00
platform_bma023.c x86: Fix misspellings in comments 2016-02-24 08:44:58 +01:00
platform_bt.c x86/platform/intel-mid: Revert "Make 'bt_sfi_data' const" 2018-01-08 20:01:44 +01:00
platform_emc1403.c x86: Fix misspellings in comments 2016-02-24 08:44:58 +01:00
platform_gpio_keys.c x86: Use ARRAY_SIZE 2017-10-19 16:15:47 +02:00
platform_lis331.c x86: Fix misspellings in comments 2016-02-24 08:44:58 +01:00
platform_max7315.c x86/platform/intel-mid: Fix a format string overflow warning 2017-07-20 10:46:25 +02:00
platform_mpu3050.c x86: Fix misspellings in comments 2016-02-24 08:44:58 +01:00
platform_mrfld_pinctrl.c x86/platform/intel-mid: Add pinctrl for Intel Merrifield 2016-07-01 10:12:39 +02:00
platform_mrfld_power_btn.c x86/platform/intel-mid: Add power button support for Merrifield 2017-03-13 22:08:28 +01:00
platform_mrfld_rtc.c x86/platform/intel-mid: Allocate RTC interrupt for Merrifield 2017-01-20 10:07:41 +01:00
platform_mrfld_sd.c x86/platform/intel-mid: Enable SD card detection on Merrifield 2016-09-01 08:22:42 +02:00
platform_mrfld_spidev.c x86/platform/intel-mid: Rename 'spidev' to 'mrfld_spidev' 2017-01-05 09:03:29 +01:00
platform_mrfld_wdt.c x86/platform/intel-mid: Make IRQ allocation a bit more flexible 2017-07-25 11:21:03 +02:00
platform_msic.c x86: Fix misspellings in comments 2016-02-24 08:44:58 +01:00
platform_msic.h x86, intel-mid: Cleanup some platform code's header files 2014-01-28 15:13:40 -08:00
platform_msic_audio.c x86/platform/intel-mid: Get rid of duplication of IPC handler 2017-01-06 08:35:27 +01:00
platform_msic_battery.c x86/platform/intel-mid: Get rid of duplication of IPC handler 2017-01-06 08:35:27 +01:00
platform_msic_gpio.c x86/platform/intel-mid: Get rid of duplication of IPC handler 2017-01-06 08:35:27 +01:00
platform_msic_ocd.c x86/platform/intel-mid: Get rid of duplication of IPC handler 2017-01-06 08:35:27 +01:00
platform_msic_power_btn.c x86/platform/intel-mid: Get rid of duplication of IPC handler 2017-01-06 08:35:27 +01:00
platform_msic_thermal.c x86/platform/intel-mid: Get rid of duplication of IPC handler 2017-01-06 08:35:27 +01:00
platform_pcal9555a.c x86/platform/intel-mid: Enable GPIO expanders on Edison 2016-06-15 12:52:54 +02:00
platform_tc35876x.c gpu: drm: tc35876x: move header file out of I2C realm 2017-08-13 16:07:17 +02:00
platform_tca6416.c x86: Fix misspellings in comments 2016-02-24 08:44:58 +01:00