compatibility - fallthrough' pseudo keyword was introduced in v5.4
commit 294f69e662d1570703e9b56e95be37a9fd3afba5 Author: Joe Perches <joe@perches.com> Date: Sat Oct 5 09:46:42 2019 -0700 compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use
This commit is contained in:
parent
74d65bfcbd
commit
0ed11aa9a4
1 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,14 @@
|
||||||
#define __NO_SND_SOC_CODEC_DRV 0
|
#define __NO_SND_SOC_CODEC_DRV 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0)
|
||||||
|
#if __has_attribute(__fallthrough__)
|
||||||
|
# define fallthrough __attribute__((__fallthrough__))
|
||||||
|
#else
|
||||||
|
# define fallthrough do {} while (0) /* fallthrough */
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if __NO_SND_SOC_CODEC_DRV
|
#if __NO_SND_SOC_CODEC_DRV
|
||||||
#define codec component
|
#define codec component
|
||||||
#define snd_soc_codec snd_soc_component
|
#define snd_soc_codec snd_soc_component
|
||||||
|
|
Loading…
Reference in a new issue