]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: fix EXPORT_SYMBOL handling following a function
authorAndy Whitcroft <apw@canonical.com>
Fri, 16 Dec 2011 04:50:19 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Dec 2011 06:01:26 +0000 (17:01 +1100)
commitc3208d81835add1a1ecf32e6cea7f168e6a89013
tree17868588f4b014d7eddd051fdb7e3cc07c53a51f
parentfbfb4a41fb988537ec0740584f63134963195161
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