|
Message-ID: <CAADnVQKwvfuoyDEu+rB8=btOi33LdrUvk4EkQM86sDpDG61kew@mail.gmail.com> Date: Tue, 11 Jun 2019 17:05:06 -0700 From: Alexei Starovoitov <alexei.starovoitov@...il.com> To: Shyam Saini <shyam.saini@...rulasolutions.com> Cc: Kernel Hardening <kernel-hardening@...ts.openwall.com>, LKML <linux-kernel@...r.kernel.org>, Andrew Morton <akpm@...ux-foundation.org>, Kees Cook <keescook@...omium.org>, linux-arm-kernel@...ts.infradead.org, linux-mips@...r.kernel.org, intel-gvt-dev@...ts.freedesktop.org, intel-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org, Network Development <netdev@...r.kernel.org>, linux-ext4@...r.kernel.org, devel@...ts.orangefs.org, linux-mm <linux-mm@...ck.org>, linux-sctp@...r.kernel.org, bpf <bpf@...r.kernel.org>, kvm@...r.kernel.org, mayhs11saini@...il.com Subject: Re: [PATCH V2] include: linux: Regularise the use of FIELD_SIZEOF macro On Tue, Jun 11, 2019 at 5:00 PM Shyam Saini <shyam.saini@...rulasolutions.com> wrote: > > Currently, there are 3 different macros, namely sizeof_field, SIZEOF_FIELD > and FIELD_SIZEOF which are used to calculate the size of a member of > structure, so to bring uniformity in entire kernel source tree lets use > FIELD_SIZEOF and replace all occurrences of other two macros with this. > > For this purpose, redefine FIELD_SIZEOF in include/linux/stddef.h and > tools/testing/selftests/bpf/bpf_util.h and remove its defination from > include/linux/kernel.h please dont. bpf_util.h is a user space header. Please leave it as-is.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.