In message: [linux-yocto][linux-yocto v6.1 standard&preempt-rt intel-socfpga branch][PATCH] intel: fcs: remove unused variable total_out_size and output_file_pointer on 15/06/2023 Liwei Song wrote:
> total_out_size and output_file_pointer are not used anymore, delete them > to avoid build error when enabled [-Werror=unused-variable]: > > drivers/crypto/intel_fcs_main.c: > In function 'fcs_ioctl': > | > drivers/crypto/intel_fcs_main.c:403:45: > error: unused variable 'total_out_size' [-Werror=unused-variable] > | 403 | uint32_t remaining_size, data_size, total_out_size; > | | ^~~~~~~~~~~~~~ > | > drivers/crypto/intel_fcs_main.c:401:15: > error: unused variable 'output_file_pointer' [-Werror=unused-variable] > | 401 | void *output_file_pointer; > | | ^~~~~~~~~~~~~~~~~~~ > > Signed-off-by: Liwei Song <[email protected]> > --- > > Hi Bruce, > > Could you help merge this patch to: > v6.1/standard/intel-sdk-6.1/intel-socfpga > v6.1/standard/preempt-rt/intel-sdk-6.1/intel-socfpga merged. Bruce > > Thanks, > Liwei. > > --- > drivers/crypto/intel_fcs_main.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/crypto/intel_fcs_main.c b/drivers/crypto/intel_fcs_main.c > index 2b542e68e0cf..7800c7c4b97a 100644 > --- a/drivers/crypto/intel_fcs_main.c > +++ b/drivers/crypto/intel_fcs_main.c > @@ -398,9 +398,8 @@ static long fcs_ioctl(struct file *file, unsigned int cmd, > void *ps_buf; > void *iv_field_buf; > void *input_file_pointer; > - void *output_file_pointer; > unsigned int buf_sz, in_sz, out_sz; > - uint32_t remaining_size, data_size, total_out_size; > + uint32_t remaining_size, data_size; > uint32_t sign_size; > int ret = 0; > int i; > -- > 1.8.3.1 >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12769): https://lists.yoctoproject.org/g/linux-yocto/message/12769 Mute This Topic: https://lists.yoctoproject.org/mt/99539173/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/leave/6687884/21656/624485779/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
