diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2016-10-06 03:56:43 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2016-10-06 03:56:43 -0400 |
commit | 301a36fa700f9add6e14f5a95c7573e01578343a (patch) | |
tree | 6ff94ff3b08b838353b9127eb5f8055b3de6b25f /arch/arm/include | |
parent | b828f960215f02e5d2c88bbd27565c694254a15a (diff) | |
parent | b60752f2b20c167859943e001727f0d4da419b23 (diff) |
Merge branches 'misc' and 'sa1111-base' into for-linus
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/hardware/sa1111.h | 4 | ||||
-rw-r--r-- | arch/arm/include/asm/pgtable-2level-hwdef.h | 1 | ||||
-rw-r--r-- | arch/arm/include/asm/pgtable-3level-hwdef.h | 1 | ||||
-rw-r--r-- | arch/arm/include/asm/uaccess.h | 11 |
4 files changed, 14 insertions, 3 deletions
diff --git a/arch/arm/include/asm/hardware/sa1111.h b/arch/arm/include/asm/hardware/sa1111.h index 7c2bbc7f0be1..8979fa3bbf2d 100644 --- a/arch/arm/include/asm/hardware/sa1111.h +++ b/arch/arm/include/asm/hardware/sa1111.h | |||
@@ -420,7 +420,7 @@ struct sa1111_dev { | |||
420 | u64 dma_mask; | 420 | u64 dma_mask; |
421 | }; | 421 | }; |
422 | 422 | ||
423 | #define SA1111_DEV(_d) container_of((_d), struct sa1111_dev, dev) | 423 | #define to_sa1111_device(x) container_of(x, struct sa1111_dev, dev) |
424 | 424 | ||
425 | #define sa1111_get_drvdata(d) dev_get_drvdata(&(d)->dev) | 425 | #define sa1111_get_drvdata(d) dev_get_drvdata(&(d)->dev) |
426 | #define sa1111_set_drvdata(d,p) dev_set_drvdata(&(d)->dev, p) | 426 | #define sa1111_set_drvdata(d,p) dev_set_drvdata(&(d)->dev, p) |
@@ -446,6 +446,8 @@ struct sa1111_driver { | |||
446 | int sa1111_enable_device(struct sa1111_dev *); | 446 | int sa1111_enable_device(struct sa1111_dev *); |
447 | void sa1111_disable_device(struct sa1111_dev *); | 447 | void sa1111_disable_device(struct sa1111_dev *); |
448 | 448 | ||
449 | int sa1111_get_irq(struct sa1111_dev *, unsigned num); | ||
450 | |||
449 | unsigned int sa1111_pll_clock(struct sa1111_dev *); | 451 | unsigned int sa1111_pll_clock(struct sa1111_dev *); |
450 | 452 | ||
451 | #define SA1111_AUDIO_ACLINK 0 | 453 | #define SA1111_AUDIO_ACLINK 0 |
diff --git a/arch/arm/include/asm/pgtable-2level-hwdef.h b/arch/arm/include/asm/pgtable-2level-hwdef.h index d0131ee6f6af..3f82e9da7cec 100644 --- a/arch/arm/include/asm/pgtable-2level-hwdef.h +++ b/arch/arm/include/asm/pgtable-2level-hwdef.h | |||
@@ -47,6 +47,7 @@ | |||
47 | #define PMD_SECT_WB (PMD_SECT_CACHEABLE | PMD_SECT_BUFFERABLE) | 47 | #define PMD_SECT_WB (PMD_SECT_CACHEABLE | PMD_SECT_BUFFERABLE) |
48 | #define PMD_SECT_MINICACHE (PMD_SECT_TEX(1) | PMD_SECT_CACHEABLE) | 48 | #define PMD_SECT_MINICACHE (PMD_SECT_TEX(1) | PMD_SECT_CACHEABLE) |
49 | #define PMD_SECT_WBWA (PMD_SECT_TEX(1) | PMD_SECT_CACHEABLE | PMD_SECT_BUFFERABLE) | 49 | #define PMD_SECT_WBWA (PMD_SECT_TEX(1) | PMD_SECT_CACHEABLE | PMD_SECT_BUFFERABLE) |
50 | #define PMD_SECT_CACHE_MASK (PMD_SECT_TEX(1) | PMD_SECT_CACHEABLE | PMD_SECT_BUFFERABLE) | ||
50 | #define PMD_SECT_NONSHARED_DEV (PMD_SECT_TEX(2)) | 51 | #define PMD_SECT_NONSHARED_DEV (PMD_SECT_TEX(2)) |
51 | 52 | ||
52 | /* | 53 | /* |
diff --git a/arch/arm/include/asm/pgtable-3level-hwdef.h b/arch/arm/include/asm/pgtable-3level-hwdef.h index f8f1cff62065..4cd664abfcd3 100644 --- a/arch/arm/include/asm/pgtable-3level-hwdef.h +++ b/arch/arm/include/asm/pgtable-3level-hwdef.h | |||
@@ -62,6 +62,7 @@ | |||
62 | #define PMD_SECT_WT (_AT(pmdval_t, 2) << 2) /* normal inner write-through */ | 62 | #define PMD_SECT_WT (_AT(pmdval_t, 2) << 2) /* normal inner write-through */ |
63 | #define PMD_SECT_WB (_AT(pmdval_t, 3) << 2) /* normal inner write-back */ | 63 | #define PMD_SECT_WB (_AT(pmdval_t, 3) << 2) /* normal inner write-back */ |
64 | #define PMD_SECT_WBWA (_AT(pmdval_t, 7) << 2) /* normal inner write-alloc */ | 64 | #define PMD_SECT_WBWA (_AT(pmdval_t, 7) << 2) /* normal inner write-alloc */ |
65 | #define PMD_SECT_CACHE_MASK (_AT(pmdval_t, 7) << 2) | ||
65 | 66 | ||
66 | /* | 67 | /* |
67 | * + Level 3 descriptor (PTE) | 68 | * + Level 3 descriptor (PTE) |
diff --git a/arch/arm/include/asm/uaccess.h b/arch/arm/include/asm/uaccess.h index 62a6f65029e6..a93c0f99acf7 100644 --- a/arch/arm/include/asm/uaccess.h +++ b/arch/arm/include/asm/uaccess.h | |||
@@ -480,7 +480,10 @@ arm_copy_from_user(void *to, const void __user *from, unsigned long n); | |||
480 | static inline unsigned long __must_check | 480 | static inline unsigned long __must_check |
481 | __copy_from_user(void *to, const void __user *from, unsigned long n) | 481 | __copy_from_user(void *to, const void __user *from, unsigned long n) |
482 | { | 482 | { |
483 | unsigned int __ua_flags = uaccess_save_and_enable(); | 483 | unsigned int __ua_flags; |
484 | |||
485 | check_object_size(to, n, false); | ||
486 | __ua_flags = uaccess_save_and_enable(); | ||
484 | n = arm_copy_from_user(to, from, n); | 487 | n = arm_copy_from_user(to, from, n); |
485 | uaccess_restore(__ua_flags); | 488 | uaccess_restore(__ua_flags); |
486 | return n; | 489 | return n; |
@@ -495,11 +498,15 @@ static inline unsigned long __must_check | |||
495 | __copy_to_user(void __user *to, const void *from, unsigned long n) | 498 | __copy_to_user(void __user *to, const void *from, unsigned long n) |
496 | { | 499 | { |
497 | #ifndef CONFIG_UACCESS_WITH_MEMCPY | 500 | #ifndef CONFIG_UACCESS_WITH_MEMCPY |
498 | unsigned int __ua_flags = uaccess_save_and_enable(); | 501 | unsigned int __ua_flags; |
502 | |||
503 | check_object_size(from, n, true); | ||
504 | __ua_flags = uaccess_save_and_enable(); | ||
499 | n = arm_copy_to_user(to, from, n); | 505 | n = arm_copy_to_user(to, from, n); |
500 | uaccess_restore(__ua_flags); | 506 | uaccess_restore(__ua_flags); |
501 | return n; | 507 | return n; |
502 | #else | 508 | #else |
509 | check_object_size(from, n, true); | ||
503 | return arm_copy_to_user(to, from, n); | 510 | return arm_copy_to_user(to, from, n); |
504 | #endif | 511 | #endif |
505 | } | 512 | } |