From: Ben Hutchings Date: Thu, 16 Nov 2017 20:46:00 +0000 (+0000) Subject: ALSA: timer: Avoid ABI change in 4.13.13 X-Git-Tag: archive/raspbian/4.15.4-1+rpi1~1^2^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=918201ea2fc6f31fa5b49cf685df7dd5038bc609;p=linux.git ALSA: timer: Avoid ABI change in 4.13.13 Commit 9b7d869ee5a7 ("ALSA: timer: Limit max instances per timer") added two new members to the end of struct snd_timer, and this changes ABI for many exported symbols. However, snd_timer is always allocated in the snd-timer module, which is the same place the new members are used. We can safely hide the change from genksyms. Gbp-Pq: Topic debian Gbp-Pq: Name alsa-timer-avoid-abi-change-in-4.13.13.patch --- diff --git a/include/sound/timer.h b/include/sound/timer.h index 7ae226ab699..bee506725a4 100644 --- a/include/sound/timer.h +++ b/include/sound/timer.h @@ -90,8 +90,10 @@ struct snd_timer { struct list_head ack_list_head; struct list_head sack_list_head; /* slow ack list head */ struct tasklet_struct task_queue; +#ifndef __GENKSYMS__ int max_instances; /* upper limit of timer instances */ int num_instances; /* current number of timer instances */ +#endif }; struct snd_timer_instance {