From patchwork Mon Oct 26 19:41:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 318985 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp949687ilc; Mon, 26 Oct 2020 12:41:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPky95V0SnB+nU2YkCjLhhccgDPLbtkKxwNc/R1ZcmN2rRkTtwOPEOR0ZHx91hXWlM4HzU X-Received: by 2002:a17:902:6a83:b029:d5:e98f:2437 with SMTP id n3-20020a1709026a83b02900d5e98f2437mr12726223plk.38.1603741278856; Mon, 26 Oct 2020 12:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603741278; cv=none; d=google.com; s=arc-20160816; b=VvT82lO+oCwMqptAkfea0vHJvR33/ZtIaTSwzbA9NM74RcUIHlexPTRrY4Crl8RnE1 wggHL4h15JkiBDUu14+F1LHwNOXDOXvtN8pTy6f1K52D/mbRlpcsGu2ALF0oQvtgiM56 ZY7vJpzJuIHPQ64+7utxWTzmOhjkIx+0Ju9sN0lGCcXMDY5+PqJQ8ipEAgZCIwxr+TN+ njknSRQAQ0jUFVVjkQEWqsk37lBuFEHcobMSqv3+OqbBKUZjoecp3rfXkoHK2matPobD i1BjD5toMsgvyGhTNyxaww76pACrqtUYSffgMjEMGUIezLmHZm8uWkES5wwXJgXkYIdV C0VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=1eWc4saXf4YORK4xkZrAhFD+vp8Qsw8wX7TsDjAkUbI=; b=SHWaunKGqAmRgIr/osgnRUbzWLlP5GeulZkvLhyUf+cKYN1w1A4oj9W3XN6OEBl36n Jril3HrNUiQxISBd7QN1eyYrYzPDFzziWn5H4zVaVj2Lg2B9MSWT4HuguuMCR2HEr6Oz ZOxcsvWd55y98fELBzRwR4NatlL0k4fCxxLHINQqSLnOUrgM+71e2g6xCTgxy9EfPehs /mO/PRIPBV1HYuRiU1F4xLXQaDaTf1ERR+b5+UW7/4UUsNr7qTpRn6PMUfMFPLyq0MLv FuKaCQCu8sv50zCaybxp+3h9VYACJ60cN46yIWKSNeRF9Mzc2Ahclkk5CgteX8431O/q ck0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=DIcusht2; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id g14si9873199pjl.66.2020.10.26.12.41.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 12:41:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=DIcusht2; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D76036E05D; Mon, 26 Oct 2020 19:41:17 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1DFF76E05D for ; Mon, 26 Oct 2020 19:41:17 +0000 (UTC) Received: from localhost.localdomain (unknown [192.30.34.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2380F20760; Mon, 26 Oct 2020 19:41:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603741276; bh=uy/Dd88vKPnPfb5LV8zDZKHQiy07h3pNTguOKFJpBdI=; h=From:To:Cc:Subject:Date:From; b=DIcusht26pawNI4TxAoolmq4mmWZTDn2U2FCjskbQl7Zjaeih5EGLOlghAy2ks4tV ZG9+SXQJ2e0AUxWpIdp9D9lBkHIPYxM64wU8XHZ1VIGIh2jcL9UfrFT1Ls+XcqlMuF +/oi+5rG84fIyxQ55mUkvb1d5Fo3OTIhZBuqQrDM= From: Arnd Bergmann To: Jyri Sarha , David Airlie , Daniel Vetter Subject: [PATCH 1/4] drm/tilcdc: avoid 'make W=2' build failure Date: Mon, 26 Oct 2020 20:41:01 +0100 Message-Id: <20201026194110.3817470-1-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Tomi Valkeinen , Thomas Zimmermann , Emil Velikov , Wambui Karuga Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann The -Wmissing-field-initializer warning when building with W=2 turns into an error because tilcdc is built with -Werror: drm/tilcdc/tilcdc_drv.c:431:33: error: missing field 'data' initializer [-Werror,-Wmissing-field-initializers] { "regs", tilcdc_regs_show, 0 }, drm/tilcdc/tilcdc_drv.c:432:33: error: missing field 'data' initializer [-Werror,-Wmissing-field-initializers] { "mm", tilcdc_mm_show, 0 }, Add the missing field initializers to address the warning. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Reviewed-by: Jyri Sarha diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 4f5fc3e87383..754a66051a21 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -428,8 +428,8 @@ static int tilcdc_mm_show(struct seq_file *m, void *arg) } static struct drm_info_list tilcdc_debugfs_list[] = { - { "regs", tilcdc_regs_show, 0 }, - { "mm", tilcdc_mm_show, 0 }, + { "regs", tilcdc_regs_show, 0, NULL }, + { "mm", tilcdc_mm_show, 0, NULL }, }; static void tilcdc_debugfs_init(struct drm_minor *minor)