From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C532ACA9EBC for ; Thu, 24 Oct 2019 12:31:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A55BA21D7B for ; Thu, 24 Oct 2019 12:31:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439129AbfJXMb0 (ORCPT ); Thu, 24 Oct 2019 08:31:26 -0400 Received: from foss.arm.com ([217.140.110.172]:49906 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726360AbfJXMb0 (ORCPT ); Thu, 24 Oct 2019 08:31:26 -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 8672DCA2; Thu, 24 Oct 2019 05:31:10 -0700 (PDT) Received: from lakrids.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 4BFAF3F71A; Thu, 24 Oct 2019 05:31:09 -0700 (PDT) Date: Thu, 24 Oct 2019 13:31:07 +0100 From: Mark Rutland To: Geert Uytterhoeven Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Jiri Kosina , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] [trivial] perf: Spelling s/EACCESS/EACCES/, s/privilidge/privilege/ Message-ID: <20191024123106.GE4300@lakrids.cambridge.arm.com> References: <20191024122904.12463-1-geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191024122904.12463-1-geert+renesas@glider.be> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 24, 2019 at 02:29:04PM +0200, Geert Uytterhoeven wrote: > As per POSIX, the correct spelling of the error code is EACCES: > > include/uapi/asm-generic/errno-base.h:#define EACCES 13 /* Permission denied */ > > Signed-off-by: Geert Uytterhoeven Looks sane to me; brings the documentation into line with reality given EACCESS doesn't exist in tree. Acked-by: Mark Rutland Mark. > --- > v2: > - Add POSIX reference, > - Also correct privilidges in the same line. > --- > include/linux/perf_event.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h > index 61448c19a132c29c..68ccc5b1913b485b 100644 > --- a/include/linux/perf_event.h > +++ b/include/linux/perf_event.h > @@ -292,7 +292,7 @@ struct pmu { > * -EBUSY -- @event is for this PMU but PMU temporarily unavailable > * -EINVAL -- @event is for this PMU but @event is not valid > * -EOPNOTSUPP -- @event is for this PMU, @event is valid, but not supported > - * -EACCESS -- @event is for this PMU, @event is valid, but no privilidges > + * -EACCES -- @event is for this PMU, @event is valid, but no privileges > * > * 0 -- @event is for this PMU and valid > * > -- > 2.17.1 >