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
4a69c79b
Commit
4a69c79b
authored
Feb 06, 2003
by
Vojtech Pavlik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86-64: Minor fixes to make the kernel compile and remove warnings.
parent
aea51d64
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
44 additions
and
17 deletions
+44
-17
arch/x86_64/kernel/apic.c
arch/x86_64/kernel/apic.c
+1
-1
arch/x86_64/kernel/time.c
arch/x86_64/kernel/time.c
+4
-0
drivers/block/floppy.c
drivers/block/floppy.c
+7
-7
drivers/i2c/i2c-proc.c
drivers/i2c/i2c-proc.c
+2
-2
drivers/ide/pci/amd74xx.c
drivers/ide/pci/amd74xx.c
+1
-1
drivers/usb/input/pid.c
drivers/usb/input/pid.c
+2
-2
drivers/usb/media/usbvideo.c
drivers/usb/media/usbvideo.c
+2
-2
drivers/usb/media/vicam.c
drivers/usb/media/vicam.c
+1
-1
drivers/video/vesafb.c
drivers/video/vesafb.c
+8
-0
fs/xfs/linux/xfs_aops.c
fs/xfs/linux/xfs_aops.c
+1
-1
include/asm-x86_64/compat.h
include/asm-x86_64/compat.h
+7
-0
include/asm-x86_64/dma-mapping.h
include/asm-x86_64/dma-mapping.h
+6
-0
include/asm-x86_64/proto.h
include/asm-x86_64/proto.h
+2
-0
No files found.
arch/x86_64/kernel/apic.c
View file @
4a69c79b
...
@@ -895,7 +895,7 @@ int setup_profiling_timer(unsigned int multiplier)
...
@@ -895,7 +895,7 @@ int setup_profiling_timer(unsigned int multiplier)
* value into /proc/profile.
* value into /proc/profile.
*/
*/
inline
void
smp_local_timer_interrupt
(
struct
pt_regs
*
regs
)
void
smp_local_timer_interrupt
(
struct
pt_regs
*
regs
)
{
{
int
cpu
=
smp_processor_id
();
int
cpu
=
smp_processor_id
();
...
...
arch/x86_64/kernel/time.c
View file @
4a69c79b
...
@@ -30,6 +30,10 @@ u64 jiffies_64;
...
@@ -30,6 +30,10 @@ u64 jiffies_64;
spinlock_t
rtc_lock
=
SPIN_LOCK_UNLOCKED
;
spinlock_t
rtc_lock
=
SPIN_LOCK_UNLOCKED
;
extern
int
using_apic_timer
;
extern
void
smp_local_timer_interrupt
(
struct
pt_regs
*
regs
);
unsigned
int
cpu_khz
;
/* TSC clocks / usec, not used here */
unsigned
int
cpu_khz
;
/* TSC clocks / usec, not used here */
unsigned
long
hpet_period
;
/* fsecs / HPET clock */
unsigned
long
hpet_period
;
/* fsecs / HPET clock */
unsigned
long
hpet_tick
;
/* HPET clocks / interrupt */
unsigned
long
hpet_tick
;
/* HPET clocks / interrupt */
...
...
drivers/block/floppy.c
View file @
4a69c79b
...
@@ -2298,7 +2298,7 @@ static inline void end_request(struct request *req, int uptodate)
...
@@ -2298,7 +2298,7 @@ static inline void end_request(struct request *req, int uptodate)
if
(
end_that_request_first
(
req
,
uptodate
,
current_count_sectors
))
if
(
end_that_request_first
(
req
,
uptodate
,
current_count_sectors
))
return
;
return
;
add_disk_randomness
(
req
->
rq_disk
);
add_disk_randomness
(
req
->
rq_disk
);
floppy_off
((
int
)
req
->
rq_disk
->
private_data
);
floppy_off
((
long
)
req
->
rq_disk
->
private_data
);
blkdev_dequeue_request
(
req
);
blkdev_dequeue_request
(
req
);
end_that_request_last
(
req
);
end_that_request_last
(
req
);
...
@@ -2631,7 +2631,7 @@ static int make_raw_rw_request(void)
...
@@ -2631,7 +2631,7 @@ static int make_raw_rw_request(void)
return
0
;
return
0
;
}
}
set_fdc
((
int
)
current_req
->
rq_disk
->
private_data
);
set_fdc
((
long
)
current_req
->
rq_disk
->
private_data
);
raw_cmd
=
&
default_raw_cmd
;
raw_cmd
=
&
default_raw_cmd
;
raw_cmd
->
flags
=
FD_RAW_SPIN
|
FD_RAW_NEED_DISK
|
FD_RAW_NEED_DISK
|
raw_cmd
->
flags
=
FD_RAW_SPIN
|
FD_RAW_NEED_DISK
|
FD_RAW_NEED_DISK
|
...
@@ -2923,7 +2923,7 @@ static void redo_fd_request(void)
...
@@ -2923,7 +2923,7 @@ static void redo_fd_request(void)
}
}
current_req
=
req
;
current_req
=
req
;
}
}
drive
=
(
int
)
current_req
->
rq_disk
->
private_data
;
drive
=
(
long
)
current_req
->
rq_disk
->
private_data
;
set_fdc
(
drive
);
set_fdc
(
drive
);
reschedule_timeout
(
current_reqD
,
"redo fd request"
,
0
);
reschedule_timeout
(
current_reqD
,
"redo fd request"
,
0
);
...
@@ -3302,7 +3302,7 @@ static int raw_cmd_ioctl(int cmd, void *param)
...
@@ -3302,7 +3302,7 @@ static int raw_cmd_ioctl(int cmd, void *param)
static
int
invalidate_drive
(
struct
block_device
*
bdev
)
static
int
invalidate_drive
(
struct
block_device
*
bdev
)
{
{
/* invalidate the buffer track to force a reread */
/* invalidate the buffer track to force a reread */
set_bit
((
int
)
bdev
->
bd_disk
->
private_data
,
&
fake_change
);
set_bit
((
long
)
bdev
->
bd_disk
->
private_data
,
&
fake_change
);
process_fd_request
();
process_fd_request
();
check_disk_change
(
bdev
);
check_disk_change
(
bdev
);
return
0
;
return
0
;
...
@@ -3797,7 +3797,7 @@ static int floppy_open(struct inode * inode, struct file * filp)
...
@@ -3797,7 +3797,7 @@ static int floppy_open(struct inode * inode, struct file * filp)
*/
*/
static
int
check_floppy_change
(
struct
gendisk
*
disk
)
static
int
check_floppy_change
(
struct
gendisk
*
disk
)
{
{
int
drive
=
(
int
)
disk
->
private_data
;
int
drive
=
(
long
)
disk
->
private_data
;
if
(
UTESTF
(
FD_DISK_CHANGED
)
||
UTESTF
(
FD_VERIFY
))
if
(
UTESTF
(
FD_DISK_CHANGED
)
||
UTESTF
(
FD_VERIFY
))
return
1
;
return
1
;
...
@@ -3900,7 +3900,7 @@ static int floppy_read_block_0(struct gendisk *disk)
...
@@ -3900,7 +3900,7 @@ static int floppy_read_block_0(struct gendisk *disk)
* geometry formats */
* geometry formats */
static
int
floppy_revalidate
(
struct
gendisk
*
disk
)
static
int
floppy_revalidate
(
struct
gendisk
*
disk
)
{
{
int
drive
=
(
int
)
disk
->
private_data
;
int
drive
=
(
long
)
disk
->
private_data
;
#define NO_GEOM (!current_type[drive] && !ITYPE(UDRS->fd_device))
#define NO_GEOM (!current_type[drive] && !ITYPE(UDRS->fd_device))
int
cf
;
int
cf
;
int
res
=
0
;
int
res
=
0
;
...
@@ -4358,7 +4358,7 @@ int __init floppy_init(void)
...
@@ -4358,7 +4358,7 @@ int __init floppy_init(void)
if
(
fdc_state
[
FDC
(
drive
)].
version
==
FDC_NONE
)
if
(
fdc_state
[
FDC
(
drive
)].
version
==
FDC_NONE
)
continue
;
continue
;
/* to be cleaned up... */
/* to be cleaned up... */
disks
[
drive
]
->
private_data
=
(
void
*
)
drive
;
disks
[
drive
]
->
private_data
=
(
void
*
)
(
long
)
drive
;
disks
[
drive
]
->
queue
=
&
floppy_queue
;
disks
[
drive
]
->
queue
=
&
floppy_queue
;
add_disk
(
disks
[
drive
]);
add_disk
(
disks
[
drive
]);
}
}
...
...
drivers/i2c/i2c-proc.c
View file @
4a69c79b
...
@@ -39,7 +39,7 @@ static int i2c_create_name(char **name, const char *prefix,
...
@@ -39,7 +39,7 @@ static int i2c_create_name(char **name, const char *prefix,
struct
i2c_adapter
*
adapter
,
int
addr
);
struct
i2c_adapter
*
adapter
,
int
addr
);
static
int
i2c_parse_reals
(
int
*
nrels
,
void
*
buffer
,
int
bufsize
,
static
int
i2c_parse_reals
(
int
*
nrels
,
void
*
buffer
,
int
bufsize
,
long
*
results
,
int
magnitude
);
long
*
results
,
int
magnitude
);
static
int
i2c_write_reals
(
int
nrels
,
void
*
buffer
,
in
t
*
bufsize
,
static
int
i2c_write_reals
(
int
nrels
,
void
*
buffer
,
size_
t
*
bufsize
,
long
*
results
,
int
magnitude
);
long
*
results
,
int
magnitude
);
static
int
i2c_proc_chips
(
ctl_table
*
ctl
,
int
write
,
static
int
i2c_proc_chips
(
ctl_table
*
ctl
,
int
write
,
struct
file
*
filp
,
void
*
buffer
,
struct
file
*
filp
,
void
*
buffer
,
...
@@ -514,7 +514,7 @@ int i2c_parse_reals(int *nrels, void *buffer, int bufsize,
...
@@ -514,7 +514,7 @@ int i2c_parse_reals(int *nrels, void *buffer, int bufsize,
return
0
;
return
0
;
}
}
int
i2c_write_reals
(
int
nrels
,
void
*
buffer
,
in
t
*
bufsize
,
int
i2c_write_reals
(
int
nrels
,
void
*
buffer
,
size_
t
*
bufsize
,
long
*
results
,
int
magnitude
)
long
*
results
,
int
magnitude
)
{
{
#define BUFLEN 20
#define BUFLEN 20
...
...
drivers/ide/pci/amd74xx.c
View file @
4a69c79b
...
@@ -82,7 +82,7 @@ static char *amd_dma[] = { "MWDMA16", "UDMA33", "UDMA66", "UDMA100" };
...
@@ -82,7 +82,7 @@ static char *amd_dma[] = { "MWDMA16", "UDMA33", "UDMA66", "UDMA100" };
#include <linux/stat.h>
#include <linux/stat.h>
#include <linux/proc_fs.h>
#include <linux/proc_fs.h>
static
int
amd_base
;
static
long
amd_base
;
static
struct
pci_dev
*
bmide_dev
;
static
struct
pci_dev
*
bmide_dev
;
extern
int
(
*
amd74xx_display_info
)(
char
*
,
char
**
,
off_t
,
int
);
/* ide-proc.c */
extern
int
(
*
amd74xx_display_info
)(
char
*
,
char
**
,
off_t
,
int
);
/* ide-proc.c */
...
...
drivers/usb/input/pid.c
View file @
4a69c79b
...
@@ -176,7 +176,7 @@ static int hid_pid_upload_effect(struct input_dev *dev,
...
@@ -176,7 +176,7 @@ static int hid_pid_upload_effect(struct input_dev *dev,
struct
hid_ff_pid
*
pid_private
=
(
struct
hid_ff_pid
*
)(
dev
->
private
);
struct
hid_ff_pid
*
pid_private
=
(
struct
hid_ff_pid
*
)(
dev
->
private
);
int
ret
;
int
ret
;
int
is_update
;
int
is_update
;
int
flags
=
0
;
unsigned
long
flags
=
0
;
dev_dbg
(
&
pid_private
->
hid
->
dev
->
dev
,
"upload effect called: effect_type=%x
\n
"
,
effect
->
type
);
dev_dbg
(
&
pid_private
->
hid
->
dev
->
dev
,
"upload effect called: effect_type=%x
\n
"
,
effect
->
type
);
/* Check this effect type is supported by this device */
/* Check this effect type is supported by this device */
...
@@ -192,7 +192,7 @@ static int hid_pid_upload_effect(struct input_dev *dev,
...
@@ -192,7 +192,7 @@ static int hid_pid_upload_effect(struct input_dev *dev,
int
id
=
0
;
int
id
=
0
;
// Spinlock so we don`t get a race condition when choosing IDs
// Spinlock so we don`t get a race condition when choosing IDs
spin_lock_irqsave
(
&
pid_private
->
lock
,
flags
);
spin_lock_irqsave
(
&
pid_private
->
lock
,
flags
);
while
(
id
<
FF_EFFECTS_MAX
)
while
(
id
<
FF_EFFECTS_MAX
)
if
(
!
test_and_set_bit
(
FF_PID_FLAGS_USED
,
&
pid_private
->
effects
[
id
++
].
flags
))
if
(
!
test_and_set_bit
(
FF_PID_FLAGS_USED
,
&
pid_private
->
effects
[
id
++
].
flags
))
...
...
drivers/usb/media/usbvideo.c
View file @
4a69c79b
...
@@ -61,7 +61,7 @@ static int usbvideo_v4l_ioctl(struct inode *inode, struct file *file,
...
@@ -61,7 +61,7 @@ static int usbvideo_v4l_ioctl(struct inode *inode, struct file *file,
unsigned
int
cmd
,
unsigned
long
arg
);
unsigned
int
cmd
,
unsigned
long
arg
);
static
int
usbvideo_v4l_mmap
(
struct
file
*
file
,
struct
vm_area_struct
*
vma
);
static
int
usbvideo_v4l_mmap
(
struct
file
*
file
,
struct
vm_area_struct
*
vma
);
static
int
usbvideo_v4l_open
(
struct
inode
*
inode
,
struct
file
*
file
);
static
int
usbvideo_v4l_open
(
struct
inode
*
inode
,
struct
file
*
file
);
static
in
t
usbvideo_v4l_read
(
struct
file
*
file
,
char
*
buf
,
static
ssize_
t
usbvideo_v4l_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
ppos
);
size_t
count
,
loff_t
*
ppos
);
static
int
usbvideo_v4l_close
(
struct
inode
*
inode
,
struct
file
*
file
);
static
int
usbvideo_v4l_close
(
struct
inode
*
inode
,
struct
file
*
file
);
...
@@ -1641,7 +1641,7 @@ static int usbvideo_v4l_ioctl(struct inode *inode, struct file *file,
...
@@ -1641,7 +1641,7 @@ static int usbvideo_v4l_ioctl(struct inode *inode, struct file *file,
* 20-Oct-2000 Created.
* 20-Oct-2000 Created.
* 01-Nov-2000 Added mutex (uvd->lock).
* 01-Nov-2000 Added mutex (uvd->lock).
*/
*/
static
in
t
usbvideo_v4l_read
(
struct
file
*
file
,
char
*
buf
,
static
ssize_
t
usbvideo_v4l_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
struct
uvd
*
uvd
=
file
->
private_data
;
struct
uvd
*
uvd
=
file
->
private_data
;
...
...
drivers/usb/media/vicam.c
View file @
4a69c79b
...
@@ -988,7 +988,7 @@ read_frame(struct vicam_camera *cam, int framenum)
...
@@ -988,7 +988,7 @@ read_frame(struct vicam_camera *cam, int framenum)
up
(
&
cam
->
cam_lock
);
up
(
&
cam
->
cam_lock
);
}
}
static
in
t
static
ssize_
t
vicam_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
ppos
)
vicam_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
ppos
)
{
{
struct
vicam_camera
*
cam
=
file
->
private_data
;
struct
vicam_camera
*
cam
=
file
->
private_data
;
...
...
drivers/video/vesafb.c
View file @
4a69c79b
...
@@ -62,6 +62,7 @@ static void (*pmi_pal)(void);
...
@@ -62,6 +62,7 @@ static void (*pmi_pal)(void);
static
int
vesafb_pan_display
(
struct
fb_var_screeninfo
*
var
,
static
int
vesafb_pan_display
(
struct
fb_var_screeninfo
*
var
,
struct
fb_info
*
info
)
struct
fb_info
*
info
)
{
{
#ifdef __i386__
int
offset
;
int
offset
;
if
(
!
ypan
)
if
(
!
ypan
)
...
@@ -83,11 +84,13 @@ static int vesafb_pan_display(struct fb_var_screeninfo *var,
...
@@ -83,11 +84,13 @@ static int vesafb_pan_display(struct fb_var_screeninfo *var,
"c"
(
offset
),
/* ECX */
"c"
(
offset
),
/* ECX */
"d"
(
offset
>>
16
),
/* EDX */
"d"
(
offset
>>
16
),
/* EDX */
"D"
(
&
pmi_start
));
/* EDI */
"D"
(
&
pmi_start
));
/* EDI */
#endif
return
0
;
return
0
;
}
}
static
void
vesa_setpalette
(
int
regno
,
unsigned
red
,
unsigned
green
,
unsigned
blue
)
static
void
vesa_setpalette
(
int
regno
,
unsigned
red
,
unsigned
green
,
unsigned
blue
)
{
{
#ifdef __i386__
struct
{
u_char
blue
,
green
,
red
,
pad
;
}
entry
;
struct
{
u_char
blue
,
green
,
red
,
pad
;
}
entry
;
if
(
pmi_setpal
)
{
if
(
pmi_setpal
)
{
...
@@ -111,6 +114,7 @@ static void vesa_setpalette(int regno, unsigned red, unsigned green, unsigned bl
...
@@ -111,6 +114,7 @@ static void vesa_setpalette(int regno, unsigned red, unsigned green, unsigned bl
outb_p
(
green
>>
10
,
dac_val
);
outb_p
(
green
>>
10
,
dac_val
);
outb_p
(
blue
>>
10
,
dac_val
);
outb_p
(
blue
>>
10
,
dac_val
);
}
}
#endif
}
}
static
int
vesafb_setcolreg
(
unsigned
regno
,
unsigned
red
,
unsigned
green
,
static
int
vesafb_setcolreg
(
unsigned
regno
,
unsigned
red
,
unsigned
green
,
...
@@ -225,6 +229,10 @@ int __init vesafb_init(void)
...
@@ -225,6 +229,10 @@ int __init vesafb_init(void)
vesafb_fix
.
visual
=
(
vesafb_defined
.
bits_per_pixel
==
8
)
?
vesafb_fix
.
visual
=
(
vesafb_defined
.
bits_per_pixel
==
8
)
?
FB_VISUAL_PSEUDOCOLOR
:
FB_VISUAL_TRUECOLOR
;
FB_VISUAL_PSEUDOCOLOR
:
FB_VISUAL_TRUECOLOR
;
#ifndef __i386__
screen_info
.
vesapm_seg
=
0
;
#endif
if
(
!
request_mem_region
(
vesafb_fix
.
smem_start
,
vesafb_fix
.
smem_len
,
"vesafb"
))
{
if
(
!
request_mem_region
(
vesafb_fix
.
smem_start
,
vesafb_fix
.
smem_len
,
"vesafb"
))
{
printk
(
KERN_WARNING
printk
(
KERN_WARNING
"vesafb: abort, cannot reserve video memory at 0x%lx
\n
"
,
"vesafb: abort, cannot reserve video memory at 0x%lx
\n
"
,
...
...
fs/xfs/linux/xfs_aops.c
View file @
4a69c79b
...
@@ -50,7 +50,7 @@ map_blocks(
...
@@ -50,7 +50,7 @@ map_blocks(
if
(((
flags
&
(
PBF_DIRECT
|
PBF_SYNC
))
==
PBF_DIRECT
)
&&
if
(((
flags
&
(
PBF_DIRECT
|
PBF_SYNC
))
==
PBF_DIRECT
)
&&
(
offset
>=
inode
->
i_size
))
(
offset
>=
inode
->
i_size
))
count
=
max
(
count
,
XFS_WRITE_IO_LOG
);
count
=
max
_t
(
ssize_t
,
count
,
XFS_WRITE_IO_LOG
);
retry:
retry:
VOP_BMAP
(
vp
,
offset
,
count
,
flags
,
pbmapp
,
&
nmaps
,
error
);
VOP_BMAP
(
vp
,
offset
,
count
,
flags
,
pbmapp
,
&
nmaps
,
error
);
if
(
flags
&
PBF_WRITE
)
{
if
(
flags
&
PBF_WRITE
)
{
...
...
include/asm-x86_64/compat.h
View file @
4a69c79b
...
@@ -81,4 +81,11 @@ struct compat_statfs {
...
@@ -81,4 +81,11 @@ struct compat_statfs {
int
f_spare
[
6
];
int
f_spare
[
6
];
};
};
typedef
u32
compat_old_sigset_t
;
/* at least 32 bits */
#define _COMPAT_NSIG 64
#define _COMPAT_NSIG_BPW 32
typedef
u32
compat_sigset_word
;
#endif
/* _ASM_X86_64_COMPAT_H */
#endif
/* _ASM_X86_64_COMPAT_H */
include/asm-x86_64/dma-mapping.h
0 → 100644
View file @
4a69c79b
#ifndef _ASM_X8664_DMA_MAPPING_H
#define _ASM_X8664_DMA_MAPPING_H
#include <asm-generic/dma-mapping.h>
#endif
include/asm-x86_64/proto.h
View file @
4a69c79b
#ifndef _ASM_X8664_PROTO_H
#ifndef _ASM_X8664_PROTO_H
#define _ASM_X8664_PROTO_H 1
#define _ASM_X8664_PROTO_H 1
#include <asm/ldt.h>
/* misc architecture specific prototypes */
/* misc architecture specific prototypes */
struct
cpuinfo_x86
;
struct
cpuinfo_x86
;
...
...
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