ALSA: timer: Avoid ABI change in 4.13.13
authorBen Hutchings <ben@decadent.org.uk>
Thu, 16 Nov 2017 20:46:00 +0000 (20:46 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 16 Nov 2017 21:04:10 +0000 (21:04 +0000)
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

include/sound/timer.h

index 7ae226ab6990832d64c43935dded32463e739790..bee506725a41c855918127c1d0a6e8b4da6ca7e1 100644 (file)
@@ -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 {