summaryrefslogtreecommitdiff
path: root/xpp/xbus-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/xbus-core.c')
-rw-r--r--xpp/xbus-core.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/xpp/xbus-core.c b/xpp/xbus-core.c
index 615d499..961c361 100644
--- a/xpp/xbus-core.c
+++ b/xpp/xbus-core.c
@@ -103,7 +103,7 @@ static atomic_t xpacket_count = ATOMIC_INIT(0);
* Receive packets:
* - Allocated/deallocated by xbus_xmiter
*/
-xpacket_t *xbus_packet_new(xbus_t *xbus, int flags)
+xpacket_t *xbus_packet_new(xbus_t *xbus, gfp_t flags)
{
xpacket_t *pack;
@@ -787,15 +787,14 @@ out:
#ifdef PROTOCOL_DEBUG
static int proc_xbus_command_write(struct file *file, const char __user *buffer, unsigned long count, void *data)
{
- const int NUM_SIZE = 100;
- char buf[NUM_SIZE];
+ char buf[MAX_PROC_WRITE];
xbus_t *xbus = data;
xpacket_t *pack;
char *p;
byte *pack_contents;
byte *q;
- if(count >= NUM_SIZE) {
+ if(count >= MAX_PROC_WRITE) {
ERR("%s: line too long\n", __FUNCTION__);
return -EFBIG;
}
@@ -967,7 +966,7 @@ int __init xbus_core_init(void)
return -ENOMEM;
}
#ifdef CONFIG_PROC_FS
- proc_xbuses = create_proc_read_entry(PROC_XBUSES, 0444, xpp_proc_toplevel, read_proc_xbuses, 0);
+ proc_xbuses = create_proc_read_entry(PROC_XBUSES, 0444, xpp_proc_toplevel, read_proc_xbuses, NULL);
if (!proc_xbuses) {
ERR("Failed to create proc file %s\n", PROC_XBUSES);
xbus_core_cleanup();