From patchwork Thu Jan 16 14:51:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 11337199 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 C8F6C921 for ; Thu, 16 Jan 2020 14:51:22 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 A77992072B for ; Thu, 16 Jan 2020 14:51:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="Nx70jCGH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A77992072B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5F72B6EA93; Thu, 16 Jan 2020 14:51:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5F7E06EA93 for ; Thu, 16 Jan 2020 14:51:18 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200116145117euoutp017ea2f9a0c286beec74b1d2f61aa83fad~qZY1ZnhCO0710107101euoutp01z for ; Thu, 16 Jan 2020 14:51:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200116145117euoutp017ea2f9a0c286beec74b1d2f61aa83fad~qZY1ZnhCO0710107101euoutp01z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1579186277; bh=zM5QKDUUFvzxmck4BWoQ7EibKTrMCs6fH624KxIH7Jo=; h=From:Subject:To:Cc:Date:References:From; b=Nx70jCGHt8zusZVaJ62EXB+XAubmMAIuJT4X5FwYCSS9/Ox+GDwpS5TCWVBpQNbUE rXSD0GYZ0i8QwplwZthQhHaokBRtHBBE9zo72YnS0rETBdr0slOHEjKkjjEB3xykhN K+zRFW9XMCXegsvs53RGz08yBGfs+JiG+W0YlNW0= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200116145116eucas1p1e42b04ca64c1403b153abc27e9a5c0cd~qZY1N42gL1036510365eucas1p1T; Thu, 16 Jan 2020 14:51:16 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 20.14.60679.468702E5; Thu, 16 Jan 2020 14:51:16 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200116145116eucas1p2d512db3f05f01d87bc9039af5bf70af3~qZY016bKP0505605056eucas1p2B; Thu, 16 Jan 2020 14:51:16 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200116145116eusmtrp11db69222731b0e45a88d3414e3f6582f~qZY01Xt4Y1110811108eusmtrp14; Thu, 16 Jan 2020 14:51:16 +0000 (GMT) X-AuditID: cbfec7f4-0cbff7000001ed07-70-5e20786426b2 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 04.75.08375.468702E5; Thu, 16 Jan 2020 14:51:16 +0000 (GMT) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200116145115eusmtip1b9c1be999ff790774ec794ee71847d48~qZY0W6wQ43258232582eusmtip1g; Thu, 16 Jan 2020 14:51:15 +0000 (GMT) From: Bartlomiej Zolnierkiewicz Subject: [PATCH 1/2] video: fbdev: sh_mobile_lcdcfb: fix sparse warnings about using incorrect types To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Message-ID: Date: Thu, 16 Jan 2020 15:51:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprCKsWRmVeSWpSXmKPExsWy7djPc7opFQpxBl8WmVjcWneO1WLjjPWs Fle+vmezONH3gdXi8q45bA6sHve7jzN59G1ZxejxeZNcAHMUl01Kak5mWWqRvl0CV0bL6vmM Bcc4K+acOMXewDiZo4uRk0NCwETiwNX5jCC2kMAKRomVt9Qh7C+MEqeb+boYuYDsz4wS/ddm sMI0/Nx4lRUisZxRomP5bWaIjreMEv+buEBsNgEriYntq8CmCgukSXz7/o8JxBYRSJBYMX0G WJxZIF5iW/NRMJtXwE5iycN+oBoODhYBVYkvhw1AwqICERKfHhxmhSgRlDg58wkLRKu4xK0n 85kgbHmJ7W/nMIPcIyHwm01iwduZbBCHukhM2X2dEcIWlnh1fAs7hC0jcXpyDwtEwzpGib8d L6C6tzNKLJ/8D6rbWuLOuV9sIBcxC2hKrN+lDxF2lNjbMYkdJCwhwCdx460gxBF8EpO2TWeG CPNKdLQJQVSrSWxYtoENZm3XzpXMELaHxNTGnSwTGBVnIXltFpLXZiF5bRbCDQsYWVYxiqeW FuempxYb5aWW6xUn5haX5qXrJefnbmIEppXT/45/2cG460/SIUYBDkYlHt4ZQQpxQqyJZcWV uYcYJTiYlUR4T86QjRPiTUmsrEotyo8vKs1JLT7EK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5VYijMSDbWYi4oTAWFq3yGiAgAA X-CMS-MailID: 20200116145116eucas1p2d512db3f05f01d87bc9039af5bf70af3 X-Msg-Generator: CA X-RootMTR: 20200116145116eucas1p2d512db3f05f01d87bc9039af5bf70af3 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200116145116eucas1p2d512db3f05f01d87bc9039af5bf70af3 References: 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: Bartlomiej Zolnierkiewicz Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Use ->screen_buffer instead of ->screen_base to fix sparse warnings. [ Please see commit 17a7b0b4d974 ("fb.h: Provide alternate screen_base pointer") for details. ] Signed-off-by: Bartlomiej Zolnierkiewicz Reviewed-by: Geert Uytterhoeven --- drivers/video/fbdev/sh_mobile_lcdcfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: b/drivers/video/fbdev/sh_mobile_lcdcfb.c =================================================================== --- a/drivers/video/fbdev/sh_mobile_lcdcfb.c +++ b/drivers/video/fbdev/sh_mobile_lcdcfb.c @@ -1572,7 +1572,7 @@ sh_mobile_lcdc_overlay_fb_init(struct sh info->flags = FBINFO_FLAG_DEFAULT; info->fbops = &sh_mobile_lcdc_overlay_ops; info->device = priv->dev; - info->screen_base = ovl->fb_mem; + info->screen_buffer = ovl->fb_mem; info->par = ovl; /* Initialize fixed screen information. Restrict pan to 2 lines steps @@ -2056,7 +2056,7 @@ sh_mobile_lcdc_channel_fb_init(struct sh info->flags = FBINFO_FLAG_DEFAULT; info->fbops = &sh_mobile_lcdc_ops; info->device = priv->dev; - info->screen_base = ch->fb_mem; + info->screen_buffer = ch->fb_mem; info->pseudo_palette = &ch->pseudo_palette; info->par = ch; From patchwork Thu Jan 16 14:51:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 11337203 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 F36BC17EA for ; Thu, 16 Jan 2020 14:52:02 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 D20FD20730 for ; Thu, 16 Jan 2020 14:52:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="OYICutzV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D20FD20730 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A67776ED6B; Thu, 16 Jan 2020 14:52:01 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 433296ED6B for ; Thu, 16 Jan 2020 14:52:00 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200116145158euoutp024ec8fc87dc454a2ddadb5cc8d9a39ea0~qZZcIvM2o0239102391euoutp02i for ; Thu, 16 Jan 2020 14:51:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200116145158euoutp024ec8fc87dc454a2ddadb5cc8d9a39ea0~qZZcIvM2o0239102391euoutp02i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1579186318; bh=eDWEzmLtRtpacDCykwM0Ji2pPGDYcWv0YH073EOlnAs=; h=From:Subject:To:Cc:Date:References:From; b=OYICutzVSkQIm2+6AoRIux35XAEZiXnQ5fHLneq8lWjCoA9+kRZykjJc3gguXNp+R hBOzbfhPJ3gpYvl8pN9Yu/iAd8eWB9Oap6LdUg9L3MnJ5t511kKB+g6Tz/8Ni7VQMx VVh4fXCG1EXbHGMPxLzVJwGMTvCKhBhDMTkR8Lps= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200116145158eucas1p190b7fcca1c9572bbbf3e05642e85327b~qZZbzUN4J1473514735eucas1p1f; Thu, 16 Jan 2020 14:51:58 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 27.94.61286.E88702E5; Thu, 16 Jan 2020 14:51:58 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200116145157eucas1p2401abc6b00654d767e872edbd0338957~qZZbPOFr20103801038eucas1p2f; Thu, 16 Jan 2020 14:51:57 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200116145157eusmtrp155f3bc762c42ca794b1c4afe544e2e5b~qZZbOoV5R1166311663eusmtrp1h; Thu, 16 Jan 2020 14:51:57 +0000 (GMT) X-AuditID: cbfec7f2-ef1ff7000001ef66-e5-5e20788e3a01 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 82.06.07950.D88702E5; Thu, 16 Jan 2020 14:51:57 +0000 (GMT) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200116145157eusmtip1d789207b51ef906eaf222763957d046a~qZZa460yx0309103091eusmtip1b; Thu, 16 Jan 2020 14:51:57 +0000 (GMT) From: Bartlomiej Zolnierkiewicz Subject: [PATCH 2/2] video: fbdev: sh_mobile_lcdcfb: add COMPILE_TEST support To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Message-ID: Date: Thu, 16 Jan 2020 15:51:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGKsWRmVeSWpSXmKPExsWy7djP87p9FQpxBnP3CFvcWneO1WLjjPWs Fle+vmezONH3gdXi8q45bA6sHve7jzN59G1ZxejxeZNcAHMUl01Kak5mWWqRvl0CV8a8S4dZ C6awVRze9oilgXEOaxcjB4eEgIlEf19AFyMXh5DACkaJydNWsUE4XxglTvTfhXI+M0psWNvC 2MXICdbx9uUkdojEckaJr6sWM0E4bxklnl3dwwRSxSZgJTGxfRVYh7CAv8T1HXPZQGwRgQSJ FdNngMWZBeIltjUfBbN5Bewk/r77zg5iswioSizr3wg2R1QgQuLTg8OsEDWCEidnPmGB6BWX uPVkPhOELS+x/e0cZpAjJAR+s0mc7Whjg3jOReJFPz/E1cISr45vYYewZSROT+5hgahfxyjx t+MFVPN2Ronlk/+xQVRZS9w59wtsELOApsT6XfoQYUeJ5qZ3LBDz+SRuvBWEuIFPYtK26cwQ YV6JjjYhiGo1iQ3LNrDBrO3auZIZwvaQ+HvlAvsERsVZSD6bheSzWUg+m4VwwwJGllWM4qml xbnpqcWGeanlesWJucWleel6yfm5mxiBqeX0v+OfdjB+vZR0iFGAg1GJh3dGkEKcEGtiWXFl 7iFGCQ5mJRHekzNk44R4UxIrq1KL8uOLSnNSiw8xSnOwKInzGi96GSskkJ5YkpqdmlqQWgST ZeLglGpgXDvJhGu1rMP9de3fNtew7mW4W153rSAs1Hhr2Dz/L0c+q0cXJoe6Bfrd3PQ+flGW Jdv6gwbHXr28xzbDfEFD997rNdccHNS3dh7fEjg96WHAqyvSnybWvfWR8pWQfJcetu3DlBbl pQV2m2vst5w4PUf299TX7U9sjp6bK/rbcfVqEXat0BvTbyuxFGckGmoxFxUnAgBHwyxnKQMA AA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeLIzCtJLcpLzFFi42I5/e/4Xd3eCoU4g6Z9Gha31p1jtdg4Yz2r xZWv79ksTvR9YLW4vGsOmwOrx/3u40wefVtWMXp83iQXwBylZ1OUX1qSqpCRX1xiqxRtaGGk Z2hpoWdkYqlnaGwea2VkqqRvZ5OSmpNZllqkb5eglzHv0mHWgilsFYe3PWJpYJzD2sXIySEh YCLx9uUk9i5GLg4hgaWMEstufQJKcAAlZCSOry+DqBGW+HOtiw2i5jWjxP3ff9hAEmwCVhIT 21cxgtQLC/hKnLqXAhIWEUiQePp6PlgJs0C8ROe2BkYQm1fATuLvu+/sIDaLgKrEsv6NTCC2 qECExOEds6BqBCVOznzCAtGrLvFn3iVmCFtc4taT+UwQtrzE9rdzmCcwCsxC0jILScssJC2z kLQsYGRZxSiSWlqcm55bbKRXnJhbXJqXrpecn7uJERgZ24793LKDsetd8CFGAQ5GJR7eGUEK cUKsiWXFlbmHGCU4mJVEeE/OkI0T4k1JrKxKLcqPLyrNSS0+xGgK9NBEZinR5Hxg1OaVxBua GppbWBqaG5sbm1koifN2CByMERJITyxJzU5NLUgtgulj4uCUamBU+ZBrdOIA32SRO990NB5L 9jdK+VpeqGFvTSp+He5laR2Udnin10Y5C9emWw+eNG5jOLhN/fWZicZW93Y7pQhvWHvbaMay G23389JWxU+8rbFHNvyfu/Qrp3X2Ih2bDiy67Km58vtkr+j/eVsMvkd8nzZ7h8/yiYWekwpn R8Xen3w8uf7IvH29SizFGYmGWsxFxYkA5KJ5iKICAAA= X-CMS-MailID: 20200116145157eucas1p2401abc6b00654d767e872edbd0338957 X-Msg-Generator: CA X-RootMTR: 20200116145157eucas1p2401abc6b00654d767e872edbd0338957 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200116145157eucas1p2401abc6b00654d767e872edbd0338957 References: 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: Bartlomiej Zolnierkiewicz Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add COMPILE_TEST support to sh_mobile_lcdcfb driver for better compile testing coverage. Signed-off-by: Bartlomiej Zolnierkiewicz Reviewed-by: Geert Uytterhoeven --- drivers/video/fbdev/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: b/drivers/video/fbdev/Kconfig =================================================================== --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig @@ -1844,7 +1844,8 @@ config FB_W100 config FB_SH_MOBILE_LCDC tristate "SuperH Mobile LCDC framebuffer support" - depends on FB && (SUPERH || ARCH_RENESAS) && HAVE_CLK + depends on FB && HAVE_CLK && HAS_IOMEM + depends on SUPERH || ARCH_RENESAS || COMPILE_TEST select FB_SYS_FILLRECT select FB_SYS_COPYAREA select FB_SYS_IMAGEBLIT