arm: vdso: add include file defining __get_datapage()
PATCH v3 2/12 arm: vdso: add include file defining __get_datapage()
Define the prototype for __get_datapage() in local datapage.h header. Rename all vdata variable that point to the datapage shortened to vd to relect a consistent and concise style. Make sure that all references to the datapage in vdso operations are readonly (const). Make sure datapage is first parameter to all subroutines to also be consistent.
Signed-off-by Mark Salyzyn <[email protected]>
Cc James Morse <[email protected]>
Cc Russell King <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Dmitry Safonov <[email protected]>
Cc John Stultz <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Laura Abbott <[email protected]>
Cc Kees Cook <[email protected]>
Cc Ard Biesheuvel <[email protected]>
Cc Andy Gross <[email protected]>
Cc Kevin Brodsky <[email protected]>
Cc Andrew Pinski <[email protected]>
Cc linux-kernel at vger.kernel.org
Cc linux-arm-kernel at lists.infradead.org
v2:
- split first CL into 2 of 7 pieces
v3:
- rebase (unchanged)
--- arch/arm/vdso/datapage.h | 25 +++++++++++ arch/arm/vdso/vgettimeofday.c | 99 +++++++++++++++++++++---------------------- 2 files changed, 73 insertions(+), 51 deletions(-) create mode 100644 arch/arm/vdso/datapage.h
arch/arm/vdso/datapage.h new file +25 -0
@@ -0,0 +1,25 @@ +/* +* Userspace implementations of __get_datapage +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef __VDSO_DATAPAGE_H +#define __VDSO_DATAPAGE_H + +#include <linux/types.h> +#include <asm/vdso_datapage.h> + +extern const struct vdso_data *__get_datapage (void ); + +#endif /* __VDSO_DATAPAGE_H */
arch/arm/vdso/vgettimeofday.c +48 -51
234 lines not on this page · raw message
Signature · 1 line
2.15.0.rc2.357.g7e34df9404-goog