Skip to contentSkip to conversation

Warnings when compiling drivers/infiniband/hw/amso1100/c2_vq.c on an i386 system

DISCUSSION Larry Finger 1 participant 1 message Aug 10, 2010 InfiniBand

lore
Share & tools
lore
#0 lore raw

When building the current mainline on i386 architecture, I get the following warnings:

CC [M] drivers/infiniband/hw/amso1100/c2_vq.o
drivers/infiniband/hw/amso1100/c2_vq.c: In function ‘vq_req_alloc’:
drivers/infiniband/hw/amso1100/c2_vq.c:110:18: warning: cast from pointer to integer of different size drivers/infiniband/hw/amso1100/c2_vq.c: In function ‘vq_req_free’:
drivers/infiniband/hw/amso1100/c2_vq.c:126:17: warning: cast from pointer to integer of different size drivers/infiniband/hw/amso1100/c2_vq.c: In function ‘vq_req_put’:
drivers/infiniband/hw/amso1100/c2_vq.c:154:23: warning: cast from pointer to integer of different size

Each of them arises from a statement of the form:

    r->reply_msg = (u64) NULL;

Is that cast necessary? I would have expected gcc to generate a NULL of the proper length without it, or am I missing something? As I do not have the hardware and could not test any patches, I will not submit any, but I'm interested in the answer.

Thanks,

Larry
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html