Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1253561 > unrolled thread

[PATCH] pstore: fix return type of pstore_is_mounted

Started byGeliang Tang <geliangtang@163.com>
First post2015-10-22 10:10 +0200
Last post2015-10-22 18:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] pstore: fix return type of pstore_is_mounted Geliang Tang <geliangtang@163.com> - 2015-10-22 10:10 +0200
    Re: [PATCH] pstore: fix return type of pstore_is_mounted Kees Cook <keescook@chromium.org> - 2015-10-22 18:40 +0200

#1253561 — [PATCH] pstore: fix return type of pstore_is_mounted

FromGeliang Tang <geliangtang@163.com>
Date2015-10-22 10:10 +0200
Subject[PATCH] pstore: fix return type of pstore_is_mounted
Message-ID<qmj6F-4MD-1@gated-at.bofh.it>
This patch changes return type of pstore_is_mounted from int to bool.

Signed-off-by: Geliang Tang <geliangtang@163.com>
---
 fs/pstore/inode.c    | 2 +-
 fs/pstore/internal.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c
index 3586491..d8c439d 100644
--- a/fs/pstore/inode.c
+++ b/fs/pstore/inode.c
@@ -288,7 +288,7 @@ static const struct super_operations pstore_ops = {
 
 static struct super_block *pstore_sb;
 
-int pstore_is_mounted(void)
+bool pstore_is_mounted(void)
 {
 	return pstore_sb != NULL;
 }
diff --git a/fs/pstore/internal.h b/fs/pstore/internal.h
index 96253c4..e38a22b 100644
--- a/fs/pstore/internal.h
+++ b/fs/pstore/internal.h
@@ -63,6 +63,6 @@ extern int	pstore_mkfile(enum pstore_type_id, char *psname, u64 id,
 			      int count, char *data, bool compressed,
 			      size_t size, struct timespec time,
 			      struct pstore_info *psi);
-extern int	pstore_is_mounted(void);
+extern bool	pstore_is_mounted(void);
 
 #endif
-- 
1.9.1


--
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/

[toc] | [next] | [standalone]


#1253975

FromKees Cook <keescook@chromium.org>
Date2015-10-22 18:40 +0200
Message-ID<qmr4e-82p-23@gated-at.bofh.it>
In reply to#1253561
On Thu, Oct 22, 2015 at 1:02 AM, Geliang Tang <geliangtang@163.com> wrote:
> This patch changes return type of pstore_is_mounted from int to bool.
>
> Signed-off-by: Geliang Tang <geliangtang@163.com>

Sure! :)

Acked-by: Kees Cook <keescook@chromium.org>

-Kees

> ---
>  fs/pstore/inode.c    | 2 +-
>  fs/pstore/internal.h | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c
> index 3586491..d8c439d 100644
> --- a/fs/pstore/inode.c
> +++ b/fs/pstore/inode.c
> @@ -288,7 +288,7 @@ static const struct super_operations pstore_ops = {
>
>  static struct super_block *pstore_sb;
>
> -int pstore_is_mounted(void)
> +bool pstore_is_mounted(void)
>  {
>         return pstore_sb != NULL;
>  }
> diff --git a/fs/pstore/internal.h b/fs/pstore/internal.h
> index 96253c4..e38a22b 100644
> --- a/fs/pstore/internal.h
> +++ b/fs/pstore/internal.h
> @@ -63,6 +63,6 @@ extern int    pstore_mkfile(enum pstore_type_id, char *psname, u64 id,
>                               int count, char *data, bool compressed,
>                               size_t size, struct timespec time,
>                               struct pstore_info *psi);
> -extern int     pstore_is_mounted(void);
> +extern bool    pstore_is_mounted(void);
>
>  #endif
> --
> 1.9.1
>
>



-- 
Kees Cook
Chrome OS Security
--
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/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web