linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] [trivial] perf: Spelling s/EACCESS/EACCES/, s/privilidge/privilege/
@ 2019-10-24 12:29 Geert Uytterhoeven
  2019-10-24 12:31 ` Mark Rutland
  2019-10-28 11:41 ` [tip: perf/urgent] perf/headers: Fix spelling " tip-bot2 for Geert Uytterhoeven
  0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2019-10-24 12:29 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Mark Rutland, Alexander Shishkin, Jiri Olsa, Namhyung Kim
  Cc: Jiri Kosina, linux-kernel, Geert Uytterhoeven

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 <geert+renesas@glider.be>
---
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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] [trivial] perf: Spelling s/EACCESS/EACCES/, s/privilidge/privilege/
  2019-10-24 12:29 [PATCH v2] [trivial] perf: Spelling s/EACCESS/EACCES/, s/privilidge/privilege/ Geert Uytterhoeven
@ 2019-10-24 12:31 ` Mark Rutland
  2019-10-28 11:41 ` [tip: perf/urgent] perf/headers: Fix spelling " tip-bot2 for Geert Uytterhoeven
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Rutland @ 2019-10-24 12:31 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Alexander Shishkin, Jiri Olsa, Namhyung Kim, Jiri Kosina,
	linux-kernel

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 <geert+renesas@glider.be>

Looks sane to me; brings the documentation into line with reality given
EACCESS doesn't exist in tree.

Acked-by: Mark Rutland <mark.rutland@arm.com>

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
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip: perf/urgent] perf/headers: Fix spelling s/EACCESS/EACCES/, s/privilidge/privilege/
  2019-10-24 12:29 [PATCH v2] [trivial] perf: Spelling s/EACCESS/EACCES/, s/privilidge/privilege/ Geert Uytterhoeven
  2019-10-24 12:31 ` Mark Rutland
@ 2019-10-28 11:41 ` tip-bot2 for Geert Uytterhoeven
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Geert Uytterhoeven @ 2019-10-28 11:41 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Geert Uytterhoeven, Peter Zijlstra (Intel),
	Alexander Shishkin, Arnaldo Carvalho de Melo,
	Arnaldo Carvalho de Melo, Jiri Kosina, Jiri Olsa, Linus Torvalds,
	Mark Rutland, Namhyung Kim, Stephane Eranian, Thomas Gleixner,
	Vince Weaver, Ingo Molnar, Borislav Petkov, linux-kernel

The following commit has been merged into the perf/urgent branch of tip:

Commit-ID:     652521d460cbfa24ef27717b4b28acfac4281be6
Gitweb:        https://git.kernel.org/tip/652521d460cbfa24ef27717b4b28acfac4281be6
Author:        Geert Uytterhoeven <geert+renesas@glider.be>
AuthorDate:    Thu, 24 Oct 2019 14:29:04 +02:00
Committer:     Ingo Molnar <mingo@kernel.org>
CommitterDate: Mon, 28 Oct 2019 11:02:01 +01:00

perf/headers: Fix spelling s/EACCESS/EACCES/, s/privilidge/privilege/

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 <geert+renesas@glider.be>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Kosina <trivial@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Link: https://lkml.kernel.org/r/20191024122904.12463-1-geert+renesas@glider.be
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 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 61448c1..68ccc5b 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
 	 *

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-28 11:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-24 12:29 [PATCH v2] [trivial] perf: Spelling s/EACCESS/EACCES/, s/privilidge/privilege/ Geert Uytterhoeven
2019-10-24 12:31 ` Mark Rutland
2019-10-28 11:41 ` [tip: perf/urgent] perf/headers: Fix spelling " tip-bot2 for Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).