search for: kparam_array

Displaying 11 results from an estimated 11 matches for "kparam_array".

2014 Mar 17
2
[PATCH] virtio-blk: make the queue depth configurable
On Mon, 2014-03-17 at 14:25 +1030, Rusty Russell wrote: > Erk, our tests are insufficient. Testbuilding an allmodconfig with this > now: Good idea. > diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h [] > @@ -188,6 +188,9 @@ struct kparam_array > /* Default value instead of permissions? */ \ > static int __param_perm_check_##name __attribute__((unused)) = \ > BUILD_BUG_ON_ZERO((perm) < 0 || (perm) > 0777 || ((perm) & 2)) \ > + /* User perms >= group perms >= other perms. */ \ > + + BUILD_BUG_ON_ZER...
2014 Mar 17
2
[PATCH] virtio-blk: make the queue depth configurable
On Mon, 2014-03-17 at 14:25 +1030, Rusty Russell wrote: > Erk, our tests are insufficient. Testbuilding an allmodconfig with this > now: Good idea. > diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h [] > @@ -188,6 +188,9 @@ struct kparam_array > /* Default value instead of permissions? */ \ > static int __param_perm_check_##name __attribute__((unused)) = \ > BUILD_BUG_ON_ZERO((perm) < 0 || (perm) > 0777 || ((perm) & 2)) \ > + /* User perms >= group perms >= other perms. */ \ > + + BUILD_BUG_ON_ZER...
2014 Mar 19
5
[PATCH] virtio-blk: make the queue depth configurable
...rote: >> >> > Erk, our tests are insufficient. Testbuilding an allmodconfig with this >> > now: >> >> Good idea. >> >> > diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h >> [] >> > @@ -188,6 +188,9 @@ struct kparam_array >> > /* Default value instead of permissions? */ \ >> > static int __param_perm_check_##name __attribute__((unused)) = \ >> > BUILD_BUG_ON_ZERO((perm) < 0 || (perm) > 0777 || ((perm) & 2)) \ >> > + /* User perms >= group perms >= other per...
2014 Mar 19
5
[PATCH] virtio-blk: make the queue depth configurable
...rote: >> >> > Erk, our tests are insufficient. Testbuilding an allmodconfig with this >> > now: >> >> Good idea. >> >> > diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h >> [] >> > @@ -188,6 +188,9 @@ struct kparam_array >> > /* Default value instead of permissions? */ \ >> > static int __param_perm_check_##name __attribute__((unused)) = \ >> > BUILD_BUG_ON_ZERO((perm) < 0 || (perm) > 0777 || ((perm) & 2)) \ >> > + /* User perms >= group perms >= other per...
2014 Mar 14
2
[PATCH] virtio-blk: make the queue depth configurable
On Fri, Mar 14, 2014 at 10:38:40AM -0700, Joe Perches wrote: > > +static int queue_depth = 64; > > +module_param(queue_depth, int, 444); > > 444? Really Ted? Oops, *blush*. Thanks for catching that. - Ted
2014 Mar 14
2
[PATCH] virtio-blk: make the queue depth configurable
On Fri, Mar 14, 2014 at 10:38:40AM -0700, Joe Perches wrote: > > +static int queue_depth = 64; > > +module_param(queue_depth, int, 444); > > 444? Really Ted? Oops, *blush*. Thanks for catching that. - Ted
2014 Mar 19
0
[PATCH] virtio-blk: make the queue depth configurable
...gt; Erk, our tests are insufficient. Testbuilding an allmodconfig with this >>> > now: >>> >>> Good idea. >>> >>> > diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h >>> [] >>> > @@ -188,6 +188,9 @@ struct kparam_array >>> > /* Default value instead of permissions? */ \ >>> > static int __param_perm_check_##name __attribute__((unused)) = \ >>> > BUILD_BUG_ON_ZERO((perm) < 0 || (perm) > 0777 || ((perm) & 2)) \ >>> > + /* User...
2014 Mar 17
0
[PATCH] virtio-blk: make the queue depth configurable
...atching that. Erk, our tests are insufficient. Testbuilding an allmodconfig with this now: diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h index 175f6995d1af..626b85888a6b 100644 --- a/include/linux/moduleparam.h +++ b/include/linux/moduleparam.h @@ -188,6 +188,9 @@ struct kparam_array /* Default value instead of permissions? */ \ static int __param_perm_check_##name __attribute__((unused)) = \ BUILD_BUG_ON_ZERO((perm) < 0 || (perm) > 0777 || ((perm) & 2)) \ + /* User perms >= group perms >= other perms. */ \ + + BUILD_BUG_ON_ZERO(((perm) >> 6) &lt...
2014 Mar 17
0
[PATCH] virtio-blk: make the queue depth configurable
...3-17 at 14:25 +1030, Rusty Russell wrote: > > > Erk, our tests are insufficient. Testbuilding an allmodconfig with this > > now: > > Good idea. > > > diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h > [] > > @@ -188,6 +188,9 @@ struct kparam_array > > /* Default value instead of permissions? */ \ > > static int __param_perm_check_##name __attribute__((unused)) = \ > > BUILD_BUG_ON_ZERO((perm) < 0 || (perm) > 0777 || ((perm) & 2)) \ > > + /* User perms >= group perms >= other perms. */ \ >...
2014 Mar 19
1
[PATCH] virtio-blk: make the queue depth configurable
Couple more bikesheddy things: Is there ever a reason to use a non __builtin_const_p(perms)? Maybe that should be a BUILD_BUG_ON too BUILD_BUG_ON(!builtin_const_p_perms) My brain of little size gets confused by the BUILD_BUG_ON_ZERO(foo) + vs BUILD_BUG_ON(foo); as it just seems like more text for the same content. Is there any value on the "_ZERO(foo) +" I don't understand?
2014 Mar 19
1
[PATCH] virtio-blk: make the queue depth configurable
Couple more bikesheddy things: Is there ever a reason to use a non __builtin_const_p(perms)? Maybe that should be a BUILD_BUG_ON too BUILD_BUG_ON(!builtin_const_p_perms) My brain of little size gets confused by the BUILD_BUG_ON_ZERO(foo) + vs BUILD_BUG_ON(foo); as it just seems like more text for the same content. Is there any value on the "_ZERO(foo) +" I don't understand?