Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752910AbaBDCiL (ORCPT ); Mon, 3 Feb 2014 21:38:11 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:48074 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752326AbaBDCiH (ORCPT ); Mon, 3 Feb 2014 21:38:07 -0500 Date: Mon, 3 Feb 2014 18:42:45 -0800 From: Andrew Morton To: Sebastian Capella Cc: David Rientjes , "Alexey Dobriyan" , "Linux Kernel" , mm-commits@vger.kernel.org, "Joe Perches" Subject: Re: + mm-utilc-add-kstrimdup.patch added to -mm tree Message-Id: <20140203184245.33ac93bf.akpm@linux-foundation.org> In-Reply-To: <20140204012816.22878.4159@capellas-linux> References: <52ec195e.P8S/D298ZeaBLTvn%akpm@linux-foundation.org> <20140204012816.22878.4159@capellas-linux> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.9; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 03 Feb 2014 17:28:16 -0800 Sebastian Capella wrote: > Quoting David Rientjes (2014-02-03 17:05:04) > > The last we heard, I think Sebastian is looking to redo this series and > > this patch is no longer needed. Sebastian? > Hi David, Alexey, > > I am in the process of reworking the patches. I'm not sure if Andrew > was just interested in having the kstrimdup utility function available. > > Isn't it too late to impose userspace trimming of newlines for sysfs? > It seems already fairly common and expected for the kernel to eat the > trailing whitespace, or at least ignore it. If we change this won't we > be breaking userspace / tools / instructions / etc? > We have quite a lot of codesites which open-code the newline trimming. Providing a library function to do this will result in goodness. That being said, I don't plan to merge kstrimdup() until it has some users. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/