aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-05-20 15:44:07 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-05-20 15:44:07 -0400
commit6fd5a36a46c0caf288f3acd90d608ffefa17f234 (patch)
tree14b815741e2c944545a62f1aa7d0a2fd4f760c2c
parente5e03ad9e0f04cb3f478b914a3bf9c8f77ee9e94 (diff)
parent8a922814ccfed70d35a725f47c0bf12b50fd223c (diff)
Merge branch 'parisc-4.17-5' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc fixlets from Helge Deller: "Three small section mismatch fixes, one of them was found by 0-day test infrastructure" * 'parisc-4.17-5' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Move ccio_cujo20_fixup() into init section parisc: Move setup_profiling_timer() out of init section parisc: Move find_pa_parent_type() out of init section
-rw-r--r--arch/parisc/kernel/drivers.c2
-rw-r--r--arch/parisc/kernel/smp.c3
-rw-r--r--drivers/parisc/ccio-dma.c2
3 files changed, 3 insertions, 4 deletions
diff --git a/arch/parisc/kernel/drivers.c b/arch/parisc/kernel/drivers.c
index ee5a78a151a6..e0e1c9775c32 100644
--- a/arch/parisc/kernel/drivers.c
+++ b/arch/parisc/kernel/drivers.c
@@ -268,7 +268,7 @@ static struct parisc_device *find_device_by_addr(unsigned long hpa)
268 * Walks up the device tree looking for a device of the specified type. 268 * Walks up the device tree looking for a device of the specified type.
269 * If it finds it, it returns it. If not, it returns NULL. 269 * If it finds it, it returns it. If not, it returns NULL.
270 */ 270 */
271const struct parisc_device * __init 271const struct parisc_device *
272find_pa_parent_type(const struct parisc_device *padev, int type) 272find_pa_parent_type(const struct parisc_device *padev, int type)
273{ 273{
274 const struct device *dev = &padev->dev; 274 const struct device *dev = &padev->dev;
diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c
index 4065b5e48c9d..5e26dbede5fc 100644
--- a/arch/parisc/kernel/smp.c
+++ b/arch/parisc/kernel/smp.c
@@ -423,8 +423,7 @@ int __cpu_up(unsigned int cpu, struct task_struct *tidle)
423} 423}
424 424
425#ifdef CONFIG_PROC_FS 425#ifdef CONFIG_PROC_FS
426int __init 426int setup_profiling_timer(unsigned int multiplier)
427setup_profiling_timer(unsigned int multiplier)
428{ 427{
429 return -EINVAL; 428 return -EINVAL;
430} 429}
diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c
index 126cf19e869b..297599fcbc32 100644
--- a/drivers/parisc/ccio-dma.c
+++ b/drivers/parisc/ccio-dma.c
@@ -1195,7 +1195,7 @@ void * ccio_get_iommu(const struct parisc_device *dev)
1195 * to/from certain pages. To avoid this happening, we mark these pages 1195 * to/from certain pages. To avoid this happening, we mark these pages
1196 * as `used', and ensure that nothing will try to allocate from them. 1196 * as `used', and ensure that nothing will try to allocate from them.
1197 */ 1197 */
1198void ccio_cujo20_fixup(struct parisc_device *cujo, u32 iovp) 1198void __init ccio_cujo20_fixup(struct parisc_device *cujo, u32 iovp)
1199{ 1199{
1200 unsigned int idx; 1200 unsigned int idx;
1201 struct parisc_device *dev = parisc_parent(cujo); 1201 struct parisc_device *dev = parisc_parent(cujo);