Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3740906ybi; Tue, 18 Jun 2019 05:54:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVxGQd2AM20OrPgY1ulBS5NtMyJKRbfUtbNq3FmRqsbvsqoUt2m1JIhFvUnZeNLJyUM8tZ X-Received: by 2002:a17:90a:fa07:: with SMTP id cm7mr4871188pjb.138.1560862456855; Tue, 18 Jun 2019 05:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560862456; cv=none; d=google.com; s=arc-20160816; b=n9aiVEhLBchLf1s+onVj1T8fgEm/ecqoh/B7Hx2Cvy3z7JG6l3gfuwm4ox6ExZdRx6 zbTD5DhFRhaxF3XY9/FYcGCBIwtteQXSaKSKz9/IFAkNvm8sg7HYRd8hB03aX8pscR5d VJlEu4ypViNeIiTV5NOw9vYshiJHLQ/xTWI+Mlmcuu9mXZCa0BABltGp6vzED6bHzkuh /Du9XNlcdjJgfMI/eZUJfXMrACDUOBT6r7Vb2U8zz8BR01Kd9Y2fzYNYUqfUrIv+59B9 IhxJd6EbL/Tuw63rKdi3WIaeFf9pmhKRIp9321oJiSR+WRYRaHWwFeW1QKYDhV8jSLU+ SxBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Bfy77u7tJNTd5J51nX2le6x0ue32vN6S4jsrNSu3u5c=; b=QLsM7k+NoWB/9Xb3bMK++2oS09UNw0WqMhwKdzZT/0ubvubRQHZs+IyXo0mWj/1ihF 8nHckDPVO/fOcjz6CW8fspR4ovtZRJcZNBQ02H+p011ensLLfIAhN+TrEkH0vSpevffx aOCld4XLMKab+qML6SwmPRHed1aC5TiotbErZVKdwUIHP+n9uP7rRF/G+TOXD5nI+pf2 wNnojNMkVUvxNYoCJMzZux23ESLnLknQPjtDlIOpfH4R4P8jWN0pubxo13HrS6N08R+A FMMwxer7Qlq+531KYV+Z2KWjMdaaCRQTByHaXpjEWMY8KmidCHjVlFqdVf26Ma4iTG/e wYYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=aIrunKiU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d34si3059850pla.283.2019.06.18.05.53.37; Tue, 18 Jun 2019 05:54:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=aIrunKiU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726739AbfFRMxI (ORCPT + 99 others); Tue, 18 Jun 2019 08:53:08 -0400 Received: from merlin.infradead.org ([205.233.59.134]:46746 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725913AbfFRMxI (ORCPT ); Tue, 18 Jun 2019 08:53:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Bfy77u7tJNTd5J51nX2le6x0ue32vN6S4jsrNSu3u5c=; b=aIrunKiU1UPTSLW50Tzi5wZRH q927Au14ksQ497PRuHzG4SV2W/+qi3c0y5C4cJSKV2cEgYdfeHUOWgLjK4PHOA+BRcx5kWxjhjsTb jLy57uNFsNWDHEflxu5Qwujj5OJmGddrJAcOF8zt5/hUzAOygg98FDwvKO1XPnbA2WWTstLsVfnCt Ivfc681alAIMqYNSxEjffaNk4kqeo4CuWxWyfFmyLoWKdZWbbLMcIIiimRhdy5HOabAi70ERSmMCc 5dhiZUwfu4SoprcD8Q6hb8XF7NxqhP5VW0Ibm9827qVND8W3SUCqykcD8PqLJvKQLLD1BqJFlPAoQ oxM6wLjzw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hdDbh-0007W9-Qd; Tue, 18 Jun 2019 12:53:02 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 643D9209C8912; Tue, 18 Jun 2019 14:52:59 +0200 (CEST) Date: Tue, 18 Jun 2019 14:52:59 +0200 From: Peter Zijlstra To: Will Deacon Cc: Michael Forney , Boqun Feng , linux-kernel@vger.kernel.org Subject: Re: [PATCH] locking/atomics: Use sed(1) instead of non-standard head(1) option Message-ID: <20190618125259.GI3419@hirez.programming.kicks-ass.net> References: <20190618053306.730-1-mforney@mforney.org> <20190618121625.GC31041@fuggles.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190618121625.GC31041@fuggles.cambridge.arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 18, 2019 at 01:16:25PM +0100, Will Deacon wrote: > On Mon, Jun 17, 2019 at 10:33:06PM -0700, Michael Forney wrote: > > POSIX says the -n option must be a positive decimal integer. Not all > > implementations of head(1) support negative numbers meaning offset from > > the end of the file. > > > > Instead, the sed expression '$d' has the same effect of removing the > > last line of the file. > > > > Signed-off-by: Michael Forney > > --- > > scripts/atomic/check-atomics.sh | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Acked-by: Will Deacon Thanks!