Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3752442ybk; Tue, 19 May 2020 12:05:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTxlkxT6yBZDTW1Ajmi3wi9HD/an+6HOh5Sby436a6uNa0V2FSG/g5DIZP4J8ydBvb5ONd X-Received: by 2002:a50:d65c:: with SMTP id c28mr310642edj.21.1589915136603; Tue, 19 May 2020 12:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589915136; cv=none; d=google.com; s=arc-20160816; b=wyqk/d20ZOYcLt8NEDp6tVjJLU+OFyuTjUyu9EhUPqea9KDaBGqMMl2EfD+15UOuZr xbglXsX+Ud2H0UfpZXfQSKIFkLqZbIUc4METArsMwAb5/hKZfcfaEWu8XIaWlLiINowv 1AC8uD012Am4UBRVFpRAeraQq06FJdk2M9b8t0BmyV8uET3FV2nIbzJ7oclMTLv7PW/8 0QFxgpA61MzBJ2nurcvjD4OVefxC+0/x8HsawbG1mJ3nDHvYC/qmak//K6tNlbiYnvvK ijG8SYJ895sFm6lvG5oNMNARr18Q7Pzak35lwlM4dkADuqcjyTGSTtZ7Rc5khAze+X06 ygxw== 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=hSviFGiCntGA6Qi1hDZVDtc4p4hWgZLX/mFG+l/rHtE=; b=DIDbaj6M9KFXl4E6AXNDOZ+pLeQnsez1umJSFyDccdDWAyIjXHaIOaENeuTUPhg1uH GRuYsA5RcLSdhBfyKVr793bHbdpjd9B2VwweDCoMP8m6YK1+6oz2LtmUeygoGy3b4xM9 BsqTUlmDjhjdZkArfph+0KQfCcq2EE9v8ahpkni2bAYo3csySh4s0+j0K4IS+WdgnU4G EvJWUvDr0YQG7RWNNUhn7nZN/S2V9n+zdv3uebz2CeiIwxj12Q3auzzBsRo5J+BSx1sm 5EEyWYCXWgLYoaqfuXt/KHNzywgUA6NeDRZvv6RIhrshNVrUr1xNwJbNSI2pISkNCYs6 Te0A== 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 cn24si161920edb.340.2020.05.19.12.05.12; Tue, 19 May 2020 12:05:36 -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 S1726401AbgESTCO (ORCPT + 99 others); Tue, 19 May 2020 15:02:14 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:48826 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726059AbgESTCM (ORCPT ); Tue, 19 May 2020 15:02:12 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04JIhNqx180189; Tue, 19 May 2020 15:01:20 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 31293vcss0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 May 2020 15:01:20 -0400 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 04JIwNKd024674; Tue, 19 May 2020 15:01:20 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 31293vcsre-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 May 2020 15:01:20 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 04JJ17iM004547; Tue, 19 May 2020 19:01:18 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma05fra.de.ibm.com with ESMTP id 313x4xgw34-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 May 2020 19:01:18 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 04JJ1FkM59703546 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 May 2020 19:01:15 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6B4DA5204E; Tue, 19 May 2020 19:01:15 +0000 (GMT) Received: from vajain21-in-ibm-com (unknown [9.85.89.230]) by d06av21.portsmouth.uk.ibm.com (Postfix) with SMTP id 9991752050; Tue, 19 May 2020 19:01:11 +0000 (GMT) Received: by vajain21-in-ibm-com (sSMTP sendmail emulation); Wed, 20 May 2020 00:31:10 +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 , Piotr Maziarz , Cezary Rojewski , Borislav Petkov Subject: [RESEND PATCH v7 2/5] seq_buf: Export seq_buf_printf() to external modules Date: Wed, 20 May 2020 00:30:55 +0530 Message-Id: <20200519190058.257981-3-vaibhav@linux.ibm.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200519190058.257981-1-vaibhav@linux.ibm.com> References: <20200519190058.257981-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.676 definitions=2020-05-19_06:2020-05-19,2020-05-19 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 phishscore=0 mlxlogscore=999 mlxscore=0 malwarescore=0 bulkscore=0 impostorscore=0 priorityscore=1501 suspectscore=0 adultscore=0 lowpriorityscore=0 cotscore=-2147483648 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005190153 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 stills not exported to external 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 external GPL modules. This symbol will be used in later parts of this patchset to simplify content creation for a sysfs attribute. Cc: Steven Rostedt Cc: Piotr Maziarz Cc: Cezary Rojewski Cc: Borislav Petkov Acked-by: Steven Rostedt (VMware) Signed-off-by: Vaibhav Jain --- Changelog: 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