[PATCH] __must_check btrfs_alloc_path()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



IMHO it's a good thing to add __must_check in new code where it has sense.


Index: btrfs-unstable-standalone/ctree.c
===================================================================
--- btrfs-unstable-standalone.orig/ctree.c	2008-12-29 21:57:15.366588465 +0100
+++ btrfs-unstable-standalone/ctree.c	2008-12-29 21:58:06.878588402 +0100
@@ -43,7 +43,7 @@
 	memset(p, 0, sizeof(*p));
 }
 
-struct btrfs_path *btrfs_alloc_path(void)
+struct btrfs_path __must_check *btrfs_alloc_path(void)
 {
 	struct btrfs_path *path;
 	path = kmem_cache_alloc(btrfs_path_cachep, GFP_NOFS);
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux