Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp3645931ybg; Sun, 7 Jun 2020 06:17:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3i73uV8KbK7+sjpqk4GY9b+/F/Q3DFTtbNCLrEFi9J+A4vFPhUakT43ChH1dmJKptzicN X-Received: by 2002:a50:f0c4:: with SMTP id a4mr18528150edm.125.1591535869125; Sun, 07 Jun 2020 06:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591535869; cv=none; d=google.com; s=arc-20160816; b=l5s+623fAkuhwl+pdavP93idL1uz4oFPFGSC8HAu1lLv8/Ki3Byb/9/v6o5KMpJ+ff YGNcK+R9w38PtmvFcLj1XolyM5cOS/46w92qWU2osmkkmPtp+wgR7qQZzU5MqyLdWb2I 2B91i6H2jXcyuB0ZUUO0pS75a3Vb9JX3eHJSqJQ6MdvDtOZwWs07sCE233gZScIwMyW1 AKM9XXHVMZ5hB0mYAucx6+kCLENnGSepoDaDvEXCiF2xScl40w0J1Ur8yoDftoAdiiT0 JdazmIKw9eSTiiKKIeuEUDLixZDfGOEPTkyPUvIKVxJXnqeexwFFZX8ClP0IJ4dzR1av g1fg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xinwD8r0jGvMnYAj/hB+TuSMEiaUcQvp495IFcG4o1E=; b=epMaok5NVhrCji9M872KbG/IS7zpkyx3rPUSnfy5Yh1gf46MpoVrj7ThlNIg5bah9R 4lmN+1ihCoULXxSQ0HzboC+jzRcUikJcBjHRhw5OR/0jVHAH4t6sCEMzH18bRSosgEBh GH4dF6ltYyeNiG579+iuY8InMcMrL9GEAjdVZ3BHRzSL8rFYw7KUOBrbcIFeLHKX4mSO F4D1cs5h8CqhrM+RalPD2zEO+eQ0yo5atyphY5yA1IrrBUYhEVSKfv8kuM+UB0yZboBy 24uIiOJH0Cl5KiHYXEzQhY5XcektLA0s0m9x9GFxCea3vx9dbh2h971TkyAoK5+mZrPb n5EA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h17si6927452eds.347.2020.06.07.06.17.26; Sun, 07 Jun 2020 06:17:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726686AbgFGNO7 (ORCPT + 99 others); Sun, 7 Jun 2020 09:14:59 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:28970 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726672AbgFGNO4 (ORCPT ); Sun, 7 Jun 2020 09:14:56 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 057D2OC5165880; Sun, 7 Jun 2020 09:14:06 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 31g74s9qge-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 07 Jun 2020 09:14:06 -0400 Received: from m0098421.ppops.net (m0098421.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 057D3QcX168785; Sun, 7 Jun 2020 09:14:06 -0400 Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 31g74s9qg1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 07 Jun 2020 09:14:05 -0400 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 057D9vqv006051; Sun, 7 Jun 2020 13:14:04 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma04fra.de.ibm.com with ESMTP id 31g2s7rw50-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 07 Jun 2020 13:14:03 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 057DE1Vx64160092 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 7 Jun 2020 13:14:01 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0191A4C044; Sun, 7 Jun 2020 13:14:01 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BFDD54C040; Sun, 7 Jun 2020 13:13:54 +0000 (GMT) Received: from vajain21-in-ibm-com (unknown [9.85.68.227]) by d06av22.portsmouth.uk.ibm.com (Postfix) with SMTP; Sun, 7 Jun 2020 13:13:54 +0000 (GMT) Received: by vajain21-in-ibm-com (sSMTP sendmail emulation); Sun, 07 Jun 2020 18:43:53 +0530 From: Vaibhav Jain To: linuxppc-dev@lists.ozlabs.org, linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org Cc: Vaibhav Jain , Dan Williams , "Aneesh Kumar K . V" , Michael Ellerman , "Oliver O'Halloran" , Santosh Sivaraj , Steven Rostedt , Ira Weiny , Piotr Maziarz , Cezary Rojewski , Christoph Hellwig , Borislav Petkov Subject: [PATCH v11 2/6] seq_buf: Export seq_buf_printf Date: Sun, 7 Jun 2020 18:43:35 +0530 Message-Id: <20200607131339.476036-3-vaibhav@linux.ibm.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200607131339.476036-1-vaibhav@linux.ibm.com> References: <20200607131339.476036-1-vaibhav@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-07_03:2020-06-04,2020-06-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 clxscore=1015 mlxscore=0 lowpriorityscore=0 cotscore=-2147483648 adultscore=0 priorityscore=1501 suspectscore=0 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006070096 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'seq_buf' provides a very useful abstraction for writing to a string buffer without needing to worry about it over-flowing. However even though the API has been stable for couple of years now its still not exported to kernel loadable modules limiting its usage. Hence this patch proposes update to 'seq_buf.c' to mark seq_buf_printf() which is part of the seq_buf API to be exported to kernel loadable GPL modules. This symbol will be used in later parts of this patch-set to simplify content creation for a sysfs attribute. Cc: Piotr Maziarz Cc: Cezary Rojewski Cc: Christoph Hellwig Cc: Steven Rostedt Cc: Borislav Petkov Acked-by: Steven Rostedt (VMware) Signed-off-by: Vaibhav Jain --- Changelog: v10..v11: * None v9..v10: * None Resend: * Added ack from Steven Rostedt v8..v9: * None v7..v8: * Updated the patch title [ Christoph Hellwig ] * Updated patch description to replace confusing term 'external kernel modules' to 'kernel lodable modules'. Resend: * Added ack from Steven Rostedt v6..v7: * New patch in the series --- lib/seq_buf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/seq_buf.c b/lib/seq_buf.c index 4e865d42ab03..707453f5d58e 100644 --- a/lib/seq_buf.c +++ b/lib/seq_buf.c @@ -91,6 +91,7 @@ int seq_buf_printf(struct seq_buf *s, const char *fmt, ...) return ret; } +EXPORT_SYMBOL_GPL(seq_buf_printf); #ifdef CONFIG_BINARY_PRINTF /** -- 2.26.2