]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: fix EXPORT_SYMBOL handling following a function
authorAndy Whitcroft <apw@canonical.com>
Fri, 2 Dec 2011 03:12:45 +0000 (14:12 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 6 Dec 2011 04:05:34 +0000 (15:05 +1100)
commite76ea92c0c6bb1344bc3f51a5c26d4912b92b7b2
treebe3d3b27a98d54861e4849975fe37f631c458269
parent0709bfb1410761f6d564be649112ed6f148d639b
checkpatch: fix EXPORT_SYMBOL handling following a function

The following fragment defeats the DEVICE_ATTR style handing, check for
and ignore the close brace '}' in this context:

    int foo()
    {
    }
    DEVICE_ATTR(link_power_management_policy, S_IRUGO | S_IWUSR,
                ata_scsi_lpm_show, ata_scsi_lpm_put);
    EXPORT_SYMBOL_GPL(dev_attr_link_power_management_policy);

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl