Skip to content

Commit 6caffe2

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mattst88/alpha
Pull alpha updates from Matt Turner: "This contains some small clean up patches I've neglected, and some build improvements from Ben Hutchings" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mattst88/alpha: alpha: math-emu: Fix modular build alpha: Restore symbol versions for symbols exported from assembly alpha: defconfig: Cleanup from old Kconfig options alpha: use kobj_to_dev() alpha: squash lines for immediate return alpha: kernel: Use vma_pages() alpha: silence a buffer overflow warning alpha: marvel: make use of raw_spinlock variants alpha: cleanup: remove __NR_sys_epoll_*, leave __NR_epoll_* alpha: use generic fb.h
2 parents f32c9e0 + d9e3cb2 commit 6caffe2

15 files changed

Lines changed: 40 additions & 49 deletions

File tree

‎arch/alpha/defconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ CONFIG_INET_AH=m
1919
CONFIG_INET_ESP=m
2020
# CONFIG_IPV6 is not set
2121
CONFIG_NETFILTER=y
22-
CONFIG_IP_NF_QUEUE=m
2322
CONFIG_IP_NF_IPTABLES=m
2423
CONFIG_IP_NF_FILTER=m
2524
CONFIG_VLAN_8021Q=m
@@ -57,7 +56,6 @@ CONFIG_SERIAL_8250_CONSOLE=y
5756
CONFIG_RTC=y
5857
CONFIG_EXT2_FS=y
5958
CONFIG_REISERFS_FS=m
60-
CONFIG_AUTOFS_FS=m
6159
CONFIG_ISO9660_FS=y
6260
CONFIG_MSDOS_FS=y
6361
CONFIG_VFAT_FS=y

‎arch/alpha/include/asm/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
generic-y += clkdev.h
44
generic-y += exec.h
55
generic-y += export.h
6+
generic-y += fb.h
67
generic-y += irq_work.h
78
generic-y += mcs_spinlock.h
89
generic-y += mm-arch-hooks.h
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#include <linux/spinlock.h>
2+
3+
#include <asm/checksum.h>
4+
#include <asm/console.h>
5+
#include <asm/page.h>
6+
#include <asm/string.h>
7+
#include <asm/uaccess.h>
8+
9+
#include <asm-generic/asm-prototypes.h>
10+
11+
extern void __divl(void);
12+
extern void __reml(void);
13+
extern void __divq(void);
14+
extern void __remq(void);
15+
extern void __divlu(void);
16+
extern void __remlu(void);
17+
extern void __divqu(void);
18+
extern void __remqu(void);

‎arch/alpha/include/asm/core_marvel.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ struct io7 {
312312
io7_port7_csrs *csrs;
313313
struct io7_port ports[IO7_NUM_PORTS];
314314

315-
spinlock_t irq_lock;
315+
raw_spinlock_t irq_lock;
316316
};
317317

318318
#ifndef __EXTERN_INLINE

‎arch/alpha/include/asm/fb.h‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎arch/alpha/include/uapi/asm/unistd.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,6 @@
366366
#define __NR_epoll_create 407
367367
#define __NR_epoll_ctl 408
368368
#define __NR_epoll_wait 409
369-
/* Feb 2007: These three sys_epoll defines shouldn't be here but culling
370-
* them would break userspace apps ... we'll kill them off in 2010 :) */
371-
#define __NR_sys_epoll_create __NR_epoll_create
372-
#define __NR_sys_epoll_ctl __NR_epoll_ctl
373-
#define __NR_sys_epoll_wait __NR_epoll_wait
374369
#define __NR_remap_file_pages 410
375370
#define __NR_set_tid_address 411
376371
#define __NR_restart_syscall 412

‎arch/alpha/kernel/core_marvel.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ alloc_io7(unsigned int pe)
118118

119119
io7 = alloc_bootmem(sizeof(*io7));
120120
io7->pe = pe;
121-
spin_lock_init(&io7->irq_lock);
121+
raw_spin_lock_init(&io7->irq_lock);
122122

123123
for (h = 0; h < 4; h++) {
124124
io7->ports[h].io7 = io7;

‎arch/alpha/kernel/pci-noop.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@ alloc_pci_controller(void)
4242
struct resource * __init
4343
alloc_resource(void)
4444
{
45-
struct resource *res;
46-
47-
res = alloc_bootmem(sizeof(*res));
48-
49-
return res;
45+
return alloc_bootmem(sizeof(struct resource));
5046
}
5147

5248
asmlinkage long

‎arch/alpha/kernel/pci-sysfs.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static int __pci_mmap_fits(struct pci_dev *pdev, int num,
3838
unsigned long nr, start, size;
3939
int shift = sparse ? 5 : 0;
4040

41-
nr = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT;
41+
nr = vma_pages(vma);
4242
start = vma->vm_pgoff;
4343
size = ((pci_resource_len(pdev, num) - 1) >> (PAGE_SHIFT - shift)) + 1;
4444

@@ -64,8 +64,7 @@ static int pci_mmap_resource(struct kobject *kobj,
6464
struct bin_attribute *attr,
6565
struct vm_area_struct *vma, int sparse)
6666
{
67-
struct pci_dev *pdev = to_pci_dev(container_of(kobj,
68-
struct device, kobj));
67+
struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj));
6968
struct resource *res = attr->private;
7069
enum pci_mmap_state mmap_type;
7170
struct pci_bus_region bar;
@@ -255,7 +254,7 @@ static int __legacy_mmap_fits(struct pci_controller *hose,
255254
{
256255
unsigned long nr, start, size;
257256

258-
nr = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT;
257+
nr = vma_pages(vma);
259258
start = vma->vm_pgoff;
260259
size = ((res_size - 1) >> PAGE_SHIFT) + 1;
261260

‎arch/alpha/kernel/pci.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,7 @@ alloc_pci_controller(void)
379379
struct resource * __init
380380
alloc_resource(void)
381381
{
382-
struct resource *res;
383-
384-
res = alloc_bootmem(sizeof(*res));
385-
386-
return res;
382+
return alloc_bootmem(sizeof(struct resource));
387383
}
388384

389385

0 commit comments

Comments
 (0)