From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759256AbcLCBYv (ORCPT ); Fri, 2 Dec 2016 20:24:51 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:53720 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757015AbcLCBYu (ORCPT ); Fri, 2 Dec 2016 20:24:50 -0500 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com uB31OiX0017811 X-Nifty-SrcIP: [209.85.161.172] MIME-Version: 1.0 In-Reply-To: <1480725436-9628-1-git-send-email-vlee@freedesktop.org> References: <1480725436-9628-1-git-send-email-vlee@freedesktop.org> From: Masahiro Yamada Date: Sat, 3 Dec 2016 10:24:43 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] clk: uniphier: Fix build with gcc-4.4. To: Vinson Lee Cc: linux-clk , Michael Turquette , Stephen Boyd , Linux Kernel Mailing List , linux-arm-kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id uB31OuSk014217 Hi Vinson, 2016-12-03 9:37 GMT+09:00 Vinson Lee : > gcc-4.4 has issues with anonymous unions in initializers. > > CC drivers/clk/uniphier/clk-uniphier-sys.o > drivers/clk/uniphier/clk-uniphier-sys.c:45: error: unknown field ‘factor’ specified in initializer > > Fixes: 1574d5722636 ("clk: uniphier: remove unneeded member name for union") > Signed-off-by: Vinson Lee This driver has COMPILE_TEST option, but kbuild test robot did not mention about this. This is a bad way of fixing, I think. (what if a new member is inserted before the union in the future?) Rather, please revert the bad commit. > .name = "sd" #ch "-sel", \ > .type = UNIPHIER_CLK_TYPE_MUX, \ > .idx = -1, \ > - .mux = { \ > + { .mux = { \ > .parent_names = { \ > "sd-44m", \ > "sd-33m", \ > @@ -63,7 +63,7 @@ > 0x00001200, \ > 0x00001300, \ > }, \ > - }, \ > + } }, \ > }, \ No, please do not do this. -- Best Regards Masahiro Yamada