Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
486513ff
Commit
486513ff
authored
Oct 31, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
18c204c8
ac7a19d6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
36 deletions
+68
-36
arch/sparc64/defconfig
arch/sparc64/defconfig
+35
-12
arch/sparc64/mm/init.c
arch/sparc64/mm/init.c
+1
-0
drivers/serial/sunsu.c
drivers/serial/sunsu.c
+8
-9
include/asm-sparc64/pci.h
include/asm-sparc64/pci.h
+5
-0
include/asm-sparc64/uaccess.h
include/asm-sparc64/uaccess.h
+19
-15
No files found.
arch/sparc64/defconfig
View file @
486513ff
#
#
# Automatically generated make config: don't edit
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.
9
# Linux kernel version: 2.6.
10-rc1
#
Wed Oct 20 15:56:43
2004
#
Sun Oct 31 13:19:19
2004
#
#
CONFIG_64BIT=y
CONFIG_64BIT=y
CONFIG_MMU=y
CONFIG_MMU=y
...
@@ -12,6 +12,7 @@ CONFIG_TIME_INTERPOLATION=y
...
@@ -12,6 +12,7 @@ CONFIG_TIME_INTERPOLATION=y
#
#
CONFIG_EXPERIMENTAL=y
CONFIG_EXPERIMENTAL=y
CONFIG_CLEAN_COMPILE=y
CONFIG_CLEAN_COMPILE=y
CONFIG_LOCK_KERNEL=y
#
#
# General setup
# General setup
...
@@ -33,12 +34,12 @@ CONFIG_KALLSYMS=y
...
@@ -33,12 +34,12 @@ CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_EXTRA_PASS is not set
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_FUTEX=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_EPOLL=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SHMEM=y
CONFIG_SHMEM=y
CONFIG_CC_ALIGN_FUNCTIONS=0
CONFIG_CC_ALIGN_LABELS=0
CONFIG_CC_ALIGN_LOOPS=0
CONFIG_CC_ALIGN_JUMPS=0
# CONFIG_TINY_SHMEM is not set
# CONFIG_TINY_SHMEM is not set
#
#
...
@@ -144,8 +145,10 @@ CONFIG_FB_CG6=y
...
@@ -144,8 +145,10 @@ CONFIG_FB_CG6=y
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY128 is not set
CONFIG_FB_ATY=y
CONFIG_FB_ATY=y
CONFIG_FB_ATY_CT=y
CONFIG_FB_ATY_CT=y
CONFIG_FB_ATY_GX=y
# CONFIG_FB_ATY_GENERIC_LCD is not set
# CONFIG_FB_ATY_XL_INIT is not set
# CONFIG_FB_ATY_XL_INIT is not set
CONFIG_FB_ATY_GX=y
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_KYRO is not set
...
@@ -234,6 +237,14 @@ CONFIG_CDROM_PKTCDVD=m
...
@@ -234,6 +237,14 @@ CONFIG_CDROM_PKTCDVD=m
CONFIG_CDROM_PKTCDVD_BUFFERS=8
CONFIG_CDROM_PKTCDVD_BUFFERS=8
CONFIG_CDROM_PKTCDVD_WCACHE=y
CONFIG_CDROM_PKTCDVD_WCACHE=y
#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
#
#
# ATA/ATAPI/MFM/RLL support
# ATA/ATAPI/MFM/RLL support
#
#
...
@@ -251,7 +262,6 @@ CONFIG_BLK_DEV_IDETAPE=m
...
@@ -251,7 +262,6 @@ CONFIG_BLK_DEV_IDETAPE=m
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set
# CONFIG_BLK_DEV_IDESCSI is not set
# CONFIG_IDE_TASK_IOCTL is not set
# CONFIG_IDE_TASK_IOCTL is not set
CONFIG_IDE_TASKFILE_IO=y
#
#
# IDE chipset support/bugfixes
# IDE chipset support/bugfixes
...
@@ -543,6 +553,7 @@ CONFIG_BRIDGE_NETFILTER=y
...
@@ -543,6 +553,7 @@ CONFIG_BRIDGE_NETFILTER=y
#
#
CONFIG_IP_NF_CONNTRACK=m
CONFIG_IP_NF_CONNTRACK=m
CONFIG_IP_NF_CT_ACCT=y
CONFIG_IP_NF_CT_ACCT=y
CONFIG_IP_NF_CONNTRACK_MARK=y
CONFIG_IP_NF_CT_PROTO_SCTP=m
CONFIG_IP_NF_CT_PROTO_SCTP=m
CONFIG_IP_NF_FTP=m
CONFIG_IP_NF_FTP=m
CONFIG_IP_NF_IRC=m
CONFIG_IP_NF_IRC=m
...
@@ -573,6 +584,8 @@ CONFIG_IP_NF_MATCH_ADDRTYPE=m
...
@@ -573,6 +584,8 @@ CONFIG_IP_NF_MATCH_ADDRTYPE=m
CONFIG_IP_NF_MATCH_REALM=m
CONFIG_IP_NF_MATCH_REALM=m
CONFIG_IP_NF_MATCH_SCTP=m
CONFIG_IP_NF_MATCH_SCTP=m
CONFIG_IP_NF_MATCH_COMMENT=m
CONFIG_IP_NF_MATCH_COMMENT=m
CONFIG_IP_NF_MATCH_CONNMARK=m
CONFIG_IP_NF_MATCH_HASHLIMIT=m
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=m
CONFIG_IP_NF_TARGET_REJECT=m
CONFIG_IP_NF_TARGET_LOG=m
CONFIG_IP_NF_TARGET_LOG=m
...
@@ -596,6 +609,8 @@ CONFIG_IP_NF_TARGET_ECN=m
...
@@ -596,6 +609,8 @@ CONFIG_IP_NF_TARGET_ECN=m
CONFIG_IP_NF_TARGET_DSCP=m
CONFIG_IP_NF_TARGET_DSCP=m
CONFIG_IP_NF_TARGET_MARK=m
CONFIG_IP_NF_TARGET_MARK=m
CONFIG_IP_NF_TARGET_CLASSIFY=m
CONFIG_IP_NF_TARGET_CLASSIFY=m
CONFIG_IP_NF_TARGET_CONNMARK=m
CONFIG_IP_NF_TARGET_CLUSTERIP=m
CONFIG_IP_NF_RAW=m
CONFIG_IP_NF_RAW=m
CONFIG_IP_NF_TARGET_NOTRACK=m
CONFIG_IP_NF_TARGET_NOTRACK=m
CONFIG_IP_NF_ARPTABLES=m
CONFIG_IP_NF_ARPTABLES=m
...
@@ -692,7 +707,6 @@ CONFIG_LAPB=m
...
@@ -692,7 +707,6 @@ CONFIG_LAPB=m
CONFIG_NET_DIVERT=y
CONFIG_NET_DIVERT=y
# CONFIG_ECONET is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_HW_FLOWCONTROL is not set
#
#
# QoS and/or fair queueing
# QoS and/or fair queueing
...
@@ -731,6 +745,7 @@ CONFIG_NET_ACT_POLICE=m
...
@@ -731,6 +745,7 @@ CONFIG_NET_ACT_POLICE=m
CONFIG_NET_ACT_GACT=m
CONFIG_NET_ACT_GACT=m
CONFIG_GACT_PROB=y
CONFIG_GACT_PROB=y
CONFIG_NET_ACT_MIRRED=m
CONFIG_NET_ACT_MIRRED=m
CONFIG_NET_ACT_PEDIT=m
#
#
# Network testing
# Network testing
...
@@ -892,7 +907,6 @@ CONFIG_SUNDANCE=m
...
@@ -892,7 +907,6 @@ CONFIG_SUNDANCE=m
CONFIG_SUNDANCE_MMIO=y
CONFIG_SUNDANCE_MMIO=y
CONFIG_VIA_RHINE=m
CONFIG_VIA_RHINE=m
# CONFIG_VIA_RHINE_MMIO is not set
# CONFIG_VIA_RHINE_MMIO is not set
CONFIG_VIA_VELOCITY=m
#
#
# Ethernet (1000 Mbit)
# Ethernet (1000 Mbit)
...
@@ -909,6 +923,7 @@ CONFIG_YELLOWFIN=m
...
@@ -909,6 +923,7 @@ CONFIG_YELLOWFIN=m
CONFIG_R8169=m
CONFIG_R8169=m
CONFIG_R8169_NAPI=y
CONFIG_R8169_NAPI=y
CONFIG_SK98LIN=m
CONFIG_SK98LIN=m
CONFIG_VIA_VELOCITY=m
CONFIG_TIGON3=m
CONFIG_TIGON3=m
#
#
...
@@ -1220,6 +1235,7 @@ CONFIG_MINIX_FS=m
...
@@ -1220,6 +1235,7 @@ CONFIG_MINIX_FS=m
CONFIG_ROMFS_FS=m
CONFIG_ROMFS_FS=m
# CONFIG_QUOTA is not set
# CONFIG_QUOTA is not set
CONFIG_QUOTACTL=y
CONFIG_QUOTACTL=y
CONFIG_DNOTIFY=y
CONFIG_AUTOFS_FS=m
CONFIG_AUTOFS_FS=m
CONFIG_AUTOFS4_FS=m
CONFIG_AUTOFS4_FS=m
...
@@ -1464,6 +1480,8 @@ CONFIG_DVB_BUDGET_PATCH=m
...
@@ -1464,6 +1480,8 @@ CONFIG_DVB_BUDGET_PATCH=m
# CONFIG_DVB_TTUSB_BUDGET is not set
# CONFIG_DVB_TTUSB_BUDGET is not set
CONFIG_DVB_TTUSB_DEC=m
CONFIG_DVB_TTUSB_DEC=m
CONFIG_DVB_DIBUSB=m
CONFIG_DVB_DIBUSB=m
CONFIG_DVB_CINERGYT2=m
# CONFIG_DVB_CINERGYT2_TUNING is not set
#
#
# Supported FlexCopII (B2C2) Adapters
# Supported FlexCopII (B2C2) Adapters
...
@@ -1530,6 +1548,7 @@ CONFIG_SND_AU8820=m
...
@@ -1530,6 +1548,7 @@ CONFIG_SND_AU8820=m
CONFIG_SND_AU8830=m
CONFIG_SND_AU8830=m
CONFIG_SND_AZT3328=m
CONFIG_SND_AZT3328=m
CONFIG_SND_BT87X=m
CONFIG_SND_BT87X=m
# CONFIG_SND_BT87X_OVERCLOCK is not set
CONFIG_SND_CS46XX=m
CONFIG_SND_CS46XX=m
# CONFIG_SND_CS46XX_NEW_DSP is not set
# CONFIG_SND_CS46XX_NEW_DSP is not set
CONFIG_SND_CS4281=m
CONFIG_SND_CS4281=m
...
@@ -1561,7 +1580,7 @@ CONFIG_SND_SONICVIBES=m
...
@@ -1561,7 +1580,7 @@ CONFIG_SND_SONICVIBES=m
CONFIG_SND_VX222=m
CONFIG_SND_VX222=m
#
#
#
ALSA
USB devices
# USB devices
#
#
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_AUDIO is not set
CONFIG_SND_USB_USX2Y=m
CONFIG_SND_USB_USX2Y=m
...
@@ -1585,6 +1604,8 @@ CONFIG_USB_DEVICEFS=y
...
@@ -1585,6 +1604,8 @@ CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_OTG is not set
# CONFIG_USB_OTG is not set
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
#
#
# USB Host Controller Drivers
# USB Host Controller Drivers
...
@@ -1619,7 +1640,7 @@ CONFIG_USB_STORAGE_SDDR55=y
...
@@ -1619,7 +1640,7 @@ CONFIG_USB_STORAGE_SDDR55=y
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
#
#
# USB
Human Interface Devices (HID)
# USB
Input Devices
#
#
CONFIG_USB_HID=y
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
CONFIG_USB_HIDINPUT=y
...
@@ -1743,6 +1764,7 @@ CONFIG_USB_LEGOTOWER=m
...
@@ -1743,6 +1764,7 @@ CONFIG_USB_LEGOTOWER=m
CONFIG_USB_LCD=m
CONFIG_USB_LCD=m
CONFIG_USB_LED=m
CONFIG_USB_LED=m
CONFIG_USB_CYTHERM=m
CONFIG_USB_CYTHERM=m
CONFIG_USB_PHIDGETKIT=m
CONFIG_USB_PHIDGETSERVO=m
CONFIG_USB_PHIDGETSERVO=m
CONFIG_USB_TEST=m
CONFIG_USB_TEST=m
...
@@ -1797,6 +1819,7 @@ CONFIG_SCHEDSTATS=y
...
@@ -1797,6 +1819,7 @@ CONFIG_SCHEDSTATS=y
# CONFIG_DEBUG_SLAB is not set
# CONFIG_DEBUG_SLAB is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_DEBUG_INFO is not set
# CONFIG_DEBUG_INFO is not set
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_STACK_USAGE is not set
...
...
arch/sparc64/mm/init.c
View file @
486513ff
...
@@ -1745,6 +1745,7 @@ void free_initmem (void)
...
@@ -1745,6 +1745,7 @@ void free_initmem (void)
page
=
(
addr
+
page
=
(
addr
+
((
unsigned
long
)
__va
(
kern_base
))
-
((
unsigned
long
)
__va
(
kern_base
))
-
((
unsigned
long
)
KERNBASE
));
((
unsigned
long
)
KERNBASE
));
memset
((
void
*
)
addr
,
0xcc
,
PAGE_SIZE
);
p
=
virt_to_page
(
page
);
p
=
virt_to_page
(
page
);
ClearPageReserved
(
p
);
ClearPageReserved
(
p
);
...
...
drivers/serial/sunsu.c
View file @
486513ff
...
@@ -95,7 +95,6 @@ struct uart_sunsu_port {
...
@@ -95,7 +95,6 @@ struct uart_sunsu_port {
enum
su_type
su_type
;
enum
su_type
su_type
;
unsigned
int
type_probed
;
/* XXX Stupid */
unsigned
int
type_probed
;
/* XXX Stupid */
int
port_node
;
int
port_node
;
unsigned
int
irq
;
#ifdef CONFIG_SERIO
#ifdef CONFIG_SERIO
struct
serio
*
serio
;
struct
serio
*
serio
;
...
@@ -684,14 +683,14 @@ static int sunsu_startup(struct uart_port *port)
...
@@ -684,14 +683,14 @@ static int sunsu_startup(struct uart_port *port)
}
}
if
(
up
->
su_type
!=
SU_PORT_PORT
)
{
if
(
up
->
su_type
!=
SU_PORT_PORT
)
{
retval
=
request_irq
(
up
->
irq
,
sunsu_kbd_ms_interrupt
,
retval
=
request_irq
(
up
->
port
.
irq
,
sunsu_kbd_ms_interrupt
,
SA_SHIRQ
,
su_typev
[
up
->
su_type
],
up
);
SA_SHIRQ
,
su_typev
[
up
->
su_type
],
up
);
}
else
{
}
else
{
retval
=
request_irq
(
up
->
irq
,
sunsu_serial_interrupt
,
retval
=
request_irq
(
up
->
port
.
irq
,
sunsu_serial_interrupt
,
SA_SHIRQ
,
su_typev
[
up
->
su_type
],
up
);
SA_SHIRQ
,
su_typev
[
up
->
su_type
],
up
);
}
}
if
(
retval
)
{
if
(
retval
)
{
printk
(
"su: Cannot register IRQ %d
\n
"
,
up
->
irq
);
printk
(
"su: Cannot register IRQ %d
\n
"
,
up
->
port
.
irq
);
return
retval
;
return
retval
;
}
}
...
@@ -779,7 +778,7 @@ static void sunsu_shutdown(struct uart_port *port)
...
@@ -779,7 +778,7 @@ static void sunsu_shutdown(struct uart_port *port)
*/
*/
(
void
)
serial_in
(
up
,
UART_RX
);
(
void
)
serial_in
(
up
,
UART_RX
);
free_irq
(
up
->
irq
,
up
);
free_irq
(
up
->
port
.
irq
,
up
);
}
}
static
void
static
void
...
@@ -1078,7 +1077,7 @@ static void sunsu_autoconfig(struct uart_sunsu_port *up)
...
@@ -1078,7 +1077,7 @@ static void sunsu_autoconfig(struct uart_sunsu_port *up)
* This is correct on both architectures.
* This is correct on both architectures.
*/
*/
up
->
port
.
mapbase
=
dev
->
resource
[
0
].
start
;
up
->
port
.
mapbase
=
dev
->
resource
[
0
].
start
;
up
->
irq
=
dev
->
irqs
[
0
];
up
->
port
.
irq
=
dev
->
irqs
[
0
];
goto
ebus_done
;
goto
ebus_done
;
}
}
}
}
...
@@ -1091,7 +1090,7 @@ static void sunsu_autoconfig(struct uart_sunsu_port *up)
...
@@ -1091,7 +1090,7 @@ static void sunsu_autoconfig(struct uart_sunsu_port *up)
/* Same on sparc64. Cool architecure... */
/* Same on sparc64. Cool architecure... */
up
->
port
.
membase
=
(
char
*
)
isa_dev
->
resource
.
start
;
up
->
port
.
membase
=
(
char
*
)
isa_dev
->
resource
.
start
;
up
->
port
.
mapbase
=
isa_dev
->
resource
.
start
;
up
->
port
.
mapbase
=
isa_dev
->
resource
.
start
;
up
->
irq
=
isa_dev
->
irq
;
up
->
port
.
irq
=
isa_dev
->
irq
;
goto
ebus_done
;
goto
ebus_done
;
}
}
}
}
...
@@ -1133,7 +1132,7 @@ static void sunsu_autoconfig(struct uart_sunsu_port *up)
...
@@ -1133,7 +1132,7 @@ static void sunsu_autoconfig(struct uart_sunsu_port *up)
/*
/*
* There is no intr property on MrCoffee, so hardwire it.
* There is no intr property on MrCoffee, so hardwire it.
*/
*/
up
->
irq
=
IRQ_4M
(
13
);
up
->
port
.
irq
=
IRQ_4M
(
13
);
#endif
#endif
ebus_done:
ebus_done:
...
@@ -1303,7 +1302,7 @@ static int __init sunsu_kbd_ms_init(struct uart_sunsu_port *up, int channel)
...
@@ -1303,7 +1302,7 @@ static int __init sunsu_kbd_ms_init(struct uart_sunsu_port *up, int channel)
printk
(
KERN_INFO
"su%d at 0x%p (irq = %s) is a %s
\n
"
,
printk
(
KERN_INFO
"su%d at 0x%p (irq = %s) is a %s
\n
"
,
channel
,
channel
,
up
->
port
.
membase
,
__irq_itoa
(
up
->
irq
),
up
->
port
.
membase
,
__irq_itoa
(
up
->
port
.
irq
),
sunsu_type
(
&
up
->
port
));
sunsu_type
(
&
up
->
port
));
#ifdef CONFIG_SERIO
#ifdef CONFIG_SERIO
...
...
include/asm-sparc64/pci.h
View file @
486513ff
...
@@ -251,6 +251,11 @@ static inline void pcibios_add_platform_entries(struct pci_dev *dev)
...
@@ -251,6 +251,11 @@ static inline void pcibios_add_platform_entries(struct pci_dev *dev)
{
{
}
}
static
inline
int
pci_get_legacy_ide_irq
(
struct
pci_dev
*
dev
,
int
channel
)
{
return
PCI_IRQ_NONE
;
}
#endif
/* __KERNEL__ */
#endif
/* __KERNEL__ */
#endif
/* __SPARC64_PCI_H */
#endif
/* __SPARC64_PCI_H */
include/asm-sparc64/uaccess.h
View file @
486513ff
...
@@ -253,12 +253,13 @@ __asm__ __volatile__( \
...
@@ -253,12 +253,13 @@ __asm__ __volatile__( \
extern
int
__get_user_bad
(
void
);
extern
int
__get_user_bad
(
void
);
extern
unsigned
long
___copy_from_user
(
void
*
to
,
const
void
__user
*
from
,
extern
unsigned
long
__must_check
___copy_from_user
(
void
*
to
,
const
void
__user
*
from
,
unsigned
long
size
);
unsigned
long
size
);
extern
unsigned
long
copy_from_user_fixup
(
void
*
to
,
const
void
__user
*
from
,
extern
unsigned
long
copy_from_user_fixup
(
void
*
to
,
const
void
__user
*
from
,
unsigned
long
size
);
unsigned
long
size
);
static
inline
unsigned
long
copy_from_user
(
void
*
to
,
const
void
__user
*
from
,
static
inline
unsigned
long
__must_check
unsigned
long
size
)
copy_from_user
(
void
*
to
,
const
void
__user
*
from
,
unsigned
long
size
)
{
{
unsigned
long
ret
=
___copy_from_user
(
to
,
from
,
size
);
unsigned
long
ret
=
___copy_from_user
(
to
,
from
,
size
);
...
@@ -268,12 +269,13 @@ static inline unsigned long copy_from_user(void *to, const void __user *from,
...
@@ -268,12 +269,13 @@ static inline unsigned long copy_from_user(void *to, const void __user *from,
}
}
#define __copy_from_user copy_from_user
#define __copy_from_user copy_from_user
extern
unsigned
long
___copy_to_user
(
void
__user
*
to
,
const
void
*
from
,
extern
unsigned
long
__must_check
___copy_to_user
(
void
__user
*
to
,
const
void
*
from
,
unsigned
long
size
);
unsigned
long
size
);
extern
unsigned
long
copy_to_user_fixup
(
void
__user
*
to
,
const
void
*
from
,
extern
unsigned
long
copy_to_user_fixup
(
void
__user
*
to
,
const
void
*
from
,
unsigned
long
size
);
unsigned
long
size
);
static
inline
unsigned
long
copy_to_user
(
void
__user
*
to
,
const
void
*
from
,
static
inline
unsigned
long
__must_check
unsigned
long
size
)
copy_to_user
(
void
__user
*
to
,
const
void
*
from
,
unsigned
long
size
)
{
{
unsigned
long
ret
=
___copy_to_user
(
to
,
from
,
size
);
unsigned
long
ret
=
___copy_to_user
(
to
,
from
,
size
);
...
@@ -283,12 +285,13 @@ static inline unsigned long copy_to_user(void __user *to, const void *from,
...
@@ -283,12 +285,13 @@ static inline unsigned long copy_to_user(void __user *to, const void *from,
}
}
#define __copy_to_user copy_to_user
#define __copy_to_user copy_to_user
extern
unsigned
long
___copy_in_user
(
void
__user
*
to
,
const
void
__user
*
from
,
extern
unsigned
long
__must_check
___copy_in_user
(
void
__user
*
to
,
const
void
__user
*
from
,
unsigned
long
size
);
unsigned
long
size
);
extern
unsigned
long
copy_in_user_fixup
(
void
__user
*
to
,
void
__user
*
from
,
extern
unsigned
long
copy_in_user_fixup
(
void
__user
*
to
,
void
__user
*
from
,
unsigned
long
size
);
unsigned
long
size
);
static
inline
unsigned
long
copy_in_user
(
void
__user
*
to
,
void
__user
*
from
,
static
inline
unsigned
long
__must_check
unsigned
long
size
)
copy_in_user
(
void
__user
*
to
,
void
__user
*
from
,
unsigned
long
size
)
{
{
unsigned
long
ret
=
___copy_in_user
(
to
,
from
,
size
);
unsigned
long
ret
=
___copy_in_user
(
to
,
from
,
size
);
...
@@ -298,9 +301,10 @@ static inline unsigned long copy_in_user(void __user *to, void __user *from,
...
@@ -298,9 +301,10 @@ static inline unsigned long copy_in_user(void __user *to, void __user *from,
}
}
#define __copy_in_user copy_in_user
#define __copy_in_user copy_in_user
extern
unsigned
long
__bzero_noasi
(
void
__user
*
,
unsigned
long
);
extern
unsigned
long
__
must_check
__
bzero_noasi
(
void
__user
*
,
unsigned
long
);
static
inline
unsigned
long
__clear_user
(
void
__user
*
addr
,
unsigned
long
size
)
static
inline
unsigned
long
__must_check
__clear_user
(
void
__user
*
addr
,
unsigned
long
size
)
{
{
return
__bzero_noasi
(
addr
,
size
);
return
__bzero_noasi
(
addr
,
size
);
...
@@ -308,7 +312,7 @@ static inline unsigned long __clear_user(void __user *addr, unsigned long size)
...
@@ -308,7 +312,7 @@ static inline unsigned long __clear_user(void __user *addr, unsigned long size)
#define clear_user __clear_user
#define clear_user __clear_user
extern
long
__strncpy_from_user
(
char
*
dest
,
const
char
__user
*
src
,
long
count
);
extern
long
__
must_check
__
strncpy_from_user
(
char
*
dest
,
const
char
__user
*
src
,
long
count
);
#define strncpy_from_user __strncpy_from_user
#define strncpy_from_user __strncpy_from_user
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment