mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
dmaengine: ioat: Free up __cleanup() name
In order to use __cleanup for __attribute__((__cleanup__(func))) the name must not be used for anything else. Avoid the conflict. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Dave Jiang <dave.jiang@intel.com> Link: https://lkml.kernel.org/r/20230612093537.467120754%40infradead.org
This commit is contained in:
parent
6995e2de68
commit
f62141ac73
@ -584,11 +584,11 @@ desc_get_errstat(struct ioatdma_chan *ioat_chan, struct ioat_ring_ent *desc)
|
||||
}
|
||||
|
||||
/**
|
||||
* __cleanup - reclaim used descriptors
|
||||
* __ioat_cleanup - reclaim used descriptors
|
||||
* @ioat_chan: channel (ring) to clean
|
||||
* @phys_complete: zeroed (or not) completion address (from status)
|
||||
*/
|
||||
static void __cleanup(struct ioatdma_chan *ioat_chan, dma_addr_t phys_complete)
|
||||
static void __ioat_cleanup(struct ioatdma_chan *ioat_chan, dma_addr_t phys_complete)
|
||||
{
|
||||
struct ioatdma_device *ioat_dma = ioat_chan->ioat_dma;
|
||||
struct ioat_ring_ent *desc;
|
||||
@ -675,7 +675,7 @@ static void ioat_cleanup(struct ioatdma_chan *ioat_chan)
|
||||
spin_lock_bh(&ioat_chan->cleanup_lock);
|
||||
|
||||
if (ioat_cleanup_preamble(ioat_chan, &phys_complete))
|
||||
__cleanup(ioat_chan, phys_complete);
|
||||
__ioat_cleanup(ioat_chan, phys_complete);
|
||||
|
||||
if (is_ioat_halted(*ioat_chan->completion)) {
|
||||
u32 chanerr = readl(ioat_chan->reg_base + IOAT_CHANERR_OFFSET);
|
||||
@ -712,7 +712,7 @@ static void ioat_restart_channel(struct ioatdma_chan *ioat_chan)
|
||||
|
||||
ioat_quiesce(ioat_chan, 0);
|
||||
if (ioat_cleanup_preamble(ioat_chan, &phys_complete))
|
||||
__cleanup(ioat_chan, phys_complete);
|
||||
__ioat_cleanup(ioat_chan, phys_complete);
|
||||
|
||||
__ioat_restart_chan(ioat_chan);
|
||||
}
|
||||
@ -786,7 +786,7 @@ static void ioat_eh(struct ioatdma_chan *ioat_chan)
|
||||
|
||||
/* cleanup so tail points to descriptor that caused the error */
|
||||
if (ioat_cleanup_preamble(ioat_chan, &phys_complete))
|
||||
__cleanup(ioat_chan, phys_complete);
|
||||
__ioat_cleanup(ioat_chan, phys_complete);
|
||||
|
||||
chanerr = readl(ioat_chan->reg_base + IOAT_CHANERR_OFFSET);
|
||||
pci_read_config_dword(pdev, IOAT_PCI_CHANERR_INT_OFFSET, &chanerr_int);
|
||||
@ -943,7 +943,7 @@ void ioat_timer_event(struct timer_list *t)
|
||||
/* timer restarted in ioat_cleanup_preamble
|
||||
* and IOAT_COMPLETION_ACK cleared
|
||||
*/
|
||||
__cleanup(ioat_chan, phys_complete);
|
||||
__ioat_cleanup(ioat_chan, phys_complete);
|
||||
goto unlock_out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user