diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-04 15:33:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-04 15:33:31 -0400 |
commit | 489f50be56185fa3492690caedc099d507bf7c98 (patch) | |
tree | 43428289f2c8ba8d520960e66bb84230d00286e2 /arch/ia64 | |
parent | 5167d09ffad5b16b574d35ce3047ed34caf1e837 (diff) | |
parent | 6b15075c2c3662dbe1ac41404c6a2013b24efa1d (diff) |
Merge tag 'please-pull-misc-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux
Pull ia64 cleanups from Tony Luck:
"Miscellaneous ia64 specific cleanup"
* tag 'please-pull-misc-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux:
[IA64] sn: Do not needlessly convert between pointers and integers
[IA64] sn: Fix zeroing of PDAs
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/sn/kernel/bte.c | 4 | ||||
-rw-r--r-- | arch/ia64/sn/kernel/setup.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/ia64/sn/kernel/bte.c b/arch/ia64/sn/kernel/bte.c index cad775a1a157..b2eb48490754 100644 --- a/arch/ia64/sn/kernel/bte.c +++ b/arch/ia64/sn/kernel/bte.c | |||
@@ -114,7 +114,7 @@ bte_result_t bte_copy(u64 src, u64 dest, u64 len, u64 mode, void *notification) | |||
114 | if (mode & BTE_USE_ANY) { | 114 | if (mode & BTE_USE_ANY) { |
115 | nasid_to_try[1] = my_nasid; | 115 | nasid_to_try[1] = my_nasid; |
116 | } else { | 116 | } else { |
117 | nasid_to_try[1] = (int)NULL; | 117 | nasid_to_try[1] = 0; |
118 | } | 118 | } |
119 | } else { | 119 | } else { |
120 | /* try local then remote */ | 120 | /* try local then remote */ |
@@ -122,7 +122,7 @@ bte_result_t bte_copy(u64 src, u64 dest, u64 len, u64 mode, void *notification) | |||
122 | if (mode & BTE_USE_ANY) { | 122 | if (mode & BTE_USE_ANY) { |
123 | nasid_to_try[1] = NASID_GET(dest); | 123 | nasid_to_try[1] = NASID_GET(dest); |
124 | } else { | 124 | } else { |
125 | nasid_to_try[1] = (int)NULL; | 125 | nasid_to_try[1] = 0; |
126 | } | 126 | } |
127 | } | 127 | } |
128 | 128 | ||
diff --git a/arch/ia64/sn/kernel/setup.c b/arch/ia64/sn/kernel/setup.c index 53b01b8e2f19..36182c84363c 100644 --- a/arch/ia64/sn/kernel/setup.c +++ b/arch/ia64/sn/kernel/setup.c | |||
@@ -579,7 +579,7 @@ void sn_cpu_init(void) | |||
579 | (sn_prom_type == 1) ? "real" : "fake"); | 579 | (sn_prom_type == 1) ? "real" : "fake"); |
580 | } | 580 | } |
581 | 581 | ||
582 | memset(pda, 0, sizeof(pda)); | 582 | memset(pda, 0, sizeof(*pda)); |
583 | if (ia64_sn_get_sn_info(0, &sn_hub_info->shub2, | 583 | if (ia64_sn_get_sn_info(0, &sn_hub_info->shub2, |
584 | &sn_hub_info->nasid_bitmask, | 584 | &sn_hub_info->nasid_bitmask, |
585 | &sn_hub_info->nasid_shift, | 585 | &sn_hub_info->nasid_shift, |