Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1736649
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH 5/7] sound: core: Avoid using timespec for struct snd_timer_status |
| Date | 2017-09-21 15:20 +0200 |
| Message-ID | <us9yx-1tk-1@gated-at.bofh.it> (permalink) |
| References | <us305-5ww-3@gated-at.bofh.it> <us305-5ww-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Sep 21, 2017 at 8:18 AM, Baolin Wang <baolin.wang@linaro.org> wrote:
> static long snd_timer_user_ioctl_compat(struct file *file, unsigned int cmd, unsigned long arg)
> @@ -158,12 +151,10 @@ static long snd_timer_user_ioctl_compat(struct file *file, unsigned int cmd, uns
> return snd_timer_user_gparams_compat(file, argp);
> case SNDRV_TIMER_IOCTL_INFO32:
> return snd_timer_user_info_compat(file, argp);
> - case SNDRV_TIMER_IOCTL_STATUS32:
> + case SNDRV_TIMER_IOCTL_STATUS_COMPAT32:
> return snd_timer_user_status_compat(file, argp);
> -#ifdef CONFIG_X86_X32
> - case SNDRV_TIMER_IOCTL_STATUS_X32:
> - return snd_timer_user_status_x32(file, argp);
> -#endif /* CONFIG_X86_X32 */
> + case SNDRV_TIMER_IOCTL_STATUS_COMPAT64:
> + return snd_timer_user_status64(file, argp);
> }
I think the last line would fail to build since snd_timer_user_status64()
is defined 'static' in a different file.
Also, snd_timer_user_status_compat() seems to be the same as
snd_timer_user_status32(), so I think you can redirect it the same
way as snd_timer_user_status64 after making both functions globally
visible.
Arnd
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH 5/7] sound: core: Avoid using timespec for struct snd_timer_status Baolin Wang <baolin.wang@linaro.org> - 2017-09-21 08:20 +0200
Re: [RFC PATCH 5/7] sound: core: Avoid using timespec for struct snd_timer_status Arnd Bergmann <arnd@arndb.de> - 2017-09-21 15:20 +0200
Re: [RFC PATCH 5/7] sound: core: Avoid using timespec for struct snd_timer_status Baolin Wang <baolin.wang@linaro.org> - 2017-09-22 04:10 +0200
csiph-web