Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1175375ybg; Tue, 2 Jun 2020 03:20:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiz0uVZ29OwOb8YjOYY1C7RLFjrJAiJLKZEZgKWcWV7TFWzqGAY8pssdgaYOxVUArYhzgz X-Received: by 2002:a50:cc85:: with SMTP id q5mr22188174edi.62.1591093205682; Tue, 02 Jun 2020 03:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591093205; cv=none; d=google.com; s=arc-20160816; b=KGKtOdPXYOuHaH7rbvTG/OKklhrX7EpBiIBV+7u6+bAeAcHITMs49GsltLNYL1duG0 y7RZ+2VNEMxXL7RiwQeUhnZ8fGuM8h9yBpXfVRJLgSEh2zDi5jl+ymkzMzdpPRRaLdDf OzZmFqLhRXm6wneNpg7lHMXiOjvru2WzUCXf4FvoqlPl/UDMjqmJ2zoTk5UEty4jtAHq r7UYk4Ti+oPM5ZfgfaHBOhDPPLs+QmeJy9LiKHdVzeOpx9WPTNxnyj2bFNLMlxvnB35V XtFgj4iT5A7OMfrgU0ILmh/u56r+54LNEClTpa3dbLvwEirR0RjAbelmo+D6vBDXYgUS 0OFA== 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=EugfCoIjD0mEuaxAHIyDn0v8SY9Zt10y2kFEgMYs7Gw=; b=DawFS1G9H0PrEAHEXk9Gt53QUPim9gzOcgWYlTtPdDhses+Wygrt2Yvrq8lz0/qKAB H3+pnQkIrRILST2hYvVSRiWAKXqBwQT+1m0f/o02dBiq2qQsijsmmPezru/qa8L/S9JM fY9QU0WRFkJHeCFEQ/0BPxn9ylKIZV2vQ+1AldWNuAtnv7oUk8+g9HK7wBrn8837D4/T nOrHueO8iqhGNKIX1Edpt2bCMARIHchGs7SMBacLBUFwB1RDvVhs7lbvbkxhgoNfO9V2 fn+YrpDTrrl0oI8OnUV9wjB7NM0grrDtbch6bwgpSMt0cIBwYzvMLyWF7+tiYnBMUSYI /LbQ== 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 l3si1174914edi.536.2020.06.02.03.19.43; Tue, 02 Jun 2020 03:20:05 -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 S1726904AbgFBKR2 (ORCPT + 99 others); Tue, 2 Jun 2020 06:17:28 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:13232 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726377AbgFBKQn (ORCPT ); Tue, 2 Jun 2020 06:16:43 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 052A39KK042931; Tue, 2 Jun 2020 06:15:05 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 31cw8u3j3s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jun 2020 06:15:05 -0400 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 052A5diq061543; Tue, 2 Jun 2020 06:15:04 -0400 Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 31cw8u3j2b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jun 2020 06:15:04 -0400 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 052AA951011983; Tue, 2 Jun 2020 10:15:01 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma04ams.nl.ibm.com with ESMTP id 31bf47wtwm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jun 2020 10:15:01 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 052ADiXb56754464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 2 Jun 2020 10:13:44 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E24C911C04A; Tue, 2 Jun 2020 10:14:58 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4F22C11C050; Tue, 2 Jun 2020 10:14:53 +0000 (GMT) Received: from vajain21-in-ibm-com (unknown [9.85.74.134]) by d06av25.portsmouth.uk.ibm.com (Postfix) with SMTP; Tue, 2 Jun 2020 10:14:52 +0000 (GMT) Received: by vajain21-in-ibm-com (sSMTP sendmail emulation); Tue, 02 Jun 2020 15:44:51 +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: [RESEND PATCH v9 2/5] seq_buf: Export seq_buf_printf Date: Tue, 2 Jun 2020 15:44:35 +0530 Message-Id: <20200602101438.73929-3-vaibhav@linux.ibm.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200602101438.73929-1-vaibhav@linux.ibm.com> References: <20200602101438.73929-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-02_11:2020-06-01,2020-06-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 phishscore=0 impostorscore=0 clxscore=1015 adultscore=0 suspectscore=0 mlxlogscore=999 cotscore=-2147483648 priorityscore=1501 spamscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006020067 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: 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