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.

drivers/isdn/hardware/eicon/message.c warning fixes

Squash these:

drivers/isdn/hardware/eicon/message.c: In function 'api_put':
drivers/isdn/hardware/eicon/message.c:536: warning: cast from pointer to integer of different size
drivers/isdn/hardware/eicon/message.c: In function 'plci_free_msg_in_queue':
drivers/isdn/hardware/eicon/message.c:1035: warning: cast to pointer from integer of different size
drivers/isdn/hardware/eicon/message.c: In function 'data_b3_req':
drivers/isdn/hardware/eicon/message.c:3121: warning: cast to pointer from integer of different size
drivers/isdn/hardware/eicon/message.c:3154: warning: cast to pointer from integer of different size
drivers/isdn/hardware/eicon/message.c: In function 'callback':
drivers/isdn/hardware/eicon/message.c:4060: warning: cast to pointer from integer of different size
drivers/isdn/hardware/eicon/message.c: In function 'nl_ind':
drivers/isdn/hardware/eicon/message.c:7137: warning: cast from pointer to integer of different size

Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Andrew Morton and committed by
Linus Torvalds
d3c8bdfb 241be8d9

+6 -7
+6 -7
drivers/isdn/hardware/eicon/message.c
··· 1 - 2 1 /* 3 2 * 4 3 Copyright (c) Eicon Networks, 2002. ··· 532 533 if (m->header.command == _DATA_B3_R) 533 534 { 534 535 535 - m->info.data_b3_req.Data = (dword)(TransmitBufferSet (appl, m->info.data_b3_req.Data)); 536 + m->info.data_b3_req.Data = (dword)(long)(TransmitBufferSet (appl, m->info.data_b3_req.Data)); 536 537 537 538 } 538 539 ··· 1031 1032 { 1032 1033 1033 1034 TransmitBufferFree (plci->appl, 1034 - (byte *)(((CAPI_MSG *)(&((byte *)(plci->msg_in_queue))[i]))->info.data_b3_req.Data)); 1035 + (byte *)(long)(((CAPI_MSG *)(&((byte *)(plci->msg_in_queue))[i]))->info.data_b3_req.Data)); 1035 1036 1036 1037 } 1037 1038 ··· 3117 3118 && (((byte *)(parms[0].info)) < ((byte *)(plci->msg_in_queue)) + sizeof(plci->msg_in_queue))) 3118 3119 { 3119 3120 3120 - data->P = (byte *)(*((dword *)(parms[0].info))); 3121 + data->P = (byte *)(long)(*((dword *)(parms[0].info))); 3121 3122 3122 3123 } 3123 3124 else ··· 3150 3151 && (((byte *)(parms[0].info)) < ((byte *)(plci->msg_in_queue)) + sizeof(plci->msg_in_queue))) 3151 3152 { 3152 3153 3153 - TransmitBufferFree (appl, (byte *)(*((dword *)(parms[0].info)))); 3154 + TransmitBufferFree (appl, (byte *)(long)(*((dword *)(parms[0].info)))); 3154 3155 3155 3156 } 3156 3157 } ··· 4056 4057 { 4057 4058 if (m->header.command == _DATA_B3_R) 4058 4059 4059 - TransmitBufferFree (appl, (byte *)(m->info.data_b3_req.Data)); 4060 + TransmitBufferFree (appl, (byte *)(long)(m->info.data_b3_req.Data)); 4060 4061 4061 4062 dbug(1,dprintf("Error 0x%04x from msg(0x%04x)", i, m->header.command)); 4062 4063 break; ··· 7133 7134 case N_UDATA: 7134 7135 if (!(udata_forwarding_table[plci->NL.RBuffer->P[0] >> 5] & (1L << (plci->NL.RBuffer->P[0] & 0x1f)))) 7135 7136 { 7136 - plci->RData[0].P = plci->internal_ind_buffer + (-((int)(plci->internal_ind_buffer)) & 3); 7137 + plci->RData[0].P = plci->internal_ind_buffer + (-((int)(long)(plci->internal_ind_buffer)) & 3); 7137 7138 plci->RData[0].PLength = INTERNAL_IND_BUFFER_SIZE; 7138 7139 plci->NL.R = plci->RData; 7139 7140 plci->NL.RNum = 1;