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;