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
d6091b21
Commit
d6091b21
authored
Apr 14, 2011
by
Konrad Rzeszutek Wilk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xen/blkback: Fix checkpatch warnings of xenbus.c
Signed-off-by:
Konrad Rzeszutek Wilk
<
konrad.wilk@oracle.com
>
parent
e5f4b3c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
drivers/xen/blkback/xenbus.c
drivers/xen/blkback/xenbus.c
+12
-9
No files found.
drivers/xen/blkback/xenbus.c
View file @
d6091b21
...
...
@@ -25,10 +25,9 @@
#undef DPRINTK
#define DPRINTK(fmt, args...) \
pr_debug("blkback/xenbus (%s:%d) " fmt ".\n", \
__
FUNCTION
__, __LINE__, ##args)
__
func
__, __LINE__, ##args)
struct
backend_info
{
struct
backend_info
{
struct
xenbus_device
*
dev
;
struct
blkif_st
*
blkif
;
struct
xenbus_watch
backend_watch
;
...
...
@@ -56,7 +55,8 @@ static int blkback_name(struct blkif_st *blkif, char *buf)
if
(
IS_ERR
(
devpath
))
return
PTR_ERR
(
devpath
);
if
((
devname
=
strstr
(
devpath
,
"/dev/"
))
!=
NULL
)
devname
=
strstr
(
devpath
,
"/dev/"
);
if
(
devname
!=
NULL
)
devname
+=
strlen
(
"/dev/"
);
else
devname
=
devpath
;
...
...
@@ -153,7 +153,7 @@ int xenvbd_sysfs_addif(struct xenbus_device *dev)
int
error
;
error
=
device_create_file
(
&
dev
->
dev
,
&
dev_attr_physical_device
);
if
(
error
)
if
(
error
)
goto
fail1
;
error
=
device_create_file
(
&
dev
->
dev
,
&
dev_attr_mode
);
...
...
@@ -327,7 +327,10 @@ static void backend_changed(struct xenbus_watch *watch,
/* Front end dir is a number, which is used as the handle. */
char
*
p
=
strrchr
(
dev
->
otherend
,
'/'
)
+
1
;
long
handle
=
simple_strtoul
(
p
,
NULL
,
0
);
long
handle
;
err
=
strict_strtoul
(
p
,
0
,
&
handle
);
if
(
err
)
return
;
be
->
major
=
major
;
be
->
minor
=
minor
;
...
...
@@ -369,7 +372,7 @@ static void frontend_changed(struct xenbus_device *dev,
case
XenbusStateInitialising
:
if
(
dev
->
state
==
XenbusStateClosed
)
{
printk
(
KERN_INFO
"%s: %s: prepare for reconnect
\n
"
,
__
FUNCTION
__
,
dev
->
nodename
);
__
func
__
,
dev
->
nodename
);
xenbus_switch_state
(
dev
,
XenbusStateInitWait
);
}
break
;
...
...
@@ -494,8 +497,8 @@ static int connect_ring(struct backend_info *be)
DPRINTK
(
"%s"
,
dev
->
otherend
);
err
=
xenbus_gather
(
XBT_NIL
,
dev
->
otherend
,
"ring-ref"
,
"%lu"
,
&
ring_ref
,
"event-channel"
,
"%u"
,
&
evtchn
,
NULL
);
err
=
xenbus_gather
(
XBT_NIL
,
dev
->
otherend
,
"ring-ref"
,
"%lu"
,
&
ring_ref
,
"event-channel"
,
"%u"
,
&
evtchn
,
NULL
);
if
(
err
)
{
xenbus_dev_fatal
(
dev
,
err
,
"reading %s/ring-ref and event-channel"
,
...
...
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