From patchwork Wed Sep 12 00:25:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 10596897 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7A28D13BF for ; Wed, 12 Sep 2018 07:04:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6902F29920 for ; Wed, 12 Sep 2018 07:04:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D56B29924; Wed, 12 Sep 2018 07:04:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1791329920 for ; Wed, 12 Sep 2018 07:04:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AE0516E4A1; Wed, 12 Sep 2018 07:03:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 385456E413; Wed, 12 Sep 2018 00:26:29 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id n11-v6so433469wmc.2; Tue, 11 Sep 2018 17:26:29 -0700 (PDT) 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; bh=l35jg51nqQT9C8cM5/wk+RzVdJVbP+i8XAe7iDMYtvQ=; b=deO2Q2qV5QPxspQNMJQXxUS2qo4JQ9hvdEMh64uRynnW/jOJm1n7eHNbePjN7Keo0L 6wBZa0VxdzgtH6foY/Gr8Pf+mq2GjDs6NZcQdkwYVaRpilXmHPV45mORb/SfSWlHuaKD +q58AoVUxTHq/ZbYauOhbOd5UV5PG5Glxax4him4kHGF/oDmXV4XUpyr0vvjjlnbACt7 GuX4wSaSA16Oroqcu33DGy8ahzDgG9dgj5kJFeidIdge1Kb/2wcWShhIRPy/laez3bDV K2WlevD1IVTbpYfqPLtj7e0aQe4MM4GVGXoKZMTr43XgV03o+3sPCniZmzWD5QHDFvIF bHfg== X-Gm-Message-State: APzg51DZqooXDFKSRxvBY3BmH2eMplce8SQfZ5CJZS7vaJ/HJOeOjKUT 2IWa36Ua/XQ6O889h4lLaKo= X-Google-Smtp-Source: ANB0VdbosIya515p0PsdUnCeKJmfkMHJ1bX4QKaWsg3DsGEnnp9S6ixGoofhQzDklEPgwlrfjVwAwQ== X-Received: by 2002:a1c:6854:: with SMTP id d81-v6mr2649235wmc.160.1536711987603; Tue, 11 Sep 2018 17:26:27 -0700 (PDT) Received: from localhost.localdomain ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id f132-v6sm1388680wme.24.2018.09.11.17.26.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Sep 2018 17:26:26 -0700 (PDT) From: Nathan Chancellor To: Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , "David (ChunMing) Zhou" Subject: [PATCH] drm/amdgpu: Add braces to initialize task_info subojects Date: Tue, 11 Sep 2018 17:25:59 -0700 Message-Id: <20180912002559.1853-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.18.0 X-Mailman-Approved-At: Wed, 12 Sep 2018 07:03:07 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nathan Chancellor , Nick Desaulniers , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Clang warns if there are missing braces around a subobject initializer. drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c:1447:41: warning: suggest braces around initialization of subobject [-Wmissing-braces] struct amdgpu_task_info task_info = { 0 }; ^ {} 1 warning generated. drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:262:41: warning: suggest braces around initialization of subobject [-Wmissing-braces] struct amdgpu_task_info task_info = { 0 }; ^ {} 1 warning generated. Reported-by: Nick Desaulniers Signed-off-by: Nathan Chancellor --- drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c index 9333109b210d..968cc1b8cdff 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c @@ -1444,7 +1444,7 @@ static int gmc_v8_0_process_interrupt(struct amdgpu_device *adev, gmc_v8_0_set_fault_enable_default(adev, false); if (printk_ratelimit()) { - struct amdgpu_task_info task_info = { 0 }; + struct amdgpu_task_info task_info = { { 0 } }; amdgpu_vm_get_task_info(adev, entry->pasid, &task_info); diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index 72f8018fa2a8..a781a5027212 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c @@ -259,7 +259,7 @@ static int gmc_v9_0_process_interrupt(struct amdgpu_device *adev, } if (printk_ratelimit()) { - struct amdgpu_task_info task_info = { 0 }; + struct amdgpu_task_info task_info = { { 0 } }; amdgpu_vm_get_task_info(adev, entry->pasid, &task_info);