Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3702067ybi; Tue, 18 Jun 2019 05:18:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2oT4wFMaCQTNcu4bYIziyBslKlbj7/wK/rvrW5qF2AGUgVq0LJGealsesFvhG4+uXiJ3s X-Received: by 2002:a63:1b66:: with SMTP id b38mr2430961pgm.54.1560860296129; Tue, 18 Jun 2019 05:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560860296; cv=none; d=google.com; s=arc-20160816; b=WENA8gU2Eh+1ZAHdLcJ4w9fF6iIrfVWGfFNnb4hMxX7Hd/+2+8+kbwuGQo0u/dBs5h 5vmnPlXOizlbE58CLuzpjiNYRg5ih4I5tt6w5mtVuIo1Sp0LRfbrm0CVdASbQD/JLBYb px4tMSv70TBJJm2l7/E42gDiz/dTdGwPgATvX4CzKfjIQNVoSQw3SEmoAmmN6TlosuI/ YRrwJTuZDVcbBEafPjkQTvKpM2ZLL1exaFt1IRE/1A+UhKSgVRTRZi0AVU/oVziB4uQ2 Y2lrwE5Rp/uAoKt3MCb/plgnLvY9hsbgwTVn8ROZHxj/AFe+UnPTbV/g7N/fVnPqY++n b0yw== 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; bh=72E3G5pUYNhm7p8ipXziX+3bkLwkalYuCK3b4Ik4O+g=; b=J75aqH9Xs37Mt/m/SPKIJagp7iJK/+81pLEEX5zAvDVKqcXn9aklHQX50iIhO6Oagj r7H5ybFpU2VXiLReICSO+uRkmEV9L/9xtItVg+RsZLapZ7TTPWFsOA+Z2Mre9GQatXbU 7DF+bHjlJb/Bz0AZT6XqQA4sUX1+fFlsCaETQMDi7hXECuXs+6CzbrhyA5NNA9RhvEse wzcm9LiLIktJGaYn7shrfsZc7o3WJaNw3QfzE4pbGVTLXMNIofiUINwD+H5bjxrsrgbY AyvAsmlZTj1sEHp5UAkNOyAgvZzv3seJm6DvXp5ZicbC1zvrpqPquLlYpZ73HcPnEr1Z x4sw== ARC-Authentication-Results: i=1; mx.google.com; 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 z26si14478191pfj.247.2019.06.18.05.18.00; Tue, 18 Jun 2019 05:18: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; 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 S1728385AbfFRMQ3 (ORCPT + 99 others); Tue, 18 Jun 2019 08:16:29 -0400 Received: from foss.arm.com ([217.140.110.172]:38082 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725913AbfFRMQ3 (ORCPT ); Tue, 18 Jun 2019 08:16:29 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8C4DA2B; Tue, 18 Jun 2019 05:16:28 -0700 (PDT) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D8FF83F246; Tue, 18 Jun 2019 05:16:27 -0700 (PDT) Date: Tue, 18 Jun 2019 13:16:25 +0100 From: Will Deacon To: Michael Forney Cc: Peter Zijlstra , Boqun Feng , linux-kernel@vger.kernel.org Subject: Re: [PATCH] locking/atomics: Use sed(1) instead of non-standard head(1) option Message-ID: <20190618121625.GC31041@fuggles.cambridge.arm.com> References: <20190618053306.730-1-mforney@mforney.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190618053306.730-1-mforney@mforney.org> User-Agent: Mutt/1.11.1+86 (6f28e57d73f2) () Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Will