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) From patchwork Mon Oct 26 19:41:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 318986 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp949886ilc; Mon, 26 Oct 2020 12:41:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZBjH2koviAuDAv7fom2QH3Fn+KU8lxoKNn7rPjr5UmGpnMRMPELMirYfVUTmLBi2cWCUz X-Received: by 2002:a17:90a:b894:: with SMTP id o20mr22740053pjr.224.1603741297588; Mon, 26 Oct 2020 12:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603741297; cv=none; d=google.com; s=arc-20160816; b=wGpignmVPOg6lAa8fFJEgpO+gKDxQlz+wL/ppA4Nl+QkAeQxDdWlrzEeRJeO1KqFZi pEgkHNwqQHO397h1tkgvn1q25LkB9JXXtCNbmja1sbp4AoNPF5WSdMeNpSZtJ3EIkcKO /G5YQTmUeGT7xXCZA1BScu4wWte55ErZeCMKmMmulSpIHezETQE0dU2U1oZSGDekrR0l ik+AIi2jws3LABMI1mu7odZs/ceTHMMzm9CeDE0eaYzjdGf4UJB/n5eBgq7Bg/97XJaZ NUtPHDMBagzkAqYgPTRGZZvgq8+nGEbjn8R3JwBplBHrsCvQWFs2rF0brta1ICZV9kRj 3VKQ== 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:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=zUbmm3GY+ifli7amMJjb/edPhkwqNBfxc2kgYzhUNfo=; b=AuCOlf5n/JCCq4YscBDApLkUuMNoutNZSxjGCG01Nv8h6M7m+MF/dMfJ6FZHa7bnTc NSBMOTQhh6h0EftZMfqLLTE/8n6u5b6wguWpAyPQ67lu6cKDAadPPHFAb/hGLPdY0tJq QKyvrpOeacKnAc1yQTtOqXeqNITHY953O6uAlPwvKWMlXg35gD71SoCJhd69I4Gy1hLr /XEFJaauNlH5MaGRQJX35UrIzO5Dz3LnE2z8xt6nGimsOi6CfIiJ4I0ndwMPp1nayg8u fBqKfYWxw4qxbimXgSg8md4+V5ayoBVoyAwydUfcjS7Yf6EOH50q0+8IQOdeqThEDxOR bv6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=my0MbNi1; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id cl1si9816291pjb.53.2020.10.26.12.41.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 12:41:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=my0MbNi1; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 A28C16E07F; Mon, 26 Oct 2020 19:41:36 +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 F10186E07F for ; Mon, 26 Oct 2020 19:41:35 +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 D0CFD20760; Mon, 26 Oct 2020 19:41:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603741295; bh=kPKgYhCjPZ0Kd73SAPgJfiOLIpQSjX80yttk+Qioh7I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=my0MbNi12566RXnUFJGMFBmXUZAzUqQVSwEb6bcCMZp/bvhJyzEhGSjso6EoVQeTr kgSOdppAc3IkQlNhAuXhlfS68RK4w79k9hIpcJppvA41zg3yIvnXHXAZ/emQfxGmgm W1DwjQ46787tiBaNkW2G6r+FBfloYe3ZjtyO/wY0= From: Arnd Bergmann To: Philipp Zabel , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer Subject: [PATCH 2/4] drm/imx: tve remove extraneous type qualifier Date: Mon, 26 Oct 2020 20:41:02 +0100 Message-Id: <20201026194110.3817470-2-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201026194110.3817470-1-arnd@kernel.org> References: <20201026194110.3817470-1-arnd@kernel.org> 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: Thomas Zimmermann , Arnd Bergmann , Greg Kroah-Hartman , Nick Desaulniers , Marco Felsch , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, NXP Linux Team , Pengutronix Kernel Team , Nathan Chancellor , Markus Elfring , linux-arm-kernel@lists.infradead.org, Laurent Pinchart Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann clang warns about functions returning a 'const int' result: drivers/gpu/drm/imx/imx-tve.c:487:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] Remove the extraneous 'const' qualifier here. I would guess that the function was intended to be marked __attribute__((const)) instead, but that would also be wrong since it call other functions without that attribute. Fixes: fcbc51e54d2a ("staging: drm/imx: Add support for Television Encoder (TVEv2)") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/imx/imx-tve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Reviewed-by: Nick Desaulniers diff --git a/drivers/gpu/drm/imx/imx-tve.c b/drivers/gpu/drm/imx/imx-tve.c index ef3c25d87d87..2a8d2e32e7b4 100644 --- a/drivers/gpu/drm/imx/imx-tve.c +++ b/drivers/gpu/drm/imx/imx-tve.c @@ -484,7 +484,7 @@ static const char * const imx_tve_modes[] = { [TVE_MODE_VGA] = "vga", }; -static const int of_get_tve_mode(struct device_node *np) +static int of_get_tve_mode(struct device_node *np) { const char *bm; int ret, i; From patchwork Mon Oct 26 19:41:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 318987 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp950083ilc; Mon, 26 Oct 2020 12:41:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUImhYwpI/ZFGscVq2NjV5fjS3IQ6k5lIc4CQzcKPGHy4g9abTg0gr+J/9w+xWzCNiJ6Hw X-Received: by 2002:a62:7c09:0:b029:152:60c9:43b2 with SMTP id x9-20020a627c090000b029015260c943b2mr893940pfc.79.1603741313044; Mon, 26 Oct 2020 12:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603741313; cv=none; d=google.com; s=arc-20160816; b=xYD5oHUNt0PkCHYjAC+p1HLh5Z2DZyFb+QJYlrk/F3C+kP+nDXgBjC0+XuhggJIDLG oixKiax1M69mPwPeml7wvp/jRt6vMLHHbSDWkI/gYMNkQIPAocZKFk2MAGGo7ucGFHlW OA0Z/BVRf+hgvdexO9SCejuw/M0CrgzaAsc431g2NAEifXwO270Fwnh3nem+8cLNF6vM eA61QV61hCrAbzjbF4JaU+n2/d5KAwr1W4/TEXrR99oHs6GHlyQv2sQpSpIOrrWvMjNL eksnCpViDoh68dVjUSHYD7PES+/evRFvBmCU2NkJPlR9AyXsSNQHdKYLUMDriOOBGGw8 jcOA== 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:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=wZ8MI4Z/xURARMXAwA9CHELTUpASTkwhWiG4eJjaTSo=; b=eow6q4grD3Gnvw4GVJejG8s6y27/hBOQBDhUwmSf9HvlZJdTZGIjc2/D5LG+mRfb9g GrUKDqWKucm37OFa22jQvtMDHL6xtzLHXCjFaX4sl7EGIqcexg4MKzfUtNmdqXR/zMRh xhIoZN6/HlgRykcUZcZTCZ8Amp5yjWvo3LBJxy50tm13SHOrJs01iBeM6CE8PVMH4k5V NS1oG+fRX50gTIxvzEL14iJ+S28/SCUg/o89ByFPqkULkOj+C+Pyx80HwoTJSCwtAoYO 7CSJXJifMKRkQByX7DCY+fw1i+pxUKS2QXhx+vMk0TkxB9YX8SeA/tCm6B/9OGGkCT7x 9PQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=zyNLVnR7; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id y10si10040161pjl.143.2020.10.26.12.41.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 12:41:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=zyNLVnR7; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 1C6F46E135; Mon, 26 Oct 2020 19:41:52 +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 7456E6E0E5; Mon, 26 Oct 2020 19:41:50 +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 3F41420872; Mon, 26 Oct 2020 19:41:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603741310; bh=VLNSpeq9/avcjh10RAUxOl5HJD/C0lqcUgYnxzCFedA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zyNLVnR7Y8LoSfkbNY4gd0K6VlfbjAqqlUi23Qqy54f0We4dvdQQaDOWeKtz58zM8 CLzuQZP29aOtQ3guUZGXXt3mow91qds3KkcX2iLMoTOuqSRpnpr2nGnTvaJayU6kdY FPSrxYCzurbCzYzjTX2Mfcfe/E8p5aIf2H5tzQzI= From: Arnd Bergmann To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Jonathan Marek Subject: [PATCH 3/4] drm/msm: fix -Woverride-init warning Date: Mon, 26 Oct 2020 20:41:03 +0100 Message-Id: <20201026194110.3817470-3-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201026194110.3817470-1-arnd@kernel.org> References: <20201026194110.3817470-1-arnd@kernel.org> 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: Rob Clark , Krishna Manikandan , Shubhashree Dhar , Arnd Bergmann , Raviteja Tamatam , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Stephen Boyd , Kalyan Thota , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann There is one harmless duplicate initialization that causes a warning with 'make W=1': drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:122:19: warning: initialized field overwritten [-Woverride-init] 122 | .max_linewidth = 4096, | ^~~~ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:122:19: note: (near initialization for 'sm8250_dpu_caps.max_linewidth') Remove one of the two identical initializers to avoid the warning. Fixes: af776a3e1c30 ("drm/msm/dpu: add SM8250 to hw catalog") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 1 - 1 file changed, 1 deletion(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c index 60b304b72b7c..9c23f814ccaf 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c @@ -111,7 +111,6 @@ static const struct dpu_caps sm8150_dpu_caps = { static const struct dpu_caps sm8250_dpu_caps = { .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH, .max_mixer_blendstages = 0xb, - .max_linewidth = 4096, .qseed_type = DPU_SSPP_SCALER_QSEED3, /* TODO: qseed3 lite */ .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */ .ubwc_version = DPU_HW_UBWC_VER_40, From patchwork Mon Oct 26 19:41:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 318988 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp950175ilc; Mon, 26 Oct 2020 12:42:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+Ns+CG/8bgOqtOjmP8alEvQFq22+XMqqLM5GLl3kV+m4fH3i2F2qvrSd65byZY3EGlAMK X-Received: by 2002:a17:90a:d082:: with SMTP id k2mr18251216pju.195.1603741322367; Mon, 26 Oct 2020 12:42:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603741322; cv=none; d=google.com; s=arc-20160816; b=yU3cxiKV5cU5ieEHtnsRTjUZteGswnvweG0p687W5V0Bpbd50bLcsyFjHhtEMSdmZV HI0iESbxCxahUJEtX2GBVmCVpKZZshW6KyzcF3Mpo4o6g0UxNBd0vE5/QG2Z2ZlBPxxo A5/puliA3ZBuwWDMpN9K81J7pZh/beeW5TzBWYEOsZTLsqT2YytvPp1z87VjlwXVtCVk qpxdAfV9ziiQbWwPQd4jrSvIqGsjUe8M59iYqrVJR2jiJeA2ziF0laaEFLYQ6oap/cMk su3zVDrFmw3W7i0pCxR3x2xgeolaVUHScaAd+QZ8UoUCROJPMSkt2iaLqZSADSAcO1f0 KNzA== 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:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=YNxRGJ3domnOQKxJVv+pbVeVv7EBWKKJOzygdZcnC0s=; b=1ApY+iCJJrZ99OtjHxDurmCpspPLxZ0JBCiwm7PLRaGAdycay/Yb7+R7c+SqZeoZHu dC5QAeYHriGsZlth523n6kA3Ny8BuT9ynGZfr4yEv2RHlPIHwbVjutA7LHcALf1mnphU wI2wIX47ZQUR8qWNX9KX9iNKwNFveeOI7eaVdQ2+/KeEaYtHrUZEvQZW/qxEiLAs7rEQ NI1wmWJQtwIPugf1iB6ODVuacD/i5Rreu9wL4i7MkAWzuVZvsSiM2B1CnsG6/nFd9YUn gRXcJl6aRM8sVKJSZbLOqpcHG13YGW2QR7Zf4qIH6GkCkrWQlGNNx+2ayYi8CCGf2bUP b9LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=Zv4bVSyc; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id u24si9906009pgf.99.2020.10.26.12.42.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 12:42:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=Zv4bVSyc; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 5B9A86E0E5; Mon, 26 Oct 2020 19:42:01 +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 506666E0E5 for ; Mon, 26 Oct 2020 19:42:00 +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 7D49820878; Mon, 26 Oct 2020 19:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603741320; bh=mIfaVETSabg91MwqbVtm2b4ynodCXFlMtwDnztI5meU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zv4bVSycCE8I2wHh1gwb5oj3EdCQ0US/CCzuSG9f52ClGLEW8+82mpR63xjohRAnm 45GEtSA/kKAJW8n3bvLoISe7XUN4l2wy7rtqwo36g69yM6UJekGHH8K3VnckFIWxgA ig/wrXSqTSpEEqDbH/qwMlK74EglUUjR8u5+ArEE= From: Arnd Bergmann To: Patrik Jakobsson , David Airlie , Daniel Vetter , Stefan Christ Subject: [PATCH 4/4] drm/gma500: avoid Woverride-init warning Date: Mon, 26 Oct 2020 20:41:04 +0100 Message-Id: <20201026194110.3817470-4-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201026194110.3817470-1-arnd@kernel.org> References: <20201026194110.3817470-1-arnd@kernel.org> 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 , Daniel Vetter , linux-kernel@vger.kernel.org, Rikard Falkeborn , Paul Kocialkowski , dri-devel@lists.freedesktop.org, Thomas Zimmermann , Pankaj Bharadiya , Emil Velikov Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann gcc -Wextra notices that one of the fields in psbfb_roll_ops has two initializers: drivers/gpu/drm/gma500/framebuffer.c:185:20: warning: initialized field overwritten [-Woverride-init] Open-code this instead, leaving out the extraneous initializers for .fb_pan_display. Fixes: 3da6c2f3b730 ("drm/gma500: use DRM_FB_HELPER_DEFAULT_OPS for fb_ops") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/gma500/framebuffer.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c index 54d9876b5305..a56a6b53fac6 100644 --- a/drivers/gpu/drm/gma500/framebuffer.c +++ b/drivers/gpu/drm/gma500/framebuffer.c @@ -177,7 +177,14 @@ static const struct fb_ops psbfb_ops = { static const struct fb_ops psbfb_roll_ops = { .owner = THIS_MODULE, - DRM_FB_HELPER_DEFAULT_OPS, + .fb_check_var = drm_fb_helper_check_var, + .fb_set_par = drm_fb_helper_set_par, + .fb_setcmap = drm_fb_helper_setcmap, + .fb_blank = drm_fb_helper_blank, + .fb_debug_enter = drm_fb_helper_debug_enter, + .fb_debug_leave = drm_fb_helper_debug_leave, + .fb_ioctl = drm_fb_helper_ioctl, + .fb_setcolreg = psbfb_setcolreg, .fb_fillrect = drm_fb_helper_cfb_fillrect, .fb_copyarea = drm_fb_helper_cfb_copyarea,