Skip to content

Commit

Permalink
async_tx: checkpatch says s/__FUNCTION__/__func__/g
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
Dan Williams committed Mar 13, 2008
1 parent 3d9b525 commit 3280ab3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions crypto/async_tx/async_memcpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ async_memcpy(struct page *dest, struct page *src, unsigned int dest_offset,
}

if (tx) {
pr_debug("%s: (async) len: %zu\n", __FUNCTION__, len);
pr_debug("%s: (async) len: %zu\n", __func__, len);
async_tx_submit(chan, tx, flags, depend_tx, cb_fn, cb_param);
} else {
void *dest_buf, *src_buf;
pr_debug("%s: (sync) len: %zu\n", __FUNCTION__, len);
pr_debug("%s: (sync) len: %zu\n", __func__, len);

/* wait for any prerequisite operations */
if (depend_tx) {
Expand All @@ -80,7 +80,7 @@ async_memcpy(struct page *dest, struct page *src, unsigned int dest_offset,
BUG_ON(depend_tx->ack);
if (dma_wait_for_async_tx(depend_tx) == DMA_ERROR)
panic("%s: DMA_ERROR waiting for depend_tx\n",
__FUNCTION__);
__func__);
}

dest_buf = kmap_atomic(dest, KM_USER0) + dest_offset;
Expand Down
6 changes: 3 additions & 3 deletions crypto/async_tx/async_memset.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ async_memset(struct page *dest, int val, unsigned int offset,
}

if (tx) {
pr_debug("%s: (async) len: %zu\n", __FUNCTION__, len);
pr_debug("%s: (async) len: %zu\n", __func__, len);
async_tx_submit(chan, tx, flags, depend_tx, cb_fn, cb_param);
} else { /* run the memset synchronously */
void *dest_buf;
pr_debug("%s: (sync) len: %zu\n", __FUNCTION__, len);
pr_debug("%s: (sync) len: %zu\n", __func__, len);

dest_buf = (void *) (((char *) page_address(dest)) + offset);

Expand All @@ -79,7 +79,7 @@ async_memset(struct page *dest, int val, unsigned int offset,
BUG_ON(depend_tx->ack);
if (dma_wait_for_async_tx(depend_tx) == DMA_ERROR)
panic("%s: DMA_ERROR waiting for depend_tx\n",
__FUNCTION__);
__func__);
}

memset(dest_buf, val, len);
Expand Down
6 changes: 3 additions & 3 deletions crypto/async_tx/async_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,11 @@ async_trigger_callback(enum async_tx_flags flags,
tx = NULL;

if (tx) {
pr_debug("%s: (async)\n", __FUNCTION__);
pr_debug("%s: (async)\n", __func__);

async_tx_submit(chan, tx, flags, depend_tx, cb_fn, cb_param);
} else {
pr_debug("%s: (sync)\n", __FUNCTION__);
pr_debug("%s: (sync)\n", __func__);

/* wait for any prerequisite operations */
if (depend_tx) {
Expand All @@ -486,7 +486,7 @@ async_trigger_callback(enum async_tx_flags flags,
BUG_ON(depend_tx->ack);
if (dma_wait_for_async_tx(depend_tx) == DMA_ERROR)
panic("%s: DMA_ERROR waiting for depend_tx\n",
__FUNCTION__);
__func__);
}

async_tx_sync_epilog(flags, depend_tx, cb_fn, cb_param);
Expand Down
12 changes: 6 additions & 6 deletions crypto/async_tx/async_xor.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ do_async_xor(struct dma_device *device,
int i;
unsigned long dma_prep_flags = cb_fn ? DMA_PREP_INTERRUPT : 0;

pr_debug("%s: len: %zu\n", __FUNCTION__, len);
pr_debug("%s: len: %zu\n", __func__, len);

dma_dest = dma_map_page(device->dev, dest, offset, len,
DMA_FROM_DEVICE);
Expand Down Expand Up @@ -86,7 +86,7 @@ do_sync_xor(struct page *dest, struct page **src_list, unsigned int offset,
void *_dest;
int i;

pr_debug("%s: len: %zu\n", __FUNCTION__, len);
pr_debug("%s: len: %zu\n", __func__, len);

/* reuse the 'src_list' array to convert to buffer pointers */
for (i = 0; i < src_cnt; i++)
Expand Down Expand Up @@ -196,7 +196,7 @@ async_xor(struct page *dest, struct page **src_list, unsigned int offset,
DMA_ERROR)
panic("%s: DMA_ERROR waiting for "
"depend_tx\n",
__FUNCTION__);
__func__);
}

do_sync_xor(dest, &src_list[src_off], offset,
Expand Down Expand Up @@ -276,7 +276,7 @@ async_xor_zero_sum(struct page *dest, struct page **src_list,
unsigned long dma_prep_flags = cb_fn ? DMA_PREP_INTERRUPT : 0;
int i;

pr_debug("%s: (async) len: %zu\n", __FUNCTION__, len);
pr_debug("%s: (async) len: %zu\n", __func__, len);

for (i = 0; i < src_cnt; i++)
dma_src[i] = dma_map_page(device->dev, src_list[i],
Expand All @@ -299,7 +299,7 @@ async_xor_zero_sum(struct page *dest, struct page **src_list,
} else {
unsigned long xor_flags = flags;

pr_debug("%s: (sync) len: %zu\n", __FUNCTION__, len);
pr_debug("%s: (sync) len: %zu\n", __func__, len);

xor_flags |= ASYNC_TX_XOR_DROP_DST;
xor_flags &= ~ASYNC_TX_ACK;
Expand All @@ -310,7 +310,7 @@ async_xor_zero_sum(struct page *dest, struct page **src_list,
if (tx) {
if (dma_wait_for_async_tx(tx) == DMA_ERROR)
panic("%s: DMA_ERROR waiting for tx\n",
__FUNCTION__);
__func__);
async_tx_ack(tx);
}

Expand Down

0 comments on commit 3280ab3

Please sign in to comment.