lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20070321192543.e17e23cd.randy.dunlap@oracle.com>
Date:	Wed, 21 Mar 2007 19:25:43 -0700
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	linux-ext4@...r.kernel.org
Cc:	sct@...hat.com, akpm@...ux-foundation.org, adilger@...sterfs.com
Subject: [PATCH -mm] ext4: use NULL for pointers

From: Randy Dunlap <randy.dunlap@...cle.com>

Use NULL instead of 0 for pointers:
fs/ext4/writeback.c:874:24: warning: Using plain integer as NULL pointer
fs/ext4/writeback.c:1105:23: warning: Using plain integer as NULL pointer

Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
---
 fs/ext4/writeback.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- linux-2.6.21-rc4-mm1.orig/fs/ext4/writeback.c
+++ linux-2.6.21-rc4-mm1/fs/ext4/writeback.c
@@ -41,6 +41,7 @@
 #include <linux/jbd.h>
 #include <linux/ext4_fs_extents.h>
 #include <linux/smp_lock.h>
+#include <linux/stddef.h>
 #include <linux/highuid.h>
 #include <linux/pagemap.h>
 #include <linux/quotaops.h>
@@ -871,7 +872,7 @@ int ext4_wb_prepare_write(struct file *f
 				wb_debug("read block %u\n",
 						(unsigned) bhw->b_blocknr);
 				set_bh_page(bhw, page, 0);
-				bhw->b_this_page = 0;
+				bhw->b_this_page = NULL;
 				bhw->b_size = 1 << inode->i_blkbits;
 				atomic_set(&bhw->b_count, 1);
 				ll_rw_block(READ, 1, &bhw);
@@ -1102,7 +1103,7 @@ int ext4_wb_block_truncate_page(handle_t
 			wb_debug("read block %u for part.trunc on %lu\n",
 					(unsigned) bhw->b_blocknr, page->index);
 			set_bh_page(bhw, page, 0);
-			bhw->b_this_page = 0;
+			bhw->b_this_page = NULL;
 			bhw->b_size = 1 << inode->i_blkbits;
 			atomic_set(&bhw->b_count, 1);
 			ll_rw_block(READ, 1, &bhw);
-
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ