Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2499500imm; Mon, 24 Sep 2018 05:31:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV61cOjQhcULtTvjsz47xnZXcdoFsNVJOD1+D7dKkstCcENqJU39II0BMoYgeg/pUffxRsPNm X-Received: by 2002:a63:41c2:: with SMTP id o185-v6mr9340665pga.11.1537792276652; Mon, 24 Sep 2018 05:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537792276; cv=none; d=google.com; s=arc-20160816; b=PGJ0HvrdXcBrK9lM4KCBKUuQ184MI/w/N+N+ibOdwby4Q9ot4YmDnt+Yscf6imth3Y LcL9RruPQ+P0CNTahxcKi0NRaFrPHVEprD/tHnC27hSsdsmYkxakqJbytBuTXvayDrC1 LouF5CJLk1UuodW9xLuvmfAqdppwoGZUvdxk/Cf9OG6ID0P3nuggAW3SqDrCJPdJ13ts 1vjev8KmhDDrPOuZYfLT+TTP2t3cy2vcTZO/mUYDrYirhmTnoNB9t19ikK27ZoMADndZ EqTghpxjnrEy/nj4b0FYlvzKGZsrD0zSbWBgBQqF9DQGLh4vEI9mf1YtO7uMpGMK8vHG lLOA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=EGwhsxh5QkpLsh3ICBPUeixXMzdqvnFvUJOIokQUvOM=; b=flDFbiZLAAjydbk7fHw/YfMr5cv61K77R/sIlfMvBc+VYLondZH69ro9HWqarC8VD5 uWVWYz78R5v3+Q7Unq8hkNxfTG0RPFqWBAh9go45QHqw8WbVvcwH6wqmA+KK4Y48eBVk jZuPJfkk1UrdBbMJ87v7iTnt2afK0TsN7PDFLWsqaHsoI3DW5O4ZVvqy0HqGmTj5i+AT C58TbaNtAeuLxHmKNV1UY7AUd7xV7pXmO5e91BKWf1awAYVRUj+6u6NWpm1siK9QuIx0 C9HliMbxKiUkrs+rWvRJzWRJtVlmyrT/ZZrCvtUK4GBJPlWDq2HgzjHWr+6ofVufzyJd +TyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 z17-v6si12391773pgc.55.2018.09.24.05.31.01; Mon, 24 Sep 2018 05:31:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387779AbeIXSbk (ORCPT + 99 others); Mon, 24 Sep 2018 14:31:40 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57686 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733271AbeIXSbj (ORCPT ); Mon, 24 Sep 2018 14:31:39 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1FB001098; Mon, 24 Sep 2018 12:29:44 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Florian Tobias Schandinat , Bartlomiej Zolnierkiewicz , Sasha Levin Subject: [PATCH 4.18 054/235] fbdev/via: fix defined but not used warning Date: Mon, 24 Sep 2018 13:50:40 +0200 Message-Id: <20180924113110.509595667@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.999624566@linuxfoundation.org> References: <20180924113103.999624566@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Randy Dunlap [ Upstream commit b6566b47a67e07fdca44cf51abb14e2fbe17d3eb ] Fix a build warning in viafbdev.c when CONFIG_PROC_FS is not enabled by marking the unused function as __maybe_unused. ../drivers/video/fbdev/via/viafbdev.c:1471:12: warning: 'viafb_sup_odev_proc_show' defined but not used [-Wunused-function] Signed-off-by: Randy Dunlap Cc: Florian Tobias Schandinat Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/video/fbdev/via/viafbdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/video/fbdev/via/viafbdev.c +++ b/drivers/video/fbdev/via/viafbdev.c @@ -19,6 +19,7 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include #include #include #include @@ -1468,7 +1469,7 @@ static const struct file_operations viaf #endif /* CONFIG_FB_VIA_DIRECT_PROCFS */ -static int viafb_sup_odev_proc_show(struct seq_file *m, void *v) +static int __maybe_unused viafb_sup_odev_proc_show(struct seq_file *m, void *v) { via_odev_to_seq(m, supported_odev_map[ viaparinfo->shared->chip_info.gfx_chip_name]);