Skip to content

Commit a07c796

Browse files
congwangdavem330
authored andcommitted
include/linux/sdla.h: remove the prototype of sdla()
`make headers_check` complains that linux-2.6/usr/include/linux/sdla.h:116: userspace cannot reference function or variable defined in the kernel this is due to that there is no such a kernel function, void sdla(void *cfg_info, char *dev, struct frad_conf *conf, int quiet); I don't know why we have it in a kernel header, so remove it. Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 0b8f627 commit a07c796

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

include/linux/sdla.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,7 @@ struct sdla_dlci_conf {
112112
short Tb_max;
113113
};
114114

115-
#ifndef __KERNEL__
116-
117-
void sdla(void *cfg_info, char *dev, struct frad_conf *conf, int quiet);
118-
119-
#else
115+
#ifdef __KERNEL__
120116

121117
/* important Z80 window addresses */
122118
#define SDLA_CONTROL_WND 0xE000

0 commit comments

Comments
 (0)