]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: use FIELD_PREP() instead of <<
authorOded Gabbay <oded.gabbay@gmail.com>
Wed, 12 Aug 2020 08:21:01 +0000 (11:21 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 22 Sep 2020 15:49:50 +0000 (18:49 +0300)
commit7f854570287b3c318df094573a38544899c4a658
treec285d73c21d688fd85dd1b4a4ed0c20a4333f0e4
parentd0881e583197c32f8ed34f8e1b6e299a1349ce92
habanalabs: use FIELD_PREP() instead of <<

Use the standard FIELD_PREP() macro instead of << operator to perform
bitmask operations. This ensures type check safety and eliminate compiler
warnings.

Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/common/hw_queue.c
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/include/gaudi/gaudi_masks.h