Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

accel/qaic: Fix mismatched types in min()

Use min_t() instead of min() to resolve compiler warnings for mismatched
types.

Signed-off-by: Zack McKevitt <zmckevit@qti.qualcomm.com>
Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Reviewed-by: Carl Vanderlip <carl.vanderlip@oss.qualcomm.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Reviewed-by: Maciej Falkowski <maciej.falkowski@linux.intel.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251015153715.184143-1-youssef.abdulrahman@oss.qualcomm.com

authored by

Zack McKevitt and committed by
Jeff Hugo
ddf70cb6 9cfe6abe

+2 -2
+2 -2
drivers/accel/qaic/sahara.c
··· 657 657 658 658 /* Request the first chunk of the first image */ 659 659 context->dump_image = &image_out_table[0]; 660 - dump_length = min(context->dump_image->length, SAHARA_READ_MAX_SIZE); 660 + dump_length = min_t(u64, context->dump_image->length, SAHARA_READ_MAX_SIZE); 661 661 /* Avoid requesting EOI sized data so that we can identify errors */ 662 662 if (dump_length == SAHARA_END_OF_IMAGE_LENGTH) 663 663 dump_length = SAHARA_END_OF_IMAGE_LENGTH / 2; ··· 705 705 706 706 /* Get next image chunk */ 707 707 dump_length = context->dump_image->length - context->dump_image_offset; 708 - dump_length = min(dump_length, SAHARA_READ_MAX_SIZE); 708 + dump_length = min_t(u64, dump_length, SAHARA_READ_MAX_SIZE); 709 709 /* Avoid requesting EOI sized data so that we can identify errors */ 710 710 if (dump_length == SAHARA_END_OF_IMAGE_LENGTH) 711 711 dump_length = SAHARA_END_OF_IMAGE_LENGTH / 2;