Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7097155imu; Mon, 21 Jan 2019 23:51:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN571Y4ZifrnLYpq8Y2rY2DGA7tUqa43XehOns1XyX9MIzzC13yN3sbhWAVspB5V5V0oaUgT X-Received: by 2002:a17:902:a58a:: with SMTP id az10mr33774189plb.10.1548143465298; Mon, 21 Jan 2019 23:51:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548143465; cv=none; d=google.com; s=arc-20160816; b=p6jmilEsGa3kgTeZ1qH4N+78BsR4Bkdy2yl3+RCFW2qGRTGqTRJ3Znqu8NoXqb77eh 9t8/s1P0o0Hwf6ljQexmp3pzLyB7RPuGekfyWyOlbhFbdgCAWRVj2IyMiu4bXpJXrI9e RlGk1sG6vDtd3kQtkPpIsEOUlKNkrCtuQxgrc0RmzEG8zRYFFo9JCVTEsjJGiJ1FlM59 sptWJeB6cOAQn20n1gnIhZTDn3FJtv+rgizD6A8SK3KrXHdfW/oJeSZMQqY1P2fq02Yn zYdVqohdYJat3owVcCFkyD4rd0iilHpCva1ed1k52Wq8LNUbDKDUlpgYlvnwUt6N7a88 F4xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=CbCrKt0A+3AbH4SB/oL+I+WuAXpgeum8/HW2Ib0K4X0=; b=soF3LbJb17GW5rb6jDq+AhXIU1EqQqC1pchnSZF2ccz705wo5J37f7zcyw3ODwAsWV wXnk0mL1ZpOmG+XvDtWtG2/k6dD71BHKFOic99mv7BkNolmeomPqCvXhFmAnqjiXnHGT YvQRgSYzwPh7SZOMOxok3H1BnWDpHMSvnT0Z1wUIUvJPZNsqO2FNBg48AW2+7UDZeJK4 XER1hu5SEhXp0UwjR431Gmpy4wKpFDL60rsu7v12ibhRz13V/QqQQ3hxTKdOjFG1BFBt wxYuUJ9RvS5BmdMQHpqwIREYG/35JWFCHUSbjqfv9l0998lV1M3HUQG9ne7HFYe/LM5H 6Osg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u69si14667651pfj.219.2019.01.21.23.50.49; Mon, 21 Jan 2019 23:51:05 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727364AbfAVHtr convert rfc822-to-8bit (ORCPT + 99 others); Tue, 22 Jan 2019 02:49:47 -0500 Received: from mail.bootlin.com ([62.4.15.54]:54062 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727219AbfAVHtr (ORCPT ); Tue, 22 Jan 2019 02:49:47 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 476E52078C; Tue, 22 Jan 2019 08:49:45 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from xps13 (aaubervilliers-681-1-37-87.w90-88.abo.wanadoo.fr [90.88.156.87]) by mail.bootlin.com (Postfix) with ESMTPSA id D7130206DC; Tue, 22 Jan 2019 08:49:44 +0100 (CET) Date: Tue, 22 Jan 2019 08:49:44 +0100 From: Miquel Raynal To: Masahiro Yamada Cc: linux-mtd@lists.infradead.org, Boris Brezillon , Thierry Reding , Brian Norris , Jonathan Hunter , Linus Walleij , linux-kernel@vger.kernel.org, Marek Vasut , Stefan Agner , Richard Weinberger , David Woodhouse , Janusz Krzysztofik , linux-tegra@vger.kernel.org, Boris Brezillon , Lucas Stach Subject: Re: [PATCH 2/2] mtd: rawnand: use unnamed union in struct nand_op_parser_pattern_elem Message-ID: <20190122084944.420fcd4a@xps13> In-Reply-To: <1548142975-14219-3-git-send-email-yamada.masahiro@socionext.com> References: <1548142975-14219-1-git-send-email-yamada.masahiro@socionext.com> <1548142975-14219-3-git-send-email-yamada.masahiro@socionext.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, Masahiro Yamada wrote on Tue, 22 Jan 2019 16:42:55 +0900: > Although drivers do not directly get access to the private data of > instruction patterns, let's use unnamed union field to be consistent > with nand_op_instr. > Actually this is how we wrote it the first time. Then we got robots reporting that anonymous unions where not allowed with older (still supported) GCC versions and I had to do this: commit c1a72e2dbb4abb90bd408480d7c48ba40cb799ce Author: Miquel Raynal Date: Fri Jan 19 19:11:27 2018 +0100 mtd: nand: Fix build issues due to an anonymous union GCC-4.4.4 raises errors when assigning a parameter in an anonymous union, leading to this kind of failure: drivers/mtd/nand/marvell_nand.c:1936: warning: missing braces around initializer warning: (near initialization for '(anonymous)[1].') error: unknown field 'data' specified in initializer error: unknown field 'addr' specified in initializer Work around the situation by naming these unions. Fixes: 8878b126df76 ("mtd: nand: add ->exec_op() implementation") Reported-by: Andrew Morton Signed-off-by: Miquel Raynal Tested-by: Andrew Morton Signed-off-by: Boris Brezillon Thanks, Miquèl