linux_dsm_epyc7002/arch/mips
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
..
alchemy MIPS: Alchemy: Fix Au1100 ethernet build failure 2010-02-27 12:53:45 +01:00
ar7 MIPS: AR7: Make ar7_register_devices much more durable 2010-02-27 12:53:22 +01:00
bcm47xx MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
bcm63xx MIPS: BCM63xx: Convert timer locks to raw spinlocks. 2010-02-27 12:53:35 +01:00
boot MIPS: Make the debugging of compressed kernel configurable 2010-02-27 12:53:24 +01:00
cavium-octeon MIPS: Use ALIGN(x, bytes) instead of __ALIGN_MASK(x, bytes - 1) 2010-02-27 12:53:43 +01:00
cobalt MIPS: Cobalt: Fix theoretical port aliasing issue 2010-02-27 12:53:43 +01:00
configs MIPS: Alchemy: defconfig updates 2010-02-27 12:53:46 +01:00
dec MIPS: DEC: Convert KN01 lock to raw spinlock. 2010-02-27 12:53:36 +01:00
emma
fw
gt64120/wrppmc
include/asm pci-dma: add linux/pci-dma.h to linux/pci.h 2010-03-12 15:52:42 -08:00
jazz MIPS: Jazz: Convert irq controller lock to raw spinlock. 2010-02-27 12:53:31 +01:00
kernel mips: use generic ptrace_resume code 2010-03-12 15:52:39 -08:00
lasat MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
lib
loongson MIPS: Lemote 2F: Move printks out of port_access_lock. 2010-02-27 12:53:41 +01:00
math-emu MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
mipssim
mm Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-02-28 10:38:45 -08:00
mti-malta MIPS: Malta: Convert IRQ controller lock to raw spinlock. 2010-02-27 12:53:32 +01:00
nxp MIPS: PNX833x: Convert IRQ controller locks to raw spinlocks. 2010-02-27 12:53:41 +01:00
oprofile MIPS: Loongson: Remove pointless sample_lock from oprofile code. 2010-02-27 12:53:39 +01:00
pci MIPS: Cobalt: convert legacy port addresses to GT-64111 bus addresses 2010-02-27 12:53:44 +01:00
pmc-sierra MIPS: Yosemite: Convert SMP startup lock to arch spinlock. 2010-02-27 12:53:37 +01:00
power MIPS: Loongson: Change the Email address of Wu Zhangjin 2010-02-27 12:53:12 +01:00
powertv MIPS: PowerTV: Eliminate duplicate opcode definition macros 2010-02-27 12:53:41 +01:00
rb532
sgi-ip22
sgi-ip27 MIPS: IP27: Convert nmi_lock lock to arch spinlock; 2010-02-27 12:53:38 +01:00
sgi-ip32 MIPS: Cleanup switches with cases that can be merged 2010-02-27 12:53:14 +01:00
sibyte MIPS: SB1480: Convert IRQ controller lock to raw spinlock. 2010-02-27 12:53:32 +01:00
sni MIPS: SNI: Convert sni_rm200_i8259A_lock to raw spinlock. 2010-02-27 12:53:39 +01:00
txx9 init dynamic bin_attribute structures 2010-03-14 20:28:39 -07:00
vr41xx
Kconfig pci-dma: mips: use include/linux/pci-dma.h 2010-03-12 15:52:41 -08:00
Kconfig.debug MIPS: Crazy spinlock speed test. 2010-02-27 12:53:42 +01:00
Makefile MIPS: Loongson: arch/mips/Makefile: Add missing whitespace 2010-02-27 12:53:11 +01:00