Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102303
b: refs/heads/master
c: dae3984
h: refs/heads/master
i:
  102301: c29169a
  102299: 2076e8a
  102295: c91854d
  102287: 942afae
  102271: 2a3b20f
v: v3
  • Loading branch information
Cornelia Huck authored and Heiko Carstens committed Jul 17, 2008
1 parent 0912f48 commit 3adb124
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b9993a38a9b491a9df48a5bc82d2e03ab44e352a
refs/heads/master: dae39843f478d181da5b5e1c2c703dfcaaf838c1
9 changes: 8 additions & 1 deletion trunk/drivers/s390/cio/chsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@

static void *sei_page;

static int chsc_error_from_response(int response)
/**
* chsc_error_from_response() - convert a chsc response to an error
* @response: chsc response code
*
* Returns an appropriate Linux error code for @response.
*/
int chsc_error_from_response(int response)
{
switch (response) {
case 0x0001:
Expand All @@ -45,6 +51,7 @@ static int chsc_error_from_response(int response)
return -EIO;
}
}
EXPORT_SYMBOL_GPL(chsc_error_from_response);

struct chsc_ssd_area {
struct chsc_header request;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/s390/cio/chsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,6 @@ void chsc_chp_online(struct chp_id chpid);
void chsc_chp_offline(struct chp_id chpid);
int chsc_get_channel_measurement_chars(struct channel_path *chp);

int chsc_error_from_response(int response);

#endif

0 comments on commit 3adb124

Please sign in to comment.