Skip to content

Commit 9ec4820

Browse files
committed
XDMA: linux-kernel: fix shift-overflow warning
add UL suffix to XVC_MAGIC thus fixing related compile time warning. Signed-off-by: Firas Achkar <[email protected]>
1 parent 77ceefe commit 9ec4820

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

XDMA/linux-kernel/xdma/cdev_xvc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
#define XVC_BAR_OFFSET_DFLT 0x40000 /* DSA 4.0 */
2929

30-
#define XVC_MAGIC 0x58564344 // "XVCD"
30+
#define XVC_MAGIC 0x58564344UL // "XVCD"
3131

3232
struct xvc_ioc {
3333
unsigned int opcode;

0 commit comments

Comments
 (0)