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
nexedi
linux
Commits
5afffee2
Commit
5afffee2
authored
Oct 17, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
de6639d2
6823c0fe
Changes
31
Show whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
506 additions
and
538 deletions
+506
-538
MAINTAINERS
MAINTAINERS
+3
-3
arch/i386/config.in
arch/i386/config.in
+1
-0
arch/i386/kernel/bluesmoke.c
arch/i386/kernel/bluesmoke.c
+0
-1
arch/i386/kernel/cpu/amd.c
arch/i386/kernel/cpu/amd.c
+15
-0
arch/i386/kernel/irq.c
arch/i386/kernel/irq.c
+14
-0
arch/i386/kernel/microcode.c
arch/i386/kernel/microcode.c
+2
-2
arch/i386/mm/init.c
arch/i386/mm/init.c
+3
-3
arch/i386/pci/i386.c
arch/i386/pci/i386.c
+1
-1
arch/ia64/ia32/sys_ia32.c
arch/ia64/ia32/sys_ia32.c
+3
-0
arch/ppc64/kernel/sys_ppc32.c
arch/ppc64/kernel/sys_ppc32.c
+3
-0
arch/s390x/kernel/linux32.c
arch/s390x/kernel/linux32.c
+3
-0
arch/sparc64/kernel/sys_sparc32.c
arch/sparc64/kernel/sys_sparc32.c
+3
-0
arch/x86_64/kernel/mtrr.c
arch/x86_64/kernel/mtrr.c
+360
-359
drivers/block/paride/epat.c
drivers/block/paride/epat.c
+0
-1
drivers/block/rd.c
drivers/block/rd.c
+1
-1
drivers/cdrom/gscd.c
drivers/cdrom/gscd.c
+1
-1
drivers/cdrom/sbpcd.c
drivers/cdrom/sbpcd.c
+20
-8
drivers/char/Config.help
drivers/char/Config.help
+0
-87
drivers/char/drm/sis_ds.c
drivers/char/drm/sis_ds.c
+12
-10
drivers/char/ftape/lowlevel/ftape-rw.h
drivers/char/ftape/lowlevel/ftape-rw.h
+1
-1
drivers/char/ftape/zftape/zftape-vtbl.h
drivers/char/ftape/zftape/zftape-vtbl.h
+8
-8
drivers/char/isicom.c
drivers/char/isicom.c
+5
-5
drivers/char/specialix.c
drivers/char/specialix.c
+24
-24
drivers/message/fusion/linux_compat.h
drivers/message/fusion/linux_compat.h
+2
-2
drivers/nubus/nubus.c
drivers/nubus/nubus.c
+3
-3
drivers/scsi/NCR53C9x.c
drivers/scsi/NCR53C9x.c
+1
-1
drivers/scsi/esp.c
drivers/scsi/esp.c
+1
-1
drivers/usb/class/audio.c
drivers/usb/class/audio.c
+5
-5
sound/oss/ite8172.c
sound/oss/ite8172.c
+6
-6
sound/oss/sound_config.h
sound/oss/sound_config.h
+2
-2
sound/pci/ens1370.c
sound/pci/ens1370.c
+3
-3
No files found.
MAINTAINERS
View file @
5afffee2
List of maintainers and how to submit kernel changes
Please try to follow the guidelines below. This will make things
...
...
@@ -261,7 +262,6 @@ BFS FILE SYSTEM
P: Tigran A. Aivazian
M: tigran@veritas.com
L: linux-kernel@vger.kernel.org
W: http://www.ocston.org/~tigran/patches/bfs
S: Maintained
BLOCK LAYER
...
...
@@ -654,8 +654,8 @@ W: http://www.nyx.net/~arobinso
S: Maintained
HFS FILESYSTEM
P:
Adrian Sun
M:
asun@cobaltnet.com
P:
Oliver Neukum
M:
oliver@neukum.org
L: linux-kernel@vger.kernel.org
S: Maintained
...
...
arch/i386/config.in
View file @
5afffee2
...
...
@@ -453,6 +453,7 @@ fi
bool 'Kernel debugging' CONFIG_DEBUG_KERNEL
if [ "$CONFIG_DEBUG_KERNEL" != "n" ]; then
bool ' Check for stack overflows' CONFIG_DEBUG_STACKOVERFLOW
bool ' Debug memory allocations' CONFIG_DEBUG_SLAB
bool ' Memory mapped I/O debugging' CONFIG_DEBUG_IOVIRT
bool ' Magic SysRq key' CONFIG_MAGIC_SYSRQ
...
...
arch/i386/kernel/bluesmoke.c
View file @
5afffee2
...
...
@@ -300,7 +300,6 @@ static void mce_checkregs (void *info)
static
void
do_mce_timer
(
void
*
data
)
{
mce_checkregs
(
NULL
);
smp_call_function
(
mce_checkregs
,
NULL
,
1
,
1
);
}
...
...
arch/i386/kernel/cpu/amd.c
View file @
5afffee2
...
...
@@ -42,6 +42,21 @@ static void __init init_amd(struct cpuinfo_x86 *c)
switch
(
c
->
x86
)
{
case
4
:
/*
* General Systems BIOSen alias the cpu frequency registers
* of the Elan at 0x000df000. Unfortuantly, one of the Linux
* drivers subsequently pokes it, and changes the CPU speed.
* Workaround : Remove the unneeded alias.
*/
#define CBAR (0xfffc)
/* Configuration Base Address (32-bit) */
#define CBAR_ENB (0x80000000)
#define CBAR_KEY (0X000000CB)
if
(
c
->
x86_model
==
9
||
c
->
x86_model
==
10
)
{
if
(
inl
(
CBAR
)
&
CBAR_ENB
)
outl
(
0
|
CBAR_KEY
,
CBAR
);
}
case
5
:
if
(
c
->
x86_model
<
6
)
{
...
...
arch/i386/kernel/irq.c
View file @
5afffee2
...
...
@@ -328,8 +328,22 @@ asmlinkage unsigned int do_IRQ(struct pt_regs regs)
irq_desc_t
*
desc
=
irq_desc
+
irq
;
struct
irqaction
*
action
;
unsigned
int
status
;
long
esp
;
irq_enter
();
#ifdef CONFIG_DEBUG_STACKOVERFLOW
/* Debugging check for stack overflow: is there less than 1KB free? */
__asm__
__volatile__
(
"andl %%esp,%0"
:
"=r"
(
esp
)
:
"0"
(
8191
));
if
(
unlikely
(
esp
<
(
sizeof
(
struct
task_struct
)
+
1024
)))
{
extern
void
show_stack
(
unsigned
long
*
);
printk
(
"do_IRQ: stack overflow: %ld
\n
"
,
esp
-
sizeof
(
struct
task_struct
));
__asm__
__volatile__
(
"movl %%esp,%0"
:
"=r"
(
esp
));
show_stack
((
void
*
)
esp
);
}
#endif
kstat
.
irqs
[
cpu
][
irq
]
++
;
spin_lock
(
&
desc
->
lock
);
desc
->
handler
->
ack
(
irq
);
...
...
arch/i386/kernel/microcode.c
View file @
5afffee2
...
...
@@ -260,7 +260,7 @@ static void do_update_one(void *unused)
if
(
microcode
[
i
].
rev
<
rev
)
{
spin_unlock_irqrestore
(
&
microcode_update_lock
,
flags
);
printk
(
KERN_
ERR
printk
(
KERN_
INFO
"microcode: CPU%d not 'upgrading' to earlier revision"
" %d (current=%d)
\n
"
,
cpu_num
,
microcode
[
i
].
rev
,
rev
);
return
;
...
...
@@ -268,7 +268,7 @@ static void do_update_one(void *unused)
/* notify the caller of success on this cpu */
req
->
err
=
0
;
spin_unlock_irqrestore
(
&
microcode_update_lock
,
flags
);
printk
(
KERN_
ERR
printk
(
KERN_
INFO
"microcode: CPU%d already at revision"
" %d (current=%d)
\n
"
,
cpu_num
,
microcode
[
i
].
rev
,
rev
);
return
;
...
...
arch/i386/mm/init.c
View file @
5afffee2
...
...
@@ -482,7 +482,7 @@ void __init mem_init(void)
datasize
=
(
unsigned
long
)
&
_edata
-
(
unsigned
long
)
&
_etext
;
initsize
=
(
unsigned
long
)
&
__init_end
-
(
unsigned
long
)
&
__init_begin
;
printk
(
"Memory: %luk/%luk available (%dk kernel code, %dk reserved, %dk data, %dk init, %ldk highmem)
\n
"
,
printk
(
KERN_INFO
"Memory: %luk/%luk available (%dk kernel code, %dk reserved, %dk data, %dk init, %ldk highmem)
\n
"
,
(
unsigned
long
)
nr_free_pages
()
<<
(
PAGE_SHIFT
-
10
),
num_physpages
<<
(
PAGE_SHIFT
-
10
),
codesize
>>
10
,
...
...
@@ -584,14 +584,14 @@ void free_initmem(void)
free_page
(
addr
);
totalram_pages
++
;
}
printk
(
"Freeing unused kernel memory: %dk freed
\n
"
,
(
&
__init_end
-
&
__init_begin
)
>>
10
);
printk
(
KERN_INFO
"Freeing unused kernel memory: %dk freed
\n
"
,
(
&
__init_end
-
&
__init_begin
)
>>
10
);
}
#ifdef CONFIG_BLK_DEV_INITRD
void
free_initrd_mem
(
unsigned
long
start
,
unsigned
long
end
)
{
if
(
start
<
end
)
printk
(
"Freeing initrd memory: %ldk freed
\n
"
,
(
end
-
start
)
>>
10
);
printk
(
KERN_INFO
"Freeing initrd memory: %ldk freed
\n
"
,
(
end
-
start
)
>>
10
);
for
(;
start
<
end
;
start
+=
PAGE_SIZE
)
{
ClearPageReserved
(
virt_to_page
(
start
));
set_page_count
(
virt_to_page
(
start
),
1
);
...
...
arch/i386/pci/i386.c
View file @
5afffee2
...
...
@@ -291,7 +291,7 @@ void pcibios_set_master(struct pci_dev *dev)
lat
=
pcibios_max_latency
;
else
return
;
printk
(
"PCI: Setting latency timer of device %s to %d
\n
"
,
dev
->
slot_name
,
lat
);
printk
(
KERN_DEBUG
"PCI: Setting latency timer of device %s to %d
\n
"
,
dev
->
slot_name
,
lat
);
pci_write_config_byte
(
dev
,
PCI_LATENCY_TIMER
,
lat
);
}
...
...
arch/ia64/ia32/sys_ia32.c
View file @
5afffee2
...
...
@@ -3763,12 +3763,15 @@ do_smb_super_data_conv(void *raw_data)
struct
smb_mount_data
*
s
=
(
struct
smb_mount_data
*
)
raw_data
;
struct
smb_mount_data32
*
s32
=
(
struct
smb_mount_data32
*
)
raw_data
;
if
(
s32
->
version
!=
SMB_MOUNT_OLDVERSION
)
goto
out
;
s
->
version
=
s32
->
version
;
s
->
mounted_uid
=
s32
->
mounted_uid
;
s
->
uid
=
s32
->
uid
;
s
->
gid
=
s32
->
gid
;
s
->
file_mode
=
s32
->
file_mode
;
s
->
dir_mode
=
s32
->
dir_mode
;
out:
return
raw_data
;
}
...
...
arch/ppc64/kernel/sys_ppc32.c
View file @
5afffee2
...
...
@@ -333,12 +333,15 @@ static void *do_smb_super_data_conv(void *raw_data)
struct
smb_mount_data
*
s
=
(
struct
smb_mount_data
*
)
raw_data
;
struct
smb_mount_data32
*
s32
=
(
struct
smb_mount_data32
*
)
raw_data
;
if
(
s32
->
version
!=
SMB_MOUNT_OLDVERSION
)
goto
out
;
s
->
version
=
s32
->
version
;
s
->
mounted_uid
=
s32
->
mounted_uid
;
s
->
uid
=
s32
->
uid
;
s
->
gid
=
s32
->
gid
;
s
->
file_mode
=
s32
->
file_mode
;
s
->
dir_mode
=
s32
->
dir_mode
;
out:
return
raw_data
;
}
...
...
arch/s390x/kernel/linux32.c
View file @
5afffee2
...
...
@@ -1563,12 +1563,15 @@ static void *do_smb_super_data_conv(void *raw_data)
struct
smb_mount_data
*
s
=
(
struct
smb_mount_data
*
)
raw_data
;
struct
smb_mount_data32
*
s32
=
(
struct
smb_mount_data32
*
)
raw_data
;
if
(
s32
->
version
!=
SMB_MOUNT_OLDVERSION
)
goto
out
;
s
->
version
=
s32
->
version
;
s
->
mounted_uid
=
low2highuid
(
s32
->
mounted_uid
);
s
->
uid
=
low2highuid
(
s32
->
uid
);
s
->
gid
=
low2highgid
(
s32
->
gid
);
s
->
file_mode
=
s32
->
file_mode
;
s
->
dir_mode
=
s32
->
dir_mode
;
out:
return
raw_data
;
}
...
...
arch/sparc64/kernel/sys_sparc32.c
View file @
5afffee2
...
...
@@ -1582,6 +1582,8 @@ static void *do_smb_super_data_conv(void *raw_data)
struct
smb_mount_data
news
,
*
s
=
&
news
;
struct
smb_mount_data32
*
s32
=
(
struct
smb_mount_data32
*
)
raw_data
;
if
(
s32
->
version
!=
SMB_MOUNT_OLDVERSION
)
goto
out
;
s
->
version
=
s32
->
version
;
s
->
mounted_uid
=
low2highuid
(
s32
->
mounted_uid
);
s
->
uid
=
low2highuid
(
s32
->
uid
);
...
...
@@ -1589,6 +1591,7 @@ static void *do_smb_super_data_conv(void *raw_data)
s
->
file_mode
=
s32
->
file_mode
;
s
->
dir_mode
=
s32
->
dir_mode
;
memcpy
(
raw_data
,
s
,
sizeof
(
struct
smb_mount_data
));
out:
return
raw_data
;
}
...
...
arch/x86_64/kernel/mtrr.c
View file @
5afffee2
...
...
@@ -647,7 +647,8 @@ int mtrr_add_page (u64 base, u32 size, unsigned int type, char increment)
if
(
base
&
(
size_or_mask
>>
PAGE_SHIFT
))
{
printk
(
KERN_WARNING
"mtrr: base(%lx) exceeds the MTRR width(%lx)
\n
"
,
base
,
(
size_or_mask
>>
PAGE_SHIFT
));
(
unsigned
long
)
base
,
(
unsigned
long
)
(
size_or_mask
>>
PAGE_SHIFT
));
return
-
EINVAL
;
}
...
...
drivers/block/paride/epat.c
View file @
5afffee2
...
...
@@ -304,7 +304,6 @@ static void epat_log_adapter( PIA *pi, char * scratch, int verbose )
static
void
epat_init_proto
(
PIA
*
pi
)
{
MOD_INC_USE_COUNT
;
printk
(
"epat_init_proto"
);
}
static
void
epat_release_proto
(
PIA
*
pi
)
...
...
drivers/block/rd.c
View file @
5afffee2
...
...
@@ -90,7 +90,7 @@ static struct block_device *rd_bdev[NUM_RAMDISKS];/* Protected device data */
*/
int
rd_size
=
CONFIG_BLK_DEV_RAM_SIZE
;
/* Size of the RAM disks */
/*
* It would be very desi
de
rable to have a soft-blocksize (that in the case
* It would be very desirable to have a soft-blocksize (that in the case
* of the ramdisk driver is also the hardblocksize ;) of PAGE_SIZE because
* doing that we'll achieve a far better MM footprint. Using a rd_blocksize of
* BLOCK_SIZE in the worst case we'll make PAGE_SIZE/BLOCK_SIZE buffer-pages
...
...
drivers/cdrom/gscd.c
View file @
5afffee2
...
...
@@ -268,7 +268,7 @@ static void __do_gscd_request(unsigned long dummy)
goto
out
;
if
(
req
->
cmd
!=
READ
)
{
printk
(
"GSCD: bad cmd %
p
\n
"
,
req
->
cmd
);
printk
(
"GSCD: bad cmd %
d
\n
"
,
req
->
cmd
);
end_request
(
req
,
0
);
goto
repeat
;
}
...
...
drivers/cdrom/sbpcd.c
View file @
5afffee2
...
...
@@ -354,6 +354,13 @@
* Marcin Dalecki
*/
/*
* Add bio/kdev_t changes for 2.5.x required to make it work again.
* Still room for improvement in the request handling here if anyone
* actually cares. Bring your own chainsaw. Paul G. 02/2002
*/
#include <linux/module.h>
#include <linux/version.h>
...
...
@@ -463,6 +470,8 @@ MODULE_PARM(max_drives, "i");
#define NUM_PROBE (sizeof(sbpcd) / sizeof(int))
static
spinlock_t
sbpcd_lock
=
SPIN_LOCK_UNLOCKED
;
/*==========================================================================*/
#define INLINE inline
...
...
@@ -4856,21 +4865,19 @@ static void do_sbpcd_request(request_queue_t * q)
printk
(
" do_sbpcd_request[%di](%p:%ld+%ld), Pid:%d, Time:%li
\n
"
,
xnr
,
req
,
req
->
sector
,
req
->
nr_sectors
,
current
->
pid
,
jiffies
);
#endif
if
(
blk_queue_empty
(
q
))
return
;
req
=
elv_next_request
(
q
);
/* take out our request so no other */
blkdev_dequeue_request
(
req
);
/* task can fuck it up GTL */
if
(
req
->
sector
==
-
1
)
end_request
(
req
,
0
);
spin_unlock_irq
(
q
->
queue_lock
);
down
(
&
ioctl_read_sem
);
if
(
r
eq
->
cmd
!=
READ
)
if
(
r
q_data_dir
(
CURRENT
)
!=
READ
)
{
msg
(
DBG_INF
,
"bad cmd %d
\n
"
,
req
->
cmd
);
msg
(
DBG_INF
,
"bad cmd %d
\n
"
,
req
->
cmd
[
0
]
);
goto
err_done
;
}
p
=
req
->
rq_disk
->
private_data
;
...
...
@@ -5775,6 +5782,12 @@ int __init sbpcd_init(void)
if
(
i
>=
0
)
p
->
CD_changed
=
1
;
}
if
(
!
request_region
(
CDo_command
,
4
,
major_name
))
{
printk
(
KERN_WARNING
"sbpcd: Unable to request region 0x%x
\n
"
,
CDo_command
);
return
-
EIO
;
}
/*
* Turn on the CD audio channels.
* The addresses are obtained from SOUND_BASE (see sbpcd.h).
...
...
@@ -5795,9 +5808,8 @@ int __init sbpcd_init(void)
}
blk_init_queue
(
&
sbpcd_queue
,
do_sbpcd_request
,
&
sbpcd_lock
);
request_region
(
CDo_command
,
4
,
major_name
);
devfs_handle
=
devfs_mk_dir
(
NULL
,
"sbp"
,
NULL
);
for
(
j
=
0
;
j
<
NR_SBPCD
;
j
++
)
{
struct
cdrom_device_info
*
sbpcd_infop
;
...
...
@@ -5908,6 +5920,7 @@ void sbpcd_exit(void)
msg
(
DBG_INF
,
"%s module released.
\n
"
,
major_name
);
}
module_init
(
__sbpcd_init
)
/*HACK!*/
;
module_exit
(
sbpcd_exit
);
...
...
@@ -5922,8 +5935,7 @@ static int sbpcd_media_changed(struct cdrom_device_info *cdi, int disc_nr)
{
p
->
CD_changed
=
0
;
msg
(
DBG_CHK
,
"medium changed (drive %s)
\n
"
,
cdi
->
name
);
/* BUG! Should invalidate buffers! --AJK */
/* Why should it do the above at all?! --mdcki */
invalidate_buffers
(
full_dev
);
current_drive
->
diskstate_flags
&=
~
toc_bit
;
current_drive
->
diskstate_flags
&=
~
cd_size_bit
;
#if SAFE_MIXED
...
...
drivers/char/Config.help
View file @
5afffee2
...
...
@@ -40,93 +40,6 @@ CONFIG_MWAVE
The module will be called mwave.o. If you want to compile it as
a module, say M here and read Documentation/modules.txt.
CONFIG_AGP
AGP (Accelerated Graphics Port) is a bus system mainly used to
connect graphics cards to the rest of the system.
If you have an AGP system and you say Y here, it will be possible to
use the AGP features of your 3D rendering video card. This code acts
as a sort of "AGP driver" for the motherboard's chipset.
If you need more texture memory than you can get with the AGP GART
(theoretically up to 256 MB, but in practice usually 64 or 128 MB
due to kernel allocation issues), you could use PCI accesses
and have up to a couple gigs of texture space.
Note that this is the only means to have XFree4/GLX use
write-combining with MTRR support on the AGP bus. Without it, OpenGL
direct rendering will be a lot slower but still faster than PIO.
You should say Y here if you use XFree86 3.3.6 or 4.x and want to
use GLX or DRI. If unsure, say N.
This driver is available as a module. If you want to compile it as
a module, say M here and read <file:Documentation/modules.txt>. The
module will be called agpgart.o.
CONFIG_AGP_INTEL
This option gives you AGP support for the GLX component of the
XFree86 4.x on Intel 440LX/BX/GX, 815, 820, 830, 840, 845, 850 and 860 chipsets.
You should say Y here if you use XFree86 3.3.6 or 4.x and want to
use GLX or DRI. If unsure, say N.
CONFIG_AGP_I810
This option gives you AGP support for the Xserver on the Intel 810
815 and 830m chipset boards for their on-board integrated graphics. This
is required to do any useful video modes with these boards.
CONFIG_AGP_I460
This option gives you AGP GART support for the Intel 460GX chipset
for IA64 processors.
CONFIG_AGP_VIA
This option gives you AGP support for the GLX component of the
XFree86 4.x on VIA MPV3/Apollo Pro chipsets.
You should say Y here if you use XFree86 3.3.6 or 4.x and want to
use GLX or DRI. If unsure, say N.
CONFIG_AGP_AMD
This option gives you AGP support for the GLX component of the
XFree86 4.x on AMD Irongate, 761, and 762 chipsets.
You should say Y here if you use XFree86 3.3.6 or 4.x and want to
use GLX or DRI. If unsure, say N.
CONFIG_AGP_SIS
This option gives you AGP support for the GLX component of the "soon
to be released" XFree86 4.x on Silicon Integrated Systems [SiS]
chipsets.
Note that 5591/5592 AGP chipsets are NOT supported.
You should say Y here if you use XFree86 3.3.6 or 4.x and want to
use GLX or DRI. If unsure, say N.
CONFIG_AGP_SWORKS
Say Y here to support the Serverworks AGP card. See
<http://www.serverworks.com/> for product descriptions and images.
CONFIG_AGP_ALI
This option gives you AGP support for the GLX component of the
XFree86 4.x on the following ALi chipsets. The supported chipsets
include M1541, M1621, M1631, M1632, M1641,M1647,and M1651.
For the ALi-chipset question, ALi suggests you refer to
<http://www.ali.com.tw/eng/support/index.shtml>.
The M1541 chipset can do AGP 1x and 2x, but note that there is an
acknowledged incompatibility with Matrox G200 cards. Due to
timing issues, this chipset cannot do AGP 2x with the G200.
This is a hardware limitation. AGP 1x seems to be fine, though.
You should say Y here if you use XFree86 3.3.6 or 4.x and want to
use GLX or DRI. If unsure, say N.
CONFIG_AGP_HP_ZX1
This option gives you AGP GART support for the HP ZX1 chipset
for IA64 processors.
CONFIG_I810_TCO
Hardware driver for the TCO timer built into the Intel i810 and i815
chipset family. The TCO (Total Cost of Ownership) timer is a
...
...
drivers/char/drm/sis_ds.c
View file @
5afffee2
...
...
@@ -50,6 +50,7 @@ set_t *setInit(void)
set_t
*
set
;
set
=
(
set_t
*
)
MALLOC
(
sizeof
(
set_t
));
if
(
set
)
{
for
(
i
=
0
;
i
<
SET_SIZE
;
i
++
){
set
->
list
[
i
].
free_next
=
i
+
1
;
set
->
list
[
i
].
alloc_next
=
-
1
;
...
...
@@ -58,7 +59,7 @@ set_t *setInit(void)
set
->
free
=
0
;
set
->
alloc
=
-
1
;
set
->
trace
=
-
1
;
}
return
set
;
}
...
...
@@ -172,6 +173,7 @@ static void *calloc(size_t nmemb, size_t size)
{
void
*
addr
;
addr
=
kmalloc
(
nmemb
*
size
,
GFP_KERNEL
);
if
(
addr
)
memset
(
addr
,
0
,
nmemb
*
size
);
return
addr
;
}
...
...
drivers/char/ftape/lowlevel/ftape-rw.h
View file @
5afffee2
...
...
@@ -71,7 +71,7 @@ typedef struct {
/* Count nr of 1's in pattern.
*/
extern
inline
int
count_ones
(
unsigned
long
mask
)
static
inline
int
count_ones
(
unsigned
long
mask
)
{
int
bits
;
...
...
drivers/char/ftape/zftape/zftape-vtbl.h
View file @
5afffee2
...
...
@@ -168,11 +168,11 @@ extern int zft_fake_volume_headers (eof_mark_union *eof_map,
extern
int
zft_weof
(
unsigned
int
count
,
zft_position
*
pos
);
extern
void
zft_move_past_eof
(
zft_position
*
pos
);
extern
inline
int
zft_tape_at_eod
(
const
zft_position
*
pos
);
extern
inline
int
zft_tape_at_lbot
(
const
zft_position
*
pos
);
extern
inline
void
zft_position_before_eof
(
zft_position
*
pos
,
static
inline
int
zft_tape_at_eod
(
const
zft_position
*
pos
);
static
inline
int
zft_tape_at_lbot
(
const
zft_position
*
pos
);
static
inline
void
zft_position_before_eof
(
zft_position
*
pos
,
const
zft_volinfo
*
volume
);
extern
inline
__s64
zft_check_for_eof
(
const
zft_volinfo
*
vtbl
,
static
inline
__s64
zft_check_for_eof
(
const
zft_volinfo
*
vtbl
,
const
zft_position
*
pos
);
/* this function decrements the zft_seg_pos counter if we are right
...
...
@@ -180,7 +180,7 @@ extern inline __s64 zft_check_for_eof(const zft_volinfo *vtbl,
* need to position before the eof mark. NOTE: zft_tape_pos is not
* changed
*/
extern
inline
void
zft_position_before_eof
(
zft_position
*
pos
,
static
inline
void
zft_position_before_eof
(
zft_position
*
pos
,
const
zft_volinfo
*
volume
)
{
TRACE_FUN
(
ft_t_flow
);
...
...
@@ -195,7 +195,7 @@ extern inline void zft_position_before_eof(zft_position *pos,
/* Mmmh. Is the position at the end of the last volume, that is right
* before the last EOF mark also logical an EOD condition?
*/
extern
inline
int
zft_tape_at_eod
(
const
zft_position
*
pos
)
static
inline
int
zft_tape_at_eod
(
const
zft_position
*
pos
)
{
TRACE_FUN
(
ft_t_any
);
...
...
@@ -207,7 +207,7 @@ extern inline int zft_tape_at_eod(const zft_position *pos)
}
}
extern
inline
int
zft_tape_at_lbot
(
const
zft_position
*
pos
)
static
inline
int
zft_tape_at_lbot
(
const
zft_position
*
pos
)
{
if
(
zft_qic_mode
)
{
return
(
pos
->
seg_pos
<=
zft_first_vtbl
->
start_seg
&&
...
...
@@ -220,7 +220,7 @@ extern inline int zft_tape_at_lbot(const zft_position *pos)
/* This one checks for EOF. return remaing space (may be negative)
*/
extern
inline
__s64
zft_check_for_eof
(
const
zft_volinfo
*
vtbl
,
static
inline
__s64
zft_check_for_eof
(
const
zft_volinfo
*
vtbl
,
const
zft_position
*
pos
)
{
return
(
__s64
)(
vtbl
->
size
-
pos
->
volume_pos
);
...
...
drivers/char/isicom.c
View file @
5afffee2
...
...
@@ -122,7 +122,7 @@ struct miscdevice isiloader_device = {
};
extern
inline
int
WaitTillCardIsFree
(
unsigned
short
base
)
static
inline
int
WaitTillCardIsFree
(
unsigned
short
base
)
{
unsigned
long
count
=
0
;
while
(
(
!
(
inw
(
base
+
0xe
)
&
0x1
))
&&
(
count
++
<
6000000
));
...
...
@@ -358,7 +358,7 @@ static inline int isicom_paranoia_check(struct isi_port const * port, kdev_t dev
return
0
;
}
extern
inline
void
schedule_bh
(
struct
isi_port
*
port
)
static
inline
void
schedule_bh
(
struct
isi_port
*
port
)
{
queue_task
(
&
port
->
bh_tqueue
,
&
tq_isicom
);
mark_bh
(
ISICOM_BH
);
...
...
@@ -823,7 +823,7 @@ static void isicom_config_port(struct isi_port * port)
/* open et all */
extern
inline
void
isicom_setup_board
(
struct
isi_board
*
bp
)
static
inline
void
isicom_setup_board
(
struct
isi_board
*
bp
)
{
int
channel
;
struct
isi_port
*
port
;
...
...
@@ -1091,7 +1091,7 @@ static int isicom_open(struct tty_struct * tty, struct file * filp)
/* close et all */
extern
inline
void
isicom_shutdown_board
(
struct
isi_board
*
bp
)
static
inline
void
isicom_shutdown_board
(
struct
isi_board
*
bp
)
{
int
channel
;
struct
isi_port
*
port
;
...
...
@@ -1353,7 +1353,7 @@ static int isicom_chars_in_buffer(struct tty_struct * tty)
}
/* ioctl et all */
extern
inline
void
isicom_send_break
(
struct
isi_port
*
port
,
unsigned
long
length
)
static
inline
void
isicom_send_break
(
struct
isi_port
*
port
,
unsigned
long
length
)
{
struct
isi_board
*
card
=
port
->
card
;
short
wait
=
10
;
...
...
drivers/char/specialix.c
View file @
5afffee2
...
...
@@ -239,28 +239,28 @@ static inline int sx_paranoia_check(struct specialix_port const * port,
*/
/* Get board number from pointer */
extern
inline
int
board_No
(
struct
specialix_board
*
bp
)
static
inline
int
board_No
(
struct
specialix_board
*
bp
)
{
return
bp
-
sx_board
;
}
/* Get port number from pointer */
extern
inline
int
port_No
(
struct
specialix_port
const
*
port
)
static
inline
int
port_No
(
struct
specialix_port
const
*
port
)
{
return
SX_PORT
(
port
-
sx_port
);
}
/* Get pointer to board from pointer to port */
extern
inline
struct
specialix_board
*
port_Board
(
struct
specialix_port
const
*
port
)
static
inline
struct
specialix_board
*
port_Board
(
struct
specialix_port
const
*
port
)
{
return
&
sx_board
[
SX_BOARD
(
port
-
sx_port
)];
}
/* Input Byte from CL CD186x register */
extern
inline
unsigned
char
sx_in
(
struct
specialix_board
*
bp
,
unsigned
short
reg
)
static
inline
unsigned
char
sx_in
(
struct
specialix_board
*
bp
,
unsigned
short
reg
)
{
bp
->
reg
=
reg
|
0x80
;
outb
(
reg
|
0x80
,
bp
->
base
+
SX_ADDR_REG
);
...
...
@@ -269,7 +269,7 @@ extern inline unsigned char sx_in(struct specialix_board * bp, unsigned short r
/* Output Byte to CL CD186x register */
extern
inline
void
sx_out
(
struct
specialix_board
*
bp
,
unsigned
short
reg
,
static
inline
void
sx_out
(
struct
specialix_board
*
bp
,
unsigned
short
reg
,
unsigned
char
val
)
{
bp
->
reg
=
reg
|
0x80
;
...
...
@@ -279,7 +279,7 @@ extern inline void sx_out(struct specialix_board * bp, unsigned short reg,
/* Input Byte from CL CD186x register */
extern
inline
unsigned
char
sx_in_off
(
struct
specialix_board
*
bp
,
unsigned
short
reg
)
static
inline
unsigned
char
sx_in_off
(
struct
specialix_board
*
bp
,
unsigned
short
reg
)
{
bp
->
reg
=
reg
;
outb
(
reg
,
bp
->
base
+
SX_ADDR_REG
);
...
...
@@ -288,7 +288,7 @@ extern inline unsigned char sx_in_off(struct specialix_board * bp, unsigned sho
/* Output Byte to CL CD186x register */
extern
inline
void
sx_out_off
(
struct
specialix_board
*
bp
,
unsigned
short
reg
,
static
inline
void
sx_out_off
(
struct
specialix_board
*
bp
,
unsigned
short
reg
,
unsigned
char
val
)
{
bp
->
reg
=
reg
;
...
...
@@ -298,7 +298,7 @@ extern inline void sx_out_off(struct specialix_board * bp, unsigned short reg,
/* Wait for Channel Command Register ready */
extern
inline
void
sx_wait_CCR
(
struct
specialix_board
*
bp
)
static
inline
void
sx_wait_CCR
(
struct
specialix_board
*
bp
)
{
unsigned
long
delay
;
...
...
@@ -311,7 +311,7 @@ extern inline void sx_wait_CCR(struct specialix_board * bp)
/* Wait for Channel Command Register ready */
extern
inline
void
sx_wait_CCR_off
(
struct
specialix_board
*
bp
)
static
inline
void
sx_wait_CCR_off
(
struct
specialix_board
*
bp
)
{
unsigned
long
delay
;
...
...
@@ -327,13 +327,13 @@ extern inline void sx_wait_CCR_off(struct specialix_board * bp)
* specialix IO8+ IO range functions.
*/
extern
inline
int
sx_check_io_range
(
struct
specialix_board
*
bp
)
static
inline
int
sx_check_io_range
(
struct
specialix_board
*
bp
)
{
return
check_region
(
bp
->
base
,
SX_IO_SPACE
);
}
extern
inline
void
sx_request_io_range
(
struct
specialix_board
*
bp
)
static
inline
void
sx_request_io_range
(
struct
specialix_board
*
bp
)
{
request_region
(
bp
->
base
,
bp
->
flags
&
SX_BOARD_IS_PCI
?
SX_PCI_IO_SPACE
:
SX_IO_SPACE
,
...
...
@@ -341,7 +341,7 @@ extern inline void sx_request_io_range(struct specialix_board * bp)
}
extern
inline
void
sx_release_io_range
(
struct
specialix_board
*
bp
)
static
inline
void
sx_release_io_range
(
struct
specialix_board
*
bp
)
{
release_region
(
bp
->
base
,
bp
->
flags
&
SX_BOARD_IS_PCI
?
SX_PCI_IO_SPACE
:
SX_IO_SPACE
);
...
...
@@ -351,7 +351,7 @@ extern inline void sx_release_io_range(struct specialix_board * bp)
/* Must be called with enabled interrupts */
/* Ugly. Very ugly. Don't use this for anything else than initialization
code */
extern
inline
void
sx_long_delay
(
unsigned
long
delay
)
static
inline
void
sx_long_delay
(
unsigned
long
delay
)
{
unsigned
long
i
;
...
...
@@ -599,7 +599,7 @@ static int sx_probe(struct specialix_board *bp)
* Interrupt processing routines.
* */
extern
inline
void
sx_mark_event
(
struct
specialix_port
*
port
,
int
event
)
static
inline
void
sx_mark_event
(
struct
specialix_port
*
port
,
int
event
)
{
/*
* I'm not quite happy with current scheme all serial
...
...
@@ -616,7 +616,7 @@ extern inline void sx_mark_event(struct specialix_port * port, int event)
}
extern
inline
struct
specialix_port
*
sx_get_port
(
struct
specialix_board
*
bp
,
static
inline
struct
specialix_port
*
sx_get_port
(
struct
specialix_board
*
bp
,
unsigned
char
const
*
what
)
{
unsigned
char
channel
;
...
...
@@ -635,7 +635,7 @@ extern inline struct specialix_port * sx_get_port(struct specialix_board * bp,
}
extern
inline
void
sx_receive_exc
(
struct
specialix_board
*
bp
)
static
inline
void
sx_receive_exc
(
struct
specialix_board
*
bp
)
{
struct
specialix_port
*
port
;
struct
tty_struct
*
tty
;
...
...
@@ -701,7 +701,7 @@ extern inline void sx_receive_exc(struct specialix_board * bp)
}
extern
inline
void
sx_receive
(
struct
specialix_board
*
bp
)
static
inline
void
sx_receive
(
struct
specialix_board
*
bp
)
{
struct
specialix_port
*
port
;
struct
tty_struct
*
tty
;
...
...
@@ -732,7 +732,7 @@ extern inline void sx_receive(struct specialix_board * bp)
}
extern
inline
void
sx_transmit
(
struct
specialix_board
*
bp
)
static
inline
void
sx_transmit
(
struct
specialix_board
*
bp
)
{
struct
specialix_port
*
port
;
struct
tty_struct
*
tty
;
...
...
@@ -802,7 +802,7 @@ extern inline void sx_transmit(struct specialix_board * bp)
}
extern
inline
void
sx_check_modem
(
struct
specialix_board
*
bp
)
static
inline
void
sx_check_modem
(
struct
specialix_board
*
bp
)
{
struct
specialix_port
*
port
;
struct
tty_struct
*
tty
;
...
...
@@ -962,7 +962,7 @@ void turn_ints_on (struct specialix_board *bp)
/* Called with disabled interrupts */
extern
inline
int
sx_setup_board
(
struct
specialix_board
*
bp
)
static
inline
int
sx_setup_board
(
struct
specialix_board
*
bp
)
{
int
error
;
...
...
@@ -986,7 +986,7 @@ extern inline int sx_setup_board(struct specialix_board * bp)
/* Called with disabled interrupts */
extern
inline
void
sx_shutdown_board
(
struct
specialix_board
*
bp
)
static
inline
void
sx_shutdown_board
(
struct
specialix_board
*
bp
)
{
if
(
!
(
bp
->
flags
&
SX_BOARD_ACTIVE
))
return
;
...
...
@@ -1867,7 +1867,7 @@ static int sx_set_modem_info(struct specialix_port * port, unsigned int cmd,
}
extern
inline
void
sx_send_break
(
struct
specialix_port
*
port
,
unsigned
long
length
)
static
inline
void
sx_send_break
(
struct
specialix_port
*
port
,
unsigned
long
length
)
{
struct
specialix_board
*
bp
=
port_Board
(
port
);
unsigned
long
flags
;
...
...
@@ -1886,7 +1886,7 @@ extern inline void sx_send_break(struct specialix_port * port, unsigned long len
}
extern
inline
int
sx_set_serial_info
(
struct
specialix_port
*
port
,
static
inline
int
sx_set_serial_info
(
struct
specialix_port
*
port
,
struct
serial_struct
*
newinfo
)
{
struct
serial_struct
tmp
;
...
...
@@ -1942,7 +1942,7 @@ extern inline int sx_set_serial_info(struct specialix_port * port,
}
extern
inline
int
sx_get_serial_info
(
struct
specialix_port
*
port
,
static
inline
int
sx_get_serial_info
(
struct
specialix_port
*
port
,
struct
serial_struct
*
retinfo
)
{
struct
serial_struct
tmp
;
...
...
drivers/message/fusion/linux_compat.h
View file @
5afffee2
...
...
@@ -75,11 +75,11 @@ typedef int (*__init_module_func_t)(void);
typedef
void
(
*
__cleanup_module_func_t
)(
void
);
#define module_init(x) \
int init_module(void) __attribute__((alias(#x))); \
extern
inline __init_module_func_t __init_module_inline(void) \
static
inline __init_module_func_t __init_module_inline(void) \
{ return x; }
#define module_exit(x) \
void cleanup_module(void) __attribute__((alias(#x))); \
extern
inline __cleanup_module_func_t __cleanup_module_inline(void) \
static
inline __cleanup_module_func_t __cleanup_module_inline(void) \
{ return x; }
#else
...
...
drivers/nubus/nubus.c
View file @
5afffee2
...
...
@@ -72,7 +72,7 @@ struct nubus_board* nubus_boards;
Etcetera, etcetera. Hopefully this clears up some confusion over
what the following code actually does. */
extern
inline
int
not_useful
(
void
*
p
,
int
map
)
static
inline
int
not_useful
(
void
*
p
,
int
map
)
{
unsigned
long
pv
=
(
unsigned
long
)
p
;
pv
&=
3
;
...
...
@@ -148,14 +148,14 @@ static void nubus_move(unsigned char **ptr, int len, int map)
have to expand it from a 24-bit signed number to a 32-bit signed
number. */
extern
inline
long
nubus_expand32
(
long
foo
)
static
inline
long
nubus_expand32
(
long
foo
)
{
if
(
foo
&
0x00800000
)
/* 24bit negative */
foo
|=
0xFF000000
;
return
foo
;
}
extern
inline
void
*
nubus_rom_addr
(
int
slot
)
static
inline
void
*
nubus_rom_addr
(
int
slot
)
{
/*
* Returns the first byte after the card. We then walk
...
...
drivers/scsi/NCR53C9x.c
View file @
5afffee2
...
...
@@ -289,7 +289,7 @@ static inline void esp_advance_phase(Scsi_Cmnd *s, int newphase)
#endif
#ifdef DEBUG_ESP_CMDS
extern
inline
void
esp_cmd
(
struct
NCR_ESP
*
esp
,
struct
ESP_regs
*
eregs
,
inline
void
esp_cmd
(
struct
NCR_ESP
*
esp
,
struct
ESP_regs
*
eregs
,
unchar
cmd
)
{
esp
->
espcmdlog
[
esp
->
espcmdent
]
=
cmd
;
...
...
drivers/scsi/esp.c
View file @
5afffee2
...
...
@@ -378,7 +378,7 @@ static inline void esp_advance_phase(Scsi_Cmnd *s, int newphase)
#endif
#ifdef DEBUG_ESP_CMDS
extern
inline
void
esp_cmd
(
struct
esp
*
esp
,
u8
cmd
)
static
inline
void
esp_cmd
(
struct
esp
*
esp
,
u8
cmd
)
{
esp
->
espcmdlog
[
esp
->
espcmdent
]
=
cmd
;
esp
->
espcmdent
=
(
esp
->
espcmdent
+
1
)
&
31
;
...
...
drivers/usb/class/audio.c
View file @
5afffee2
...
...
@@ -395,7 +395,7 @@ struct usb_audio_state {
/* prevent picking up a bogus abs macro */
#undef abs
extern
inline
int
abs
(
int
x
)
static
inline
int
abs
(
int
x
)
{
if
(
x
<
0
)
return
-
x
;
...
...
@@ -404,7 +404,7 @@ extern inline int abs(int x)
/* --------------------------------------------------------------------- */
extern
inline
unsigned
ld2
(
unsigned
int
x
)
static
inline
unsigned
ld2
(
unsigned
int
x
)
{
unsigned
r
=
0
;
...
...
@@ -1939,13 +1939,13 @@ static void release(struct usb_audio_state *s)
kfree
(
s
);
}
extern
inline
int
prog_dmabuf_in
(
struct
usb_audiodev
*
as
)
static
inline
int
prog_dmabuf_in
(
struct
usb_audiodev
*
as
)
{
usbin_stop
(
as
);
return
dmabuf_init
(
&
as
->
usbin
.
dma
);
}
extern
inline
int
prog_dmabuf_out
(
struct
usb_audiodev
*
as
)
static
inline
int
prog_dmabuf_out
(
struct
usb_audiodev
*
as
)
{
usbout_stop
(
as
);
return
dmabuf_init
(
&
as
->
usbout
.
dma
);
...
...
@@ -3253,7 +3253,7 @@ static void prepmixch(struct consmixstate *state)
static
void
usb_audio_recurseunit
(
struct
consmixstate
*
state
,
unsigned
char
unitid
);
extern
inline
int
checkmixbmap
(
unsigned
char
*
bmap
,
unsigned
char
flg
,
unsigned
int
inidx
,
unsigned
int
numoch
)
static
inline
int
checkmixbmap
(
unsigned
char
*
bmap
,
unsigned
char
flg
,
unsigned
int
inidx
,
unsigned
int
numoch
)
{
unsigned
int
idx
;
...
...
sound/oss/ite8172.c
View file @
5afffee2
...
...
@@ -305,7 +305,7 @@ static LIST_HEAD(devs);
/* --------------------------------------------------------------------- */
extern
inline
unsigned
ld2
(
unsigned
int
x
)
static
inline
unsigned
ld2
(
unsigned
int
x
)
{
unsigned
r
=
0
;
...
...
@@ -510,7 +510,7 @@ static void waitcodec(struct ac97_codec *codec)
/* --------------------------------------------------------------------- */
extern
inline
void
stop_adc
(
struct
it8172_state
*
s
)
static
inline
void
stop_adc
(
struct
it8172_state
*
s
)
{
struct
dmabuf
*
db
=
&
s
->
dma_adc
;
unsigned
long
flags
;
...
...
@@ -534,7 +534,7 @@ extern inline void stop_adc(struct it8172_state *s)
spin_unlock_irqrestore
(
&
s
->
lock
,
flags
);
}
extern
inline
void
stop_dac
(
struct
it8172_state
*
s
)
static
inline
void
stop_dac
(
struct
it8172_state
*
s
)
{
struct
dmabuf
*
db
=
&
s
->
dma_dac
;
unsigned
long
flags
;
...
...
@@ -633,7 +633,7 @@ static void start_adc(struct it8172_state *s)
#define DMABUF_DEFAULTORDER (17-PAGE_SHIFT)
#define DMABUF_MINORDER 1
extern
inline
void
dealloc_dmabuf
(
struct
it8172_state
*
s
,
struct
dmabuf
*
db
)
static
inline
void
dealloc_dmabuf
(
struct
it8172_state
*
s
,
struct
dmabuf
*
db
)
{
struct
page
*
page
,
*
pend
;
...
...
@@ -709,7 +709,7 @@ static int prog_dmabuf(struct it8172_state *s, struct dmabuf *db,
return
0
;
}
extern
inline
int
prog_dmabuf_adc
(
struct
it8172_state
*
s
)
static
inline
int
prog_dmabuf_adc
(
struct
it8172_state
*
s
)
{
stop_adc
(
s
);
return
prog_dmabuf
(
s
,
&
s
->
dma_adc
,
s
->
adcrate
,
...
...
@@ -717,7 +717,7 @@ extern inline int prog_dmabuf_adc(struct it8172_state *s)
IT_AC_CAPCC
);
}
extern
inline
int
prog_dmabuf_dac
(
struct
it8172_state
*
s
)
static
inline
int
prog_dmabuf_dac
(
struct
it8172_state
*
s
)
{
stop_dac
(
s
);
return
prog_dmabuf
(
s
,
&
s
->
dma_dac
,
s
->
dacrate
,
...
...
sound/oss/sound_config.h
View file @
5afffee2
...
...
@@ -113,14 +113,14 @@ struct channel_info {
#if OPEN_READ == FMODE_READ && OPEN_WRITE == FMODE_WRITE
extern
__inline__
int
translate_mode
(
struct
file
*
file
)
static
inline
int
translate_mode
(
struct
file
*
file
)
{
return
file
->
f_mode
;
}
#else
extern
__inline__
int
translate_mode
(
struct
file
*
file
)
static
inline
int
translate_mode
(
struct
file
*
file
)
{
return
((
file
->
f_mode
&
FMODE_READ
)
?
OPEN_READ
:
0
)
|
((
file
->
f_mode
&
FMODE_WRITE
)
?
OPEN_WRITE
:
0
);
...
...
sound/pci/ens1370.c
View file @
5afffee2
...
...
@@ -593,7 +593,7 @@ static void snd_es1371_codec_write(ac97_t *ac97,
}
spin_unlock_irqrestore
(
&
ensoniq
->
reg_lock
,
flags
);
}
snd_printk
(
"codec write timeout at 0x%lx [0x%x]
\n
"
,
ES_REG
(
ensoniq
,
1371
_CODEC
),
inl
(
ES_REG
(
ensoniq
,
1371
_CODEC
)));
snd_printk
(
"codec write timeout at 0x%lx [0x%
l
x]
\n
"
,
ES_REG
(
ensoniq
,
1371
_CODEC
),
inl
(
ES_REG
(
ensoniq
,
1371
_CODEC
)));
}
static
unsigned
short
snd_es1371_codec_read
(
ac97_t
*
ac97
,
...
...
@@ -641,14 +641,14 @@ static unsigned short snd_es1371_codec_read(ac97_t *ac97,
}
spin_unlock_irqrestore
(
&
ensoniq
->
reg_lock
,
flags
);
if
(
++
fail
>
10
)
{
snd_printk
(
"codec read timeout (final) at 0x%lx, reg = 0x%x [0x%x]
\n
"
,
ES_REG
(
ensoniq
,
1371
_CODEC
),
reg
,
inl
(
ES_REG
(
ensoniq
,
1371
_CODEC
)));
snd_printk
(
"codec read timeout (final) at 0x%lx, reg = 0x%x [0x%
l
x]
\n
"
,
ES_REG
(
ensoniq
,
1371
_CODEC
),
reg
,
inl
(
ES_REG
(
ensoniq
,
1371
_CODEC
)));
return
0
;
}
goto
__again
;
}
spin_unlock_irqrestore
(
&
ensoniq
->
reg_lock
,
flags
);
}
snd_printk
(
"es1371: codec read timeout at 0x%lx [0x%x]
\n
"
,
ES_REG
(
ensoniq
,
1371
_CODEC
),
inl
(
ES_REG
(
ensoniq
,
1371
_CODEC
)));
snd_printk
(
"es1371: codec read timeout at 0x%lx [0x%
l
x]
\n
"
,
ES_REG
(
ensoniq
,
1371
_CODEC
),
inl
(
ES_REG
(
ensoniq
,
1371
_CODEC
)));
return
0
;
}
...
...
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