Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] rm pointless dmaengine exports

This removes several pointless exports from drivers/dma/dmaengine.c; the
dma_async_memcpy_*() functions are inlined by <linux/dmaengine.h> so those
exports are inappropriate.

It also moves the existing EXPORT_SYMBOL declarations next to their functions,
so it's now trivial to confirm one-to-one correspondence between exports and
nonstatic symbols.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Chris Leech <christopher.leech@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

David Brownell and committed by
Linus Torvalds
765e3d8a bed31ed9

+6 -12
+6 -12
drivers/dma/dmaengine.c
··· 176 176 chan->client = NULL; 177 177 kref_put(&chan->device->refcount, dma_async_device_cleanup); 178 178 } 179 + EXPORT_SYMBOL(dma_chan_cleanup); 179 180 180 181 static void dma_chan_free_rcu(struct rcu_head *rcu) 181 182 { ··· 262 261 263 262 return client; 264 263 } 264 + EXPORT_SYMBOL(dma_async_client_register); 265 265 266 266 /** 267 267 * dma_async_client_unregister - unregister a client and free the &dma_client ··· 289 287 kfree(client); 290 288 dma_chans_rebalance(); 291 289 } 290 + EXPORT_SYMBOL(dma_async_client_unregister); 292 291 293 292 /** 294 293 * dma_async_client_chan_request - request DMA channels ··· 307 304 client->chans_desired = number; 308 305 dma_chans_rebalance(); 309 306 } 307 + EXPORT_SYMBOL(dma_async_client_chan_request); 310 308 311 309 /** 312 310 * dma_async_device_register - registers DMA devices found ··· 350 346 351 347 return 0; 352 348 } 349 + EXPORT_SYMBOL(dma_async_device_register); 353 350 354 351 /** 355 352 * dma_async_device_cleanup - function called when all references are released ··· 395 390 kref_put(&device->refcount, dma_async_device_cleanup); 396 391 wait_for_completion(&device->done); 397 392 } 393 + EXPORT_SYMBOL(dma_async_device_unregister); 398 394 399 395 static int __init dma_bus_init(void) 400 396 { 401 397 mutex_init(&dma_list_mutex); 402 398 return class_register(&dma_devclass); 403 399 } 404 - 405 400 subsys_initcall(dma_bus_init); 406 401 407 - EXPORT_SYMBOL(dma_async_client_register); 408 - EXPORT_SYMBOL(dma_async_client_unregister); 409 - EXPORT_SYMBOL(dma_async_client_chan_request); 410 - EXPORT_SYMBOL(dma_async_memcpy_buf_to_buf); 411 - EXPORT_SYMBOL(dma_async_memcpy_buf_to_pg); 412 - EXPORT_SYMBOL(dma_async_memcpy_pg_to_pg); 413 - EXPORT_SYMBOL(dma_async_memcpy_complete); 414 - EXPORT_SYMBOL(dma_async_memcpy_issue_pending); 415 - EXPORT_SYMBOL(dma_async_device_register); 416 - EXPORT_SYMBOL(dma_async_device_unregister); 417 - EXPORT_SYMBOL(dma_chan_cleanup);