projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08a82c6
)
sunrpc: use formatting of module name in SUNRPC
author
Alex Riesen
<
[email protected]
>
Mon, 24 May 2010 21:33:05 +0000
(14:33 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 25 May 2010 15:07:03 +0000
(08:07 -0700)
gcc-4.3.3 produces the warning:
"format not a string literal and no format arguments"
Signed-off-by: Alex Riesen <
[email protected]
>
Cc: Trond Myklebust <
[email protected]
>
Cc: Chuck Lever <
[email protected]
>
Cc: David S. Miller <
[email protected]
>
Acked-by: Tom Talpey <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
net/sunrpc/xprt.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/xprt.c
b/net/sunrpc/xprt.c
index 3fc325399ee4da4eaf77d19ace55717e34639798..dcd0132396ba37ad231d23f6af1cc63047fa3d62 100644
(file)
--- a/
net/sunrpc/xprt.c
+++ b/
net/sunrpc/xprt.c
@@
-166,7
+166,6
@@
EXPORT_SYMBOL_GPL(xprt_unregister_transport);
int xprt_load_transport(const char *transport_name)
{
struct xprt_class *t;
- char module_name[sizeof t->name + 5];
int result;
result = 0;
@@
-178,9
+177,7
@@
int xprt_load_transport(const char *transport_name)
}
}
spin_unlock(&xprt_list_lock);
- strcpy(module_name, "xprt");
- strncat(module_name, transport_name, sizeof t->name);
- result = request_module(module_name);
+ result = request_module("xprt%s", transport_name);
out:
return result;
}