From patchwork Tue Jun 5 11:53:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 137719 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp860131lji; Tue, 5 Jun 2018 04:54:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJE1lthlvwUKjBU17yo4DaHvcN82BQHkTKHDA6bFdg1FuWXs+aVzkrQpoLm718RKjkfdXDb X-Received: by 2002:a17:902:4603:: with SMTP id o3-v6mr26791350pld.49.1528199649913; Tue, 05 Jun 2018 04:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528199649; cv=none; d=google.com; s=arc-20160816; b=Qyv+ODrDnojTev9qPPCvvwd6Fs8Ek2XE3CsgTJ4w2ld98Oo8vJRkvplcmhyUg52CLg Ba21dF8dZweV5LYUMfbxMnrmDirjhqJN9ZJAhR4c+4m1+S8/edw36f/nX+N1Xbl8YLFq kHQG8yQufPbN54JMpPThX9MVwmEk9qHYx2cRSytPy2NU+gWKG9xK80jUHIuibXdnEFjc 6jaF9vv0MVA3W029tiYtmNET1W1xHWmB4m7cl/+5bv9bEZgPd5UCRNUx2R1sVRTWStFG SdAb6T5b/Z6AV3xv16xK9D3PemnUYwzneuZG4Qks3zCuFmmbgTNSQMRSIMgwnkl5C2hT Z6qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BEaMMMaD0BGA6BJUs3aFXgZewMKpWYZWeKL2YQF7Vf0=; b=NXH8asX7TzkSJzhhs7iVDvjSH2XFXMPm+RXy05Vc8qp2TpDaQQKe3nUhqLbIhisWCv NSQSDM5PRi5YUU00YXyoWK/WM7iGy6r5rk4Cvu1rlyJYPQ/+/Ne91MTsPe5mwa8ieb4p Rhdes8yP8Q/dpsPRoXO4ZbxcrJDI42oG6NfMeXJVEIYYxuheRvPWZocsL50DM2P6lbXr f1vqTecwYFZ2EhyurkDTh3Er0f65FOL/p+xGn/NsDLT9VrGGpbJfezNF3BzhpYK++Jyj YsRF8h3/A1IDWHh61Jm8cnnFnoDR9JY5WLRJkQUxB7Y6H4RTqUGIkxuWOV7BZ0Ii8t1v WEkg== 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 r72-v6si18774514pfb.65.2018.06.05.04.54.09; Tue, 05 Jun 2018 04:54:09 -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; 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 S1751855AbeFELxy (ORCPT + 30 others); Tue, 5 Jun 2018 07:53:54 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:51955 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751812AbeFELxw (ORCPT ); Tue, 5 Jun 2018 07:53:52 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue007 [212.227.15.129]) with ESMTPA (Nemesis) id 0LiawD-1g0sBl02dJ-00czBI; Tue, 05 Jun 2018 13:53:32 +0200 From: Arnd Bergmann To: Russell King Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: rpc: use designated initializers in ecard_default_ops Date: Tue, 5 Jun 2018 13:53:19 +0200 Message-Id: <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Rc= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When the randstruct plugin is enabled, we get a warning about the use of traditional struct initializers for this structure, which results in incorrect behavior: arch/arm/mach-rpc/ecard.c:416:2: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init] ecard_def_irq_enable, ^~~~~~~~~~~~~~~~~~~~ arch/arm/mach-rpc/ecard.c:416:2: note: (near initialization for 'ecard_default_ops') arch/arm/mach-rpc/ecard.c:416:2: error: invalid initializer arch/arm/mach-rpc/ecard.c:416:2: note: (near initialization for 'ecard_default_ops.') arch/arm/mach-rpc/ecard.c:417:2: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init] ecard_def_irq_disable, ^~~~~~~~~~~~~~~~~~~~~ This changes it to use designated initializers like we do for all other structures. Signed-off-by: Arnd Bergmann --- arch/arm/mach-rpc/ecard.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.9.0 diff --git a/arch/arm/mach-rpc/ecard.c b/arch/arm/mach-rpc/ecard.c index 39aef4876ed4..d0c4e20de4f3 100644 --- a/arch/arm/mach-rpc/ecard.c +++ b/arch/arm/mach-rpc/ecard.c @@ -413,12 +413,12 @@ static int ecard_def_fiq_pending(ecard_t *ec) } static expansioncard_ops_t ecard_default_ops = { - ecard_def_irq_enable, - ecard_def_irq_disable, - ecard_def_irq_pending, - ecard_def_fiq_enable, - ecard_def_fiq_disable, - ecard_def_fiq_pending + .irqenable = ecard_def_irq_enable, + .irqdisable = ecard_def_irq_disable, + .irqpending = ecard_def_irq_pending, + .fiqenable = ecard_def_fiq_enable, + .fiqdisable = ecard_def_fiq_disable, + .fiqpending = ecard_def_fiq_pending }; /*