login
Header Space

 
 

[S390] s390dbf: Use const char * for dbf name.

Previous thread: [S390] dasd: Use const in busid functions. by Linux Kernel Mailing List on Thursday, May 15, 2008 - 4:59 pm. (1 message)

Next thread: [S390] dasd: fix timeout handling in interrupt handler by Linux Kernel Mailing List on Thursday, May 15, 2008 - 4:59 pm. (1 message)
To: <git-commits-head@...>
Date: Thursday, May 15, 2008 - 4:59 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5cbbf1...
Commit:     5cbbf16a0fab91662af8400b5ada658990932a87
Parent:     69f90f6a5650a74dd8f428e8d2f05859d58da3d7
Author:     Cornelia Huck &lt;cornelia.huck@de.ibm.com&gt;
AuthorDate: Thu May 15 16:52:35 2008 +0200
Committer:  Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
CommitDate: Thu May 15 16:52:39 2008 +0200

    [S390] s390dbf: Use const char * for dbf name.
    
    We should use const char * for passing the name of the debug feature
    around since it will not be changed.
    
    Signed-off-by: Cornelia Huck &lt;cornelia.huck@de.ibm.com&gt;
    Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
---
 arch/s390/kernel/debug.c |   20 ++++++++++----------
 include/asm-s390/debug.h |    4 ++--
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c
index dff0568..c93d129 100644
--- a/arch/s390/kernel/debug.c
+++ b/arch/s390/kernel/debug.c
@@ -71,7 +71,7 @@ static ssize_t debug_input(struct file *file, const char __user *user_buf,
 			size_t user_len, loff_t * offset);
 static int debug_open(struct inode *inode, struct file *file);
 static int debug_close(struct inode *inode, struct file *file);
-static debug_info_t*  debug_info_create(char *name, int pages_per_area,
+static debug_info_t *debug_info_create(const char *name, int pages_per_area,
 			int nr_areas, int buf_size, mode_t mode);
 static void debug_info_get(debug_info_t *);
 static void debug_info_put(debug_info_t *);
@@ -234,8 +234,8 @@ fail_malloc_areas:
  */
 
 static debug_info_t*
-debug_info_alloc(char *name, int pages_per_area, int nr_areas, int buf_size,
-		int level, int mode)
+debug_info_alloc(const char *name, int pages_per_area, int nr_areas,
+		 int buf_size, int level, int mode)
 {
 	debug_info_t* rc;
 
@@ -326,8 +326,8 @@ debug_info_free(debug_info_t* db_info){
  */
 
 static debug_info_...
Previous thread: [S390] dasd: Use const in busid functions. by Linux Kernel Mailing List on Thursday, May 15, 2008 - 4:59 pm. (1 message)

Next thread: [S390] dasd: fix timeout handling in interrupt handler by Linux Kernel Mailing List on Thursday, May 15, 2008 - 4:59 pm. (1 message)
speck-geostationary