diff options
Diffstat (limited to 'arch/arm26')
-rw-r--r-- | arch/arm26/Kconfig | 8 | ||||
-rw-r--r-- | arch/arm26/kernel/ecard.c | 6 | ||||
-rw-r--r-- | arch/arm26/kernel/irq.c | 2 | ||||
-rw-r--r-- | arch/arm26/mm/fault.c | 2 | ||||
-rw-r--r-- | arch/arm26/mm/memc.c | 6 |
5 files changed, 15 insertions, 9 deletions
diff --git a/arch/arm26/Kconfig b/arch/arm26/Kconfig index c14fe918bc4c..74eba8b5a8ca 100644 --- a/arch/arm26/Kconfig +++ b/arch/arm26/Kconfig | |||
@@ -41,6 +41,14 @@ config RWSEM_GENERIC_SPINLOCK | |||
41 | config RWSEM_XCHGADD_ALGORITHM | 41 | config RWSEM_XCHGADD_ALGORITHM |
42 | bool | 42 | bool |
43 | 43 | ||
44 | config ARCH_HAS_ILOG2_U32 | ||
45 | bool | ||
46 | default n | ||
47 | |||
48 | config ARCH_HAS_ILOG2_U64 | ||
49 | bool | ||
50 | default n | ||
51 | |||
44 | config GENERIC_HWEIGHT | 52 | config GENERIC_HWEIGHT |
45 | bool | 53 | bool |
46 | default y | 54 | default y |
diff --git a/arch/arm26/kernel/ecard.c b/arch/arm26/kernel/ecard.c index 047d0a408b9d..9dbc17247c6f 100644 --- a/arch/arm26/kernel/ecard.c +++ b/arch/arm26/kernel/ecard.c | |||
@@ -215,7 +215,7 @@ int ecard_readchunk(struct in_chunk_dir *cd, ecard_t *ec, int id, int num) | |||
215 | } | 215 | } |
216 | if (c_id(&excd) == 0x80) { /* loader */ | 216 | if (c_id(&excd) == 0x80) { /* loader */ |
217 | if (!ec->loader) { | 217 | if (!ec->loader) { |
218 | ec->loader = (loader_t)kmalloc(c_len(&excd), | 218 | ec->loader = kmalloc(c_len(&excd), |
219 | GFP_KERNEL); | 219 | GFP_KERNEL); |
220 | if (ec->loader) | 220 | if (ec->loader) |
221 | ecard_readbytes(ec->loader, ec, | 221 | ecard_readbytes(ec->loader, ec, |
@@ -620,12 +620,10 @@ ecard_probe(int slot, card_type_t type) | |||
620 | struct ex_ecid cid; | 620 | struct ex_ecid cid; |
621 | int i, rc = -ENOMEM; | 621 | int i, rc = -ENOMEM; |
622 | 622 | ||
623 | ec = kmalloc(sizeof(ecard_t), GFP_KERNEL); | 623 | ec = kzalloc(sizeof(ecard_t), GFP_KERNEL); |
624 | if (!ec) | 624 | if (!ec) |
625 | goto nomem; | 625 | goto nomem; |
626 | 626 | ||
627 | memset(ec, 0, sizeof(ecard_t)); | ||
628 | |||
629 | ec->slot_no = slot; | 627 | ec->slot_no = slot; |
630 | ec->type = type; | 628 | ec->type = type; |
631 | ec->irq = NO_IRQ; | 629 | ec->irq = NO_IRQ; |
diff --git a/arch/arm26/kernel/irq.c b/arch/arm26/kernel/irq.c index d87d68b77d66..d53382c83bf9 100644 --- a/arch/arm26/kernel/irq.c +++ b/arch/arm26/kernel/irq.c | |||
@@ -545,7 +545,7 @@ int request_irq(unsigned int irq, irqreturn_t (*handler)(int, void *, struct pt_ | |||
545 | (irq_flags & IRQF_SHARED && !dev_id)) | 545 | (irq_flags & IRQF_SHARED && !dev_id)) |
546 | return -EINVAL; | 546 | return -EINVAL; |
547 | 547 | ||
548 | action = (struct irqaction *)kmalloc(sizeof(struct irqaction), GFP_KERNEL); | 548 | action = kmalloc(sizeof(struct irqaction), GFP_KERNEL); |
549 | if (!action) | 549 | if (!action) |
550 | return -ENOMEM; | 550 | return -ENOMEM; |
551 | 551 | ||
diff --git a/arch/arm26/mm/fault.c b/arch/arm26/mm/fault.c index a1f6d8a9cc32..93c0cee0fb5e 100644 --- a/arch/arm26/mm/fault.c +++ b/arch/arm26/mm/fault.c | |||
@@ -215,7 +215,7 @@ int do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | |||
215 | * If we're in an interrupt or have no user | 215 | * If we're in an interrupt or have no user |
216 | * context, we must not take the fault.. | 216 | * context, we must not take the fault.. |
217 | */ | 217 | */ |
218 | if (in_interrupt() || !mm) | 218 | if (in_atomic() || !mm) |
219 | goto no_context; | 219 | goto no_context; |
220 | 220 | ||
221 | down_read(&mm->mmap_sem); | 221 | down_read(&mm->mmap_sem); |
diff --git a/arch/arm26/mm/memc.c b/arch/arm26/mm/memc.c index 34def6397c3c..f2901581d4da 100644 --- a/arch/arm26/mm/memc.c +++ b/arch/arm26/mm/memc.c | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | #define MEMC_TABLE_SIZE (256*sizeof(unsigned long)) | 25 | #define MEMC_TABLE_SIZE (256*sizeof(unsigned long)) |
26 | 26 | ||
27 | kmem_cache_t *pte_cache, *pgd_cache; | 27 | struct kmem_cache *pte_cache, *pgd_cache; |
28 | int page_nr; | 28 | int page_nr; |
29 | 29 | ||
30 | /* | 30 | /* |
@@ -162,12 +162,12 @@ void __init create_memmap_holes(struct meminfo *mi) | |||
162 | { | 162 | { |
163 | } | 163 | } |
164 | 164 | ||
165 | static void pte_cache_ctor(void *pte, kmem_cache_t *cache, unsigned long flags) | 165 | static void pte_cache_ctor(void *pte, struct kmem_cache *cache, unsigned long flags) |
166 | { | 166 | { |
167 | memzero(pte, sizeof(pte_t) * PTRS_PER_PTE); | 167 | memzero(pte, sizeof(pte_t) * PTRS_PER_PTE); |
168 | } | 168 | } |
169 | 169 | ||
170 | static void pgd_cache_ctor(void *pgd, kmem_cache_t *cache, unsigned long flags) | 170 | static void pgd_cache_ctor(void *pgd, struct kmem_cache *cache, unsigned long flags) |
171 | { | 171 | { |
172 | memzero(pgd + MEMC_TABLE_SIZE, USER_PTRS_PER_PGD * sizeof(pgd_t)); | 172 | memzero(pgd + MEMC_TABLE_SIZE, USER_PTRS_PER_PGD * sizeof(pgd_t)); |
173 | } | 173 | } |