summaryrefslogtreecommitdiffstats
path: root/kernel/params.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-06-25 15:27:37 +0200
committerChristoph Hellwig <hch@lst.de>2014-07-17 22:07:37 +0200
commitb4210b810e5040f10a30ba56de6c3faab5c49345 (patch)
treeeb7970e092cb7795bd935d0aff10c8dda1da833f /kernel/params.c
parent9cb78c16f5dadefd8dc5ba0ae5a2f26cd59419b3 (diff)
downloadlinux-stable-b4210b810e5040f10a30ba56de6c3faab5c49345.tar.gz
linux-stable-b4210b810e5040f10a30ba56de6c3faab5c49345.tar.bz2
linux-stable-b4210b810e5040f10a30ba56de6c3faab5c49345.zip
Add module param type 'ullong'
Some driver might want to pass in an 64-bit value, so introduce a module param type 'ullong'. Signed-off-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Christoph Hellwig <hch@infradead.org> Reviewed-by: Ewan Milne <emilne@redhat.com> Acked-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel/params.c')
-rw-r--r--kernel/params.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/params.c b/kernel/params.c
index 1e52ca233fd9..34f527023794 100644
--- a/kernel/params.c
+++ b/kernel/params.c
@@ -256,6 +256,7 @@ STANDARD_PARAM_DEF(int, int, "%i", kstrtoint);
STANDARD_PARAM_DEF(uint, unsigned int, "%u", kstrtouint);
STANDARD_PARAM_DEF(long, long, "%li", kstrtol);
STANDARD_PARAM_DEF(ulong, unsigned long, "%lu", kstrtoul);
+STANDARD_PARAM_DEF(ullong, unsigned long long, "%llu", kstrtoull);
int param_set_charp(const char *val, const struct kernel_param *kp)
{