Re: [PATCH Speakup v2] return same error value from spk_set_key_info

2017-02-21 Thread kbuild test robot
Hi Pranay, [auto build test WARNING on staging/staging-testing] [also build test WARNING on v4.10 next-20170220] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH Speakup v2] return same error value from spk_set_key_info

2017-02-21 Thread kbuild test robot
Hi Pranay, [auto build test WARNING on staging/staging-testing] [also build test WARNING on v4.10 next-20170220] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH Speakup v2] return same error value from spk_set_key_info

2017-02-21 Thread kbuild test robot
Hi Pranay, [auto build test WARNING on staging/staging-testing] [also build test WARNING on v4.10 next-20170220] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH Speakup v2] return same error value from spk_set_key_info

2017-02-21 Thread kbuild test robot
Hi Pranay, [auto build test WARNING on staging/staging-testing] [also build test WARNING on v4.10 next-20170220] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH Speakup v2] return same error value from spk_set_key_info

2017-02-21 Thread Samuel Thibault
Pranay Kr. Srivastava, on mar. 21 févr. 2017 19:14:38 +0530, wrote: > + if (key_data_len + SHIFT_TBL_SIZE + 4 >= sizeof(spk_key_buf)) { > + pr_debug("key_data_len = %d, SHIFT_TBL_SIZE + 4 = %d,\t" > + "sizeof(spk_key_buf) = %lu\n", key_data_len, > +

Re: [PATCH Speakup v2] return same error value from spk_set_key_info

2017-02-21 Thread Samuel Thibault
Pranay Kr. Srivastava, on mar. 21 févr. 2017 19:14:38 +0530, wrote: > + if (key_data_len + SHIFT_TBL_SIZE + 4 >= sizeof(spk_key_buf)) { > + pr_debug("key_data_len = %d, SHIFT_TBL_SIZE + 4 = %d,\t" > + "sizeof(spk_key_buf) = %lu\n", key_data_len, > +

[PATCH Speakup v2] return same error value from spk_set_key_info

2017-02-21 Thread Pranay Kr. Srivastava
This patch makes spk_set_key_info return -EINVAL in case of failure instead of returning 4 different values for the type of error that occurred. Print the offending values instead as debug message. Signed-off-by: Pranay Kr. Srivastava --- drivers/staging/speakup/main.c | 28

[PATCH Speakup v2] return same error value from spk_set_key_info

2017-02-21 Thread Pranay Kr. Srivastava
This patch makes spk_set_key_info return -EINVAL in case of failure instead of returning 4 different values for the type of error that occurred. Print the offending values instead as debug message. Signed-off-by: Pranay Kr. Srivastava --- drivers/staging/speakup/main.c | 28