minix: add common functionality
A message that is not in the archive (sent off-list or not yet received): 1306967576.1760.7.camel@offworld
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 15 lines · Karel Zak
Quoted 2 lines · Davidlohr Bueso
Unite common features and code present in mkfs.minix and fsck.minix into a single
minix.hheader.All three patches applied, but...
CC fsck.minix.o
In file included from fsck.minix.c:105:0:minix.h: In function ‘inode_blocks’:
minix.h:126:16: warning: unused variable ‘ret’fsck.minix.c: In function ‘map_block2’:
fsck.minix.c:467:9: warning: array subscript is above array boundsCC ismounted.o CCLD fsck.minix CC mkfs.minix.o
Quoted 7 lines
In file included from mkfs.minix.c:76:0:
minix.h: In function ‘inode_blocks’:
minix.h:126:16: warning: unused variable ‘ret’... I guess you will fix these warnings in some next cleanup patches.
The array subscript warning is old, here's a patch that silences the unused variable one. I will look into the first shortly.
From: Davidlohr Bueso <[email protected]>
Date: Mon, 6 Jun 2011 09:48:25 -0400
Subject: [PATCH] minix: fix warning
This patch fixes an unused variable warning.
--- disk-utils/minix.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
disk-utils/minix.h +0 -2
@@ -123,8 +123,6 @@ static inline unsigned long get_max_size(void)static unsigned long inode_blocks (void ) { -unsigned long ret; -if (fs_version ==2 )return UPPER (get_ninodes (),MINIX2_INODES_PER_BLOCK );else
Signature · 1 line
1.7.4.1
Quoted 2 lines
disk-utils/minix.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com