From: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
To: Randy Dunlap <randy.dunlap@oracle.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Linux Kernel Markers documentation fix typo and use ARRAY_SIZE
Date: Wed, 11 Apr 2007 14:57:17 -0400 [thread overview]
Message-ID: <20070411185717.GA2950@Krystal> (raw)
In-Reply-To: <20070410193757.650f84cc.randy.dunlap@oracle.com>
Linux Kernel Markers documentation fix typo and use ARRAY_SIZE
Following comments from Randy Dunlap. Applies on top of the
linux-kernel-markers-documentation-markers-update-documentation patch.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/Documentation/marker.txt
+++ b/Documentation/marker.txt
@@ -103,7 +103,7 @@ clean:
------------------------------ CUT -------------------------------------
/* probe-example.c
*
- * Connects a two functions to marker call sites.
+ * Connects two functions to marker call sites.
*
* (C) Copyright 2007 Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
*
@@ -117,7 +117,7 @@ clean:
#include <linux/marker.h>
#include <asm/atomic.h>
-#define NUM_PROBES (sizeof(probe_array) / sizeof(struct probe_data))
+#define NUM_PROBES ARRAY_SIZE(probe_array)
struct probe_data {
const char *name;
--
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
next prev parent reply other threads:[~2007-04-11 18:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-10 23:11 [PATCH] markers-generic-doc-section-fix-flags Mathieu Desnoyers
2007-04-10 23:20 ` [PATCH] markers-i386-doc-section-flags-optimized-state-change Mathieu Desnoyers
2007-04-10 23:22 ` [PATCH] markers-powerpc-doc-section-flags Mathieu Desnoyers
2007-04-10 23:24 ` [PATCH] markers-non-opt-arch-alpha-arm26-doc-flags Mathieu Desnoyers
2007-04-10 23:26 ` [PATCH] markers-doc-update-flags-example Mathieu Desnoyers
2007-04-11 2:37 ` Randy Dunlap
2007-04-11 18:57 ` Mathieu Desnoyers [this message]
2007-04-10 23:27 ` [PATCH] build-avr32-marker-menu Mathieu Desnoyers
2007-04-10 23:29 ` [PATCH] markers-module.c-doc-flags Mathieu Desnoyers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070411185717.GA2950@Krystal \
--to=mathieu.desnoyers@polymtl.ca \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox