linux_dsm_epyc7002/arch/mips/txx9
Wolfram Sang f937331b3f init dynamic bin_attribute structures
Commit 6992f53349 ("sysfs: Use one lockdep
class per sysfs attribute.") introduced this requirement.  First, at25
was fixed manually.  Then, other occurences were found with coccinelle
and the following semantic patch.  Results were reviewed and fixed up:

    @ init @
    identifier struct_name, bin;
    @@

    	struct struct_name {
    		...
    		struct bin_attribute bin;
    		...
    	};

    @ main extends init @
    expression E;
    statement S;
    identifier name, err;
    @@

    (
    	struct struct_name *name;
    |
    -	struct struct_name *name = NULL;
    +	struct struct_name *name;
    )
    	...
    (
    	sysfs_bin_attr_init(&name->bin);
    |
    +	sysfs_bin_attr_init(&name->bin);
    	if (sysfs_create_bin_file(E, &name->bin))
    		S
    |
    +	sysfs_bin_attr_init(&name->bin);
    	err = sysfs_create_bin_file(E, &name->bin);
    )

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-03-14 20:28:39 -07:00
..
generic init dynamic bin_attribute structures 2010-03-14 20:28:39 -07:00
jmr3927 MIPS: TXx9: Remove forced serial console setting 2010-02-27 12:53:22 +01:00
rbtx4927 MIPS: TXx9: Remove forced serial console setting 2010-02-27 12:53:22 +01:00
rbtx4938 MIPS: TXx9: Remove forced serial console setting 2010-02-27 12:53:22 +01:00
rbtx4939 MIPS: RBTX4939: Fix IOC pin-enable register updating 2009-08-03 17:52:44 +01:00
Kconfig MIPS: TXx9: Add ACLC support 2009-06-17 11:06:25 +01:00