Skip to content

Commit 26bbcd6

Browse files
committed
Merge tag 'sh-for-v6.9-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux
Pull sh updates from John Paul Adrian Glaubitz: "Two patches by Ricardo B. Marliere make two instances of struct bus_type in the interrupt controller driver and the DMA sysfs interface const since the driver core in the kernel is now able to handle that. A third patch by Artur Rojek enforces internal linkage for the function setup_hd64461() in order to fix the build of hp6xx_defconfig with -Werror=missing-prototypes" * tag 'sh-for-v6.9-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux: sh: hd64461: Make setup_hd64461() static sh: intc: Make intc_subsys const sh: dma-sysfs: Make dma_subsys const
2 parents cfce216 + 1e21acb commit 26bbcd6

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

arch/sh/cchips/hd6446x/hd64461.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static void hd64461_irq_demux(struct irq_desc *desc)
7272
}
7373
}
7474

75-
int __init setup_hd64461(void)
75+
static int __init setup_hd64461(void)
7676
{
7777
int irq_base, i;
7878

arch/sh/drivers/dma/dma-sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <linux/string.h>
1616
#include <asm/dma.h>
1717

18-
static struct bus_type dma_subsys = {
18+
static const struct bus_type dma_subsys = {
1919
.name = "dma",
2020
.dev_name = "dma",
2121
};

drivers/sh/intc/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ struct syscore_ops intc_syscore_ops = {
455455
.resume = intc_resume,
456456
};
457457

458-
struct bus_type intc_subsys = {
458+
const struct bus_type intc_subsys = {
459459
.name = "intc",
460460
.dev_name = "intc",
461461
};

drivers/sh/intc/internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void _intc_enable(struct irq_data *data, unsigned long handle);
160160
/* core.c */
161161
extern struct list_head intc_list;
162162
extern raw_spinlock_t intc_big_lock;
163-
extern struct bus_type intc_subsys;
163+
extern const struct bus_type intc_subsys;
164164

165165
unsigned int intc_get_dfl_prio_level(void);
166166
unsigned int intc_get_prio_level(unsigned int irq);

0 commit comments

Comments
 (0)