Re: [PATCH 2/6] udf: remove some ugly macros

2007-12-25 Thread Marcin Slusarz
On Tue, Dec 25, 2007 at 11:54:38AM +, Christoph Hellwig wrote: Looks generally good, but it would be nice if you could avoid introducing new overly long lines. Then again this really won't be noticed in udf anyway and it looks like you plan to clean it up later anyway. Yes, that's what

[PATCH] qla3xxx: convert byte order of constant instead of variable

2007-12-25 Thread Marcin Slusarz
convert byte order of constant instead of variable it will be done at compile time (vs run time) Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] --- drivers/net/qla3xxx.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c

[PATCH] ext2/3/4: convert byte order of constant instead of variable

2007-12-25 Thread Marcin Slusarz
convert byte order of constant instead of variable it will be done at compile time (vs run time) ext3/4 bits are #if 0'ed, but someone might copy this code into other places Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] --- fs/ext2/super.c |8 +++- fs/ext3/super.c |2 +- fs/ext4

[PATCH] ocfs2: convert byte order of constant instead of variable

2007-12-25 Thread Marcin Slusarz
convert byte order of constant instead of variable it will be done at compile time (vs run time) remove unused le32_and_cpu Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Mark Fasheh [EMAIL PROTECTED] CC: Kurt Hackel [EMAIL PROTECTED] --- fs/ocfs2/endian.h |5 - fs/ocfs2/inode.c

Re: [PATCH 3/6] udf: convert UDF_SB_ALLOC_PARTMAPS macro to udf_sb_alloc_partition_maps function

2007-12-25 Thread Marcin Slusarz
+ memset to kcalloc - check if kcalloc failed (partially) Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] CC: Christoph Hellwig [EMAIL PROTECTED] --- fs/udf/super.c | 25 +++-- fs/udf/udf_sb.h | 13 - 2

[PATCH 6/6] udf: fix sparse warnings (shadowing & mismatch between declaration and definition)

2007-12-23 Thread marcin . slusarz
fix sparse warnings: fs/udf/super.c:1431:24: warning: symbol 'bh' shadows an earlier one fs/udf/super.c:1347:21: originally declared here fs/udf/super.c:472:6: warning: symbol 'udf_write_super' was not declared. Should it be static? Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> C

[PATCH 4/6] udf: check if udf_load_logicalvol failed

2007-12-23 Thread marcin . slusarz
udf_load_logicalvol may fail eg in out of memory conditions - check it and propagate error further Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> CC: Christoph Hellwig <[EMAIL PROTECTED]> --- fs/udf/s

[PATCH 5/6] udf: convert some macros to functions

2007-12-23 Thread marcin . slusarz
convert UDF_SB_ALLOC_BITMAP macro to udf_sb_alloc_bitmap function convert UDF_SB_FREE_BITMAP macro to udf_sb_free_bitmap function Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> CC: Christoph Hellwig

[PATCH 3/6] udf: convert UDF_SB_ALLOC_PARTMAPS macro to udf_sb_alloc_partition_maps function

2007-12-23 Thread marcin . slusarz
- convert UDF_SB_ALLOC_PARTMAPS macro to udf_sb_alloc_partition_maps function - convert kmalloc + memset to kzalloc - check if kzalloc failed (partially) Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> CC:

[PATCH 1/6] udf: fix coding style of super.c

2007-12-23 Thread marcin . slusarz
warnings, 1872 lines checked all 164 warnings left are lines longer than 80 characters; this file has too much indentation with really long expressions to break all those lines now Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[

[PATCH 0/6] udf: improve code related to super_block, was: udf: convert super_block macros to functions

2007-12-23 Thread marcin . slusarz
to super.c 19 didn't change 22,23 was combined into one and functions moved from udf_sb.h to super.c 24 didn't change Marcin Slusarz -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.

[PATCH 0/6] udf: improve code related to super_block, was: udf: convert super_block macros to functions

2007-12-23 Thread marcin . slusarz
to super.c 19 didn't change 22,23 was combined into one and functions moved from udf_sb.h to super.c 24 didn't change Marcin Slusarz -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

[PATCH 1/6] udf: fix coding style of super.c

2007-12-23 Thread marcin . slusarz
warnings, 1872 lines checked all 164 warnings left are lines longer than 80 characters; this file has too much indentation with really long expressions to break all those lines now Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf

[PATCH 3/6] udf: convert UDF_SB_ALLOC_PARTMAPS macro to udf_sb_alloc_partition_maps function

2007-12-23 Thread marcin . slusarz
- convert UDF_SB_ALLOC_PARTMAPS macro to udf_sb_alloc_partition_maps function - convert kmalloc + memset to kzalloc - check if kzalloc failed (partially) Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] CC: Christoph Hellwig [EMAIL

[PATCH 4/6] udf: check if udf_load_logicalvol failed

2007-12-23 Thread marcin . slusarz
udf_load_logicalvol may fail eg in out of memory conditions - check it and propagate error further Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] CC: Christoph Hellwig [EMAIL PROTECTED] --- fs/udf/super.c |7 ++- 1 files

[PATCH 5/6] udf: convert some macros to functions

2007-12-23 Thread marcin . slusarz
convert UDF_SB_ALLOC_BITMAP macro to udf_sb_alloc_bitmap function convert UDF_SB_FREE_BITMAP macro to udf_sb_free_bitmap function Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] CC: Christoph Hellwig [EMAIL PROTECTED] --- fs/udf

[PATCH 6/6] udf: fix sparse warnings (shadowing mismatch between declaration and definition)

2007-12-23 Thread marcin . slusarz
fix sparse warnings: fs/udf/super.c:1431:24: warning: symbol 'bh' shadows an earlier one fs/udf/super.c:1347:21: originally declared here fs/udf/super.c:472:6: warning: symbol 'udf_write_super' was not declared. Should it be static? Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema

[PATCH 23/24] udf: convert UDF_SB_FREE_BITMAP macro to udf_sb_free_bitmap function

2007-12-22 Thread marcin . slusarz
: symbol 'i' shadows an earlier one fs/udf/super.c:1701:6: originally declared here fs/udf/super.c:1714:4: warning: symbol 'i' shadows an earlier one fs/udf/super.c:1701:6: originally declared here Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan

[PATCH 24/24] udf: fix sparse warnings (shadowing & mismatch between declaration and definition)

2007-12-22 Thread marcin . slusarz
fix warnings: fs/udf/super.c:1370:24: warning: symbol 'bh' shadows an earlier one fs/udf/super.c:1288:21: originally declared here fs/udf/super.c:450:6: warning: symbol 'udf_write_super' was not declared. Should it be static? Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben F

[PATCH 21/24] udf: remove some UDF_SB_* macros

2007-12-22 Thread marcin . slusarz
remove macros: - UDF_SB_PARTTYPE - UDF_SB_PARTROOT - UDF_SB_PARTLEN - UDF_SB_PARTVSN - UDF_SB_PARTNUM - UDF_SB_TYPESPAR - UDF_SB_TYPEVIRT - UDF_SB_PARTFUNC - UDF_SB_PARTFLAGS and replace all uses Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]>

[PATCH 22/24] udf: convert UDF_SB_ALLOC_BITMAP macro to udf_sb_alloc_bitmap function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/super.c |4 ++-- fs/udf/udf_sb.h | 37 - 2 files changed, 22 insertions(+), 19 deletions(-) diff --git

[PATCH 19/24] udf: check if udf_load_logicalvol failed

2007-12-22 Thread marcin . slusarz
udf_load_logicalvol may fail eg in out of memory conditions - check it and propagate error further Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/super.c |7 ++- 1 files changed,

[PATCH 20/24] udf: convert UDF_UPDATE_UDFREV macro to udf_update_revision function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/ialloc.c |2 +- fs/udf/udf_sb.h |8 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/fs/udf/ialloc.c b/fs/udf/iall

[PATCH 17/24] udf: convert UDF_SB_VAT macro to udf_sb_vat_inode function

2007-12-22 Thread marcin . slusarz
- change UDF_SB_VAT macro to udf_sb_vat_inode inline function - rename s_vat field to s_vat_inode Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/partition.c|6 +++--- fs/udf/super.c

[PATCH 18/24] udf: convert UDF_SB_ALLOC_PARTMAPS macro to udf_sb_alloc_partition_maps function

2007-12-22 Thread marcin . slusarz
- change UDF_SB_ALLOC_PARTMAPS macro to udf_sb_alloc_partition_maps inline function - convert kmalloc + memset to kzalloc - check if kzalloc failed (partially) Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTE

[PATCH 14/24] udf: convert UDF_SB_RECORDTIME macro to udf_sb_record_time function

2007-12-22 Thread marcin . slusarz
- change UDF_SB_RECORDTIME macro to udf_sb_record_time inline function - rename s_recordtime field to s_record_time Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/inode.c| 14

[PATCH 15/24] udf: convert UDF_SB_SERIALNUM macro to udf_sb_serial_number function

2007-12-22 Thread marcin . slusarz
- change UDF_SB_SERIALNUM macro to udf_sb_serial_number inline function - rename s_serialnum field to s_serial_number Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/inode.c|2

[PATCH 16/24] udf: convert UDF_SB_UDFREV macro to udf_sb_revision function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/balloc.c |2 +- fs/udf/inode.c| 14 +++--- fs/udf/misc.c |2 +- fs/udf/namei.c|2 +- fs/udf/super.c| 10

[PATCH 12/24] udf: convert UDF_SB_LVIDIU macro to udf_sb_lvidiu function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/ialloc.c | 16 fs/udf/super.c | 34 +- fs/udf/udf_sb.h | 10 -- 3 files changed, 33

[PATCH 13/24] udf: remove unused macros

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/udf_sb.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/fs/udf/udf_sb.h b/fs/udf/udf_sb.h index a9ff8fb..8683b71 1

[PATCH 10/24] udf: convert UDF_SB_LVIDBH macro to udf_sb_lvid_bh function

2007-12-22 Thread marcin . slusarz
- change UDF_SB_LVIDBH macro to udf_sb_lvid_bh inline function - rename s_lvidbh field to s_lvid_bh Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/balloc.c | 26 +---

[PATCH 11/24] udf: convert UDF_SB_LVID macro to udf_sb_lvid function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/balloc.c | 24 fs/udf/ialloc.c |2 +- fs/udf/namei.c |4 ++-- fs/udf/super.c | 40 --

[PATCH 09/24] udf: convert UDF_SB_LASTBLOCK macro to udf_sb_last_block function

2007-12-22 Thread marcin . slusarz
- change UDF_SB_LASTBLOCK macro to udf_sb_last_block inline function - rename s_lastblock field to s_last_block Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/super.c| 20 ++

[PATCH 07/24] udf: convert UDF_SB_SESSION macro to udf_sb_session function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/misc.c |8 fs/udf/super.c | 28 ++-- fs/udf/udf_sb.h |6 +- 3 files changed, 23 insertions(+), 19

[PATCH 08/24] udf: convert UDF_SB_ANCHOR macro to udf_sb_anchor function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/super.c | 44 ++-- fs/udf/udf_sb.h |6 +- 2 files changed, 27 insertions(+), 23 deletions(-) d

[PATCH 04/24] udf: convert UDF_SB_VOLIDENT macro to udf_sb_volume_ident function

2007-12-22 Thread marcin . slusarz
- change UDF_SB_VOLIDENT macro to udf_sb_volume_ident inline function - rename s_volident field to s_volume_ident Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/file.c |2

[PATCH 05/24] udf: convert UDF_SB_NUMPARTS macro to udf_sb_num_parts function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/partition.c |6 +++--- fs/udf/super.c | 20 ++-- fs/udf/udf_sb.h| 10 +++--- 3 files changed, 20 insertion

[PATCH 06/24] udf: convert UDF_SB_PARTITION macro to udf_sb_partition function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/balloc.c | 10 fs/udf/super.c | 68 +++--- fs/udf/udf_sb.h |6 - 3 files chan

[PATCH 03/24] udf: convert some macros to inline functions

2007-12-22 Thread marcin . slusarz
macro UDF_SB_PARTMAPS -> function udf_sb_partmaps macro UDF_SB_FREE -> function udf_sb_free Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/balloc.c | 24 ++--

[PATCH 01/24] udf: fix coding style of super.c

2007-12-22 Thread marcin . slusarz
warnings, 1872 lines checked all 164 warnings left are lines longer than 80 characters; this file has too much indentation with really long expressions to break all those lines Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROT

[PATCH 02/24] udf: rename UDF_SB to udf_sb

2007-12-22 Thread marcin . slusarz
rename UDF_SB function to udf_sb Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> CC: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/balloc.c | 12 ++-- fs/udf/ialloc.c |4 ++-- fs/udf/inode.c |6 +++--- fs/ud

[PATCH 00/24] udf: convert super_block macros to functions

2007-12-22 Thread marcin . slusarz
going to do more cleanups later. PS: This is the first time I use git-send-email - tell me if I do something wrong. Marcin Slusarz -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.

Re: [PATCH 1/5] udf: remove wrong prototype of udf_readdir

2007-12-22 Thread Marcin Slusarz
On Fri, Dec 21, 2007 at 04:21:17PM -0800, Andrew Morton wrote: > On Fri, 21 Dec 2007 16:55:03 +0100 > Marcin Slusarz <[EMAIL PROTECTED]> wrote: > > > sparse generated: > > fs/udf/dir.c:78:5: warning: symbol 'udf_readdir' was not declared. Should > > it be

Re: [PATCH 1/5] udf: remove wrong prototype of udf_readdir

2007-12-22 Thread Marcin Slusarz
On Fri, Dec 21, 2007 at 04:21:17PM -0800, Andrew Morton wrote: On Fri, 21 Dec 2007 16:55:03 +0100 Marcin Slusarz [EMAIL PROTECTED] wrote: sparse generated: fs/udf/dir.c:78:5: warning: symbol 'udf_readdir' was not declared. Should it be static? there are 2 different prototypes

[PATCH 00/24] udf: convert super_block macros to functions

2007-12-22 Thread marcin . slusarz
going to do more cleanups later. PS: This is the first time I use git-send-email - tell me if I do something wrong. Marcin Slusarz -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

[PATCH 01/24] udf: fix coding style of super.c

2007-12-22 Thread marcin . slusarz
warnings, 1872 lines checked all 164 warnings left are lines longer than 80 characters; this file has too much indentation with really long expressions to break all those lines Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf

[PATCH 02/24] udf: rename UDF_SB to udf_sb

2007-12-22 Thread marcin . slusarz
rename UDF_SB function to udf_sb Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/balloc.c | 12 ++-- fs/udf/ialloc.c |4 ++-- fs/udf/inode.c |6 +++--- fs/udf/super.c | 32

[PATCH 03/24] udf: convert some macros to inline functions

2007-12-22 Thread marcin . slusarz
macro UDF_SB_PARTMAPS - function udf_sb_partmaps macro UDF_SB_FREE - function udf_sb_free Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/balloc.c | 24 ++-- fs/udf/super.c | 52

[PATCH 04/24] udf: convert UDF_SB_VOLIDENT macro to udf_sb_volume_ident function

2007-12-22 Thread marcin . slusarz
- change UDF_SB_VOLIDENT macro to udf_sb_volume_ident inline function - rename s_volident field to s_volume_ident Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/file.c |2 +- fs/udf/super.c

[PATCH 05/24] udf: convert UDF_SB_NUMPARTS macro to udf_sb_num_parts function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/partition.c |6 +++--- fs/udf/super.c | 20 ++-- fs/udf/udf_sb.h| 10 +++--- 3 files changed, 20 insertions(+), 16 deletions(-) diff

[PATCH 06/24] udf: convert UDF_SB_PARTITION macro to udf_sb_partition function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/balloc.c | 10 fs/udf/super.c | 68 +++--- fs/udf/udf_sb.h |6 - 3 files changed, 44 insertions(+), 40

[PATCH 07/24] udf: convert UDF_SB_SESSION macro to udf_sb_session function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/misc.c |8 fs/udf/super.c | 28 ++-- fs/udf/udf_sb.h |6 +- 3 files changed, 23 insertions(+), 19 deletions(-) diff --git

[PATCH 08/24] udf: convert UDF_SB_ANCHOR macro to udf_sb_anchor function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/super.c | 44 ++-- fs/udf/udf_sb.h |6 +- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/fs/udf/super.c

[PATCH 09/24] udf: convert UDF_SB_LASTBLOCK macro to udf_sb_last_block function

2007-12-22 Thread marcin . slusarz
- change UDF_SB_LASTBLOCK macro to udf_sb_last_block inline function - rename s_lastblock field to s_last_block Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/super.c| 20 ++-- fs/udf

[PATCH 10/24] udf: convert UDF_SB_LVIDBH macro to udf_sb_lvid_bh function

2007-12-22 Thread marcin . slusarz
- change UDF_SB_LVIDBH macro to udf_sb_lvid_bh inline function - rename s_lvidbh field to s_lvid_bh Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/balloc.c | 26 +- fs/udf/ialloc.c

[PATCH 11/24] udf: convert UDF_SB_LVID macro to udf_sb_lvid function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/balloc.c | 24 fs/udf/ialloc.c |2 +- fs/udf/namei.c |4 ++-- fs/udf/super.c | 40 fs/udf

[PATCH 12/24] udf: convert UDF_SB_LVIDIU macro to udf_sb_lvidiu function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/ialloc.c | 16 fs/udf/super.c | 34 +- fs/udf/udf_sb.h | 10 -- 3 files changed, 33 insertions(+), 27

[PATCH 13/24] udf: remove unused macros

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/udf_sb.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/fs/udf/udf_sb.h b/fs/udf/udf_sb.h index a9ff8fb..8683b71 100644 --- a/fs/udf/udf_sb.h

[PATCH 14/24] udf: convert UDF_SB_RECORDTIME macro to udf_sb_record_time function

2007-12-22 Thread marcin . slusarz
- change UDF_SB_RECORDTIME macro to udf_sb_record_time inline function - rename s_recordtime field to s_record_time Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/inode.c| 14 +++--- fs/udf/super.c

[PATCH 15/24] udf: convert UDF_SB_SERIALNUM macro to udf_sb_serial_number function

2007-12-22 Thread marcin . slusarz
- change UDF_SB_SERIALNUM macro to udf_sb_serial_number inline function - rename s_serialnum field to s_serial_number Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/inode.c|2 +- fs/udf/misc.c

[PATCH 16/24] udf: convert UDF_SB_UDFREV macro to udf_sb_revision function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/balloc.c |2 +- fs/udf/inode.c| 14 +++--- fs/udf/misc.c |2 +- fs/udf/namei.c|2 +- fs/udf/super.c| 10 +- fs/udf

[PATCH 17/24] udf: convert UDF_SB_VAT macro to udf_sb_vat_inode function

2007-12-22 Thread marcin . slusarz
- change UDF_SB_VAT macro to udf_sb_vat_inode inline function - rename s_vat field to s_vat_inode Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/partition.c|6 +++--- fs/udf/super.c| 24

[PATCH 18/24] udf: convert UDF_SB_ALLOC_PARTMAPS macro to udf_sb_alloc_partition_maps function

2007-12-22 Thread marcin . slusarz
- change UDF_SB_ALLOC_PARTMAPS macro to udf_sb_alloc_partition_maps inline function - convert kmalloc + memset to kzalloc - check if kzalloc failed (partially) Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/super.c

[PATCH 19/24] udf: check if udf_load_logicalvol failed

2007-12-22 Thread marcin . slusarz
udf_load_logicalvol may fail eg in out of memory conditions - check it and propagate error further Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/super.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions

[PATCH 20/24] udf: convert UDF_UPDATE_UDFREV macro to udf_update_revision function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/ialloc.c |2 +- fs/udf/udf_sb.h |8 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/fs/udf/ialloc.c b/fs/udf/ialloc.c index 269f588..4d1684c

[PATCH 21/24] udf: remove some UDF_SB_* macros

2007-12-22 Thread marcin . slusarz
remove macros: - UDF_SB_PARTTYPE - UDF_SB_PARTROOT - UDF_SB_PARTLEN - UDF_SB_PARTVSN - UDF_SB_PARTNUM - UDF_SB_TYPESPAR - UDF_SB_TYPEVIRT - UDF_SB_PARTFUNC - UDF_SB_PARTFLAGS and replace all uses Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL

[PATCH 22/24] udf: convert UDF_SB_ALLOC_BITMAP macro to udf_sb_alloc_bitmap function

2007-12-22 Thread marcin . slusarz
Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL PROTECTED] --- fs/udf/super.c |4 ++-- fs/udf/udf_sb.h | 37 - 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/fs/udf/super.c b/fs/udf

[PATCH 23/24] udf: convert UDF_SB_FREE_BITMAP macro to udf_sb_free_bitmap function

2007-12-22 Thread marcin . slusarz
: symbol 'i' shadows an earlier one fs/udf/super.c:1701:6: originally declared here fs/udf/super.c:1714:4: warning: symbol 'i' shadows an earlier one fs/udf/super.c:1701:6: originally declared here Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] CC: Jan Kara [EMAIL

[PATCH 24/24] udf: fix sparse warnings (shadowing mismatch between declaration and definition)

2007-12-22 Thread marcin . slusarz
fix warnings: fs/udf/super.c:1370:24: warning: symbol 'bh' shadows an earlier one fs/udf/super.c:1288:21: originally declared here fs/udf/super.c:450:6: warning: symbol 'udf_write_super' was not declared. Should it be static? Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL

[PATCH 5/5] udf: fix signedness issue

2007-12-21 Thread Marcin Slusarz
in argument 3 (different signedness) fs/udf/namei.c:1152:78:expected int *offset fs/udf/namei.c:1152:78:got unsigned int * Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> Acked-by: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/namei.c |2 +- 1 files changed, 1 insertions(+),

[PATCH 4/5] udf: fix 3 signedness & 1 unitialized variable warnings

2007-12-21 Thread Marcin Slusarz
e.c: In function 'udf_get_block': fs/udf/inode.c:299: warning: 'phys' may be used uninitialized in this function initialize it to 0 (if someday someone will break inode_getblk we will catch it immediately) Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]>

[PATCH 3/5] udf: fix coding style of dir.c

2007-12-21 Thread Marcin Slusarz
fix coding style, checkpatch warned about: - "braces {} are not necessary for single statement blocks" - "line over 80 characters" - "do not use assignment in if condition" - "use tabs not spaces" Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC:

[PATCH 2/5] udf: improve readability of do_udf_readdir

2007-12-21 Thread Marcin Slusarz
make reading do_udf_readdir easier by adding new variable Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> Acked-by: Jan Kara <[EMAIL PROTECTED]> --- fs/udf/dir.c | 15 +-- 1 files changed, 9 insertions(+), 6 deletions(-) d

[PATCH 1/5] udf: remove wrong prototype of udf_readdir

2007-12-21 Thread Marcin Slusarz
sparse generated: fs/udf/dir.c:78:5: warning: symbol 'udf_readdir' was not declared. Should it be static? there are 2 different prototypes of udf_readdir - remove them and move code around to make it still compile Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> Acked-by: Jan Kara &

[PATCH 1/5] udf: remove wrong prototype of udf_readdir

2007-12-21 Thread Marcin Slusarz
sparse generated: fs/udf/dir.c:78:5: warning: symbol 'udf_readdir' was not declared. Should it be static? there are 2 different prototypes of udf_readdir - remove them and move code around to make it still compile Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] Acked-by: Jan Kara [EMAIL

[PATCH 3/5] udf: fix coding style of dir.c

2007-12-21 Thread Marcin Slusarz
fix coding style, checkpatch warned about: - braces {} are not necessary for single statement blocks - line over 80 characters - do not use assignment in if condition - use tabs not spaces Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] Acked-by: Jan Kara [EMAIL

[PATCH 4/5] udf: fix 3 signedness 1 unitialized variable warnings

2007-12-21 Thread Marcin Slusarz
to uint32_t gcc warned: fs/udf/inode.c: In function 'udf_get_block': fs/udf/inode.c:299: warning: 'phys' may be used uninitialized in this function initialize it to 0 (if someday someone will break inode_getblk we will catch it immediately) Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben

[PATCH 2/5] udf: improve readability of do_udf_readdir

2007-12-21 Thread Marcin Slusarz
make reading do_udf_readdir easier by adding new variable Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] Acked-by: Jan Kara [EMAIL PROTECTED] --- fs/udf/dir.c | 15 +-- 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/fs/udf/dir.c b

[PATCH 5/5] udf: fix signedness issue

2007-12-21 Thread Marcin Slusarz
type in argument 3 (different signedness) fs/udf/namei.c:1152:78:expected int *offset fs/udf/namei.c:1152:78:got unsigned int *noident Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] Acked-by: Jan Kara [EMAIL PROTECTED] --- fs/udf/namei.c |2 +- 1 files changed, 1 insertions(+), 1

Re: [PATCH 5/6] udf: fix signedness issue

2007-12-19 Thread Marcin Slusarz
int *offset > > fs/udf/namei.c:1147:41:got unsigned int * > > fs/udf/namei.c:1152:78: warning: incorrect type in argument 3 (different > > signedness) > > fs/udf/namei.c:1152:78:expected int *offset > > fs/udf/namei.c:1152:78:got unsigned int * > >

Re: [PATCH 6/6] udf: fix sparse warnings (shadowing & mismatch between declaration and definition)

2007-12-19 Thread Marcin Slusarz
:6: originally declared here > > fs/udf/super.c:1660:4: warning: symbol 'i' shadows an earlier one > > fs/udf/super.c:1648:6: originally declared here > > fs/udf/super.c:450:6: warning: symbol 'udf_write_super' was not declared. > > Should it be static? > > > &g

Re: [PATCH] sound/core.h: include sound/driver.h

2007-12-19 Thread Marcin Slusarz
On Mon, Dec 17, 2007 at 10:30:01AM +0100, Takashi Iwai wrote: > At Sun, 16 Dec 2007 02:58:31 +0100, > Marcin Slusarz wrote: > > > > On Fri, Dec 14, 2007 at 12:02:46PM +0100, Takashi Iwai wrote: > > > At Sat, 8 Dec 2007 21:50:45 +0100, > > > Marcin Ślusarz

Re: [PATCH] usb/storage/initializers.c: fix signedness difference

2007-12-19 Thread Marcin Slusarz
On Tue, Dec 18, 2007 at 03:36:42PM -0800, Andrew Morton wrote: > On Sun, 9 Dec 2007 22:23:42 +0100 > Marcin __lusarz <[EMAIL PROTECTED]> wrote: > > > usb/storage/initializers.c: fix signedness difference > > > > Signed-off-by: Marcin __lusarz <[EMAIL PROTECTED]> > > --- > >

Re: [PATCH] usb/storage/initializers.c: fix signedness difference

2007-12-19 Thread Marcin Slusarz
On Tue, Dec 18, 2007 at 03:36:42PM -0800, Andrew Morton wrote: On Sun, 9 Dec 2007 22:23:42 +0100 Marcin __lusarz [EMAIL PROTECTED] wrote: usb/storage/initializers.c: fix signedness difference Signed-off-by: Marcin __lusarz [EMAIL PROTECTED] --- drivers/usb/storage/initializers.c |

Re: [PATCH] sound/core.h: include sound/driver.h

2007-12-19 Thread Marcin Slusarz
On Mon, Dec 17, 2007 at 10:30:01AM +0100, Takashi Iwai wrote: At Sun, 16 Dec 2007 02:58:31 +0100, Marcin Slusarz wrote: On Fri, Dec 14, 2007 at 12:02:46PM +0100, Takashi Iwai wrote: At Sat, 8 Dec 2007 21:50:45 +0100, Marcin Ślusarz wrote: sound/core.h: include sound/driver.h

Re: [PATCH 6/6] udf: fix sparse warnings (shadowing mismatch between declaration and definition)

2007-12-19 Thread Marcin Slusarz
' shadows an earlier one fs/udf/super.c:1648:6: originally declared here fs/udf/super.c:450:6: warning: symbol 'udf_write_super' was not declared. Should it be static? Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED] Thanks for the patch. The 'bh' change

Re: [PATCH 5/6] udf: fix signedness issue

2007-12-19 Thread Marcin Slusarz
:got unsigned int *noident fs/udf/namei.c:1152:78: warning: incorrect type in argument 3 (different signedness) fs/udf/namei.c:1152:78:expected int *offset fs/udf/namei.c:1152:78:got unsigned int *noident Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] I don't think

[PATCH RESEND] asm-*/compat.h: fix typo in comment

2007-12-15 Thread Marcin Slusarz
comverted -> converted Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> --- include/asm-ia64/compat.h|2 +- include/asm-mips/compat.h|2 +- include/asm-parisc/compat.h |2 +- include/asm-powerpc/compat.h |2 +- include/asm-s390/compat.h|2 +- include/as

[PATCH RESEND] ehci-hcd: fix sparse warning about shadowing 'status' symbol

2007-12-15 Thread Marcin Slusarz
fix warning: drivers/usb/host/ehci-hcd.c:832:8: warning: symbol 'status' shadows an earlier one drivers/usb/host/ehci-hcd.c:790:71: originally declared here Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/host/ehci-

[PATCH RESEND] usbdevfs_urb: __user annotation

2007-12-15 Thread Marcin Slusarz
fix warning: drivers/usb/core/devio.c:1226:20: warning: incorrect type in assignment (different address spaces) drivers/usb/core/devio.c:1226:20:expected void *usercontext drivers/usb/core/devio.c:1226:20:got void [noderef] * Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC

[PATCH RESEND] usb/storage/initializers.c: fix signedness difference

2007-12-15 Thread Marcin Slusarz
: incorrect type in argument 5 (different signedness) drivers/usb/storage/initializers.c:89:26:expected unsigned int *act_len drivers/usb/storage/initializers.c:89:26:got int * Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Greg Kroah-Hartman <[EMAIL PROTECTED]> ---

[PATCH 6/6] udf: fix sparse warnings (shadowing & mismatch between declaration and definition)

2007-12-15 Thread Marcin Slusarz
/super.c:450:6: warning: symbol 'udf_write_super' was not declared. Should it be static? Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> --- fs/udf/super.c | 15 +++ 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/fs/udf/

[PATCH 5/6] udf: fix signedness issue

2007-12-15 Thread Marcin Slusarz
in argument 3 (different signedness) fs/udf/namei.c:1152:78:expected int *offset fs/udf/namei.c:1152:78:got unsigned int * Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> --- fs/udf/namei.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/udf/namei.c b/

[PATCH 4/6] udf: fix 3 signedness & 1 unitialized variable warnings

2007-12-15 Thread Marcin Slusarz
e.c: In function 'udf_get_block': fs/udf/inode.c:299: warning: 'phys' may be used uninitialized in this function initialize it to 0 (if someday someone will break inode_getblk we will catch it immediately) Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]&

[PATCH 3/6] udf: fix coding style of dir.c

2007-12-15 Thread Marcin Slusarz
Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> --- fs/udf/dir.c | 46 +++--- 1 files changed, 27 insertions(+), 19 deletions(-) diff --git a/fs/udf/dir.c b/fs/udf/dir.c index c26e281..c5e38d6 100644 --- a/fs/udf/dir.c +++ b/fs/udf/dir.c @@

[PATCH 2/6] udf: improve readability of do_udf_readdir

2007-12-15 Thread Marcin Slusarz
make reading do_udf_readdir easier by adding new variable Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema <[EMAIL PROTECTED]> --- fs/udf/dir.c | 15 +-- 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/fs/udf/dir.c b/fs/udf/dir.c i

[PATCH 1/6] udf: remove wrong prototype of udf_readdir

2007-12-15 Thread Marcin Slusarz
sparse generated: fs/udf/dir.c:78:5: warning: symbol 'udf_readdir' was not declared. Should it be static? there are 2 different prototypes of udf_readdir - remove them and move code around to make it still compile Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> CC: Ben Fennema &

Re: [PATCH] sound/core.h: include sound/driver.h

2007-12-15 Thread Marcin Slusarz
On Fri, Dec 14, 2007 at 12:02:46PM +0100, Takashi Iwai wrote: > At Sat, 8 Dec 2007 21:50:45 +0100, > Marcin Ślusarz wrote: > > > > sound/core.h: include sound/driver.h > > > > include sound/driver.h in sound/core.h because core.h > > uses SNDRV_CARDS (which is defined in sound/driver.h) > > > >

Re: [PATCH] sound/core.h: include sound/driver.h

2007-12-15 Thread Marcin Slusarz
On Fri, Dec 14, 2007 at 12:02:46PM +0100, Takashi Iwai wrote: At Sat, 8 Dec 2007 21:50:45 +0100, Marcin Ślusarz wrote: sound/core.h: include sound/driver.h include sound/driver.h in sound/core.h because core.h uses SNDRV_CARDS (which is defined in sound/driver.h) Signed-off-by:

[PATCH 1/6] udf: remove wrong prototype of udf_readdir

2007-12-15 Thread Marcin Slusarz
sparse generated: fs/udf/dir.c:78:5: warning: symbol 'udf_readdir' was not declared. Should it be static? there are 2 different prototypes of udf_readdir - remove them and move code around to make it still compile Signed-off-by: Marcin Slusarz [EMAIL PROTECTED] CC: Ben Fennema [EMAIL PROTECTED

<    1   2   3   4   5   >