Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update my fork with torvalds #8

Merged
merged 85 commits into from
Nov 18, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
8000ebf
power: ab8500_fg.c: use 64-bit time types
ebruAkagunduz Oct 8, 2014
0eaf437
power: bq2415x_charger: Properly handle ENODEV from power_supply_get_…
krzk Oct 15, 2014
21e863b
power: bq2415x_charger: Fix memory leak on DTS parsing error
krzk Oct 15, 2014
a69d82b
power_supply: Add no_thermal property to prevent recursive get_temp c…
krzk Oct 7, 2014
ba9c918
power: charger-manager: Avoid recursive thermal get_temp call
krzk Oct 7, 2014
bdbe814
power: charger-manager: Fix accessing invalidated power supply after …
krzk Oct 13, 2014
cdaf3e1
power: charger-manager: Fix accessing invalidated power supply after …
krzk Oct 13, 2014
7da89a2
sparc64: Fix crashes in schizo_pcierr_intr_other().
davem330 Nov 1, 2014
4750a0d
x86, microcode, AMD: Fix early ucode loading on 32-bit
suryasaimadhu Oct 31, 2014
e602336
x86, kaslr: Prevent .bss from overlaping initrd
Oct 31, 2014
5129ee2
ARM: mvebu: armada xp: Generalize use of i2c quirk
lunn Jul 26, 2014
9ece883
ARM: orion: Fix for certain sequence of request_irq can cause irq storm
Dushistov Jul 26, 2014
809fd14
NFSv4: Ensure nfs_atomic_open set the dentry verifier on ENOENT
trondmypd Oct 23, 2014
7488cbc
Revert "NFS: remove BUG possibility in nfs4_open_and_get_state"
trondmypd Oct 23, 2014
dca7800
Revert "NFS: nfs4_do_open should add negative results to the dcache."
trondmypd Oct 23, 2014
85be07c
x86, microcode: Fix accessing dis_ucode_ldr on 32-bit
suryasaimadhu Nov 5, 2014
a8ead0e
ARM: dts: am335x-evm: Fix 5th NAND partition's name
Oct 21, 2014
ab5c780
sparc64: Do irq_{enter,exit}() around generic_smp_call_function*().
davem330 Nov 7, 2014
1a17fdc
sparc32: Implement xchg and atomic_xchg using ATOMIC_HASH locks
andreas-gaisler Nov 5, 2014
06a2f5c
drm/exynos: resolve infinite loop issue on multi-platform
daeinki Nov 6, 2014
f7c2f36
drm/exynos: resolve infinite loop issue on non multi-platform
daeinki Nov 6, 2014
9ad703e
drm/exynos: g2d: fix null pointer dereference
daeinki Nov 7, 2014
7afbfcc
drm/exynos: fix possible infinite loop issue
daeinki Nov 7, 2014
5427955
x86/core, x86/xen/smp: Use 'die_complete' completion when taking CPU …
Oct 31, 2014
c0a717f
x86, microcode, AMD: Fix ucode patch stashing on 32-bit
suryasaimadhu Nov 5, 2014
4837927
scsi: only re-lock door after EH on devices that were reset
Nov 3, 2014
e925cc4
scsi: call device handler for failed TUR command
Nov 6, 2014
333b244
scsi: TUR path is down after adapter gets reset with multipath
wxiong38 Nov 6, 2014
d8ae3c3
cxgbi: add maintainer for cxgb3i/cxgb4i
anish Nov 4, 2014
7b07bf2
cxgb4i: send abort_rpl correctly
anish Nov 6, 2014
c12de88
megaraid_sas: fix bug in handling return value of pci_enable_msix_ran…
Nov 3, 2014
dc6311d
bnx2fc: fix tgt spinlock locking
maurizio-lombardi Nov 7, 2014
0cafa3e
Merge tag 'microcode_fixes_for_3.18' of git://git.kernel.org/pub/scm/…
Nov 10, 2014
fc2a602
ARM: dts: AM43x-EPOS-EVM: Fix DCDC3 voltage
Keerthyj Nov 6, 2014
3015ddb
ARM: dts: AM437x-GP-EVM: Fix DCDC3 voltage
Keerthyj Nov 6, 2014
5cd98a7
ARM: dts: AM437x-SK-EVM: Fix DCDC3 voltage
Keerthyj Nov 6, 2014
dc68cd1
MAINTAINERS: add more files under OMAP SUPPORT
Nov 6, 2014
05eb20f
MAINTAINERS: Update entry for omap related .dts files to cover new SoCs
nmenon Oct 21, 2014
e6be7bb
parisc: Wire up bpf syscall
hdeller Oct 21, 2014
8dd95c6
parisc: Use BUILD_BUG() instead of undefined functions
hdeller Oct 21, 2014
2fe749f
parisc: Use compat layer for msgctl, shmat, shmctl and semtimedop sys…
hdeller Nov 10, 2014
d8f5457
parisc: Avoid using CONFIG_64BIT in userspace exported headers
hdeller Nov 10, 2014
73b3a66
pinctrl: dra: dt-bindings: Fix output pull up/down
Nov 3, 2014
e9d784d
drm/i915: Fix obj->map_and_fenceable across tiling changes
ickle Nov 6, 2014
1c94984
drm/radeon: add locking around atombios scratch space usage
airlied Nov 10, 2014
8c393f9
nfs: fix pnfs direct write memory leak
Nov 5, 2014
e0d4ed7
pnfs/blocklayout: serialize GETDEVICEINFO calls
Sep 26, 2014
16c9914
nfs: remove spurious WARN_ON_ONCE in write path
westonandrosadamson Nov 3, 2014
b283f94
nfs: Remove bogus assignment
jankara Oct 21, 2014
16caf5b
nfs: Fix use of uninitialized variable in nfs_getattr()
jankara Oct 23, 2014
e983120
NFS: SEEK is an NFS v4.2 feature
amschuma-ntap Oct 22, 2014
4dfd4f7
NFSv4: Ensure that we remove NFSv4.0 delegations when state has expired
trondmypd Oct 17, 2014
0c116ca
NFSv4.1: nfs41_clear_delegation_stateid shouldn't trust NFS_DELEGATED…
trondmypd Nov 12, 2014
869f9df
NFSv4: Fix races between nfs_remove_bad_delegation() and delegation r…
trondmypd Nov 10, 2014
c606bb8
NFSv4: Ensure that we call FREE_STATEID when NFSv4.x stateids are rev…
trondmypd Oct 17, 2014
f8ebf7a
NFS: Don't try to reclaim delegation open state if recovery failed
trondmypd Oct 17, 2014
3b548f4
Merge branch 'exynos-drm-fixes' of git://git.kernel.org/pub/scm/linux…
airlied Nov 12, 2014
5f2fcdb
Merge branch 'drm-fixes-3.18' of git://people.freedesktop.org/~agd5f/…
airlied Nov 12, 2014
b2c1987
drm/gk20a/fb: fix setting of large page size bit
Gnurou Nov 12, 2014
eae7382
drm/nouveau/nv50/disp: Fix modeset on G94
RSpliet Oct 30, 2014
8ff64c1
drm/tegra: dc: Add missing call to drm_vblank_on()
thierryreding Oct 8, 2014
b3ecba0
sunrpc: fix sleeping under rcu_read_lock in gss_stringify_acceptor
Nov 13, 2014
64e5fcc
Merge tag 'drm-intel-fixes-2014-11-13' of git://anongit.freedesktop.o…
airlied Nov 13, 2014
3d0f853
Merge branch 'linux-3.18' of git://anongit.freedesktop.org/git/nouvea…
airlied Nov 13, 2014
bcfef97
Merge tag 'drm/tegra/for-3.18-rc5' of git://people.freedesktop.org/~t…
airlied Nov 13, 2014
238962a
ARM: 8191/1: decompressor: ensure I-side picks up relocated code
wildea01 Nov 4, 2014
08b964f
ARM: 8198/1: make kuser helpers depend on MMU
nlynch-mentor Nov 10, 2014
1afcb6e
Merge tag 'nfs-for-3.18-3' of git://git.linux-nfs.org/projects/trondm…
torvalds Nov 15, 2014
51b97e3
kernel: use the gnu89 standard explicitly
kiryl Oct 20, 2014
e061167
Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
torvalds Nov 15, 2014
ec7de65
Merge tag 'for-v3.18-rc' of git://git.infradead.org/battery-2.6
torvalds Nov 15, 2014
555e598
Merge branch 'parisc-3.18-2' of git://git.kernel.org/pub/scm/linux/ke…
torvalds Nov 15, 2014
5f01feb
Merge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm
torvalds Nov 15, 2014
3b91270
x86-64: make csum_partial_copy_from_user() error handling consistent
torvalds Nov 16, 2014
de55bbb
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/l…
torvalds Nov 16, 2014
dec943f
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…
torvalds Nov 16, 2014
5a2b59d
sparc64: Fix constraints on swab helpers.
davem330 Nov 16, 2014
45eaf45
md: Always set RECOVERY_NEEDED when clearing RECOVERY_FROZEN
neilbrown Oct 28, 2014
ae8f504
Merge tag 'mvebu-fixes-3.18' of git://git.infradead.org/linux-mvebu i…
olofj Nov 16, 2014
f7efdad
Merge tag 'omap-fixes-against-v3.18-rc4' of git://git.kernel.org/pub/…
olofj Nov 16, 2014
e899dba
ARM: at91/dt: Fix sama5d3x typos
peda-r Oct 23, 2014
0fbae13
Merge tag 'md/3.18-fix' of git://neil.brown.name/md
torvalds Nov 16, 2014
435e46f
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
torvalds Nov 17, 2014
e35c5a2
Merge tag 'armsoc-for-rc5' of git://git.kernel.org/pub/scm/linux/kern…
torvalds Nov 17, 2014
fc14f9c
Linux 3.18-rc5
torvalds Nov 17, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2744,6 +2744,13 @@ W: http://www.chelsio.com
S: Supported
F: drivers/net/ethernet/chelsio/cxgb3/

CXGB3 ISCSI DRIVER (CXGB3I)
M: Karen Xie <[email protected]>
L: [email protected]
W: http://www.chelsio.com
S: Supported
F: drivers/scsi/cxgbi/cxgb3i

CXGB3 IWARP RNIC DRIVER (IW_CXGB3)
M: Steve Wise <[email protected]>
L: [email protected]
Expand All @@ -2758,6 +2765,13 @@ W: http://www.chelsio.com
S: Supported
F: drivers/net/ethernet/chelsio/cxgb4/

CXGB4 ISCSI DRIVER (CXGB4I)
M: Karen Xie <[email protected]>
L: [email protected]
W: http://www.chelsio.com
S: Supported
F: drivers/scsi/cxgbi/cxgb4i

CXGB4 IWARP RNIC DRIVER (IW_CXGB4)
M: Steve Wise <[email protected]>
L: [email protected]
Expand Down Expand Up @@ -6597,6 +6611,23 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git
S: Maintained
F: arch/arm/*omap*/
F: drivers/i2c/busses/i2c-omap.c
F: drivers/irqchip/irq-omap-intc.c
F: drivers/mfd/*omap*.c
F: drivers/mfd/menelaus.c
F: drivers/mfd/palmas.c
F: drivers/mfd/tps65217.c
F: drivers/mfd/tps65218.c
F: drivers/mfd/tps65910.c
F: drivers/mfd/twl-core.[ch]
F: drivers/mfd/twl4030*.c
F: drivers/mfd/twl6030*.c
F: drivers/mfd/twl6040*.c
F: drivers/regulator/palmas-regulator*.c
F: drivers/regulator/pbias-regulator.c
F: drivers/regulator/tps65217-regulator.c
F: drivers/regulator/tps65218-regulator.c
F: drivers/regulator/tps65910-regulator.c
F: drivers/regulator/twl-regulator.c
F: include/linux/i2c-omap.h

OMAP DEVICE TREE SUPPORT
Expand All @@ -6607,6 +6638,9 @@ L: [email protected]
S: Maintained
F: arch/arm/boot/dts/*omap*
F: arch/arm/boot/dts/*am3*
F: arch/arm/boot/dts/*am4*
F: arch/arm/boot/dts/*am5*
F: arch/arm/boot/dts/*dra7*

OMAP CLOCK FRAMEWORK SUPPORT
M: Paul Walmsley <[email protected]>
Expand Down
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION = 3
PATCHLEVEL = 18
SUBLEVEL = 0
EXTRAVERSION = -rc4
EXTRAVERSION = -rc5
NAME = Diseased Newt

# *DOCUMENTATION*
Expand Down Expand Up @@ -297,7 +297,7 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \

HOSTCC = gcc
HOSTCXX = g++
HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer
HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89
HOSTCXXFLAGS = -O2

ifeq ($(shell $(HOSTCC) -v 2>&1 | grep -c "clang version"), 1)
Expand Down Expand Up @@ -401,7 +401,8 @@ KBUILD_CPPFLAGS := -D__KERNEL__
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
-Wno-format-security
-Wno-format-security \
-std=gnu89

KBUILD_AFLAGS_KERNEL :=
KBUILD_CFLAGS_KERNEL :=
Expand Down
20 changes: 16 additions & 4 deletions arch/arm/boot/compressed/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,7 @@ dtb_check_done:
add sp, sp, r6
#endif

tst r4, #1
bleq cache_clean_flush
bl cache_clean_flush

adr r0, BSYM(restart)
add r0, r0, r6
Expand Down Expand Up @@ -1047,6 +1046,8 @@ cache_clean_flush:
b call_cache_fn

__armv4_mpu_cache_flush:
tst r4, #1
movne pc, lr
mov r2, #1
mov r3, #0
mcr p15, 0, ip, c7, c6, 0 @ invalidate D cache
Expand All @@ -1064,6 +1065,8 @@ __armv4_mpu_cache_flush:
mov pc, lr

__fa526_cache_flush:
tst r4, #1
movne pc, lr
mov r1, #0
mcr p15, 0, r1, c7, c14, 0 @ clean and invalidate D cache
mcr p15, 0, r1, c7, c5, 0 @ flush I cache
Expand All @@ -1072,13 +1075,16 @@ __fa526_cache_flush:

__armv6_mmu_cache_flush:
mov r1, #0
mcr p15, 0, r1, c7, c14, 0 @ clean+invalidate D
tst r4, #1
mcreq p15, 0, r1, c7, c14, 0 @ clean+invalidate D
mcr p15, 0, r1, c7, c5, 0 @ invalidate I+BTB
mcr p15, 0, r1, c7, c15, 0 @ clean+invalidate unified
mcreq p15, 0, r1, c7, c15, 0 @ clean+invalidate unified
mcr p15, 0, r1, c7, c10, 4 @ drain WB
mov pc, lr

__armv7_mmu_cache_flush:
tst r4, #1
bne iflush
mrc p15, 0, r10, c0, c1, 5 @ read ID_MMFR1
tst r10, #0xf << 16 @ hierarchical cache (ARMv7)
mov r10, #0
Expand Down Expand Up @@ -1139,13 +1145,17 @@ iflush:
mov pc, lr

__armv5tej_mmu_cache_flush:
tst r4, #1
movne pc, lr
1: mrc p15, 0, r15, c7, c14, 3 @ test,clean,invalidate D cache
bne 1b
mcr p15, 0, r0, c7, c5, 0 @ flush I cache
mcr p15, 0, r0, c7, c10, 4 @ drain WB
mov pc, lr

__armv4_mmu_cache_flush:
tst r4, #1
movne pc, lr
mov r2, #64*1024 @ default: 32K dcache size (*2)
mov r11, #32 @ default: 32 byte line size
mrc p15, 0, r3, c0, c0, 1 @ read cache type
Expand Down Expand Up @@ -1179,6 +1189,8 @@ no_cache_id:

__armv3_mmu_cache_flush:
__armv3_mpu_cache_flush:
tst r4, #1
movne pc, lr
mov r1, #0
mcr p15, 0, r1, c7, c0, 0 @ invalidate whole cache v3
mov pc, lr
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/am335x-evm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@
reg = <0x00060000 0x00020000>;
};
partition@4 {
label = "NAND.u-boot-spl";
label = "NAND.u-boot-spl-os";
reg = <0x00080000 0x00040000>;
};
partition@5 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/am437x-gp-evm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@
dcdc3: regulator-dcdc3 {
compatible = "ti,tps65218-dcdc3";
regulator-name = "vdcdc3";
regulator-min-microvolt = <1350000>;
regulator-max-microvolt = <1350000>;
regulator-min-microvolt = <1500000>;
regulator-max-microvolt = <1500000>;
regulator-boot-on;
regulator-always-on;
};
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/am437x-sk-evm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@
dcdc3: regulator-dcdc3 {
compatible = "ti,tps65218-dcdc3";
regulator-name = "vdds_ddr";
regulator-min-microvolt = <1350000>;
regulator-max-microvolt = <1350000>;
regulator-min-microvolt = <1500000>;
regulator-max-microvolt = <1500000>;
regulator-boot-on;
regulator-always-on;
};
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/am43x-epos-evm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@
dcdc3: regulator-dcdc3 {
compatible = "ti,tps65218-dcdc3";
regulator-name = "vdcdc3";
regulator-min-microvolt = <1350000>;
regulator-max-microvolt = <1350000>;
regulator-min-microvolt = <1500000>;
regulator-max-microvolt = <1500000>;
regulator-boot-on;
regulator-always-on;
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/sama5d31.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
#include "sama5d3_uart.dtsi"

/ {
compatible = "atmel,samad31", "atmel,sama5d3", "atmel,sama5";
compatible = "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
};
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/sama5d33.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
#include "sama5d3_gmac.dtsi"

/ {
compatible = "atmel,samad33", "atmel,sama5d3", "atmel,sama5";
compatible = "atmel,sama5d33", "atmel,sama5d3", "atmel,sama5";
};
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/sama5d34.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
#include "sama5d3_mci2.dtsi"

/ {
compatible = "atmel,samad34", "atmel,sama5d3", "atmel,sama5";
compatible = "atmel,sama5d34", "atmel,sama5d3", "atmel,sama5";
};
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/sama5d35.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
#include "sama5d3_tcb1.dtsi"

/ {
compatible = "atmel,samad35", "atmel,sama5d3", "atmel,sama5";
compatible = "atmel,sama5d35", "atmel,sama5d3", "atmel,sama5";
};
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/sama5d36.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
#include "sama5d3_uart.dtsi"

/ {
compatible = "atmel,samad36", "atmel,sama5d3", "atmel,sama5";
compatible = "atmel,sama5d36", "atmel,sama5d3", "atmel,sama5";
};
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/sama5d3xcm.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

/ {
compatible = "atmel,samad3xcm", "atmel,sama5d3", "atmel,sama5";
compatible = "atmel,sama5d3xcm", "atmel,sama5d3", "atmel,sama5";

chosen {
bootargs = "console=ttyS0,115200 rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs";
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-mvebu/board-v7.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ static void __init thermal_quirk(void)

static void __init mvebu_dt_init(void)
{
if (of_machine_is_compatible("plathome,openblocks-ax3-4"))
if (of_machine_is_compatible("marvell,armadaxp"))
i2c_quirk();
if (of_machine_is_compatible("marvell,a375-db")) {
external_abort_quirk();
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ config NEED_KUSER_HELPERS

config KUSER_HELPERS
bool "Enable kuser helpers in vector page" if !NEED_KUSER_HELPERS
depends on MMU
default y
help
Warning: disabling this option may break user programs.
Expand Down
36 changes: 32 additions & 4 deletions arch/arm/plat-orion/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,34 @@ static void orion_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
#define orion_gpio_dbg_show NULL
#endif

static void orion_gpio_unmask_irq(struct irq_data *d)
{
struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d);
struct irq_chip_type *ct = irq_data_get_chip_type(d);
u32 reg_val;
u32 mask = d->mask;

irq_gc_lock(gc);
reg_val = irq_reg_readl(gc->reg_base + ct->regs.mask);
reg_val |= mask;
irq_reg_writel(reg_val, gc->reg_base + ct->regs.mask);
irq_gc_unlock(gc);
}

static void orion_gpio_mask_irq(struct irq_data *d)
{
struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d);
struct irq_chip_type *ct = irq_data_get_chip_type(d);
u32 mask = d->mask;
u32 reg_val;

irq_gc_lock(gc);
reg_val = irq_reg_readl(gc->reg_base + ct->regs.mask);
reg_val &= ~mask;
irq_reg_writel(reg_val, gc->reg_base + ct->regs.mask);
irq_gc_unlock(gc);
}

void __init orion_gpio_init(struct device_node *np,
int gpio_base, int ngpio,
void __iomem *base, int mask_offset,
Expand Down Expand Up @@ -565,8 +593,8 @@ void __init orion_gpio_init(struct device_node *np,
ct = gc->chip_types;
ct->regs.mask = ochip->mask_offset + GPIO_LEVEL_MASK_OFF;
ct->type = IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW;
ct->chip.irq_mask = irq_gc_mask_clr_bit;
ct->chip.irq_unmask = irq_gc_mask_set_bit;
ct->chip.irq_mask = orion_gpio_mask_irq;
ct->chip.irq_unmask = orion_gpio_unmask_irq;
ct->chip.irq_set_type = gpio_irq_set_type;
ct->chip.name = ochip->chip.label;

Expand All @@ -575,8 +603,8 @@ void __init orion_gpio_init(struct device_node *np,
ct->regs.ack = GPIO_EDGE_CAUSE_OFF;
ct->type = IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING;
ct->chip.irq_ack = irq_gc_ack_clr_bit;
ct->chip.irq_mask = irq_gc_mask_clr_bit;
ct->chip.irq_unmask = irq_gc_mask_set_bit;
ct->chip.irq_mask = orion_gpio_mask_irq;
ct->chip.irq_unmask = orion_gpio_unmask_irq;
ct->chip.irq_set_type = gpio_irq_set_type;
ct->handler = handle_edge_irq;
ct->chip.name = ochip->chip.label;
Expand Down
19 changes: 8 additions & 11 deletions arch/parisc/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include <asm/errno.h>
#include <asm-generic/uaccess-unaligned.h>

#include <linux/bug.h>

#define VERIFY_READ 0
#define VERIFY_WRITE 1

Expand All @@ -28,11 +30,6 @@
* that put_user is the same as __put_user, etc.
*/

extern int __get_kernel_bad(void);
extern int __get_user_bad(void);
extern int __put_kernel_bad(void);
extern int __put_user_bad(void);

static inline long access_ok(int type, const void __user * addr,
unsigned long size)
{
Expand All @@ -43,8 +40,8 @@ static inline long access_ok(int type, const void __user * addr,
#define get_user __get_user

#if !defined(CONFIG_64BIT)
#define LDD_KERNEL(ptr) __get_kernel_bad();
#define LDD_USER(ptr) __get_user_bad();
#define LDD_KERNEL(ptr) BUILD_BUG()
#define LDD_USER(ptr) BUILD_BUG()
#define STD_KERNEL(x, ptr) __put_kernel_asm64(x,ptr)
#define STD_USER(x, ptr) __put_user_asm64(x,ptr)
#define ASM_WORD_INSN ".word\t"
Expand Down Expand Up @@ -94,7 +91,7 @@ struct exception_data {
case 2: __get_kernel_asm("ldh",ptr); break; \
case 4: __get_kernel_asm("ldw",ptr); break; \
case 8: LDD_KERNEL(ptr); break; \
default: __get_kernel_bad(); break; \
default: BUILD_BUG(); break; \
} \
} \
else { \
Expand All @@ -103,7 +100,7 @@ struct exception_data {
case 2: __get_user_asm("ldh",ptr); break; \
case 4: __get_user_asm("ldw",ptr); break; \
case 8: LDD_USER(ptr); break; \
default: __get_user_bad(); break; \
default: BUILD_BUG(); break; \
} \
} \
\
Expand Down Expand Up @@ -136,7 +133,7 @@ struct exception_data {
case 2: __put_kernel_asm("sth",__x,ptr); break; \
case 4: __put_kernel_asm("stw",__x,ptr); break; \
case 8: STD_KERNEL(__x,ptr); break; \
default: __put_kernel_bad(); break; \
default: BUILD_BUG(); break; \
} \
} \
else { \
Expand All @@ -145,7 +142,7 @@ struct exception_data {
case 2: __put_user_asm("sth",__x,ptr); break; \
case 4: __put_user_asm("stw",__x,ptr); break; \
case 8: STD_USER(__x,ptr); break; \
default: __put_user_bad(); break; \
default: BUILD_BUG(); break; \
} \
} \
\
Expand Down
Loading