From: "Dilger, Andreas" <andreas.dilger@intel.com>
To: Dragos Foianu <dragos.foianu@gmail.com>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
Cc: "tao.peng@emc.com" <tao.peng@emc.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] staging/lustre/libcfs: removed dead code from libcfs_string
Date: Wed, 17 Jul 2013 23:46:08 +0000 [thread overview]
Message-ID: <CE0C88AF.55812%andreas.dilger@intel.com> (raw)
In-Reply-To: <1374059124-4126-1-git-send-email-dragos.foianu@gmail.com>
On 2013/07/17 5:05 AM, "Dragos Foianu" <dragos.foianu@gmail.com> wrote:
>Confirmed by cscope that the functions are not used anymore. A fresh
>compilation does not yield any errors.
>
>Signed-off-by: Dragos Foianu <dragos.foianu@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
>---
> .../staging/lustre/lustre/libcfs/libcfs_string.c | 48
>--------------------
> 1 file changed, 48 deletions(-)
>
>diff --git a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c
>b/drivers/staging/lustre/lustre/libcfs/libcfs_string.c
>index 9edccc9..c7a1971 100644
>--- a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c
>+++ b/drivers/staging/lustre/lustre/libcfs/libcfs_string.c
>@@ -132,54 +132,6 @@ int cfs_str2mask(const char *str, const char
>*(*bit2str)(int bit),
> }
> EXPORT_SYMBOL(cfs_str2mask);
>
>-/* Duplicate a string in a platform-independent way */
>-char *cfs_strdup(const char *str, u_int32_t flags)
>-{
>- size_t lenz; /* length of str + zero byte */
>- char *dup_str;
>-
>- lenz = strlen(str) + 1;
>-
>- dup_str = kmalloc(lenz, flags);
>- if (dup_str == NULL)
>- return NULL;
>-
>- memcpy(dup_str, str, lenz);
>-
>- return dup_str;
>-}
>-EXPORT_SYMBOL(cfs_strdup);
>-
>-/**
>- * cfs_{v}snprintf() return the actual size that is printed rather than
>- * the size that would be printed in standard functions.
>- */
>-/* safe vsnprintf */
>-int cfs_vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
>-{
>- int i;
>-
>- LASSERT(size > 0);
>- i = vsnprintf(buf, size, fmt, args);
>-
>- return (i >= size ? size - 1 : i);
>-}
>-EXPORT_SYMBOL(cfs_vsnprintf);
>-
>-/* safe snprintf */
>-int cfs_snprintf(char *buf, size_t size, const char *fmt, ...)
>-{
>- va_list args;
>- int i;
>-
>- va_start(args, fmt);
>- i = cfs_vsnprintf(buf, size, fmt, args);
>- va_end(args);
>-
>- return i;
>-}
>-EXPORT_SYMBOL(cfs_snprintf);
>-
> /* get the first string out of @str */
> char *cfs_firststr(char *str, size_t size)
> {
>--
>1.7.10.4
>
>
Cheers, Andreas
--
Andreas Dilger
Lustre Software Architect
Intel High Performance Data Division
prev parent reply other threads:[~2013-07-17 23:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-17 11:05 [PATCH] staging/lustre/libcfs: removed dead code from libcfs_string Dragos Foianu
2013-07-17 23:46 ` Dilger, Andreas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CE0C88AF.55812%andreas.dilger@intel.com \
--to=andreas.dilger@intel.com \
--cc=dragos.foianu@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tao.peng@emc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox