* [PATCH] x86: move arch_get_vdso_data under CONFIG_TIME_NS
@ 2021-10-05 16:48 Andrei Vagin
2021-10-05 16:56 ` Dmitry Safonov
0 siblings, 1 reply; 2+ messages in thread
From: Andrei Vagin @ 2021-10-05 16:48 UTC (permalink / raw)
To: linux-kernel, Andy Lutomirski, Thomas Gleixner
Cc: Andrei Vagin, Dmitry Safonov, kernel test robot
This patch fixes the warning:
>> vma.c:32:19: warning: no previous prototype for 'arch_get_vdso_data'
32 | struct vdso_data *arch_get_vdso_data(void *vvar_page)
| ^~~~~~~~~~~~~~~~~~
Cc: Dmitry Safonov <0x7f454c46@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
---
arch/x86/entry/vdso/vma.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/x86/entry/vdso/vma.c b/arch/x86/entry/vdso/vma.c
index 235a5794296a..427bc56c152b 100644
--- a/arch/x86/entry/vdso/vma.c
+++ b/arch/x86/entry/vdso/vma.c
@@ -31,11 +31,6 @@
#define EMIT_VVAR(name, offset) \
const size_t name ## _offset = offset;
#include <asm/vvar.h>
-
-struct vdso_data *arch_get_vdso_data(void *vvar_page)
-{
- return (struct vdso_data *)(vvar_page + _vdso_data_offset);
-}
#undef EMIT_VVAR
unsigned int vclocks_used __read_mostly;
@@ -98,6 +93,11 @@ static int vdso_mremap(const struct vm_special_mapping *sm,
}
#ifdef CONFIG_TIME_NS
+struct vdso_data *arch_get_vdso_data(void *vvar_page)
+{
+ return (struct vdso_data *)(vvar_page + _vdso_data_offset);
+}
+
static struct page *find_timens_vvar_page(struct vm_area_struct *vma)
{
if (likely(vma->vm_mm == current->mm))
--
2.31.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] x86: move arch_get_vdso_data under CONFIG_TIME_NS
2021-10-05 16:48 [PATCH] x86: move arch_get_vdso_data under CONFIG_TIME_NS Andrei Vagin
@ 2021-10-05 16:56 ` Dmitry Safonov
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Safonov @ 2021-10-05 16:56 UTC (permalink / raw)
To: Andrei Vagin, linux-kernel, Andy Lutomirski, Thomas Gleixner
Cc: kernel test robot
On 10/5/21 5:48 PM, Andrei Vagin wrote:
> This patch fixes the warning:
>>> vma.c:32:19: warning: no previous prototype for 'arch_get_vdso_data'
> 32 | struct vdso_data *arch_get_vdso_data(void *vvar_page)
> | ^~~~~~~~~~~~~~~~~~
>
> Cc: Dmitry Safonov <0x7f454c46@gmail.com>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Andrei Vagin <avagin@gmail.com>
Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com>
Thanks for a fast fix!
--
Dima
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-05 16:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 16:48 [PATCH] x86: move arch_get_vdso_data under CONFIG_TIME_NS Andrei Vagin
2021-10-05 16:56 ` Dmitry Safonov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®