4.16 introduced a macro for getting the size of a struct member, so let's use it. Signed-off-by: Jeremy Sowden <jeremy@xxxxxxxxxx> --- extensions/xt_condition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/xt_condition.c b/extensions/xt_condition.c index 8227c5d13f1a..c2c48670c788 100644 --- a/extensions/xt_condition.c +++ b/extensions/xt_condition.c @@ -55,7 +55,7 @@ struct condition_variable { struct proc_dir_entry *status_proc; unsigned int refcount; bool enabled; - char name[sizeof(((struct xt_condition_mtinfo *)NULL)->name)]; + char name[sizeof_field(struct xt_condition_mtinfo, name)]; }; /* proc_lock is a user context only semaphore used for write access */ -- 2.32.0