Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4534880imm; Mon, 17 Sep 2018 16:02:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdagYWLDaHkAJf0HeFesTnBJ/iM5p3+1Q/TegO1JkJrI+sjTJVGfITRFeCE92dmH/ID+VJqh X-Received: by 2002:a17:902:163:: with SMTP id 90-v6mr26533877plb.322.1537225370706; Mon, 17 Sep 2018 16:02:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537225370; cv=none; d=google.com; s=arc-20160816; b=o/2EtRIV2bnxC4M5gbKYa/YwVseJchD4tx9qGariDviTmCOFiPxgwcVv6lLLOF6r0F V4sImUMt1Pa2xglcmGjfPr5FOztYnuavEaJbWYpyPXjTPDcA0BzmHhZnw5Va9aXSd/wN 3mNtbEzncR2DSK5YNq+bIwAqCHquKM5J5GrCY1lfRTcH4w6zsXMuR8h6p4IH0pkdbHdb QU8j1kIJVV4V/OQ5Y4j4JLWBGbQ0hIYX9xnp2hYbvIPOtazlGPmcFqB+SF74gye/zUWO uz7z9E/VwGNfv9zNBBAL0OqdIeDrbLQ/Vhd2poEwzdCO2krNx2Hcx+Ht7YH6L64XtGLE EEWQ== 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=730qv9LEbPdw06ZoiBAkxyNe1JGENeLWgqHQTlXp6Tc=; b=bD6v5aCBy9Wuz1z5j3l5wI1R58Ba7eupdDiT0+t+9kZUhGgZhHQcM8yNQtOgJWOUs4 3WCXrkE6EIPKoHdH9Y1C/mAvsYMW9wQtAuA6aFzeSQhm4C6gscwG8/Me8End3ASn4kwU OKUh1gdy7u85ibeZMOSSYjiyYqSLIOP7Ud6C995h43aY5jFcRmAQ76pj0Dbz90nzvleW i5mDTX8XnpOXxQ8cAAAChQVyNj/EZ+F/nxaJD8q6Ngxw9NN66UDyTTwaCKnrrhhZyHpJ FvwjTgurYDocdJrgJp5kvsOo1N3gwaT+WtVGhxtaoozvR362fCZQAoP4SDmSiqaqqSPm V/4Q== 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 w26-v6si15238113pgl.340.2018.09.17.16.02.35; Mon, 17 Sep 2018 16:02:50 -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 S1730398AbeIREbt (ORCPT + 99 others); Tue, 18 Sep 2018 00:31:49 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48458 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727088AbeIREbs (ORCPT ); Tue, 18 Sep 2018 00:31:48 -0400 Received: from localhost (li1825-44.members.linode.com [172.104.248.44]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 028A0CC1; Mon, 17 Sep 2018 23:02:19 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net, Sasha Levin Subject: [PATCH 4.14 045/126] f2fs: fix defined but not used build warnings Date: Tue, 18 Sep 2018 00:41:33 +0200 Message-Id: <20180917211707.604787292@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180917211703.481236999@linuxfoundation.org> References: <20180917211703.481236999@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Randy Dunlap [ Upstream commit cb15d1e43db0a6341c1e26ac6a2c74e61b74f1aa ] Fix build warnings in f2fs when CONFIG_PROC_FS is not enabled by marking the unused functions as __maybe_unused. ../fs/f2fs/sysfs.c:519:12: warning: 'segment_info_seq_show' defined but not used [-Wunused-function] ../fs/f2fs/sysfs.c:546:12: warning: 'segment_bits_seq_show' defined but not used [-Wunused-function] ../fs/f2fs/sysfs.c:570:12: warning: 'iostat_info_seq_show' defined but not used [-Wunused-function] Signed-off-by: Randy Dunlap Cc: Jaegeuk Kim Cc: Chao Yu Cc: linux-f2fs-devel@lists.sourceforge.net Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- fs/f2fs/sysfs.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c @@ -9,6 +9,7 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ +#include #include #include #include @@ -381,7 +382,8 @@ static struct kobject f2fs_feat = { .kset = &f2fs_kset, }; -static int segment_info_seq_show(struct seq_file *seq, void *offset) +static int __maybe_unused segment_info_seq_show(struct seq_file *seq, + void *offset) { struct super_block *sb = seq->private; struct f2fs_sb_info *sbi = F2FS_SB(sb); @@ -408,7 +410,8 @@ static int segment_info_seq_show(struct return 0; } -static int segment_bits_seq_show(struct seq_file *seq, void *offset) +static int __maybe_unused segment_bits_seq_show(struct seq_file *seq, + void *offset) { struct super_block *sb = seq->private; struct f2fs_sb_info *sbi = F2FS_SB(sb); @@ -432,7 +435,8 @@ static int segment_bits_seq_show(struct return 0; } -static int iostat_info_seq_show(struct seq_file *seq, void *offset) +static int __maybe_unused iostat_info_seq_show(struct seq_file *seq, + void *offset) { struct super_block *sb = seq->private; struct f2fs_sb_info *sbi = F2FS_SB(sb);