mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 15:14:18 +08:00
ibmvnic: prefer 'unsigned long' over 'unsigned long int'
Fix the following checkpatch warnings: WARNING: Prefer 'unsigned long' over 'unsigned long int' as the int is unnecessary WARNING: Prefer 'long' over 'long int' as the int is unnecessary Signed-off-by: Lijun Pan <lijunp213@gmail.com> Reviewed-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
260b6971cb
commit
429aa36469
@ -3654,8 +3654,8 @@ static int ibmvnic_send_crq(struct ibmvnic_adapter *adapter,
|
||||
int rc;
|
||||
|
||||
netdev_dbg(adapter->netdev, "Sending CRQ: %016lx %016lx\n",
|
||||
(unsigned long int)cpu_to_be64(u64_crq[0]),
|
||||
(unsigned long int)cpu_to_be64(u64_crq[1]));
|
||||
(unsigned long)cpu_to_be64(u64_crq[0]),
|
||||
(unsigned long)cpu_to_be64(u64_crq[1]));
|
||||
|
||||
if (!adapter->crq.active &&
|
||||
crq->generic.first != IBMVNIC_CRQ_INIT_CMD) {
|
||||
@ -3884,7 +3884,7 @@ static int send_login(struct ibmvnic_adapter *adapter)
|
||||
netdev_dbg(adapter->netdev, "Login Buffer:\n");
|
||||
for (i = 0; i < (adapter->login_buf_sz - 1) / 8 + 1; i++) {
|
||||
netdev_dbg(adapter->netdev, "%016lx\n",
|
||||
((unsigned long int *)(adapter->login_buf))[i]);
|
||||
((unsigned long *)(adapter->login_buf))[i]);
|
||||
}
|
||||
|
||||
memset(&crq, 0, sizeof(crq));
|
||||
@ -4252,7 +4252,7 @@ static void handle_query_ip_offload_rsp(struct ibmvnic_adapter *adapter)
|
||||
netdev_dbg(adapter->netdev, "Query IP Offload Buffer:\n");
|
||||
for (i = 0; i < (sizeof(adapter->ip_offload_buf) - 1) / 8 + 1; i++)
|
||||
netdev_dbg(adapter->netdev, "%016lx\n",
|
||||
((unsigned long int *)(buf))[i]);
|
||||
((unsigned long *)(buf))[i]);
|
||||
|
||||
netdev_dbg(adapter->netdev, "ipv4_chksum = %d\n", buf->ipv4_chksum);
|
||||
netdev_dbg(adapter->netdev, "ipv6_chksum = %d\n", buf->ipv6_chksum);
|
||||
@ -4411,7 +4411,7 @@ static void handle_request_cap_rsp(union ibmvnic_crq *crq,
|
||||
case PARTIALSUCCESS:
|
||||
dev_info(dev, "req=%lld, rsp=%ld in %s queue, retrying.\n",
|
||||
*req_value,
|
||||
(long int)be64_to_cpu(crq->request_capability_rsp.
|
||||
(long)be64_to_cpu(crq->request_capability_rsp.
|
||||
number), name);
|
||||
|
||||
if (be16_to_cpu(crq->request_capability_rsp.capability) ==
|
||||
@ -4482,7 +4482,7 @@ static int handle_login_rsp(union ibmvnic_crq *login_rsp_crq,
|
||||
netdev_dbg(adapter->netdev, "Login Response Buffer:\n");
|
||||
for (i = 0; i < (adapter->login_rsp_buf_sz - 1) / 8 + 1; i++) {
|
||||
netdev_dbg(adapter->netdev, "%016lx\n",
|
||||
((unsigned long int *)(adapter->login_rsp_buf))[i]);
|
||||
((unsigned long *)(adapter->login_rsp_buf))[i]);
|
||||
}
|
||||
|
||||
/* Sanity checks */
|
||||
@ -4825,8 +4825,8 @@ static void ibmvnic_handle_crq(union ibmvnic_crq *crq,
|
||||
long rc;
|
||||
|
||||
netdev_dbg(netdev, "Handling CRQ: %016lx %016lx\n",
|
||||
(unsigned long int)cpu_to_be64(u64_crq[0]),
|
||||
(unsigned long int)cpu_to_be64(u64_crq[1]));
|
||||
(unsigned long)cpu_to_be64(u64_crq[0]),
|
||||
(unsigned long)cpu_to_be64(u64_crq[1]));
|
||||
switch (gen_crq->first) {
|
||||
case IBMVNIC_CRQ_INIT_RSP:
|
||||
switch (gen_crq->cmd) {
|
||||
|
Loading…
Reference in New Issue
Block a user