提交 162f138f 编写于 作者: W wolfgang huang 提交者: Zheng Zengkai

mISDN: change function names to avoid conflicts

stable inclusion
from stable-v5.10.91
commit 10b9ccd0674df02992a7e02b877fbd2eed4b1e14
bugzilla: 186187 https://gitee.com/openeuler/kernel/issues/I4SI2C

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=10b9ccd0674df02992a7e02b877fbd2eed4b1e14

--------------------------------

[ Upstream commit 8b5fdfc5 ]

As we build for mips, we meet following error. l1_init error with
multiple definition. Some architecture devices usually marked with
l1, l2, lxx as the start-up phase. so we change the mISDN function
names, align with Isdnl2_xxx.

mips-linux-gnu-ld: drivers/isdn/mISDN/layer1.o: in function `l1_init':
(.text+0x890): multiple definition of `l1_init'; \
arch/mips/kernel/bmips_5xxx_init.o:(.text+0xf0): first defined here
make[1]: *** [home/mips/kernel-build/linux/Makefile:1161: vmlinux] Error 1
Signed-off-by: Nwolfgang huang <huangjinhui@kylinos.cn>
Reported-by: Nk2ci <kernel-bot@kylinos.cn>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 bb386a17
...@@ -381,7 +381,7 @@ mISDNInit(void) ...@@ -381,7 +381,7 @@ mISDNInit(void)
err = mISDN_inittimer(&debug); err = mISDN_inittimer(&debug);
if (err) if (err)
goto error2; goto error2;
err = l1_init(&debug); err = Isdnl1_Init(&debug);
if (err) if (err)
goto error3; goto error3;
err = Isdnl2_Init(&debug); err = Isdnl2_Init(&debug);
...@@ -395,7 +395,7 @@ mISDNInit(void) ...@@ -395,7 +395,7 @@ mISDNInit(void)
error5: error5:
Isdnl2_cleanup(); Isdnl2_cleanup();
error4: error4:
l1_cleanup(); Isdnl1_cleanup();
error3: error3:
mISDN_timer_cleanup(); mISDN_timer_cleanup();
error2: error2:
...@@ -408,7 +408,7 @@ static void mISDN_cleanup(void) ...@@ -408,7 +408,7 @@ static void mISDN_cleanup(void)
{ {
misdn_sock_cleanup(); misdn_sock_cleanup();
Isdnl2_cleanup(); Isdnl2_cleanup();
l1_cleanup(); Isdnl1_cleanup();
mISDN_timer_cleanup(); mISDN_timer_cleanup();
class_unregister(&mISDN_class); class_unregister(&mISDN_class);
......
...@@ -60,8 +60,8 @@ struct Bprotocol *get_Bprotocol4id(u_int); ...@@ -60,8 +60,8 @@ struct Bprotocol *get_Bprotocol4id(u_int);
extern int mISDN_inittimer(u_int *); extern int mISDN_inittimer(u_int *);
extern void mISDN_timer_cleanup(void); extern void mISDN_timer_cleanup(void);
extern int l1_init(u_int *); extern int Isdnl1_Init(u_int *);
extern void l1_cleanup(void); extern void Isdnl1_cleanup(void);
extern int Isdnl2_Init(u_int *); extern int Isdnl2_Init(u_int *);
extern void Isdnl2_cleanup(void); extern void Isdnl2_cleanup(void);
......
...@@ -398,7 +398,7 @@ create_l1(struct dchannel *dch, dchannel_l1callback *dcb) { ...@@ -398,7 +398,7 @@ create_l1(struct dchannel *dch, dchannel_l1callback *dcb) {
EXPORT_SYMBOL(create_l1); EXPORT_SYMBOL(create_l1);
int int
l1_init(u_int *deb) Isdnl1_Init(u_int *deb)
{ {
debug = deb; debug = deb;
l1fsm_s.state_count = L1S_STATE_COUNT; l1fsm_s.state_count = L1S_STATE_COUNT;
...@@ -409,7 +409,7 @@ l1_init(u_int *deb) ...@@ -409,7 +409,7 @@ l1_init(u_int *deb)
} }
void void
l1_cleanup(void) Isdnl1_cleanup(void)
{ {
mISDN_FsmFree(&l1fsm_s); mISDN_FsmFree(&l1fsm_s);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册