linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] uapi: fix linux/btrfs.h userspace compilation error
@ 2017-02-15 20:02 Dmitry V. Levin
  2017-02-15 20:36 ` Joe Perches
  2017-02-15 21:24 ` Jeff Mahoney
  0 siblings, 2 replies; 11+ messages in thread
From: Dmitry V. Levin @ 2017-02-15 20:02 UTC (permalink / raw)
  To: David Sterba, Josef Bacik, Jeff Mahoney, Liu Bo, Anand Jain; +Cc: linux-kernel

Stop using NULL to fix the following linux/btrfs.h userspace compilation
error:

/usr/include/linux/btrfs.h: In function 'btrfs_err_str':
/usr/include/linux/btrfs.h:740:11: error: 'NULL' undeclared (first use in this function)
    return NULL;

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 include/uapi/linux/btrfs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h
index db4c253..01c612f 100644
--- a/include/uapi/linux/btrfs.h
+++ b/include/uapi/linux/btrfs.h
@@ -737,7 +737,7 @@ static inline char *btrfs_err_str(enum btrfs_err_code err_code)
 			return "add/delete/balance/replace/resize operation "\
 				"in progress";
 		default:
-			return NULL;
+			return 0;
 	}
 }
 
-- 
ldv

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-03-02 19:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-15 20:02 [PATCH] uapi: fix linux/btrfs.h userspace compilation error Dmitry V. Levin
2017-02-15 20:36 ` Joe Perches
2017-02-15 21:24 ` Jeff Mahoney
2017-02-15 22:55   ` [PATCH v2] btrfs: remove btrfs_err_str function from uapi/linux/btrfs.h Dmitry V. Levin
2017-02-16 14:15     ` David Sterba
2017-02-28 23:12     ` [PATCH v3] " Dmitry V. Levin
2017-03-01 14:54       ` David Sterba
2017-03-02 11:42         ` David Sterba
2017-03-02 13:01           ` Dmitry V. Levin
2017-03-02 18:59             ` David Sterba
2017-03-02 19:42               ` [PATCH] MAINTAINERS: add btrfs file entries Dmitry V. Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).