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
eebba6ad
Commit
eebba6ad
authored
Feb 23, 2003
by
Martin Schwidefsky
Committed by
Linus Torvalds
Feb 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] s390: trivial bug fixes.
trivial s390 fixes/typos.
parent
c1bbdef4
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
37 deletions
+37
-37
arch/s390/kernel/setup.c
arch/s390/kernel/setup.c
+1
-1
arch/s390x/kernel/setup.c
arch/s390x/kernel/setup.c
+1
-1
drivers/s390/char/tape.h
drivers/s390/char/tape.h
+2
-2
drivers/s390/char/tape_34xx.c
drivers/s390/char/tape_34xx.c
+25
-25
drivers/s390/char/tape_core.c
drivers/s390/char/tape_core.c
+2
-2
drivers/s390/net/ctcmain.c
drivers/s390/net/ctcmain.c
+4
-4
drivers/s390/net/lcs.c
drivers/s390/net/lcs.c
+2
-2
No files found.
arch/s390/kernel/setup.c
View file @
eebba6ad
...
...
@@ -551,7 +551,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
static
void
*
c_start
(
struct
seq_file
*
m
,
loff_t
*
pos
)
{
return
*
pos
<
=
NR_CPUS
?
(
void
*
)((
unsigned
long
)
*
pos
+
1
)
:
NULL
;
return
*
pos
<
NR_CPUS
?
(
void
*
)((
unsigned
long
)
*
pos
+
1
)
:
NULL
;
}
static
void
*
c_next
(
struct
seq_file
*
m
,
void
*
v
,
loff_t
*
pos
)
{
...
...
arch/s390x/kernel/setup.c
View file @
eebba6ad
...
...
@@ -545,7 +545,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
static
void
*
c_start
(
struct
seq_file
*
m
,
loff_t
*
pos
)
{
return
*
pos
<
=
NR_CPUS
?
(
void
*
)((
unsigned
long
)
*
pos
+
1
)
:
NULL
;
return
*
pos
<
NR_CPUS
?
(
void
*
)((
unsigned
long
)
*
pos
+
1
)
:
NULL
;
}
static
void
*
c_next
(
struct
seq_file
*
m
,
void
*
v
,
loff_t
*
pos
)
{
...
...
drivers/s390/char/tape.h
View file @
eebba6ad
...
...
@@ -121,7 +121,7 @@ struct tape_request {
/* Function type for magnetic tape commands */
typedef
int
(
*
tape_mtop_fn
)(
struct
tape_device
*
,
int
);
/* Size of the arry containing the mtops for a discipline */
/* Size of the arr
a
y containing the mtops for a discipline */
#define TAPE_NR_MTOPS (MTMKPART+1)
/* Tape Discipline */
...
...
@@ -151,7 +151,7 @@ struct tape_discipline {
* The discipline irq function either returns an error code (<0) which
* means that the request has failed with an error or one of the following:
*/
#define TAPE_IO_SUCCESS 0
/* request sucessful */
#define TAPE_IO_SUCCESS 0
/* request suc
c
essful */
#define TAPE_IO_PENDING 1
/* request still running */
#define TAPE_IO_RETRY 2
/* retry to current request */
#define TAPE_IO_STOP 3
/* stop the running request */
...
...
drivers/s390/char/tape_34xx.c
View file @
eebba6ad
...
...
@@ -28,7 +28,7 @@ enum tape34xx_type {
};
/*
* Medium sense (asyncronous with callback) for 34xx tapes. There is no 'real'
* Medium sense (async
h
ronous with callback) for 34xx tapes. There is no 'real'
* medium sense call. So we just do a normal sense.
*/
static
void
...
...
@@ -44,7 +44,7 @@ __tape_34xx_medium_sense_callback(struct tape_request *request, void *data)
/*
* This isn't quite correct. But since INTERVENTION_REQUIRED
* means that the drive is 'neither ready nor online' it is
* means that the drive is 'neither ready nor on
-
line' it is
* only slightly inaccurate to say there is no tape loaded if
* the drive isn't online...
*/
...
...
@@ -133,7 +133,7 @@ tape_34xx_schedule_work(struct tape_device *device, enum tape_op op)
}
/*
* Done Handler is called when dev stat = DEVICE-END (successful
l
operation)
* Done Handler is called when dev stat = DEVICE-END (successful operation)
*/
static
int
tape_34xx_done
(
struct
tape_device
*
device
,
struct
tape_request
*
request
)
...
...
@@ -153,10 +153,10 @@ tape_34xx_erp_failed(struct tape_device *device,
}
static
inline
int
tape_34xx_erp_succeded
(
struct
tape_device
*
device
,
tape_34xx_erp_succe
e
ded
(
struct
tape_device
*
device
,
struct
tape_request
*
request
)
{
DBF_EVENT
(
3
,
"Error Recovery successful
l
for %s
\n
"
,
DBF_EVENT
(
3
,
"Error Recovery successful for %s
\n
"
,
tape_op_verbose
[
request
->
op
]);
return
tape_34xx_done
(
device
,
request
);
}
...
...
@@ -417,13 +417,13 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request,
case
0x22
:
/*
* Path equipment check. Might be drive adapter error, buffer
* error on the lower interface, internal path not us
e
able,
* error on the lower interface, internal path not usable,
* or error during cartridge load.
*/
PRINT_WARN
(
"A path equipment check occurred. One of the "
"following conditions occurred:
\n
"
);
PRINT_WARN
(
"drive adapter error, buffer error on the lower "
"interface, internal path not us
e
able, error "
"interface, internal path not usable, error "
"during cartridge load.
\n
"
);
return
tape_34xx_erp_failed
(
device
,
request
,
-
EIO
);
case
0x24
:
...
...
@@ -432,20 +432,20 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request,
* but the drive is displaying a drive check message. Can
* be threated as "device end".
*/
return
tape_34xx_erp_succeded
(
device
,
request
);
return
tape_34xx_erp_succe
e
ded
(
device
,
request
);
case
0x27
:
/*
* Command reject. May indicate illegal channel program or
* buffer over/underrun. Since all channel program
m
s are
* buffer over/underrun. Since all channel programs are
* issued by this driver and ought be correct, we assume a
* over/underrun situa
l
tion and retry the channel program.
* over/underrun situation and retry the channel program.
*/
return
tape_34xx_erp_retry
(
device
,
request
);
case
0x29
:
/*
* Function incompatible. Either the tape is idrc compressed
* but the hardware isn't capable to do idrc, or a perform
* subsystem func is issued and the CU is not online.
* subsystem func is issued and the CU is not on
-
line.
*/
PRINT_WARN
(
"Function incompatible. Try to switch off idrc
\n
"
);
return
tape_34xx_erp_failed
(
device
,
request
,
-
EIO
);
...
...
@@ -463,7 +463,7 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request,
if
(
request
->
op
==
TO_RUN
)
{
/* Rewind unload completed ok. */
tape_med_state_set
(
device
,
MS_UNLOADED
);
return
tape_34xx_erp_succeded
(
device
,
request
);
return
tape_34xx_erp_succe
e
ded
(
device
,
request
);
}
/* tape_34xx doesn't use read buffered log commands. */
return
tape_34xx_erp_bug
(
device
,
request
,
irb
,
sense
[
3
]);
...
...
@@ -497,7 +497,7 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request,
return
tape_34xx_erp_failed
(
device
,
request
,
-
EIO
);
case
0x33
:
/*
* Load Failure. The catridge was not inserted correctly or
* Load Failure. The ca
r
tridge was not inserted correctly or
* the tape is not threaded correctly.
*/
PRINT_WARN
(
"Cartridge load failure. Reload the cartridge "
...
...
@@ -548,7 +548,7 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request,
return
tape_34xx_erp_failed
(
device
,
request
,
-
ENOSPC
);
return
tape_34xx_erp_failed
(
device
,
request
,
-
EIO
);
case
0x39
:
/* Backward at Beginnig of tape. */
/* Backward at Beginni
n
g of tape. */
return
tape_34xx_erp_failed
(
device
,
request
,
-
EIO
);
case
0x3a
:
/* Drive switched to not ready. */
...
...
@@ -562,14 +562,14 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request,
case
0x42
:
/*
* Degraded mode. A condition that can cause degraded
* performace is detected.
* performa
n
ce is detected.
*/
PRINT_WARN
(
"Subsystem is running in degraded mode.
\n
"
);
return
tape_34xx_erp_retry
(
device
,
request
);
case
0x43
:
/* Drive not ready. */
tape_med_state_set
(
device
,
MS_UNLOADED
);
/* Some commands commands are sucessful even in this case */
/* Some commands commands are suc
c
essful even in this case */
if
(
sense
[
1
]
&
SENSE_DRIVE_ONLINE
)
{
switch
(
request
->
op
)
{
case
TO_ASSIGN
:
...
...
@@ -584,7 +584,7 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request,
PRINT_WARN
(
"The drive is not ready.
\n
"
);
return
tape_34xx_erp_failed
(
device
,
request
,
-
ENOMEDIUM
);
case
0x44
:
/* Locate Block unsuccessful
l
. */
/* Locate Block unsuccessful. */
if
(
request
->
op
!=
TO_BLOCK
&&
request
->
op
!=
TO_LBL
)
/* No locate block was issued. */
return
tape_34xx_erp_bug
(
device
,
request
,
...
...
@@ -596,11 +596,11 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request,
return
tape_34xx_erp_failed
(
device
,
request
,
-
EIO
);
case
0x46
:
/*
* Drive not online. Drive may be switched offline,
* Drive not on
-
line. Drive may be switched offline,
* the power supply may be switched off or
* the drive address may not be set correctly.
*/
PRINT_WARN
(
"The drive is not online."
);
PRINT_WARN
(
"The drive is not on
-
line."
);
return
tape_34xx_erp_failed
(
device
,
request
,
-
EIO
);
case
0x47
:
/* Volume fenced. CU reports volume integrity is lost. */
...
...
@@ -645,7 +645,7 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request,
case
0x4e
:
if
(
device
->
cdev
->
id
.
driver_info
==
tape_3490
)
{
/*
* Maximum block size exeeded. This indicates, that
* Maximum block size ex
c
eeded. This indicates, that
* the block to be written is larger than allowed for
* buffered mode.
*/
...
...
@@ -675,7 +675,7 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request,
/* End of Volume complete. Rewind unload completed ok. */
if
(
request
->
op
==
TO_RUN
)
{
tape_med_state_set
(
device
,
MS_UNLOADED
);
return
tape_34xx_erp_succeded
(
device
,
request
);
return
tape_34xx_erp_succe
e
ded
(
device
,
request
);
}
return
tape_34xx_erp_bug
(
device
,
request
,
irb
,
sense
[
3
]);
case
0x53
:
...
...
@@ -700,7 +700,7 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request,
return
tape_34xx_erp_retry
(
device
,
request
);
}
else
{
/* Global status intercept. */
PRINT_WARN
(
"An global status intercept was rec
ie
ved, "
PRINT_WARN
(
"An global status intercept was rec
ei
ved, "
"which will be recovered.
\n
"
);
return
tape_34xx_erp_retry
(
device
,
request
);
}
...
...
@@ -734,7 +734,7 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request,
case
0x5e
:
/* Compaction algorithm incompatible. */
PRINT_WARN
(
"The volume is recorded using an incompatible "
"compaction algorith, which is not supported by "
"compaction algorith
m
, which is not supported by "
"the control unit.
\n
"
);
return
tape_34xx_erp_failed
(
device
,
request
,
-
EMEDIUMTYPE
);
...
...
@@ -1042,7 +1042,7 @@ tape_34xx_init (void)
{
int
rc
;
DBF_EVENT
(
3
,
"34xx init: $Revision: 1.
6
$
\n
"
);
DBF_EVENT
(
3
,
"34xx init: $Revision: 1.
7
$
\n
"
);
/* Register driver for 3480/3490 tapes. */
rc
=
ccw_driver_register
(
&
tape_34xx_driver
);
if
(
rc
)
...
...
@@ -1061,7 +1061,7 @@ tape_34xx_exit(void)
MODULE_DEVICE_TABLE
(
ccw
,
tape_34xx_ids
);
MODULE_AUTHOR
(
"(C) 2001-2002 IBM Deutschland Entwicklung GmbH"
);
MODULE_DESCRIPTION
(
"Linux on zSeries channel attached 3480 tape "
"device driver ($Revision: 1.
6
$)"
);
"device driver ($Revision: 1.
7
$)"
);
MODULE_LICENSE
(
"GPL"
);
module_init
(
tape_34xx_init
);
...
...
drivers/s390/char/tape_core.c
View file @
eebba6ad
...
...
@@ -904,7 +904,7 @@ tape_init (void)
{
tape_dbf_area
=
debug_register
(
"tape"
,
1
,
2
,
3
*
sizeof
(
long
));
debug_register_view
(
tape_dbf_area
,
&
debug_sprintf_view
);
DBF_EVENT
(
3
,
"tape init: ($Revision: 1.2
1
$)
\n
"
);
DBF_EVENT
(
3
,
"tape init: ($Revision: 1.2
3
$)
\n
"
);
tape_proc_init
();
tapechar_init
();
tapeblock_init
();
...
...
@@ -929,7 +929,7 @@ tape_exit(void)
MODULE_AUTHOR
(
"(C) 2001 IBM Deutschland Entwicklung GmbH by Carsten Otte and "
"Michael Holzheu (cotte@de.ibm.com,holzheu@de.ibm.com)"
);
MODULE_DESCRIPTION
(
"Linux on zSeries channel attached "
"tape device driver ($Revision: 1.2
1
$)"
);
"tape device driver ($Revision: 1.2
3
$)"
);
module_init
(
tape_init
);
module_exit
(
tape_exit
);
...
...
drivers/s390/net/ctcmain.c
View file @
eebba6ad
/*
* $Id: ctcmain.c,v 1.3
5 2003/01/17 13:46:13 cohuck
Exp $
* $Id: ctcmain.c,v 1.3
6 2003/02/18 09:15:14 mschwide
Exp $
*
* CTC / ESCON network driver
*
...
...
@@ -36,7 +36,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* RELEASE-TAG: CTC/ESCON network driver $Revision: 1.3
5
$
* RELEASE-TAG: CTC/ESCON network driver $Revision: 1.3
6
$
*
*/
...
...
@@ -273,7 +273,7 @@ static void
print_banner
(
void
)
{
static
int
printed
=
0
;
char
vbuf
[]
=
"$Revision: 1.3
5
$"
;
char
vbuf
[]
=
"$Revision: 1.3
6
$"
;
char
*
version
=
vbuf
;
if
(
printed
)
...
...
@@ -1198,7 +1198,7 @@ ch_action_start(fsm_instance * fi, int event, void *arg)
fsm_deltimer
(
&
ch
->
timer
);
ccw_check_return_code
(
ch
,
rc
);
}
pr_debug
(
KERN_DEBUG
"ctc: %s(): leaving
\n
"
,
__FUNCTION__
);
pr_debug
(
"ctc: %s(): leaving
\n
"
,
__FUNCTION__
);
}
/**
...
...
drivers/s390/net/lcs.c
View file @
eebba6ad
...
...
@@ -11,7 +11,7 @@
* Frank Pavlic (pavlic@de.ibm.com) and
* Martin Schwidefsky <schwidefsky@de.ibm.com>
*
* $Revision: 1.4
2 $ $Date: 2002/12/09 13:55:28
$
* $Revision: 1.4
4 $ $Date: 2003/02/18 19:49:02
$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -59,7 +59,7 @@
/**
* initialization string for output
*/
#define VERSION_LCS_C "$Revision: 1.4
2
$"
#define VERSION_LCS_C "$Revision: 1.4
4
$"
static
char
version
[]
__initdata
=
"LCS driver ("
VERSION_LCS_C
"/"
VERSION_LCS_H
")"
;
...
...
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