From patchwork Fri Jun 14 10:43:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 10995035 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A003713AF for ; Fri, 14 Jun 2019 10:44:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9117127D0C for ; Fri, 14 Jun 2019 10:44:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84F6A28496; Fri, 14 Jun 2019 10:44:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 15FD127D0C for ; Fri, 14 Jun 2019 10:44:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D3BF0892EA; Fri, 14 Jun 2019 10:43:58 +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 1C2BA892EA for ; Fri, 14 Jun 2019 10:43:58 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190614104356euoutp02b8cee5be0c59299978d43e6d35402681~oCrNuZYOP1111511115euoutp020 for ; Fri, 14 Jun 2019 10:43:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190614104356euoutp02b8cee5be0c59299978d43e6d35402681~oCrNuZYOP1111511115euoutp020 Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190614104355eucas1p217c5dacecfec33cfdbd7887519d2a78a~oCrNGFicf1341513415eucas1p2Y; Fri, 14 Jun 2019 10:43:55 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id C1.B6.04377.B6A730D5; Fri, 14 Jun 2019 11:43:55 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190614104355eucas1p236ecb70b6d48f37508f3837cee49b19f~oCrMSQjgh1341513415eucas1p2W; Fri, 14 Jun 2019 10:43:55 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190614104354eusmtrp276153a14cefbc37a839d65795e31ef03~oCrMCznpo1815618156eusmtrp2v; Fri, 14 Jun 2019 10:43:54 +0000 (GMT) X-AuditID: cbfec7f4-12dff70000001119-70-5d037a6bf500 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id F3.C6.04146.A6A730D5; Fri, 14 Jun 2019 11:43:54 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190614104354eusmtip1e5cff7dccf3f6757a4b7145d8b5ae8e8~oCrL0oNKa1678516785eusmtip1h; Fri, 14 Jun 2019 10:43:54 +0000 (GMT) To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org From: Bartlomiej Zolnierkiewicz Subject: [PATCH] video: fbdev: pvr2fb: fix build warning when compiling as module Message-ID: <2376f0a7-2511-b52d-c0d1-9162382f8693@samsung.com> Date: Fri, 14 Jun 2019 12:43:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEKsWRmVeSWpSXmKPExsWy7djP87rZVcyxBte2aFlc+fqezeJE3wdW i8u75rBZbN17ld2BxaPxxg02j/vdx5k8Pm+SC2CO4rJJSc3JLEst0rdL4Mp4Nv8Za8EM9orz 0xwbGH+zdjFyckgImEj8WPWaqYuRi0NIYAWjxMmXbxghnC+MEm2vdjJDOJ8ZJc7vusUG03Kr 7whUy3JGiQUHtrNAOG8ZJbqfn2MHqRIRSJBYMX0GI4jNLKAt0fv2PTOIzSZgJTGxfRVYXFgg WGLHv0awQ3gF7CS+XW8Ds1kEVCWWbz/HAmKLCkRI3D+2AapGUOLkzCcsEDPFJW49mc8EYctL bH87B+xUCYHPbBJ/ni5jhDjVReLr3MssELawxKvjW9ghbBmJ/zvnM0E0rGOU+NvxAqp7O6PE 8sn/oB61ljh8/CLQag6gFZoS63fpQ4QdJQ5v/cgGEpYQ4JO48VYQ4gg+iUnbpjNDhHklOtqE IKrVJDYs28AGs7Zr50pmCNtDYkbzCqYJjIqzkLw2C8lrs5C8NgvhhgWMLKsYxVNLi3PTU4uN 8lLL9YoTc4tL89L1kvNzNzECU8rpf8e/7GDc9SfpEKMAB6MSD+8BK6ZYIdbEsuLK3EOMEhzM SiK886yZY4V4UxIrq1KL8uOLSnNSiw8xSnOwKInzVjM8iBYSSE8sSc1OTS1ILYLJMnFwSjUw rrp3fR2rvvlkSevDqhlVqY9OfdIw+LRpbd9V+2kHrk3cc8ZL9un7vk/Pdn6/1rd1a6Semuz2 +BqLWx4lnJ+4q6Ll5x1PM3656mP2iWaLrnt7GapC8g4k/ZgWoLI0wsDz4I0T+Tukvlo5Zrpb VUfZx8aviX4ay2w70dv2aH1tCf+Fg0HS1ek5SizFGYmGWsxFxYkApOjzlyUDAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupikeLIzCtJLcpLzFFi42I5/e/4Xd2sKuZYg70vjSyufH3PZnGi7wOr xeVdc9gstu69yu7A4tF44wabx/3u40wenzfJBTBH6dkU5ZeWpCpk5BeX2CpFG1oY6RlaWugZ mVjqGRqbx1oZmSrp29mkpOZklqUW6dsl6GU8m/+MtWAGe8X5aY4NjL9Zuxg5OSQETCRu9R1h 6mLk4hASWMoo8WXiIbYuRg6ghIzE8fVlEDXCEn+udbFB1LxmlFh0+z0bSEJEIEHi6ev5YDaz gLZE79v3zCA2m4CVxMT2VYwgtrBAsMSOf41gy3gF7CS+XW8Ds1kEVCWWbz/HAmKLCkRInHm/ ggWiRlDi5MwnLBAz1SX+zLvEDGGLS9x6Mp8JwpaX2P52DvMERoFZSFpmIWmZhaRlFpKWBYws qxhFUkuLc9Nziw31ihNzi0vz0vWS83M3MQLjYduxn5t3MF7aGHyIUYCDUYmH94AVU6wQa2JZ cWXuIUYJDmYlEd551syxQrwpiZVVqUX58UWlOanFhxhNgR6ayCwlmpwPjNW8knhDU0NzC0tD c2NzYzMLJXHeDoGDMUIC6YklqdmpqQWpRTB9TBycUg2MRhVfHBUuTVK57xH3W9rR61jrP+bU A+ey9x7Ty2NPdtLY/F/T8+oVa009bT3j1XcmvQrRkfwfcl3NSzlpDU+keuij8pe8bL0J+1Qn V+WfFFyiE2S9V+H+gktX9t65vmz25p9P+TY99P3Jdd9h16Xd7pI+5xiVv0yKuB+wu/tYpV/Q /otMP6KNlFiKMxINtZiLihMBpVOgjZ0CAAA= X-CMS-MailID: 20190614104355eucas1p236ecb70b6d48f37508f3837cee49b19f X-Msg-Generator: CA X-RootMTR: 20190614104355eucas1p236ecb70b6d48f37508f3837cee49b19f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190614104355eucas1p236ecb70b6d48f37508f3837cee49b19f References: X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1560509036; bh=Zl7VnI5bsj4BuaNyNNSUeOVR4pqArffBJEh0eJbRbws=; h=To:Cc:From:Subject:Date:References:From; b=Ae1H5KsQQy+rjpQC3oXOlZ+Knk4zza9lc3lwkZLGm/7ikJQDgHtbwc68M4hPrztoV 5/9FrpF0R5LfHEmSbpL/xKp9f0xHwxkHj0Ag8ce1K+ZqtTK8UeizwyPbKsFCzWVwBP PwvubvsZmNQhLEqozi7lIvS4wRSQDFzf3Z16cFyQ= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Rothwell Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add missing #ifndef MODULE around pvr2_get_param_val(). Fixes: 0f5a5712ad1e ("video: fbdev: pvr2fb: add COMPILE_TEST support") Reported-by: Stephen Rothwell Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/video/fbdev/pvr2fb.c | 2 ++ 1 file changed, 2 insertions(+) Index: b/drivers/video/fbdev/pvr2fb.c =================================================================== --- a/drivers/video/fbdev/pvr2fb.c +++ b/drivers/video/fbdev/pvr2fb.c @@ -722,6 +722,7 @@ static struct fb_ops pvr2fb_ops = { .fb_imageblit = cfb_imageblit, }; +#ifndef MODULE static int pvr2_get_param_val(const struct pvr2_params *p, const char *s, int size) { @@ -733,6 +734,7 @@ static int pvr2_get_param_val(const stru } return -1; } +#endif static char *pvr2_get_param_name(const struct pvr2_params *p, int val, int size)