From patchwork Fri Sep 25 21:55:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 11800921 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 861CC6CB for ; Fri, 25 Sep 2020 21:57:05 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 47C5B2068D for ; Fri, 25 Sep 2020 21:57:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="c0caJXPB"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pVGittCT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 47C5B2068D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MHXfm9UOw+76A/NBOM0fHhgD7t400uZNITbRMocAiBw=; b=c0caJXPBILd4hAkjGmwyngaKQ w6BxWX7Wh/5bEfhkMZucw9y9FT5Lxryv7zr672bN+Oq+xxGg1gzSpDnLrxoCnDktPEEHYcqcYepGX u7P2PIUe1FkkRXDjIF1SWciksTQuH+jKiTphf/uMDg8R+3Ba4NXXQApnIgYjK2FKDEU3FuebXUVqA nBaNedfD4kDXHtaTr6HqthbseGrhrbsw4Wru254Hk/7amCZ3WZ8Kl6EGwl9uw35y0XBoyLujXfo8Y VbBCADVwbgXgs9oIJnifL8VabEDGON274n3dkakrLYBsLCFcui+WoqvyWnhpMRM7sJNdl162n6mb2 V1WXP52mw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kLvgp-0007DF-K3; Fri, 25 Sep 2020 21:55:39 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kLvgk-0007BT-2q; Fri, 25 Sep 2020 21:55:34 +0000 Received: by mail-lj1-x243.google.com with SMTP id b19so3616709lji.11; Fri, 25 Sep 2020 14:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SeTL0c/7JNOZbHDDafGIj2Lq9RezRDqi3GjRLXy3MsM=; b=pVGittCTqyTKqdvnYw2YphLU++ysqA22ptlbtdIiK4INItNg77NscljoTBoNwuQF9G lq4iY831pPMXw1xmkRNDWa3VzqlQe9Q4x+HwoNYH8C2Q4rgVpA+pSXs9VGq8zrCsjZDe ds5Bd0uh20DgrUA7XfoKF+/Z4q3UstXzX+RD8c1rPxSd4E97oDiExrezqx4XZUUYqcAE g1+/xJHNi+MlZRO1wb+g2TKz350ARMIBcDM2cMsk9vqus0iFKA+vDmJ5tMQDWa9ekXv/ kKI21HYapqXBDQVv46R3+M1H6L0+brO4XWTpVRhCYVqKtHEUEvYCZWGgXF0IQ3DdDmMO t4RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=SeTL0c/7JNOZbHDDafGIj2Lq9RezRDqi3GjRLXy3MsM=; b=p7Qd4NORQmJ24coe5OuYhZnBQ0LaBdNaRvshmt6Q4qh48/NI4IgQZ4dz5bRa8mypX6 IqFC02cJMe3tgN67ZQdTys8ZWcIcqQKWCqtQ4G0pLkoa0Mbvm1zdWeg022rkk8bNDcJy lgSQmdAKCI1XtVEH08c8O18EP0kMSZ5w+qYj0FT7FdTSLTDglAyo9aMKLhQ9WE0W3ZmA cI1N4cXPNa+0us3aBoCCoaw9o7AwU12Td8UuqikIEI2Roji6cZkJsU7eYt4wa13D+mcA BtDjpYoNsUxWJUwotr2LTO1x+SIMC8EDM9ZlyICdznc/9fohnlKfrIRdHhNNshE7bRSk Jh/g== X-Gm-Message-State: AOAM530B8WA0GXUjt7Jx/KbICDc6eY90bNg4UAof61TrFQ5R7xVOUzpL nm5j/l8KNv/WVlprFGLdbi0= X-Google-Smtp-Source: ABdhPJx6ytnXJvCZhen05QP8JCFosKED8273RviYERaPsmA21OzhS4aeWsWvQ4UgzSKTTJs019juqg== X-Received: by 2002:a05:651c:1188:: with SMTP id w8mr2131504ljo.344.1601070933023; Fri, 25 Sep 2020 14:55:33 -0700 (PDT) Received: from saturn.localdomain ([2a00:fd00:805f:db00:3926:b59a:e618:9f9c]) by smtp.gmail.com with ESMTPSA id j8sm261277lfr.80.2020.09.25.14.55.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Sep 2020 14:55:32 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Heiko Stuebner , Thomas Zimmermann Subject: [PATCH v1 1/2] drm/rockchip: fix build due to undefined drm_gem_cma_vm_ops Date: Fri, 25 Sep 2020 23:55:23 +0200 Message-Id: <20200925215524.2899527-2-sam@ravnborg.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200925215524.2899527-1-sam@ravnborg.org> References: <20200925215524.2899527-1-sam@ravnborg.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200925_175534_161917_2EC02820 X-CRM114-Status: GOOD ( 13.29 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:243 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [sam.ravnborg[at]gmail.com] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sandy Huang , stable@vger.kernel.org, linux-rockchip@lists.infradead.org, Enric Balletbo i Serra , Sam Ravnborg , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Commit 0d590af3140d ("drm/rockchip: Convert to drm_gem_object_funcs") introduced the following build error: rockchip_drm_gem.c:304:13: error: ‘drm_gem_cma_vm_ops’ undeclared here 304 | .vm_ops = &drm_gem_cma_vm_ops, | ^~~~~~~~~~~~~~~~~~ | drm_gem_mmap_obj Fixed by adding missing include file. Signed-off-by: Sam Ravnborg Cc: Thomas Zimmermann Cc: Sandy Huang Cc: "Heiko Stübner" Cc: linux-arm-kernel@lists.infradead.org Cc: linux-rockchip@lists.infradead.org Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c index bb3578469b03..6da15faf0192 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c @@ -10,6 +10,7 @@ #include #include +#include #include #include From patchwork Fri Sep 25 21:55:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 11800915 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 177E01731 for ; Fri, 25 Sep 2020 21:56:02 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D4ED920708 for ; Fri, 25 Sep 2020 21:56:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Qv8haj0d"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="smLOvcFF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D4ED920708 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WRA62VvMbb/munTwcGLC5yMyjDOdMSKbVGatOSFO7S0=; b=Qv8haj0duu35CkfxYOSPT/TRX xlSxOFcPgd8ZLjhexAI+NBSdbjmQsvOBIkXWbx0HQuqzDyTplj8uPTY6l/z7AUsP+OnZ/sExXoNBH 5EI0AitvMn1XVZJ+WspveEYs7zfQceyC+KlPyn45SU8i8xDRJd7ByBXqSSJFHD3Tx2zPwU0q9ofbH zNdHHbPD91sPB1IwKP9d2kl2Qx8NwOmgDYs1cdBGnebW/i2AIT5PmJx4uKHRgYr4OfF+WX0H6So1L xJ2LV8eO8OVC570j0Dgr3qK62XAmzBZzg+UyOwZgk+jciRrmCtb6fJg1mzM4Mk2DsAlTiE6OCOKDP PFMWNMJfA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kLvh0-0007Ga-Hd; Fri, 25 Sep 2020 21:55:50 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kLvgm-0007CA-7R; Fri, 25 Sep 2020 21:55:37 +0000 Received: by mail-lj1-x243.google.com with SMTP id a22so3613049ljp.13; Fri, 25 Sep 2020 14:55:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IqWRtJXL3h+0YNOWDfr/oyE5XU2E5SGs9B5R12b/mYU=; b=smLOvcFFfth/d/eCeWfi6sPNLPRxKuTHjZl6Qa78IJFY39bb2+0XlYQLC/pEPb0S5f krWWfpXYbxD08VHxrcxWjPchRtbLuzebmEukSrshxr4xU4tX1dR3f82OTovIcu62v4qP g20pfMDZ8diisUnm+1Se1IT4VvLZ2kruNSpscC6of4431D4LgyhrDdtXJZYCE10wtpdt gxO0psNfOrRHtRtDqjM8ju1BdpYSQbTemoNMxpKvwnAofmyb1mB3SQUq2a4pcitvlfIv b+hARjlJum+osgCVbXdK/+NORGUg++RWT54fIlmgTwTdM1sxpO02quE75L1NTKySgjPZ KjOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=IqWRtJXL3h+0YNOWDfr/oyE5XU2E5SGs9B5R12b/mYU=; b=o4YYX4aAAh6EUp/aF0tsz6wD92ZDaqKh6v0oajp3Xm+MsK6Kz15JJXlfZRGGCKtP+h 4teQGOgKwQmaqKOm3gWYZUHbPCVTdy9p718cctWnzBkjVTTIpHvHjgknvfDatUW6bI9J hvBM/P8k9CN1t3Qlig9mzmPhQMy7i9rwPgkQf44OoXK9OKqWHR/6bBtY9iZPe/BE33ld 3/mjSpv7r87ntCn/m0n1/YIQogR3Z/dt937ja9KJyf1xEzrHPl+NJMHMvn9A8wCnPp/5 spWeVxRj70L1AXH0xT4bnesGOKpTzQi1fkAI43LrO2DYDHOL6QQ0HozeOL4UALjBtZCe DUxg== X-Gm-Message-State: AOAM531cbTSoy7rkmSICeT40SK6Q24XAoe6v5L8x6TncK70hp5fQiOiI hCwvyGe/wYjC0nWNotPgkT8= X-Google-Smtp-Source: ABdhPJwmQGAytj+dmXke/hXv+JGQ4Kg6h02qEjK+GXB10/h+Q3MdC1ggeZKjWovNpDVBdcczonRk5w== X-Received: by 2002:a2e:90d6:: with SMTP id o22mr1769262ljg.442.1601070935198; Fri, 25 Sep 2020 14:55:35 -0700 (PDT) Received: from saturn.localdomain ([2a00:fd00:805f:db00:3926:b59a:e618:9f9c]) by smtp.gmail.com with ESMTPSA id j8sm261277lfr.80.2020.09.25.14.55.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Sep 2020 14:55:34 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Heiko Stuebner , Thomas Zimmermann Subject: [PATCH v1 2/2] drm/rockchip: fix warning from cdn_dp_resume Date: Fri, 25 Sep 2020 23:55:24 +0200 Message-Id: <20200925215524.2899527-3-sam@ravnborg.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200925215524.2899527-1-sam@ravnborg.org> References: <20200925215524.2899527-1-sam@ravnborg.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200925_175536_309931_0F2AE15F X-CRM114-Status: GOOD ( 15.23 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:243 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [sam.ravnborg[at]gmail.com] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sandy Huang , stable@vger.kernel.org, linux-rockchip@lists.infradead.org, Enric Balletbo i Serra , Sam Ravnborg , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Commit 7c49abb4c2f8 ("drm/rockchip: cdn-dp-core: Make cdn_dp_core_suspend/resume static") introduced the following warning in some builds: cdn-dp-core.c:1124:12: warning: ‘cdn_dp_resume’ defined but not used 1124 | static int cdn_dp_resume(struct device *dev) | ^~~~~~~~~~~~~ Fix this by defining cdn_dp_resume __maybe_unused Signed-off-by: Sam Ravnborg Fixes: 7c49abb4c2f8 ("drm/rockchip: cdn-dp-core: Make cdn_dp_core_suspend/resume static") Cc: Enric Balletbo i Serra Cc: Heiko Stuebner Cc: Sandy Huang Cc: linux-arm-kernel@lists.infradead.org Cc: linux-rockchip@lists.infradead.org Cc: # v5.8+ Reviewed-by: Enric Balletbo i Serra --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c index a4a45daf93f2..1162e321aaed 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-core.c +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c @@ -1121,7 +1121,7 @@ static int cdn_dp_suspend(struct device *dev) return ret; } -static int cdn_dp_resume(struct device *dev) +static int __maybe_unused cdn_dp_resume(struct device *dev) { struct cdn_dp_device *dp = dev_get_drvdata(dev);