X-GM-THRID: 6463854288984604672 X-Received: by 10.46.22.92 with SMTP id 28mr864406ljw.32.1505149911126; Mon, 11 Sep 2017 10:11:51 -0700 (PDT) X-BeenThere: outreachy-kernel@googlegroups.com Received: by 10.46.16.197 with SMTP id 66ls188080ljq.1.gmail; Mon, 11 Sep 2017 10:11:49 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAcZ/AhY/SVMedLW+K7q6KWGcTYGyYSNQSKB1jMwG3+iZwK9x/6zN0dHeVDHvq14HdPhuIA X-Received: by 10.46.67.12 with SMTP id q12mr378497lja.35.1505149909819; Mon, 11 Sep 2017 10:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505149909; cv=none; d=google.com; s=arc-20160816; b=WHQDgWxInkfjDR/wzu2ArgMwpcvI+YvMNbOBxEqVjiKnz1M82m2jOzmTOoB81bm7v2 /2Mb9EF+TnC+kvzQ3heH0jfywMVpeIhniHMimv1RWFJd9nGUJu8f55Tzpiu6mQvHHcFO 54anY8NIbSNiMKJuCZtlwlwzZc3iweBV9fWrYViicuNzCFuoBqrazzyAvkXPh3nr7By2 OsQ1fHaC3CjP4hJdSR2adJsmuVNsLrNEnWqO+DRiIACq5GFrVlomhy4J7/4IOidIRd0P LU5dQqs/Vnq3u3+YD4g1QJV0EoA+V5StEIl76KoftG2g44zaJbQWBmy/yzs3cq3ExhWB cNlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:arc-authentication-results; bh=/VgKTITAycnRTRF71dAAJbNzWWH5IHzTDtrzooHGfcU=; b=rq4J7IsoCwaIJjPHjLc6wNoHsPAn9HhLUBufqzescRzuXkjLHR2OtbT//1Ev2Zqz9d GnMQReT41K9epwdrrf3nLP+pgSXBMzS5NU3KsWIxOQ8oQPIxJANqaVFB+bmBEdOJD15b 60vwWlwjWw35d8Tcme2pUq2QDG2YMnCIHXCtT9rLoQr/QF+2di3Hzqcwn2zJSD8Jza5v 6ueRZQj4XCuQsbudtJGw2O/bbOYCEoxkvyQH/AgUG3PH+FcUXLWxKnqJ5TVI48DafcS7 RqqdRRoJfXONn/TM5YJ2YOmM+/NDHSGMcRm9V8YF9iXYdIZzT+er2cXgGr4IjKgHCxWh 7QbA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 192.134.164.104 is neither permitted nor denied by domain of julia.lawall@lip6.fr) smtp.mailfrom=julia.lawall@lip6.fr Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr. [192.134.164.104]) by gmr-mx.google.com with ESMTPS id z129si356096wmc.5.2017.09.11.10.11.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Sep 2017 10:11:49 -0700 (PDT) Received-SPF: neutral (google.com: 192.134.164.104 is neither permitted nor denied by domain of julia.lawall@lip6.fr) client-ip=192.134.164.104; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.134.164.104 is neither permitted nor denied by domain of julia.lawall@lip6.fr) smtp.mailfrom=julia.lawall@lip6.fr X-IronPort-AV: E=Sophos;i="5.42,378,1500933600"; d="scan'208";a="237089466" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Sep 2017 19:11:49 +0200 Date: Mon, 11 Sep 2017 19:11:18 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Shreeya Patel cc: Greg KH , outreachy-kernel@googlegroups.com Subject: Re: [Outreachy kernel] Re: [PATCH v4] Staging: rtlwifi: Remove unnecessary 'out of memory' message. In-Reply-To: <6ac72deb-edd6-1026-a2e9-df6ea871b3af@gmail.com> Message-ID: References: <1505036405-3702-1-git-send-email-shreeya.patel23498@gmail.com> <20170911163210.GA26981@kroah.com> <6e7b1bf6-89b9-a40e-4a67-af79312b12a7@gmail.com> <6ac72deb-edd6-1026-a2e9-df6ea871b3af@gmail.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Mon, 11 Sep 2017, Shreeya Patel wrote: > > > > On Monday 11 September 2017 10:31 PM, Julia Lawall wrote: > > > On Mon, 11 Sep 2017, Shreeya Patel wrote: > > > > On Monday 11 September 2017 10:02 PM, Greg KH wrote: > > On Sun, Sep 10, 2017 at 03:10:05PM +0530, Shreeya Patel wrote: > > Logging messages that show some type of 'out of memory' error > are generally unnecessary as there is a generic message and > a stack dump done by the memory subsystem. > > These messages generally increase kernel size without much > added value. > > Problem found by checkpatch. > > Signed-off-by: Shreeya Patel > Acked-by: Julia Lawall > --- > > Changes in v4: > -Include v2 and v3 in the patch. > > Changes in v3: > -Make the commit message more appropriate. > > changes in v2: > -Original patch was not sent to the mailing list. > Also, add a tab before the return statement. > > drivers/staging/rtlwifi/rc.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/staging/rtlwifi/rc.c b/drivers/staging/rtlwifi/rc.c > index 65de0c7..779a5c6 100644 > --- a/drivers/staging/rtlwifi/rc.c > +++ b/drivers/staging/rtlwifi/rc.c > @@ -281,10 +281,8 @@ static void *rtl_rate_alloc_sta(void *ppriv, > struct rtl_rate_priv *rate_priv; > > rate_priv = kzalloc(sizeof(*rate_priv), gfp); > - if (!rate_priv) { > - pr_err("Unable to allocate private rc structure\n"); > + if (!rate_priv) > return NULL; > - } > > rtlpriv->rate_priv = rate_priv; > > This patch is sent corrupted (leading space is gone), and git doesn't > like it. Can you please fix it up and resend? > > thanks, > > greg k-h > > > Hello sir, > > If i am not removing the leading spaces then checkpatch is showing me errors > for trailing whitespace. > > Maybe you are not using checkpatch properly? What is your command line? > > julia > > perl scripts/checkpatch.pl -f > /tmp/0001-Staging-rtlwifi-Remove-unnecessary-out-of-memory-mes.patch -f is for files, eg foo.c, not for patches. You should be able to just give the patch file name directly. Also, could you change your mailer to make something visible when you quote other people? Otherwise, it's hard to sort out what is new and what is quoted from others. thanks, julia > > > > But there are no leading spaces present in the file which i have modified. > When i convert my changes into the patch, the whitespace errors are shown > up. > Can you please help me with this to make me understand why this is > happening? > > > -- > You received this message because you are subscribed to the Google Groups > "outreachy-kernel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to outreachy-kernel+unsubscribe@googlegroups.com. > To post to this group, send email to outreachy-kernel@googlegroups.com. > To view this discussion on the web visithttps://groups.google.com/d/msgid/ou > treachy-kernel/6e7b1bf6-89b9-a40e-4a67- > af79312b12a7%40gmail.com. > For more options, visit https://groups.google.com/d/optout. > > > > >