• Denys Vlasenko's avatar
    bfa: deinline __bfa_trc() and __bfa_trc32() · d04a78f4
    Denys Vlasenko authored
    __bfa_trc() compiles to 115 bytes of machine code.
    With this .config: http://busybox.net/~vda/kernel_config
    there are 1494 calls of __bfa_trc().
    
    __bfa_trc32() is very similar, so it is uninlined too.
    However, it appears to be unused, therefore this patch
    ifdefs it out.
    
    Change in code size is about 130,000 bytes:
    
        text     data      bss       dec     hex filename
    85975426 22294712 20627456 128897594 7aed23a vmlinux.before
    85842882 22294584 20627456 128764922 7accbfa vmlinux
    
    [mkp: Removed unused __bfa_trc32()]
    Signed-off-by: default avatarDenys Vlasenko <dvlasenk@redhat.com>
    Acked-by: default avatarAnil Gurumurthy <anil.gurumurthy@qlogic.com>
    CC: Fabian Frederick <fabf@skynet.be>
    CC: Anil Gurumurthy <anil.gurumurthy@qlogic.com>
    CC: Christoph Hellwig <hch@lst.de>
    CC: Guenter Roeck <linux@roeck-us.net>
    CC: Ben Hutchings <ben@decadent.org.uk>
    CC: James Bottomley <JBottomley@Parallels.com>
    CC: linux-kernel@vger.kernel.org
    CC: linux-scsi@vger.kernel.org
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    d04a78f4
bfa_cs.h 7.5 KB