Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3975909ima; Tue, 23 Oct 2018 14:37:52 -0700 (PDT) X-Google-Smtp-Source: AJdET5fF9a790J8d0oFBKVNXPZtiEnwYO7aS9w/yDqxH5UxzCF43p0nIoTqk6mUeuY811xup/DWx X-Received: by 2002:a63:7418:: with SMTP id p24mr3608pgc.196.1540330672281; Tue, 23 Oct 2018 14:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540330672; cv=none; d=google.com; s=arc-20160816; b=mJ1q1UfdzbMK1zqHuwC/j3mb1lnQR56S12dq5puqb08XRcZjRNYOncGzW4ySG6C23v gfM5TTb6C4JdfUqvU5kL+PXvIFV61rGceLUsu44CdKg4eUSAwaFuU6B8F3UspIzr8m8P LbyqjeY6dfK3zopunH7rAV+JJJInRPkJXuPNC2vezgVMK3ft/iKLIJfmqDq99sKyWFb8 NCri5p35K/PLsQxKc4LxnjHWMEcFWjT7nmfaGMDDzQT7FVtcB+lbOKQ6mw+VrIrFUwpO hxLTm7miMeW3uLJxDwKyu8AM6iBPxSgduaR6Qq/hLXAWC3SLxJ6ma4NP041XZZNaXOFx vqQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=wfR+fMPqGcMIiSbYRT7t8ZKG+Wth8+A7neWCKMW39bo=; b=xcvDyepFbKlu7SLs2smmyomZV0lEChP/m9DdcY8oCASTLKJr/nUdjkkSbsbjVM7eyI aG12rnBu8PjZQ5lNyzyEc+ztOqgXtnIWvGS2TWH8ctoTO9FOvhO0xOj6hGKxqd3k59E2 0vwmhUMLvEWJ/83IcGS0zcpUH6QOSutGp3v3UHJcAUu1GX77KgqR5gAt72KzOXfyFkk5 /8wCEFhRhATyllxPsbArnyIUwc24iB1jmWdNqDxMg929Z6TiERlxHJs6lSpvezy9osQR wj8xVm6YcKlN5Vrwc03jw+XtDr8PL9+BKg2RXxgnu+Cn2y+E2qJayPX1SsmIeTLRich8 do4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NSTm8KZS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13-v6si2434995pgg.89.2018.10.23.14.37.36; Tue, 23 Oct 2018 14:37:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NSTm8KZS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729178AbeJXGB1 (ORCPT + 99 others); Wed, 24 Oct 2018 02:01:27 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:44089 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728725AbeJXGB1 (ORCPT ); Wed, 24 Oct 2018 02:01:27 -0400 Received: by mail-lj1-f194.google.com with SMTP id v6-v6so2794363ljc.11; Tue, 23 Oct 2018 14:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references:reply-to; bh=wfR+fMPqGcMIiSbYRT7t8ZKG+Wth8+A7neWCKMW39bo=; b=NSTm8KZSg3mTcjVAHwXvMefH1L9qCAsnuF0SiZouKOL34cs6TBhJ9u+3dCXhe9tcjj NFfLiY6U3spOFYXhmO/FSGNo5ANtqmnSBnyS1g7A1mskX9K0SgD6zO5VnE6s2fr91B4J htrS0hVNIEptrkthCgGEV+IvfGNvnkUYOg9mFPJCkmz/yP2S2JuRM+fzfkVpuKFgij/u XqqTPMKDADSrHYlCm1aZ6pkBs6MPXWIlMRyCaF2ABF6Ot8Ft8QdU54KQHlM1muamJZK/ RKcz16TjeZRaZsBmYR1rqRzq4xo0ph1FhdQbqY/RqDegyjmxrIiwnhBtLwP8EoMqWHwK 188w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:reply-to; bh=wfR+fMPqGcMIiSbYRT7t8ZKG+Wth8+A7neWCKMW39bo=; b=ptDUOGck/Ty4WHGCYE6C/eJI3syiWla00WqwAxKmtrmyxo7iolEt6EGhodohBZDBsM 4IlSRtcDXH9ZSIOnaa4cK6+M2IfrTfYO26sWSBaiY1qrP2EA6yT5vc5aDH/icOuG+hOR Wt29xiiFdx3qqpTv6K1KqrbhKmg6ltwGYUGPvXuNU/L9/5JeryzICk4mrheHYSMhS9OO ZmI4DS4puRiS17uMrm2wkUx/C9UepPM5D9LdKNKkDKlogPDgx/C/gXpBVAqntsEYaan2 +tqLYQmOZfqMCiq6CQlhNK+7jdjsZMRuentgC12iE1eB6mxlmTJ0WW/MP3PR9GYDy/1b I91A== X-Gm-Message-State: AGRZ1gK+FVhlGq40fBL6HWVE5p6AFptFrFvznUw67zEaAv1smHWX6HCZ qTBCjvupri3KLkuCSpJEoQY= X-Received: by 2002:a2e:970d:: with SMTP id r13-v6mr5241lji.30.1540330573423; Tue, 23 Oct 2018 14:36:13 -0700 (PDT) Received: from localhost.localdomain (91-159-62-169.elisa-laajakaista.fi. [91.159.62.169]) by smtp.gmail.com with ESMTPSA id y127-v6sm377950lfc.13.2018.10.23.14.36.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 14:36:12 -0700 (PDT) From: Igor Stoppa X-Google-Original-From: Igor Stoppa To: Mimi Zohar , Kees Cook , Matthew Wilcox , Dave Chinner , James Morris , Michal Hocko , kernel-hardening@lists.openwall.com, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org Cc: igor.stoppa@huawei.com, Dave Hansen , Jonathan Corbet , Laura Abbott , Kate Stewart , "David S. Miller" , Edward Cree , Philippe Ombredanne , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH 11/17] prmem: llist: use designated initializer Date: Wed, 24 Oct 2018 00:34:58 +0300 Message-Id: <20181023213504.28905-12-igor.stoppa@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023213504.28905-1-igor.stoppa@huawei.com> References: <20181023213504.28905-1-igor.stoppa@huawei.com> Reply-To: Igor Stoppa Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using a list_head in an unnamed union poses a problem with the current implementation of the initializer, since it doesn't specify the names of the fields it is initializing. This patch makes it use designated initializers. Signed-off-by: Igor Stoppa CC: Kate Stewart CC: "David S. Miller" CC: Edward Cree CC: Philippe Ombredanne CC: Greg Kroah-Hartman CC: linux-kernel@vger.kernel.org --- include/linux/list.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/linux/list.h b/include/linux/list.h index de04cc5ed536..184a7b60436f 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -18,7 +18,10 @@ * using the generic single-entry routines. */ -#define LIST_HEAD_INIT(name) { &(name), &(name) } +#define LIST_HEAD_INIT(name) { \ + .next = &(name), \ + .prev = &(name), \ +} #define LIST_HEAD(name) \ struct list_head name = LIST_HEAD_INIT(name) -- 2.17.1