Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2515229imm; Mon, 24 Sep 2018 05:46:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV63thsHxVBldL88Cw4/shkwDS+6cjNofiZml0qxiH5hvswFFKMvMqTZnc4lya5uzIG5IwWU2 X-Received: by 2002:a17:902:a40a:: with SMTP id p10-v6mr10666906plq.118.1537793180083; Mon, 24 Sep 2018 05:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537793180; cv=none; d=google.com; s=arc-20160816; b=yOBdS6KHbp7K8UnEtJ2WWI2rqpPaprfbKI3pczyslO+hstDOIbC3AUGP1FeHXmsUly 3KUQoxDIx9vGSlaMFNT01r6cCO9M0X7HktZ/HaegVJ2/i2ZvholZ2lpjaLqVEzjGjYq1 XYXQlhzIm//Jupg0N0UcXx+YyOzlkSXkgkt1v+1XfZMb3lz+pXooSBJxrC6mfvfmKMR/ ZMUNsjHiWuuKKMk8DfWcILWEp61mrAn+aAi5NL5dXarEB0seXq1HAURexzSwYmCFAXmb N3HNvVjO8JYi1gek07j4soK+4RTNf7ude5uZUZUJBc4PLXD5/vfp6MEgfCPwJPvFcLNl +H8w== 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=pKHdiy8s6TiGFPxLah5YvdXt6HWsVysR/gt8zwwIrZY=; b=zhapblBCR4/nU1QaRrTN6ICbuFaR2jeWhZRuFQUaU1dxwMHN1Y/BeP7SlAJBgrTwOJ XalNXl9oN1CKqaMgs9zGRB9BABTBXPuusCvS+50CvgaOY7U1kCBWhSgYFDQhMAmBxXqR fmhpSliiMiPMz+OV0kTKQYte6v4nUKwsm+QY37+G+lvxkYsjDHkbR4b3MHQFAc2GUX8G +xsSS99UXBQBmz1XpYbooaqHCg7Z2lqUq1XgNr8A2Ogli4ruEYPf7spO0ks+rCErBjht mqCKywMm9aTkuOHtR7dklz1wv0yQzXrWUFSD2MWhVc8R4VD3i1VLSPMego7Wb4iKHh7v L7lQ== 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 g26-v6si34704654pgb.349.2018.09.24.05.46.04; Mon, 24 Sep 2018 05:46:20 -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 S2389283AbeIXSrE (ORCPT + 99 others); Mon, 24 Sep 2018 14:47:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59708 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388526AbeIXSrD (ORCPT ); Mon, 24 Sep 2018 14:47:03 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1E881109A; Mon, 24 Sep 2018 12:45:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Jens Axboe , linux-block@vger.kernel.org, Sasha Levin Subject: [PATCH 4.18 226/235] block/DAC960.c: fix defined but not used build warnings Date: Mon, 24 Sep 2018 13:53:32 +0200 Message-Id: <20180924113125.675980077@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 3993e501bf853cce85c5114a704b86b8f486790c ] Fix build warnings in DAC960.c when CONFIG_PROC_FS is not enabled by marking the unused functions as __maybe_unused. ../drivers/block/DAC960.c:6429:12: warning: 'dac960_proc_show' defined but not used [-Wunused-function] ../drivers/block/DAC960.c:6449:12: warning: 'dac960_initial_status_proc_show' defined but not used [-Wunused-function] ../drivers/block/DAC960.c:6456:12: warning: 'dac960_current_status_proc_show' defined but not used [-Wunused-function] Signed-off-by: Randy Dunlap Cc: Jens Axboe Cc: linux-block@vger.kernel.org Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/block/DAC960.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) --- a/drivers/block/DAC960.c +++ b/drivers/block/DAC960.c @@ -21,6 +21,7 @@ #define DAC960_DriverDate "21 Aug 2007" +#include #include #include #include @@ -6426,7 +6427,7 @@ static bool DAC960_V2_ExecuteUserCommand return true; } -static int dac960_proc_show(struct seq_file *m, void *v) +static int __maybe_unused dac960_proc_show(struct seq_file *m, void *v) { unsigned char *StatusMessage = "OK\n"; int ControllerNumber; @@ -6446,14 +6447,16 @@ static int dac960_proc_show(struct seq_f return 0; } -static int dac960_initial_status_proc_show(struct seq_file *m, void *v) +static int __maybe_unused dac960_initial_status_proc_show(struct seq_file *m, + void *v) { DAC960_Controller_T *Controller = (DAC960_Controller_T *)m->private; seq_printf(m, "%.*s", Controller->InitialStatusLength, Controller->CombinedStatusBuffer); return 0; } -static int dac960_current_status_proc_show(struct seq_file *m, void *v) +static int __maybe_unused dac960_current_status_proc_show(struct seq_file *m, + void *v) { DAC960_Controller_T *Controller = (DAC960_Controller_T *) m->private; unsigned char *StatusMessage =