From c1704daac27e340866215677eee00fd28f6b77b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Stelmach?= Date: Thu, 28 Jan 2021 17:31:15 +0100 Subject: [PATCH] kdbus: Use sizeof_field() macro MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Replace of FIELD_SIZEOF() with sizeof_field(). Change-Id: I6647be8fa77ca24bfa3b8d1ed57e8fc6a5a4c98a Fixes: c593642c8be0 ("treewide: Use sizeof_field() macro") Signed-off-by: Łukasz Stelmach --- ipc/kdbus/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipc/kdbus/util.h b/ipc/kdbus/util.h index cf1403b..38c2ed5 100644 --- a/ipc/kdbus/util.h +++ b/ipc/kdbus/util.h @@ -17,6 +17,7 @@ #include #include +#include #include @@ -40,7 +41,7 @@ ({ \ u64 __user *_sz = \ (void __user *)((u8 __user *)(_b) + offsetof(_t, _m)); \ - copy_to_user(_sz, _s, FIELD_SIZEOF(_t, _m)); \ + copy_to_user(_sz, _s, sizeof_field(_t, _m)); \ }) /** -- 2.7.4