From patchwork Mon Jun 17 12:47:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 167012 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2820668ilk; Mon, 17 Jun 2019 05:48:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwV7u3A2r4rzc1fNx9t7fUyx1rfNmX5TjYtPpG6jlJszFhQIYrsTg4xRx4snHN+rtymvacY X-Received: by 2002:a17:902:8bc3:: with SMTP id r3mr21813348plo.161.1560775704339; Mon, 17 Jun 2019 05:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560775704; cv=none; d=google.com; s=arc-20160816; b=F5WhzCgd1Yob+XehPmjsLQCcEeO1FpqOoDw7nyzl5Ea8i4NSYYI9Lv5NtF4hbRK7Ib s/WQQQkxzjXxjOIIwIpg4FCN+orNCZDKEjjHjKLi70Iwx5SUQJEhK6Y5R6okCuw64FYI ZqIVr+cAUyy2s7+Es89H1VYv3Wjzb0m/dyIalgAHd042WTxvcAMx5+fCO3dT8PMBf0V+ Y7Sx/mV/lgfaGQ/AoiOLQ9I8Kt5Z+FXS5jxgasyffDXbR1Pb9MXktwcVSDap8WdPtZif VXHmibH25ApjA8knvQeolxDilt6hUiV8I/jhNA7HKbJ0h7oHp34gJJFD99sSb3V5JZM3 newQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=0wmJQpeIwoNRPGU8z4PH31ekJQWVvmVJUivuby80rE0=; b=x89X/GeiDJZ/yFtbnJJ2+dEEtINytCLneTSL5BT2L3u71nvVKbO+eF8sAS6lS6r198 +MlcMPZoSybIeYTTxDAjgUBltpmG8br99jiDpsvJTZ2RH/uhMCovg9GMB4x+hEnAN5Ty 39WU3WSphiApP5Knf4KZN0jm8MXneDnqjIlg7AL0ImAXAH4EsiAgsvofb4B2hOFOY7xx Z0ErGiMRmKRf1u+65ImyswjwdLP+LnbFpCWayIBycoTq3JGG6xgvhBzYWk+XcDyc+J3f 7x/jJfI2jcT+qHeYPHIs804ze50lhLOadcuEpsL74VqAJ4gtxfdf7ARLOZYgY61llhkh Z5Pg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t17si514867pfe.269.2019.06.17.05.48.24; Mon, 17 Jun 2019 05:48:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726584AbfFQMsX (ORCPT + 1 other); Mon, 17 Jun 2019 08:48:23 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:35837 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfFQMsX (ORCPT ); Mon, 17 Jun 2019 08:48:23 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1M5PyX-1hbTbo3fxl-001Ome; Mon, 17 Jun 2019 14:48:01 +0200 From: Arnd Bergmann To: Bartlomiej Zolnierkiewicz Cc: Arnd Bergmann , Mike Marshall , YueHaibing , Ira Weiny , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: pvr2fb: fix compile-testing as module Date: Mon, 17 Jun 2019 14:47:36 +0200 Message-Id: <20190617124758.1252449-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:fQtLcNbtFadlnuLEAq66p6lty3m3sCianAYbjFY5chYptpALFcP 4TxA6KG53CIq6rdVgC2Kw5nD2IaMXJ9u2BJNWuVDUJEgJ1UZ7GJu0qTunRJs6pVBchRVHN4 6/SGL8y9THk7xyJslKbKJ5xTKGBxXsBnkJr8gaAoXGZvwc1iK9Xywo/doP/QGHF3pzhceof kh4RdN+3fsW0iy/E4G7aQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:NPqdFaKRhec=:lkKoHx6wdLb5r5g14ioiy1 uwH9a3rmaAwmHLYZGcFd7m67zqtsWFr6xzqJAXKqkl0T1laFSLypRhCug/yHZbNyO6xuGYPMj liNdVhD4poaIJSkG5UsQfXvYfLUNGtOk2G23+cjDJhhsdFXgyE3uswykw4yMedtlojfb6fjot hZ9qYQuXhQzAje+Lf1iY6rf6k9npIa7e9LQukSn76TWe9gCvOeqefKSKW1vCEqqu2OELO3ZkL du4t2tjwc12ZyMGfT5pvlO41awVTRrpuxRlNbfgtM1g9LQyNkhF9/dAV8iM5QLuKYGi7/2TQV k4AathpPl5Fty7Er23WgsVkLjT47mEGB4EDYly6mYWxfB9y7q2VwjsFTH0mX4UYlwZuQQdHFC 3sYlbZVzHpKdsXe+LEHdI+cOFr/OVL3I7f+C20gayOOfRSEXw0IB7xMZnUoNfd5UglXL2D2A9 JWJj4fPdpB2IcxUKjOo4VSWXi2kTYBVYgym6AX4+MZwGKP/89gBG8dq5T8sRqiBiV+yTgUR94 Tq2jvVXyaaQUznlxOVi1gE5zu68cZ1IqPSBaPadTunaM4dTsZCDAeOZNXHSR3p2ad0LcgBOjk mGAYcQVb1d64vwwAd8eGIZP2+adfBBedct4G2WfAWWW91BiweyqFd4dRbtwm1r1nb+nEyY6Rd lzDOEX4sxeTU62xDnO99nVuRvGLgHlz8Cmz1stGzayK8+xWfvIaOkCru5mvDpX1utmzdpk7oi ejdZRUC4AlthUaR6bdgaY5kj0z1rHqVauKxVaA== Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Building an allmodconfig kernel now produces a harmless warning: drivers/video/fbdev/pvr2fb.c:726:12: error: unused function 'pvr2_get_param_val' [-Werror,-Wunused-function] Shut this up the same way as we do for other unused functions in the same file, using the __maybe_unused attribute. Fixes: 0f5a5712ad1e ("video: fbdev: pvr2fb: add COMPILE_TEST support") Signed-off-by: Arnd Bergmann --- drivers/video/fbdev/pvr2fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.0 diff --git a/drivers/video/fbdev/pvr2fb.c b/drivers/video/fbdev/pvr2fb.c index 59c59b3a67cb..cf9cfdc5e685 100644 --- a/drivers/video/fbdev/pvr2fb.c +++ b/drivers/video/fbdev/pvr2fb.c @@ -723,8 +723,8 @@ static struct fb_ops pvr2fb_ops = { .fb_imageblit = cfb_imageblit, }; -static int pvr2_get_param_val(const struct pvr2_params *p, const char *s, - int size) +static int __maybe_unused pvr2_get_param_val(const struct pvr2_params *p, + const char *s, int size) { int i;