From: Baolin Wang <baolin.wang@linaro.org> To: Arnd Bergmann <arnd@arndb.de> Cc: Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Liam Girdwood <lgirdwood@gmail.com>, Ingo Molnar <mingo@kernel.org>, Takashi Sakamoto <o-takashi@sakamocchi.jp>, SF Markus Elfring <elfring@users.sourceforge.net>, Dan Carpenter <dan.carpenter@oracle.com>, jeeja.kp@intel.com, Vinod Koul <vinod.koul@intel.com>, dharageswari.r@intel.com, guneshwor.o.singh@intel.com, Bhumika Goyal <bhumirks@gmail.com>, gudishax.kranthikumar@intel.com, Naveen M <naveen.m@intel.com>, hardik.t.shah@intel.com, Arvind Yadav <arvind.yadav.cs@gmail.com>, Fabian Frederick <fabf@skynet.be>, Mark Brown <broonie@kernel.org>, Deepa Dinamani <deepa.kernel@gmail.com>, alsa-devel@alsa-project.org, Linux Kernel Mailing List <linux-kernel@vger.kernel.org> Subject: Re: [RFC PATCH 5/7] sound: core: Avoid using timespec for struct snd_timer_status Date: Fri, 22 Sep 2017 10:03:07 +0800 [thread overview] Message-ID: <CAMz4kuL4GOz1105PJvxCmBPinv9cSzji5+Cg=mkXxd+PpUzsGg@mail.gmail.com> (raw) In-Reply-To: <CAK8P3a0dH4c7NhV2FjJVVf39E6G6+bV3Jh75_sHdFqZ2V1X7uQ@mail.gmail.com> On 21 September 2017 at 21:14, Arnd Bergmann <arnd@arndb.de> wrote: > 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. I saw the timer_compat.c file will be included into timer.c file, so I think it will not. (My arm32 platform can not build compat mode, but I will try again to make sure it can build successfully.) > > 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. OK. Let me check again. -- Baolin.wang Best Regards
WARNING: multiple messages have this Message-ID (diff)
From: Baolin Wang <baolin.wang@linaro.org> To: Arnd Bergmann <arnd@arndb.de> Cc: Fabian Frederick <fabf@skynet.be>, Arvind Yadav <arvind.yadav.cs@gmail.com>, dharageswari.r@intel.com, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, alsa-devel@alsa-project.org, Vinod Koul <vinod.koul@intel.com>, hardik.t.shah@intel.com, Takashi Iwai <tiwai@suse.com>, guneshwor.o.singh@intel.com, Liam Girdwood <lgirdwood@gmail.com>, SF Markus Elfring <elfring@users.sourceforge.net>, gudishax.kranthikumar@intel.com, Mark Brown <broonie@kernel.org>, Bhumika Goyal <bhumirks@gmail.com>, Naveen M <naveen.m@intel.com>, jeeja.kp@intel.com, Takashi Sakamoto <o-takashi@sakamocchi.jp>, Ingo Molnar <mingo@kernel.org>, Dan Carpenter <dan.carpenter@oracle.com>, Deepa Dinamani <deepa.kernel@gmail.com> Subject: Re: [RFC PATCH 5/7] sound: core: Avoid using timespec for struct snd_timer_status Date: Fri, 22 Sep 2017 10:03:07 +0800 [thread overview] Message-ID: <CAMz4kuL4GOz1105PJvxCmBPinv9cSzji5+Cg=mkXxd+PpUzsGg@mail.gmail.com> (raw) In-Reply-To: <CAK8P3a0dH4c7NhV2FjJVVf39E6G6+bV3Jh75_sHdFqZ2V1X7uQ@mail.gmail.com> On 21 September 2017 at 21:14, Arnd Bergmann <arnd@arndb.de> wrote: > 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. I saw the timer_compat.c file will be included into timer.c file, so I think it will not. (My arm32 platform can not build compat mode, but I will try again to make sure it can build successfully.) > > 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. OK. Let me check again. -- Baolin.wang Best Regards
next prev parent reply other threads:[~2017-09-22 2:03 UTC|newest] Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-09-21 6:18 [RFC PATCH 0/7] Fix year 2038 issue for sound subsystem Baolin Wang 2017-09-21 6:18 ` [RFC PATCH 1/7] sound: Replace timespec with timespec64 Baolin Wang 2017-09-21 10:02 ` Arnd Bergmann 2017-09-21 6:18 ` [RFC PATCH 2/7] sound: core: Avoid using timespec for struct snd_pcm_status Baolin Wang 2017-09-22 9:31 ` Takashi Iwai 2017-09-22 9:31 ` Takashi Iwai 2017-09-22 10:14 ` Arnd Bergmann 2017-09-22 10:49 ` Takashi Iwai 2017-09-22 11:43 ` Arnd Bergmann 2017-09-22 12:19 ` Takashi Iwai 2017-09-21 6:18 ` [RFC PATCH 3/7] sound: core: Avoid using timespec for struct snd_pcm_sync_ptr Baolin Wang 2017-09-21 12:50 ` Arnd Bergmann 2017-09-21 12:50 ` Arnd Bergmann 2017-09-22 6:47 ` Baolin Wang 2017-09-22 8:48 ` Arnd Bergmann 2017-09-26 22:24 ` Baolin Wang 2017-09-26 22:24 ` Baolin Wang 2017-09-21 6:18 ` [RFC PATCH 4/7] sound: core: Avoid using timespec for struct snd_rawmidi_status Baolin Wang 2017-09-21 12:56 ` Arnd Bergmann 2017-09-21 12:56 ` Arnd Bergmann 2017-09-22 1:54 ` Baolin Wang 2017-09-21 6:18 ` [RFC PATCH 5/7] sound: core: Avoid using timespec for struct snd_timer_status Baolin Wang 2017-09-21 13:14 ` Arnd Bergmann 2017-09-22 2:03 ` Baolin Wang [this message] 2017-09-22 2:03 ` Baolin Wang 2017-09-21 6:18 ` [RFC PATCH 6/7] uapi: sound: Avoid using timespec for struct snd_ctl_elem_value Baolin Wang 2017-09-21 12:58 ` Arnd Bergmann 2017-09-26 21:54 ` Baolin Wang 2017-09-21 6:18 ` [RFC PATCH 7/7] sound: core: Avoid using timespec for struct snd_timer_tread Baolin Wang 2017-09-21 13:09 ` Arnd Bergmann 2017-09-22 3:00 ` Baolin Wang 2017-09-22 7:57 ` Arnd Bergmann 2017-09-22 7:57 ` Arnd Bergmann 2017-09-22 8:38 ` Baolin Wang 2017-09-22 8:38 ` Baolin Wang 2017-09-22 4:07 ` [RFC PATCH 0/7] Fix year 2038 issue for sound subsystem Takashi Sakamoto 2017-09-22 5:30 ` Baolin Wang 2017-09-22 9:15 ` Mark Brown 2017-09-22 9:15 ` Mark Brown 2017-09-22 9:17 ` Takashi Iwai 2017-09-22 9:17 ` Takashi Iwai
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CAMz4kuL4GOz1105PJvxCmBPinv9cSzji5+Cg=mkXxd+PpUzsGg@mail.gmail.com' \ --to=baolin.wang@linaro.org \ --cc=alsa-devel@alsa-project.org \ --cc=arnd@arndb.de \ --cc=arvind.yadav.cs@gmail.com \ --cc=bhumirks@gmail.com \ --cc=broonie@kernel.org \ --cc=dan.carpenter@oracle.com \ --cc=deepa.kernel@gmail.com \ --cc=dharageswari.r@intel.com \ --cc=elfring@users.sourceforge.net \ --cc=fabf@skynet.be \ --cc=gudishax.kranthikumar@intel.com \ --cc=guneshwor.o.singh@intel.com \ --cc=hardik.t.shah@intel.com \ --cc=jeeja.kp@intel.com \ --cc=lgirdwood@gmail.com \ --cc=linux-kernel@vger.kernel.org \ --cc=mingo@kernel.org \ --cc=naveen.m@intel.com \ --cc=o-takashi@sakamocchi.jp \ --cc=perex@perex.cz \ --cc=tiwai@suse.com \ --cc=vinod.koul@intel.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.