original_kernel/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
bcm47xx
bcm63xx MIPS: BCM63xx: Convert timer locks to raw spinlocks. 2010-02-27 12:53:35 +01:00
boot
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
kernel mips: use generic ptrace_resume code 2010-03-12 15:52:39 -08:00
lasat
lib
loongson MIPS: Lemote 2F: Move printks out of port_access_lock. 2010-02-27 12:53:41 +01:00
math-emu
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
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
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