checkpatch: handle EXPORT_SYMBOL for DEVICE_ATTR and similar
authorAndy Whitcroft <apw@canonical.com>
Tue, 26 Oct 2010 21:23:18 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:21 +0000 (16:52 -0700)
commit3cbf62df3a8ce61cb1aa20b7dae964058988bfdd
tree46a2d31b34c07ae6547d743a27e60b682b84c3e8
parent5eaa20b984eb316533b4a098d8de3912e434df6a
checkpatch: handle EXPORT_SYMBOL for DEVICE_ATTR and similar

Handly definitions similar to below.  The definition macro spits out a
symbol with a prefix.  Add matching of any identifier prefix:

    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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl