* [PATCH 0/2] Remove wrapper function and tidy up the code
@ 2015-11-02 18:58 Shivani Bhardwaj
2015-11-02 18:59 ` [PATCH 1/2] Staging: lustre: tracefile: Replace function calls Shivani Bhardwaj
2015-11-02 18:59 ` [PATCH 2/2] Staging: lustre: tracefile: Remove wrapper function Shivani Bhardwaj
0 siblings, 2 replies; 3+ messages in thread
From: Shivani Bhardwaj @ 2015-11-02 18:58 UTC (permalink / raw)
To: outreachy-kernel; +Cc: outreachy-kernel
This patchset removes a wrapper function and replaces its calls with
standard function.
After applying this patchset, code becomes cleaner.
Shivani Bhardwaj (2):
Staging: lustre: tracefile: Replace function calls
Staging: lustre: tracefile: Remove wrapper function
drivers/staging/lustre/lustre/libcfs/tracefile.c | 4 ++--
drivers/staging/lustre/lustre/libcfs/tracefile.h | 6 ------
2 files changed, 2 insertions(+), 8 deletions(-)
--
2.1.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] Staging: lustre: tracefile: Replace function calls
2015-11-02 18:58 [PATCH 0/2] Remove wrapper function and tidy up the code Shivani Bhardwaj
@ 2015-11-02 18:59 ` Shivani Bhardwaj
2015-11-02 18:59 ` [PATCH 2/2] Staging: lustre: tracefile: Remove wrapper function Shivani Bhardwaj
1 sibling, 0 replies; 3+ messages in thread
From: Shivani Bhardwaj @ 2015-11-02 18:59 UTC (permalink / raw)
To: outreachy-kernel; +Cc: outreachy-kernel
Replace the calls of function cfs_trace_put_console_buffer() with
put_cpu() as former is just a wrapper for latter.
Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
drivers/staging/lustre/lustre/libcfs/tracefile.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/lustre/lustre/libcfs/tracefile.c b/drivers/staging/lustre/lustre/libcfs/tracefile.c
index 54835fc..211047f 100644
--- a/drivers/staging/lustre/lustre/libcfs/tracefile.c
+++ b/drivers/staging/lustre/lustre/libcfs/tracefile.c
@@ -451,7 +451,7 @@ console:
cfs_print_to_console(&header, mask,
string_buf, needed, file, msgdata->msg_fn);
- cfs_trace_put_console_buffer(string_buf);
+ put_cpu();
}
if (cdls != NULL && cdls->cdls_count != 0) {
@@ -465,7 +465,7 @@ console:
cfs_print_to_console(&header, mask,
string_buf, needed, file, msgdata->msg_fn);
- cfs_trace_put_console_buffer(string_buf);
+ put_cpu();
cdls->cdls_count = 0;
}
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/2] Staging: lustre: tracefile: Remove wrapper function
2015-11-02 18:58 [PATCH 0/2] Remove wrapper function and tidy up the code Shivani Bhardwaj
2015-11-02 18:59 ` [PATCH 1/2] Staging: lustre: tracefile: Replace function calls Shivani Bhardwaj
@ 2015-11-02 18:59 ` Shivani Bhardwaj
1 sibling, 0 replies; 3+ messages in thread
From: Shivani Bhardwaj @ 2015-11-02 18:59 UTC (permalink / raw)
To: outreachy-kernel; +Cc: outreachy-kernel
Remove the function cfs_trace_put_console_buffer() as it is no longer
required.
Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
drivers/staging/lustre/lustre/libcfs/tracefile.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/staging/lustre/lustre/libcfs/tracefile.h b/drivers/staging/lustre/lustre/libcfs/tracefile.h
index 4d5fdaf..ba62005 100644
--- a/drivers/staging/lustre/lustre/libcfs/tracefile.h
+++ b/drivers/staging/lustre/lustre/libcfs/tracefile.h
@@ -278,12 +278,6 @@ cfs_trace_get_console_buffer(void)
return cfs_trace_console_buffers[i][j];
}
-static inline void
-cfs_trace_put_console_buffer(char *buffer)
-{
- put_cpu();
-}
-
static inline struct cfs_trace_cpu_data *
cfs_trace_get_tcd(void)
{
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-11-02 18:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-02 18:58 [PATCH 0/2] Remove wrapper function and tidy up the code Shivani Bhardwaj
2015-11-02 18:59 ` [PATCH 1/2] Staging: lustre: tracefile: Replace function calls Shivani Bhardwaj
2015-11-02 18:59 ` [PATCH 2/2] Staging: lustre: tracefile: Remove wrapper function Shivani Bhardwaj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.