linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bert Wesarg <bert.wesarg@googlemail.com>
To: Jack Stone <jwjstone@fastmail.fm>
Cc: linux-kernel@vger.kernel.org, jeff@garzik.org,
	kernel-janitors@vger.kernel.org
Subject: Re: [PATCH 56/56] xfs: Remove void casts
Date: Wed, 8 Apr 2009 14:15:17 +0200	[thread overview]
Message-ID: <36ca99e90904080515w339dd1d1ge5bfb546cec5e4b8@mail.gmail.com> (raw)
In-Reply-To: <1239189748-11703-57-git-send-email-jwjstone@fastmail.fm>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 6301 bytes --]

On Wed, Apr 8, 2009 at 13:22, Jack Stone <jwjstone@fastmail.fm> wrote:> Remove uneeded void casts>> Signed-Off-By: Jack Stone <jwjstone@fastmail.fm>> --->  fs/xfs/quota/xfs_dquot_item.c |    2 +->  fs/xfs/support/ktrace.c       |    6 +++--->  fs/xfs/xfs_attr_leaf.c        |    2 +->  fs/xfs/xfs_buf_item.c         |    6 +++--->  fs/xfs/xfs_extfree_item.c     |    8 ++++---->  fs/xfs/xfs_inode.c            |    5 ++--->  fs/xfs/xfs_log_recover.c      |    9 ++++----->  fs/xfs/xfs_trans.c            |    2 +->  fs/xfs/xfs_trans_inode.c      |    3 +-->  fs/xfs/xfs_trans_item.c       |    6 ++---->  10 files changed, 22 insertions(+), 27 deletions(-)>> diff --git a/fs/xfs/support/ktrace.c b/fs/xfs/support/ktrace.c> index 2d494c2..3982acf 100644> --- a/fs/xfs/support/ktrace.c> +++ b/fs/xfs/support/ktrace.c> @@ -75,10 +75,10 @@ ktrace_alloc(int nentries, unsigned int __nocast sleep)>         */>        entries = roundup_pow_of_two(nentries);>        if (entries == ktrace_zentries) {> -               ktep = (ktrace_entry_t*)kmem_zone_zalloc(ktrace_ent_zone,> +               ktep = kmem_zone_zalloc(ktrace_ent_zone,>                                                            sleep);Dito.
>        } else {> -               ktep = (ktrace_entry_t*)kmem_zalloc((entries * sizeof(*ktep)),> +               ktep = kmem_zalloc((entries * sizeof(*ktep)),>                                                            sleep | KM_LARGE);Please check.
>        }>> diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c> index 92af409..431755a 100644> --- a/fs/xfs/xfs_buf_item.c> +++ b/fs/xfs/xfs_buf_item.c> @@ -726,7 +726,7 @@ xfs_buf_item_init(>        chunks = (int)((XFS_BUF_COUNT(bp) + (XFS_BLI_CHUNK - 1)) >> XFS_BLI_SHIFT);>        map_size = (int)((chunks + NBWORD) >> BIT_TO_WORD_SHIFT);>> -       bip = (xfs_buf_log_item_t*)kmem_zone_zalloc(xfs_buf_item_zone,> +       bip = kmem_zone_zalloc(xfs_buf_item_zone,>                                                    KM_SLEEP);Dito.
>        bip->bli_item.li_type = XFS_LI_BUF;>        bip->bli_item.li_ops = &xfs_buf_item_ops;> diff --git a/fs/xfs/xfs_extfree_item.c b/fs/xfs/xfs_extfree_item.c> index 05a4bdd..53ccdc4 100644> --- a/fs/xfs/xfs_extfree_item.c> +++ b/fs/xfs/xfs_extfree_item.c> @@ -253,9 +253,9 @@ xfs_efi_init(xfs_mount_t    *mp,>        if (nextents > XFS_EFI_MAX_FAST_EXTENTS) {>                size = (uint)(sizeof(xfs_efi_log_item_t) +>                        ((nextents - 1) * sizeof(xfs_extent_t)));> -               efip = (xfs_efi_log_item_t*)kmem_zalloc(size, KM_SLEEP);> +               efip = kmem_zalloc(size, KM_SLEEP);>        } else {> -               efip = (xfs_efi_log_item_t*)kmem_zone_zalloc(xfs_efi_zone,> +               efip = kmem_zone_zalloc(xfs_efi_zone,>                                                             KM_SLEEP);Dito.
>        }>> @@ -548,9 +548,9 @@ xfs_efd_init(xfs_mount_t    *mp,>        if (nextents > XFS_EFD_MAX_FAST_EXTENTS) {>                size = (uint)(sizeof(xfs_efd_log_item_t) +>                        ((nextents - 1) * sizeof(xfs_extent_t)));> -               efdp = (xfs_efd_log_item_t*)kmem_zalloc(size, KM_SLEEP);> +               efdp = kmem_zalloc(size, KM_SLEEP);>        } else {> -               efdp = (xfs_efd_log_item_t*)kmem_zone_zalloc(xfs_efd_zone,> +               efdp = kmem_zone_zalloc(xfs_efd_zone,>                                                             KM_SLEEP);Dito.
>        }>> diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c> index 7ba4501..3037920 100644> --- a/fs/xfs/xfs_log_recover.c> +++ b/fs/xfs/xfs_log_recover.c> @@ -1670,7 +1670,7 @@ xlog_recover_do_buffer_pass1(>         * the bucket.>         */>        if (*bucket == NULL) {> -               bcp = (xfs_buf_cancel_t *)kmem_alloc(sizeof(xfs_buf_cancel_t),> +               bcp = kmem_alloc(sizeof(xfs_buf_cancel_t),>                                                     KM_SLEEP);Dito.
>                bcp->bc_blkno = blkno;>                bcp->bc_len = len;> @@ -1696,7 +1696,7 @@ xlog_recover_do_buffer_pass1(>                nextp = nextp->bc_next;>        }>        ASSERT(prevp != NULL);> -       bcp = (xfs_buf_cancel_t *)kmem_alloc(sizeof(xfs_buf_cancel_t),> +       bcp = kmem_alloc(sizeof(xfs_buf_cancel_t),>                                             KM_SLEEP);Dito.
>        bcp->bc_blkno = blkno;>        bcp->bc_len = len;> @@ -2316,7 +2316,7 @@ xlog_recover_do_inode_trans(>        if (item->ri_buf[0].i_len == sizeof(xfs_inode_log_format_t)) {>                in_f = (xfs_inode_log_format_t *)item->ri_buf[0].i_addr;>        } else {> -               in_f = (xfs_inode_log_format_t *)kmem_alloc(> +               in_f = kmem_alloc(>                        sizeof(xfs_inode_log_format_t), KM_SLEEP);Please check.
>                need_free = 1;>                error = xfs_inode_item_format_convert(&item->ri_buf[0], in_f);> diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c> index 8570b82..44d039d 100644> --- a/fs/xfs/xfs_trans.c> +++ b/fs/xfs/xfs_trans.c> @@ -868,7 +868,7 @@ shut_us_down:>        } else if (nvec <= XFS_TRANS_LOGVEC_COUNT) {>                log_vector = log_vector_fast;>        } else {> -               log_vector = (xfs_log_iovec_t *)kmem_alloc(nvec *> +               log_vector = kmem_alloc(nvec *>                                                   sizeof(xfs_log_iovec_t),Move up.
>                                                   KM_SLEEP);Probably realign.
>        }> --
Bertÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

  reply	other threads:[~2009-04-08 12:17 UTC|newest]

Thread overview: 174+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-08 11:21 [PATCH 0/56] Remove void casts Jack Stone
2009-04-08 11:21 ` [PATCH 01/56] adfs: " Jack Stone
2009-04-08 11:21   ` [PATCH 02/56] alpha: " Jack Stone
2009-04-08 11:21     ` [PATCH 03/56] atm: " Jack Stone
2009-04-08 11:21       ` [PATCH 04/56] befs: " Jack Stone
2009-04-08 11:21         ` [PATCH 05/56] block: " Jack Stone
2009-04-08 11:21           ` [PATCH 06/56] cifs: " Jack Stone
2009-04-08 11:21             ` [PATCH 07/56] coda: " Jack Stone
2009-04-08 11:21               ` [PATCH 08/56] cris: " Jack Stone
2009-04-08 11:21                 ` [PATCH 09/56] efs: " Jack Stone
2009-04-08 11:21                   ` [PATCH 10/56] ext2: " Jack Stone
2009-04-08 11:21                     ` [PATCH 11/56] freevxfs: " Jack Stone
2009-04-08 11:21                       ` [PATCH 12/56] hpfs: " Jack Stone
2009-04-08 11:21                         ` [PATCH 13/56] i2c: " Jack Stone
2009-04-08 11:21                           ` [PATCH 14/56] ia64: " Jack Stone
2009-04-08 11:21                             ` [PATCH 15/56] ide: " Jack Stone
2009-04-08 11:21                               ` [PATCH 16/56] idle: " Jack Stone
2009-04-08 11:21                                 ` [PATCH 17/56] infiniband: " Jack Stone
2009-04-08 11:21                                   ` [PATCH 18/56] isdn: " Jack Stone
2009-04-08 11:21                                     ` [PATCH 19/56] kvm: " Jack Stone
2009-04-08 11:21                                       ` [PATCH 20/56] inflate: " Jack Stone
2009-04-08 11:21                                         ` [PATCH 21/56] md: " Jack Stone
2009-04-08 11:21                                           ` [PATCH 22/56] message/fusion: " Jack Stone
2009-04-08 11:21                                             ` [PATCH 23/56] minix: " Jack Stone
2009-04-08 11:21                                               ` [PATCH 24/56] mips: " Jack Stone
2009-04-08 11:21                                                 ` [PATCH 25/56] mm: " Jack Stone
2009-04-08 11:21                                                   ` [PATCH 26/56] ncpfs: " Jack Stone
2009-04-08 11:21                                                     ` [PATCH 27/56] ipv4: " Jack Stone
2009-04-08 11:22                                                       ` [PATCH 28/56] ipv6: " Jack Stone
2009-04-08 11:22                                                         ` [PATCH 29/56] irda: " Jack Stone
2009-04-08 11:22                                                           ` [PATCH 30/56] net: " Jack Stone
2009-04-08 11:22                                                             ` [PATCH 31/56] sctp: " Jack Stone
2009-04-08 11:22                                                               ` [PATCH 32/56] sunrpc: " Jack Stone
2009-04-08 11:22                                                                 ` [PATCH 33/56] tipc: " Jack Stone
2009-04-08 11:22                                                                   ` [PATCH 34/56] nfs: " Jack Stone
2009-04-08 11:22                                                                     ` [PATCH 35/56] ntfs: " Jack Stone
2009-04-08 11:22                                                                       ` [PATCH 36/56] ocfs2: " Jack Stone
2009-04-08 11:22                                                                         ` [PATCH 37/56] oss: " Jack Stone
2009-04-08 11:22                                                                           ` [PATCH 38/56] pci: " Jack Stone
2009-04-08 11:22                                                                             ` [PATCH 39/56] powerpc: " Jack Stone
2009-04-08 11:22                                                                               ` [PATCH 40/56] proc: " Jack Stone
2009-04-08 11:22                                                                                 ` [PATCH 41/56] reiserfs: " Jack Stone
2009-04-08 11:22                                                                                   ` [PATCH 42/56] drivers/s390: " Jack Stone
2009-04-08 11:22                                                                                     ` [PATCH 43/56] s390: " Jack Stone
2009-04-08 11:22                                                                                       ` [PATCH 44/56] scripts: " Jack Stone
2009-04-08 11:22                                                                                         ` [PATCH 45/56] scsi: " Jack Stone
2009-04-08 11:22                                                                                           ` [PATCH 46/56] serial: " Jack Stone
2009-04-08 11:22                                                                                             ` [PATCH 47/56] sh: " Jack Stone
2009-04-08 11:22                                                                                               ` [PATCH 48/56] smbfs: " Jack Stone
2009-04-08 11:22                                                                                                 ` [PATCH 49/56] sparc: " Jack Stone
2009-04-08 11:22                                                                                                   ` [PATCH 50/56] drivers/staging: " Jack Stone
2009-04-08 11:22                                                                                                     ` [PATCH 51/56] sysv: " Jack Stone
2009-04-08 11:22                                                                                                       ` [PATCH 52/56] ufs: " Jack Stone
2009-04-08 11:22                                                                                                         ` [PATCH 53/56] usb: " Jack Stone
2009-04-08 11:22                                                                                                           ` [PATCH 54/56] x86: " Jack Stone
2009-04-08 11:22                                                                                                             ` [PATCH 55/56] xen: " Jack Stone
2009-04-08 11:22                                                                                                               ` [PATCH 56/56] xfs: " Jack Stone
2009-04-08 12:15                                                                                                                 ` Bert Wesarg [this message]
2009-04-08 14:01                                                                                                                   ` Jack Stone
2009-04-09 10:39                                                                                                                     ` Jack Stone
2009-04-09 17:37                                                                                                                 ` Felix Blyakher
2009-04-13  9:32                                                                                                                   ` Christoph Hellwig
2009-04-13  9:35                                                                                                                     ` Jeff Garzik
2009-04-09 10:39                                                                                                               ` [PATCH 55/56] xen: " Jack Stone
2009-04-09 18:15                                                                                                                 ` Jeremy Fitzhardinge
2009-04-08 12:18                                                                                                             ` [PATCH 54/56] x86: " Bert Wesarg
2009-04-08 14:03                                                                                                               ` Jack Stone
2009-04-08 14:06                                                                                                                 ` Ingo Molnar
2009-04-08 14:14                                                                                                                   ` Jack Stone
2009-04-08 14:40                                                                                                                     ` Ingo Molnar
2009-04-08 14:46                                                                                                                       ` Jack Stone
2009-04-08 14:48                                                                                                                         ` Ingo Molnar
2009-04-08 14:53                                                                                                                           ` Jack Stone
2009-04-08 14:57                                                                                                                             ` Ingo Molnar
2009-04-08 14:59                                                                                                                               ` Jack Stone
2009-04-08 15:05                                                                                                                                 ` Jack Stone
2009-04-08 15:06                                                                                                                                 ` Julia Lawall
2009-04-08 15:10                                                                                                                                   ` Matthew Wilcox
2009-04-08 15:12                                                                                                                                     ` Julia Lawall
2009-04-08 15:16                                                                                                                                 ` Ingo Molnar
2009-04-08 20:45                                                                                                                                   ` Jack Stone
2009-04-08 22:06                                                                                                                                     ` Joe Perches
2009-04-09  5:12                                                                                                                                     ` Ingo Molnar
2009-04-09 10:37                                                                                                                 ` Jack Stone
2009-04-08 12:11                                                                                                           ` [PATCH 53/56] usb: " Bert Wesarg
2009-04-08 14:00                                                                                                             ` Jack Stone
2009-04-09 10:36                                                                                                               ` Jack Stone
2009-04-09 10:35                                                                                                         ` [PATCH 52/56] ufs: " Jack Stone
2009-04-08 12:02                                                                                                       ` [PATCH 51/56] sysv: " Bert Wesarg
2009-04-08 12:04                                                                                                         ` Bert Wesarg
2009-04-08 12:07                                                                                                           ` Jack Stone
2009-04-08 13:57                                                                                                         ` Jack Stone
2009-04-09 10:34                                                                                                           ` Jack Stone
2009-04-08 12:09                                                                                                     ` [PATCH 50/56] drivers/staging: " Bert Wesarg
2009-04-08 13:59                                                                                                       ` Jack Stone
2009-04-09 10:32                                                                                                         ` Jack Stone
2009-04-09 10:31                                                                                                   ` [PATCH 49/56] sparc: " Jack Stone
2009-04-08 11:58                                                                                           ` [PATCH 45/56] scsi: " Bert Wesarg
2009-04-08 13:56                                                                                             ` Jack Stone
2009-04-09 10:27                                                                                               ` Jack Stone
2009-04-09 10:26                                                                                       ` [PATCH 43/56] s390: " Jack Stone
2009-04-09 10:23                                                                                     ` [PATCH 42/56] drivers/s390: " Jack Stone
2009-04-09 10:22                                                                                   ` [PATCH 41/56] reiserfs: " Jack Stone
2009-04-09 10:20                                                                               ` [PATCH 39/56] powerpc: " Jack Stone
2009-04-09 10:19                                                                             ` [PATCH 38/56] pci: " Jack Stone
2009-04-09 10:18                                                                           ` [PATCH 37/56] oss: " Jack Stone
2009-04-08 12:19                                                                         ` [PATCH 36/56] ocfs2: " Bert Wesarg
2009-04-08 14:04                                                                           ` Jack Stone
2009-04-09 10:16                                                                             ` Jack Stone
2009-04-08 12:22                                                                       ` [PATCH 35/56] ntfs: " Bert Wesarg
2009-04-08 14:04                                                                         ` Jack Stone
2009-04-09 10:15                                                                           ` Jack Stone
2009-04-09 10:14                                                                     ` [PATCH 34/56] nfs: " Jack Stone
2009-04-09 10:13                                                                   ` [PATCH 33/56] tipc: " Jack Stone
2009-04-09 10:12                                                                 ` [PATCH 32/56] sunrpc: " Jack Stone
2009-04-09 10:11                                                               ` [PATCH 31/56] sctp: " Jack Stone
2009-04-08 12:30                                                             ` [PATCH 30/56] net: " Bert Wesarg
2009-04-08 14:05                                                               ` Jack Stone
2009-04-09 10:10                                                                 ` Jack Stone
2009-04-08 12:31                                                           ` [PATCH 29/56] irda: " Bert Wesarg
2009-04-08 14:06                                                             ` Jack Stone
2009-04-09 10:09                                                               ` Jack Stone
2009-04-09 10:08                                                         ` [PATCH 28/56] ipv6: " Jack Stone
2009-04-09 10:08                                                       ` [PATCH 27/56] ipv4: " Jack Stone
2009-04-09 10:07                                                     ` [PATCH 26/56] ncpfs: " Jack Stone
2009-04-09 10:06                                                   ` [PATCH 25/56] mm: " Jack Stone
2009-04-09 10:05                                                 ` [PATCH 24/56] mips: " Jack Stone
2009-04-08 11:43                                             ` [PATCH 22/56] message/fusion: " Bert Wesarg
2009-04-08 13:55                                               ` Jack Stone
2009-04-09 10:03                                           ` [PATCH 21/56] md: " Jack Stone
2009-04-08 11:39                                         ` [PATCH 20/56] inflate: " Bert Wesarg
2009-04-08 13:54                                           ` Jack Stone
2009-04-08 14:05                                             ` Will Newton
2009-04-08 14:12                                               ` Jack Stone
2009-04-08 14:18                                                 ` Will Newton
2009-04-08 14:19                                           ` walter harms
2009-04-08 14:27                                             ` Jack Stone
2009-04-09 10:00                                       ` [PATCH 19/56] kvm: " Jack Stone
2009-04-08 11:37                                     ` [PATCH 18/56] isdn: " Bert Wesarg
2009-04-08 13:53                                       ` Jack Stone
2009-04-09  9:58                                         ` Jack Stone
2009-04-08 17:48                                   ` [PATCH 17/56] infiniband: " Roland Dreier
2009-04-09  9:57                               ` [PATCH 15/56] ide: " Jack Stone
2009-04-16 19:09                                 ` Bartlomiej Zolnierkiewicz
2009-04-09  9:56                             ` [PATCH 14/56] ia64: " Jack Stone
2009-04-09  9:55                           ` [PATCH 13/56] i2c: " Jack Stone
2009-04-09 12:43                           ` Jean Delvare
2009-04-09 12:51                             ` Alan Cox
2009-04-09 14:52                               ` Jean Delvare
2009-04-09  9:54                         ` [PATCH 12/56] hpfs: " Jack Stone
2009-04-09  9:53                       ` [PATCH 11/56] freevxfs: " Jack Stone
2009-04-09  9:52                     ` [PATCH 10/56] ext2: " Jack Stone
2009-04-08 12:34                 ` [PATCH 08/56] cris: " Bert Wesarg
2009-04-08 13:36                   ` Jesper Nilsson
2009-04-08 13:38                     ` Jack Stone
2009-04-08 12:35                 ` Jesper Nilsson
2009-04-08 13:36                   ` Jack Stone
2009-04-09  9:49                     ` Jack Stone
2009-04-09  9:47                 ` Jack Stone
2009-04-09  9:45               ` [PATCH 07/56] coda: " Jack Stone
2009-04-08 11:26             ` [PATCH 06/56] cifs: " Bert Wesarg
2009-04-08 13:51               ` Jack Stone
2009-04-09  9:51                 ` Jack Stone
2009-04-09  9:44             ` Jack Stone
2009-04-08 11:31           ` [PATCH 05/56] block: " Bert Wesarg
2009-04-08 11:38             ` Jack Stone
2009-04-08 11:48               ` Bert Wesarg
2009-04-09 21:08             ` Al Viro
2009-04-09  9:43           ` Jack Stone
2009-04-08 11:26         ` [PATCH 04/56] befs: " Bert Wesarg
2009-04-08 13:49           ` Jack Stone
2009-04-09  9:39             ` Jack Stone
2009-04-09  9:42       ` [PATCH 03/56] atm: " Jack Stone
2009-04-09  9:41     ` [PATCH 02/56] alpha: " Jack Stone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=36ca99e90904080515w339dd1d1ge5bfb546cec5e4b8@mail.gmail.com \
    --to=bert.wesarg@googlemail.com \
    --cc=jeff@garzik.org \
    --cc=jwjstone@fastmail.fm \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).