Skip to content

Commit 7dd894c

Browse files
committed
Merge tag 'sparc-for-6.11-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/alarsson/linux-sparc
Pull sparc updates from Andreas Larsson: - Add MODULE_DESCRIPTION for a number of sbus drivers - Fix linking error for large sparc32 kernels - Fix incorrect functions signature and prototype warnings for sparc64 * tag 'sparc-for-6.11-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/alarsson/linux-sparc: sparc64: Fix prototype warnings in hibernate.c sparc64: Fix prototype warning for prom_get_mmu_ihandle sparc64: Fix incorrect function signature and add prototype for prom_cif_init sparc64: Fix prototype warnings for floppy_64.h sparc32: Fix truncated relocation errors when linking large kernels sbus: add missing MODULE_DESCRIPTION() macros
2 parents 1c7d0c3 + a3da153 commit 7dd894c

File tree

12 files changed

+26
-13
lines changed

12 files changed

+26
-13
lines changed

arch/sparc/include/asm/floppy_64.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ static void sun_fd_enable_dma(void)
197197
pdma_areasize = pdma_size;
198198
}
199199

200-
irqreturn_t sparc_floppy_irq(int irq, void *dev_cookie)
200+
static irqreturn_t sparc_floppy_irq(int irq, void *dev_cookie)
201201
{
202202
if (likely(doing_pdma)) {
203203
void __iomem *stat = (void __iomem *) fdc_status;
@@ -434,7 +434,8 @@ static int sun_pci_fd_eject(int drive)
434434
return -EINVAL;
435435
}
436436

437-
void sun_pci_fd_dma_callback(struct ebus_dma_info *p, int event, void *cookie)
437+
static void sun_pci_fd_dma_callback(struct ebus_dma_info *p, int event,
438+
void *cookie)
438439
{
439440
floppy_interrupt(0, NULL);
440441
}

arch/sparc/include/asm/oplib_64.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ void prom_sun4v_guest_soft_state(void);
247247
int prom_ihandle2path(int handle, char *buffer, int bufsize);
248248

249249
/* Client interface level routines. */
250+
void prom_cif_init(void *cif_handler);
250251
void p1275_cmd_direct(unsigned long *);
251252

252253
#endif /* !(__SPARC64_OPLIB_H) */

arch/sparc/include/asm/uaccess_32.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ __asm__ __volatile__( \
9595
".section .fixup,#alloc,#execinstr\n\t" \
9696
".align 4\n" \
9797
"3:\n\t" \
98-
"b 2b\n\t" \
98+
"sethi %%hi(2b), %0\n\t" \
99+
"jmpl %0 + %%lo(2b), %%g0\n\t" \
99100
" mov %3, %0\n\t" \
100101
".previous\n\n\t" \
101102
".section __ex_table,#alloc\n\t" \
@@ -163,8 +164,9 @@ __asm__ __volatile__( \
163164
".section .fixup,#alloc,#execinstr\n\t" \
164165
".align 4\n" \
165166
"3:\n\t" \
167+
"sethi %%hi(2b), %0\n\t" \
166168
"clr %1\n\t" \
167-
"b 2b\n\t" \
169+
"jmpl %0 + %%lo(2b), %%g0\n\t" \
168170
" mov %3, %0\n\n\t" \
169171
".previous\n\t" \
170172
".section __ex_table,#alloc\n\t" \

arch/sparc/kernel/head_32.S

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,12 @@ current_pc:
118118
mov %o7, %g3
119119

120120
tst %o0
121-
be no_sun4u_here
121+
bne 2f
122122
mov %g4, %o7 /* Previous %o7. */
123-
123+
sethi %hi(no_sun4u_here), %l1
124+
jmpl %l1 + %lo(no_sun4u_here), %g0
125+
nop
126+
2:
124127
mov %o0, %l0 ! stash away romvec
125128
mov %o0, %g7 ! put it here too
126129
mov %o1, %l1 ! stash away debug_vec too
@@ -195,7 +198,8 @@ halt_notsup:
195198
sub %o0, %l6, %o0
196199
call %o1
197200
nop
198-
ba halt_me
201+
sethi %hi(halt_me), %o0
202+
jmpl %o0 + %lo(halt_me), %g0
199203
nop
200204

201205
not_a_sun4:
@@ -431,8 +435,11 @@ leon_init:
431435
#ifdef CONFIG_SMP
432436
ldub [%g2 + %lo(boot_cpu_id)], %g1
433437
cmp %g1, 0xff ! unset means first CPU
434-
bne leon_smp_cpu_startup ! continue only with master
438+
be 1f
439+
sethi %hi(leon_smp_cpu_startup), %g1
440+
jmpl %g1 + %lo(leon_smp_cpu_startup), %g0
435441
nop
442+
1:
436443
#endif
437444
/* Get CPU-ID from most significant 4-bit of ASR17 */
438445
rd %asr17, %g1

arch/sparc/power/hibernate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Copyright (C) 2013 Kirill V Tkhai ([email protected])
66
*/
77

8+
#include <linux/suspend.h>
89
#include <linux/mm.h>
910

1011
#include <asm/hibernate.h>

arch/sparc/prom/init_64.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ phandle prom_chosen_node;
2626
* routines in the prom library.
2727
* It gets passed the pointer to the PROM vector.
2828
*/
29-
30-
extern void prom_cif_init(void *);
31-
3229
void __init prom_init(void *cif_handler)
3330
{
3431
phandle node;

arch/sparc/prom/misc_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ unsigned char prom_get_idprom(char *idbuf, int num_bytes)
162162
return 0xff;
163163
}
164164

165-
int prom_get_mmu_ihandle(void)
165+
static int prom_get_mmu_ihandle(void)
166166
{
167167
phandle node;
168168
int ret;

arch/sparc/prom/p1275.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void p1275_cmd_direct(unsigned long *args)
4949
local_irq_restore(flags);
5050
}
5151

52-
void prom_cif_init(void *cif_handler, void *cif_stack)
52+
void prom_cif_init(void *cif_handler)
5353
{
5454
p1275buf.prom_cif_handler = (void (*)(long *))cif_handler;
5555
}

drivers/sbus/char/bbc_i2c.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,4 +418,5 @@ static struct platform_driver bbc_i2c_driver = {
418418

419419
module_platform_driver(bbc_i2c_driver);
420420

421+
MODULE_DESCRIPTION("UltraSPARC-III bootbus i2c controller driver");
421422
MODULE_LICENSE("GPL");

drivers/sbus/char/envctrl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,4 +1130,5 @@ static struct platform_driver envctrl_driver = {
11301130

11311131
module_platform_driver(envctrl_driver);
11321132

1133+
MODULE_DESCRIPTION("SUN environment monitoring device driver");
11331134
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)