]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
checkpatch: fix EXPORT_SYMBOL handling following a function
authorAndy Whitcroft <apw@canonical.com>
Thu, 8 Dec 2011 04:42:23 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Dec 2011 07:35:22 +0000 (18:35 +1100)
commit38fcc611022e11f217afdd5684a16e756b70cf6e
treeecf7ca5b9876f6d2eac039262dd15f592b9e6ee5
parent21bd13ccd1bdf19bc7147ce07e1517baa6721d8e
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