All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Shivani Bhardwaj <shivanib134@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH 3/3] Staging: lustre: module: Replace function calls
Date: Wed, 4 Nov 2015 11:02:25 -0800	[thread overview]
Message-ID: <20151104190225.GA26290@kroah.com> (raw)
In-Reply-To: <3beed3bcb9ca96a4d504079d6aeaae4f28b43d52.1446489978.git.shivanib134@gmail.com>

On Tue, Nov 03, 2015 at 12:19:36AM +0530, Shivani Bhardwaj wrote:
> Replace the calls of function cfs_trace_free_string_buffer() with
> kfree() as the former function is not required.
> 
> Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
> ---
>  drivers/staging/lustre/lustre/libcfs/module.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/lustre/lustre/libcfs/module.c b/drivers/staging/lustre/lustre/libcfs/module.c
> index 50e8fd2..516a9e7 100644
> --- a/drivers/staging/lustre/lustre/libcfs/module.c
> +++ b/drivers/staging/lustre/lustre/libcfs/module.c
> @@ -392,7 +392,7 @@ static int __proc_dobitmasks(void *data, int write,
>  	} else {
>  		rc = cfs_trace_copyin_string(tmpstr, tmpstrlen, buffer, nob);
>  		if (rc < 0) {
> -			cfs_trace_free_string_buffer(tmpstr, tmpstrlen);
> +			kfree(tmpstr);
>  			return rc;
>  		}
>  
> @@ -402,7 +402,7 @@ static int __proc_dobitmasks(void *data, int write,
>  			*mask |= D_EMERG;
>  	}
>  
> -	cfs_trace_free_string_buffer(tmpstr, tmpstrlen);
> +	kfree(tmpstr);
>  	return rc;
>  }
>  

Don't you need this to be earlier in the series?  You just deleted the
function from the kernel in the first patch :(

Never break the build for any patch in a series.  Please reorder and
resend.

thanks,

greg k-h


  reply	other threads:[~2015-11-04 19:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-02 18:48 [PATCH 0/3] Remove wrapper function and clean up the code Shivani Bhardwaj
2015-11-02 18:48 ` [PATCH 1/3] Staging: lustre: tracefile: Remove wrapper function Shivani Bhardwaj
2015-11-02 18:49 ` [PATCH 2/3] Staging: lustre: tracefile: Remove function prototype Shivani Bhardwaj
2015-11-02 18:49 ` [PATCH 3/3] Staging: lustre: module: Replace function calls Shivani Bhardwaj
2015-11-04 19:02   ` Greg KH [this message]
2015-11-04 19:15     ` [Outreachy kernel] " Shivani Bhardwaj

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=20151104190225.GA26290@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=outreachy-kernel@googlegroups.com \
    --cc=shivanib134@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.