Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334482
b: refs/heads/master
c: a0a6a39
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Oct 18, 2012
1 parent 60906c0 commit b362cef
Show file tree
Hide file tree
Showing 63 changed files with 204 additions and 171 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83dac59409387789b88bed40b1be86a8abc572be
refs/heads/master: a0a6a39ecb11cefe0d7e6e07997306fb5ab2b07e
4 changes: 3 additions & 1 deletion trunk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,9 @@ endif
PHONY += asm-generic
asm-generic:
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \
obj=arch/$(SRCARCH)/include/generated/asm
src=asm obj=arch/$(SRCARCH)/include/generated/asm
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \
src=uapi/asm obj=arch/$(SRCARCH)/include/generated/uapi/asm

# To make sure we do not include .config for any of the *config targets
# catch them early, and hand them over to scripts/kconfig/Makefile
Expand Down
12 changes: 12 additions & 0 deletions trunk/arch/arm/mach-omap1/board-ams-delta.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,16 +444,28 @@ static struct omap1_cam_platform_data ams_delta_camera_platform_data = {
.lclk_khz_max = 1334, /* results in 5fps CIF, 10fps QCIF */
};

static struct platform_device ams_delta_audio_device = {
.name = "ams-delta-audio",
.id = -1,
};

static struct platform_device cx20442_codec_device = {
.name = "cx20442-codec",
.id = -1,
};

static struct platform_device *ams_delta_devices[] __initdata = {
&latch1_gpio_device,
&latch2_gpio_device,
&ams_delta_kp_device,
&ams_delta_camera_device,
&ams_delta_audio_device,
};

static struct platform_device *late_devices[] __initdata = {
&ams_delta_nand_device,
&ams_delta_lcd_device,
&cx20442_codec_device,
};

static void __init ams_delta_init(void)
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/ia64/include/uapi/asm/Kbuild
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm

generic-y += kvm_para.h

header-y += auxvec.h
header-y += bitsperlong.h
header-y += break.h
Expand Down
Empty file.
1 change: 1 addition & 0 deletions trunk/arch/mips/include/asm/Kbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# MIPS headers
4 changes: 4 additions & 0 deletions trunk/arch/mn10300/include/uapi/asm/setup.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
* There isn't anything here anymore, but the file must not be empty or patch
* will delete it.
*/
2 changes: 2 additions & 0 deletions trunk/arch/s390/include/uapi/asm/Kbuild
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm

generic-y += kvm_para.h

header-y += auxvec.h
header-y += bitsperlong.h
header-y += byteorder.h
Expand Down
Empty file.
4 changes: 4 additions & 0 deletions trunk/arch/sh/include/uapi/asm/hw_breakpoint.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
* There isn't anything here anymore, but the file must not be empty or patch
* will delete it.
*/
4 changes: 4 additions & 0 deletions trunk/arch/sparc/include/uapi/asm/sigcontext.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
* There isn't anything here anymore, but the file must not be empty or patch
* will delete it.
*/
1 change: 1 addition & 0 deletions trunk/arch/tile/include/arch/Kbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Tile arch headers
3 changes: 0 additions & 3 deletions trunk/arch/tile/include/asm/Kbuild
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

header-y += ../arch/

header-y += ucontext.h

generic-y += bug.h
generic-y += bugs.h
generic-y += clkdev.h
Expand Down Expand Up @@ -37,5 +35,4 @@ generic-y += statfs.h
generic-y += termbits.h
generic-y += termios.h
generic-y += types.h
generic-y += ucontext.h
generic-y += xor.h
3 changes: 3 additions & 0 deletions trunk/arch/tile/include/uapi/asm/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ header-y += siginfo.h
header-y += signal.h
header-y += stat.h
header-y += swab.h
header-y += ucontext.h
header-y += unistd.h

generic-y += ucontext.h
24 changes: 12 additions & 12 deletions trunk/drivers/of/address.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ struct of_bus {
int (*match)(struct device_node *parent);
void (*count_cells)(struct device_node *child,
int *addrc, int *sizec);
u64 (*map)(u32 *addr, const __be32 *range,
u64 (*map)(__be32 *addr, const __be32 *range,
int na, int ns, int pna);
int (*translate)(u32 *addr, u64 offset, int na);
int (*translate)(__be32 *addr, u64 offset, int na);
unsigned int (*get_flags)(const __be32 *addr);
};

Expand All @@ -56,7 +56,7 @@ static void of_bus_default_count_cells(struct device_node *dev,
*sizec = of_n_size_cells(dev);
}

static u64 of_bus_default_map(u32 *addr, const __be32 *range,
static u64 of_bus_default_map(__be32 *addr, const __be32 *range,
int na, int ns, int pna)
{
u64 cp, s, da;
Expand All @@ -82,7 +82,7 @@ static u64 of_bus_default_map(u32 *addr, const __be32 *range,
return da - cp;
}

static int of_bus_default_translate(u32 *addr, u64 offset, int na)
static int of_bus_default_translate(__be32 *addr, u64 offset, int na)
{
u64 a = of_read_number(addr, na);
memset(addr, 0, na * 4);
Expand Down Expand Up @@ -138,7 +138,7 @@ static unsigned int of_bus_pci_get_flags(const __be32 *addr)
return flags;
}

static u64 of_bus_pci_map(u32 *addr, const __be32 *range, int na, int ns,
static u64 of_bus_pci_map(__be32 *addr, const __be32 *range, int na, int ns,
int pna)
{
u64 cp, s, da;
Expand All @@ -165,7 +165,7 @@ static u64 of_bus_pci_map(u32 *addr, const __be32 *range, int na, int ns,
return da - cp;
}

static int of_bus_pci_translate(u32 *addr, u64 offset, int na)
static int of_bus_pci_translate(__be32 *addr, u64 offset, int na)
{
return of_bus_default_translate(addr + 1, offset, na - 1);
}
Expand Down Expand Up @@ -247,7 +247,7 @@ static void of_bus_isa_count_cells(struct device_node *child,
*sizec = 1;
}

static u64 of_bus_isa_map(u32 *addr, const __be32 *range, int na, int ns,
static u64 of_bus_isa_map(__be32 *addr, const __be32 *range, int na, int ns,
int pna)
{
u64 cp, s, da;
Expand All @@ -270,7 +270,7 @@ static u64 of_bus_isa_map(u32 *addr, const __be32 *range, int na, int ns,
return da - cp;
}

static int of_bus_isa_translate(u32 *addr, u64 offset, int na)
static int of_bus_isa_translate(__be32 *addr, u64 offset, int na)
{
return of_bus_default_translate(addr + 1, offset, na - 1);
}
Expand Down Expand Up @@ -338,7 +338,7 @@ static struct of_bus *of_match_bus(struct device_node *np)
}

static int of_translate_one(struct device_node *parent, struct of_bus *bus,
struct of_bus *pbus, u32 *addr,
struct of_bus *pbus, __be32 *addr,
int na, int ns, int pna, const char *rprop)
{
const __be32 *ranges;
Expand Down Expand Up @@ -409,12 +409,12 @@ static int of_translate_one(struct device_node *parent, struct of_bus *bus,
* that can be mapped to a cpu physical address). This is not really specified
* that way, but this is traditionally the way IBM at least do things
*/
u64 __of_translate_address(struct device_node *dev, const __be32 *in_addr,
const char *rprop)
static u64 __of_translate_address(struct device_node *dev,
const __be32 *in_addr, const char *rprop)
{
struct device_node *parent = NULL;
struct of_bus *bus, *pbus;
u32 addr[OF_MAX_ADDR_CELLS];
__be32 addr[OF_MAX_ADDR_CELLS];
int na, ns, pna, pns;
u64 result = OF_BAD_ADDR;

Expand Down
8 changes: 5 additions & 3 deletions trunk/drivers/of/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,13 @@ int of_irq_map_raw(struct device_node *parent, const __be32 *intspec,
/* Compare specifiers */
match = 1;
for (i = 0; i < addrsize && match; ++i) {
u32 mask = imask ? imask[i] : 0xffffffffu;
__be32 mask = imask ? imask[i]
: cpu_to_be32(0xffffffffu);
match = ((addr[i] ^ imap[i]) & mask) == 0;
}
for (; i < (addrsize + intsize) && match; ++i) {
u32 mask = imask ? imask[i] : 0xffffffffu;
__be32 mask = imask ? imask[i]
: cpu_to_be32(0xffffffffu);
match =
((intspec[i-addrsize] ^ imap[i]) & mask) == 0;
}
Expand Down Expand Up @@ -465,7 +467,7 @@ void __init of_irq_init(const struct of_device_id *matches)
pr_debug("of_irq_init: init %s @ %p, parent %p\n",
match->compatible,
desc->dev, desc->interrupt_parent);
irq_init_cb = match->data;
irq_init_cb = (of_irq_init_cb_t)match->data;
ret = irq_init_cb(desc->dev, desc->interrupt_parent);
if (ret) {
kfree(desc);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/of/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void of_device_make_bus_id(struct device *dev)
{
static atomic_t bus_no_reg_magic;
struct device_node *node = dev->of_node;
const u32 *reg;
const __be32 *reg;
u64 addr;
const __be32 *addrp;
int magic;
Expand Down
4 changes: 0 additions & 4 deletions trunk/include/Kbuild
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# Top-level Makefile calls into asm-$(ARCH)
# List only non-arch directories below

header-y += asm-generic/
header-y += linux/
header-y += sound/
header-y += mtd/
header-y += rdma/
header-y += video/
header-y += drm/
header-y += xen/
header-y += scsi/
Empty file removed trunk/include/asm-generic/Kbuild
Empty file.
Empty file removed trunk/include/drm/Kbuild
Empty file.
26 changes: 0 additions & 26 deletions trunk/include/linux/Kbuild
Original file line number Diff line number Diff line change
@@ -1,31 +1,5 @@
header-y += byteorder/
header-y += can/
header-y += caif/
header-y += dvb/
header-y += hdlc/
header-y += hsi/
header-y += isdn/
header-y += mmc/
header-y += nfsd/
header-y += raid/
header-y += spi/
header-y += sunrpc/
header-y += tc_act/
header-y += tc_ematch/
header-y += netfilter/
header-y += netfilter_arp/
header-y += netfilter_bridge/
header-y += netfilter_ipv4/
header-y += netfilter_ipv6/
header-y += usb/
header-y += wimax/

ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \
$(srctree)/arch/$(SRCARCH)/include/uapi/asm/a.out.h),)
endif
ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \
$(srctree)/arch/$(SRCARCH)/include/uapi/asm/kvm.h),)
endif
ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \
$(srctree)/arch/$(SRCARCH)/include/uapi/asm/kvm_para.h),)
endif
Empty file.
Empty file removed trunk/include/linux/caif/Kbuild
Empty file.
Empty file removed trunk/include/linux/can/Kbuild
Empty file.
Empty file removed trunk/include/linux/isdn/Kbuild
Empty file.
Empty file removed trunk/include/linux/mmc/Kbuild
Empty file.
1 change: 0 additions & 1 deletion trunk/include/linux/netfilter/Kbuild

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file removed trunk/include/linux/nfsd/Kbuild
Empty file.
7 changes: 7 additions & 0 deletions trunk/include/linux/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,13 @@ static inline bool of_have_populated_dt(void)
#define for_each_child_of_node(parent, child) \
while (0)

static inline struct device_node *of_get_child_by_name(
const struct device_node *node,
const char *name)
{
return NULL;
}

static inline int of_get_child_count(const struct device_node *np)
{
return 0;
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/linux/of_address.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ extern void __iomem *of_iomap(struct device_node *device, int index);
* the address space flags too. The PCI version uses a BAR number
* instead of an absolute index
*/
extern const u32 *of_get_address(struct device_node *dev, int index,
extern const __be32 *of_get_address(struct device_node *dev, int index,
u64 *size, unsigned int *flags);

#ifndef pci_address_to_pio
Expand All @@ -44,7 +44,7 @@ static inline void __iomem *of_iomap(struct device_node *device, int index)
{
return NULL;
}
static inline const u32 *of_get_address(struct device_node *dev, int index,
static inline const __be32 *of_get_address(struct device_node *dev, int index,
u64 *size, unsigned int *flags)
{
return NULL;
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/linux/of_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ static inline int of_irq_map_oldworld(struct device_node *device, int index,
#endif /* CONFIG_PPC32 && CONFIG_PPC_PMAC */


extern int of_irq_map_raw(struct device_node *parent, const u32 *intspec,
u32 ointsize, const u32 *addr,
extern int of_irq_map_raw(struct device_node *parent, const __be32 *intspec,
u32 ointsize, const __be32 *addr,
struct of_irq *out_irq);
extern int of_irq_map_one(struct device_node *device, int index,
struct of_irq *out_irq);
Expand Down
Empty file removed trunk/include/linux/spi/Kbuild
Empty file.
Empty file removed trunk/include/linux/sunrpc/Kbuild
Empty file.
Empty file removed trunk/include/linux/tc_act/Kbuild
Empty file.
Empty file.
Empty file removed trunk/include/linux/wimax/Kbuild
Empty file.
Empty file removed trunk/include/mtd/Kbuild
Empty file.
4 changes: 4 additions & 0 deletions trunk/include/uapi/asm-generic/kvm_para.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
* There isn't anything here, but the file must not be empty or patch
* will delete it.
*/
4 changes: 4 additions & 0 deletions trunk/include/uapi/linux/irqnr.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
* There isn't anything here anymore, but the file must not be empty or patch
* will delete it.
*/
Empty file removed trunk/include/xen/Kbuild
Empty file.
2 changes: 1 addition & 1 deletion trunk/scripts/Makefile.asm-generic
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# and for each file listed in this file with generic-y creates
# a small wrapper file in $(obj) (arch/$(SRCARCH)/include/generated/asm)

kbuild-file := $(srctree)/arch/$(SRCARCH)/include/asm/Kbuild
kbuild-file := $(srctree)/arch/$(SRCARCH)/include/$(src)/Kbuild
-include $(kbuild-file)

include scripts/Kbuild.include
Expand Down
44 changes: 10 additions & 34 deletions trunk/scripts/dtc/dtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,51 +161,27 @@ struct node {
struct label *labels;
};

static inline struct label *for_each_label_next(struct label *l)
{
do {
l = l->next;
} while (l && l->deleted);

return l;
}

#define for_each_label(l0, l) \
for ((l) = (l0); (l); (l) = for_each_label_next(l))

#define for_each_label_withdel(l0, l) \
for ((l) = (l0); (l); (l) = (l)->next)

static inline struct property *for_each_property_next(struct property *p)
{
do {
p = p->next;
} while (p && p->deleted);

return p;
}

#define for_each_property(n, p) \
for ((p) = (n)->proplist; (p); (p) = for_each_property_next(p))
#define for_each_label(l0, l) \
for_each_label_withdel(l0, l) \
if (!(l)->deleted)

#define for_each_property_withdel(n, p) \
for ((p) = (n)->proplist; (p); (p) = (p)->next)

static inline struct node *for_each_child_next(struct node *c)
{
do {
c = c->next_sibling;
} while (c && c->deleted);

return c;
}

#define for_each_child(n, c) \
for ((c) = (n)->children; (c); (c) = for_each_child_next(c))
#define for_each_property(n, p) \
for_each_property_withdel(n, p) \
if (!(p)->deleted)

#define for_each_child_withdel(n, c) \
for ((c) = (n)->children; (c); (c) = (c)->next_sibling)

#define for_each_child(n, c) \
for_each_child_withdel(n, c) \
if (!(c)->deleted)

void add_label(struct label **labels, char *label);
void delete_labels(struct label **labels);

Expand Down
Loading

0 comments on commit b362cef

Please sign in to comment.