lkml.org 
[lkml]   [2008]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 29/31] markers: Make static
Sparse asked whether these could be static.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
samples/markers/probe-example.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/samples/markers/probe-example.c b/samples/markers/probe-example.c
index 2dfb3b3..d816aad 100644
--- a/samples/markers/probe-example.c
+++ b/samples/markers/probe-example.c
@@ -20,7 +20,7 @@ struct probe_data {
marker_probe_func *probe_func;
};

-void probe_subsystem_event(void *probe_data, void *call_data,
+static void probe_subsystem_event(void *probe_data, void *call_data,
const char *format, va_list *args)
{
/* Declare args */
@@ -37,9 +37,9 @@ void probe_subsystem_event(void *probe_data, void *call_data,
/* or count, check rights, serialize data in a buffer */
}

-atomic_t eventb_count = ATOMIC_INIT(0);
+static atomic_t eventb_count = ATOMIC_INIT(0);

-void probe_subsystem_eventb(void *probe_data, void *call_data,
+static void probe_subsystem_eventb(void *probe_data, void *call_data,
const char *format, va_list *args)
{
/* Increment counter */


\
 
 \ /
  Last update: 2008-12-09 23:25    [W:0.671 / U:0.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site