Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754527AbZFEV5z (ORCPT ); Fri, 5 Jun 2009 17:57:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752537AbZFEV5s (ORCPT ); Fri, 5 Jun 2009 17:57:48 -0400 Received: from mail-fx0-f213.google.com ([209.85.220.213]:40451 "EHLO mail-fx0-f213.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752016AbZFEV5r (ORCPT ); Fri, 5 Jun 2009 17:57:47 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=IGmgAZNS8z7Fg+O7XBqQuupRwbuvviWE4OaPNz9Fdc6N8UTnXPXMg9qwqlS1+aZ5BM lCmJ+FjvHbu/J4roYZPxMUAVMSr442/77Mxt84sScSFQe4Dy7NDv3ad9WZ8OZLVGa/eC vJYqBd/8H2rUKHzVeph352V6TQlJ2KYh9tL6k= From: Sergei Trofimovich To: linux-kernel@vger.kernel.org, trivial@kernel.org Cc: Sergei Trofimovich Subject: [PATCH] cleanup: shmem_file_setup: 'char *' -> 'const char *' for name argument Date: Sat, 6 Jun 2009 00:58:12 +0300 Message-Id: <1244239092-8795-1-git-send-email-slyich@gmail.com> X-Mailer: git-send-email 1.6.0.6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1512 Lines: 45 From: Sergei Trofimovich As function shmem_file_setup does not modify/allocate/free/pass given filename - mark it as const. Signed-off-by: Sergei Trofimovich --- include/linux/mm.h | 2 +- mm/shmem.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index bff1f0d..e2d8d63 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -726,7 +726,7 @@ static inline int shmem_lock(struct file *file, int lock, return 0; } #endif -struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags); +struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags); int shmem_zero_setup(struct vm_area_struct *); diff --git a/mm/shmem.c b/mm/shmem.c index b25f95c..a21d60a 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -2612,7 +2612,7 @@ int shmem_unuse(swp_entry_t entry, struct page *page) * @size: size to be set for the file * @flags: VM_NORESERVE suppresses pre-accounting of the entire object size */ -struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags) +struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags) { int error; struct file *file; -- 1.6.0.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/