Commit e8c7f199 authored by Todd Poynor's avatar Todd Poynor Committed by Greg Kroah-Hartman

staging: gasket: page table: fix function param line continuation style

Fix multi-line alignment formatting to look like:
      int ret = long_function_name(device, VARIABLE1, VARIABLE2,
                                   VARIABLE3, VARIABLE4);

Many of these TODO items were previously cleaned up during the conversion
to standard logging functions.
Signed-off-by: default avatarTodd Poynor <toddpoynor@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3e845083
This diff is collapsed.
...@@ -46,11 +46,10 @@ struct gasket_page_table; ...@@ -46,11 +46,10 @@ struct gasket_page_table;
* *
* Returns 0 on success, a negative error code otherwise. * Returns 0 on success, a negative error code otherwise.
*/ */
int gasket_page_table_init( int gasket_page_table_init(struct gasket_page_table **ppg_tbl,
struct gasket_page_table **ppg_tbl, const struct gasket_bar_data *bar_data,
const struct gasket_bar_data *bar_data, const struct gasket_page_table_config *page_table_config,
const struct gasket_page_table_config *page_table_config, struct device *device, struct pci_dev *pci_dev);
struct device *device, struct pci_dev *pci_dev);
/* /*
* Deallocate and cleanup page table data. * Deallocate and cleanup page table data.
...@@ -77,8 +76,8 @@ void gasket_page_table_cleanup(struct gasket_page_table *page_table); ...@@ -77,8 +76,8 @@ void gasket_page_table_cleanup(struct gasket_page_table *page_table);
* Returns 0 if successful, or non-zero if the page table entries * Returns 0 if successful, or non-zero if the page table entries
* are not free. * are not free.
*/ */
int gasket_page_table_partition( int gasket_page_table_partition(struct gasket_page_table *page_table,
struct gasket_page_table *page_table, uint num_simple_entries); uint num_simple_entries);
/* /*
* Get and map [host] user space pages into device memory. * Get and map [host] user space pages into device memory.
...@@ -106,8 +105,8 @@ int gasket_page_table_map(struct gasket_page_table *page_table, ulong host_addr, ...@@ -106,8 +105,8 @@ int gasket_page_table_map(struct gasket_page_table *page_table, ulong host_addr,
* *
* Description: The inverse of gasket_map_pages. Unmaps pages from the device. * Description: The inverse of gasket_map_pages. Unmaps pages from the device.
*/ */
void gasket_page_table_unmap( void gasket_page_table_unmap(struct gasket_page_table *page_table,
struct gasket_page_table *page_table, ulong dev_addr, uint num_pages); ulong dev_addr, uint num_pages);
/* /*
* Unmap ALL host pages from device memory. * Unmap ALL host pages from device memory.
...@@ -146,9 +145,9 @@ void gasket_page_table_garbage_collect(struct gasket_page_table *page_table); ...@@ -146,9 +145,9 @@ void gasket_page_table_garbage_collect(struct gasket_page_table *page_table);
* Returns 0 if successful, -1 for an error. The page pointer * Returns 0 if successful, -1 for an error. The page pointer
* and offset are returned through the pointers, if successful. * and offset are returned through the pointers, if successful.
*/ */
int gasket_page_table_lookup_page( int gasket_page_table_lookup_page(struct gasket_page_table *page_table,
struct gasket_page_table *page_table, ulong dev_addr, ulong dev_addr, struct page **page,
struct page **page, ulong *poffset); ulong *poffset);
/* /*
* Checks validity for input addrs and size. * Checks validity for input addrs and size.
...@@ -163,9 +162,9 @@ int gasket_page_table_lookup_page( ...@@ -163,9 +162,9 @@ int gasket_page_table_lookup_page(
* *
* Returns true if the mapping is bad, false otherwise. * Returns true if the mapping is bad, false otherwise.
*/ */
bool gasket_page_table_are_addrs_bad( bool gasket_page_table_are_addrs_bad(struct gasket_page_table *page_table,
struct gasket_page_table *page_table, ulong host_addr, ulong dev_addr, ulong host_addr, ulong dev_addr,
ulong bytes); ulong bytes);
/* /*
* Checks validity for input dev addr and size. * Checks validity for input dev addr and size.
...@@ -179,8 +178,8 @@ bool gasket_page_table_are_addrs_bad( ...@@ -179,8 +178,8 @@ bool gasket_page_table_are_addrs_bad(
* *
* Returns true if the address is bad, false otherwise. * Returns true if the address is bad, false otherwise.
*/ */
bool gasket_page_table_is_dev_addr_bad( bool gasket_page_table_is_dev_addr_bad(struct gasket_page_table *page_table,
struct gasket_page_table *page_table, ulong dev_addr, ulong bytes); ulong dev_addr, ulong bytes);
/* /*
* Gets maximum size for the given page table. * Gets maximum size for the given page table.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment