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)
commit65887291c6a80c3f2263348548899818b334cc8a
treec285d73c21d688fd85dd1b4a4ed0c20a4333f0e4
parenta0e072f5a18ffa04f83669a886dc4a4cfc3a1341
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