linux_dsm_epyc7002/arch/x86/entry/vdso
Jérémy Lefaure 0cfe5b5fc0 x86: Use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code.

Found with Coccinelle with the following semantic patch:
@r depends on (org || report)@
type T;
T[] E;
position p;
@@
(
 (sizeof(E)@p /sizeof(*E))
|
 (sizeof(E)@p /sizeof(E[...]))
|
 (sizeof(E)@p /sizeof(T))
)

Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-video@atrey.karlin.mff.cuni.cz
Cc: Martin Mares <mj@ucw.cz>
Cc: Andy Lutomirski <luto@amacapital.net>
Link: https://lkml.kernel.org/r/20171001193101.8898-13-jeremy.lefaure@lse.epita.fr
2017-10-19 16:15:47 +02:00
..
vdso32
.gitignore
checkundef.sh
Makefile
vclock_gettime.c x86/vdso: Add VCLOCK_HVCLOCK vDSO clock read method 2017-03-11 14:47:28 +01:00
vdso2c.c x86: Use ARRAY_SIZE 2017-10-19 16:15:47 +02:00
vdso2c.h x86/vdso: Fix building on big endian host 2016-09-30 12:37:40 +02:00
vdso32-setup.c x86/vdso: Ensure vdso32_enabled gets set to valid values only 2017-04-10 18:31:41 +02:00
vdso-layout.lds.S x86/vdso: Add VCLOCK_HVCLOCK vDSO clock read method 2017-03-11 14:47:28 +01:00
vdso-note.S
vdso.lds.S
vdsox32.lds.S
vgetcpu.c
vma.c x86/gdt: Use bitfields for initialization 2017-08-29 12:07:25 +02:00