diff options
author | Alastair D'Silva <alastair@d-silva.org> | 2019-03-25 01:34:54 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-05-02 12:55:01 -0400 |
commit | 53e3e74530626d708d4822a29a3edd16f7484b4b (patch) | |
tree | 1fddfb73de766ad12621e55efb27b5b0bf5ebfe2 /include/misc | |
parent | 32941494ff9a9f78fc967adf0e03044b62e09114 (diff) |
ocxl: Remove superfluous 'extern' from headers
The 'extern' keyword adds no value here.
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Acked-by: Frederic Barrat <fbarrat@linux.ibm.com>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'include/misc')
-rw-r--r-- | include/misc/ocxl.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/include/misc/ocxl.h b/include/misc/ocxl.h index 9ff6ddc28e22..4544573cc93c 100644 --- a/include/misc/ocxl.h +++ b/include/misc/ocxl.h | |||
@@ -53,7 +53,7 @@ struct ocxl_fn_config { | |||
53 | * Read the configuration space of a function and fill in a | 53 | * Read the configuration space of a function and fill in a |
54 | * ocxl_fn_config structure with all the function details | 54 | * ocxl_fn_config structure with all the function details |
55 | */ | 55 | */ |
56 | extern int ocxl_config_read_function(struct pci_dev *dev, | 56 | int ocxl_config_read_function(struct pci_dev *dev, |
57 | struct ocxl_fn_config *fn); | 57 | struct ocxl_fn_config *fn); |
58 | 58 | ||
59 | /* | 59 | /* |
@@ -62,14 +62,14 @@ extern int ocxl_config_read_function(struct pci_dev *dev, | |||
62 | * AFU indexes can be sparse, so a driver should check all indexes up | 62 | * AFU indexes can be sparse, so a driver should check all indexes up |
63 | * to the maximum found in the function description | 63 | * to the maximum found in the function description |
64 | */ | 64 | */ |
65 | extern int ocxl_config_check_afu_index(struct pci_dev *dev, | 65 | int ocxl_config_check_afu_index(struct pci_dev *dev, |
66 | struct ocxl_fn_config *fn, int afu_idx); | 66 | struct ocxl_fn_config *fn, int afu_idx); |
67 | 67 | ||
68 | /* | 68 | /* |
69 | * Read the configuration space of a function for the AFU specified by | 69 | * Read the configuration space of a function for the AFU specified by |
70 | * the index 'afu_idx'. Fills in a ocxl_afu_config structure | 70 | * the index 'afu_idx'. Fills in a ocxl_afu_config structure |
71 | */ | 71 | */ |
72 | extern int ocxl_config_read_afu(struct pci_dev *dev, | 72 | int ocxl_config_read_afu(struct pci_dev *dev, |
73 | struct ocxl_fn_config *fn, | 73 | struct ocxl_fn_config *fn, |
74 | struct ocxl_afu_config *afu, | 74 | struct ocxl_afu_config *afu, |
75 | u8 afu_idx); | 75 | u8 afu_idx); |
@@ -77,7 +77,7 @@ extern int ocxl_config_read_afu(struct pci_dev *dev, | |||
77 | /* | 77 | /* |
78 | * Get the max PASID value that can be used by the function | 78 | * Get the max PASID value that can be used by the function |
79 | */ | 79 | */ |
80 | extern int ocxl_config_get_pasid_info(struct pci_dev *dev, int *count); | 80 | int ocxl_config_get_pasid_info(struct pci_dev *dev, int *count); |
81 | 81 | ||
82 | /* | 82 | /* |
83 | * Tell an AFU, by writing in the configuration space, the PASIDs that | 83 | * Tell an AFU, by writing in the configuration space, the PASIDs that |
@@ -87,7 +87,7 @@ extern int ocxl_config_get_pasid_info(struct pci_dev *dev, int *count); | |||
87 | * 'afu_control_offset' is the offset of the AFU control DVSEC which | 87 | * 'afu_control_offset' is the offset of the AFU control DVSEC which |
88 | * can be found in the function configuration | 88 | * can be found in the function configuration |
89 | */ | 89 | */ |
90 | extern void ocxl_config_set_afu_pasid(struct pci_dev *dev, | 90 | void ocxl_config_set_afu_pasid(struct pci_dev *dev, |
91 | int afu_control_offset, | 91 | int afu_control_offset, |
92 | int pasid_base, u32 pasid_count_log); | 92 | int pasid_base, u32 pasid_count_log); |
93 | 93 | ||
@@ -98,7 +98,7 @@ extern void ocxl_config_set_afu_pasid(struct pci_dev *dev, | |||
98 | * 'supported' is the total number of actags desired by all the AFUs | 98 | * 'supported' is the total number of actags desired by all the AFUs |
99 | * of the function. | 99 | * of the function. |
100 | */ | 100 | */ |
101 | extern int ocxl_config_get_actag_info(struct pci_dev *dev, | 101 | int ocxl_config_get_actag_info(struct pci_dev *dev, |
102 | u16 *base, u16 *enabled, u16 *supported); | 102 | u16 *base, u16 *enabled, u16 *supported); |
103 | 103 | ||
104 | /* | 104 | /* |
@@ -108,7 +108,7 @@ extern int ocxl_config_get_actag_info(struct pci_dev *dev, | |||
108 | * 'func_offset' is the offset of the Function DVSEC that can found in | 108 | * 'func_offset' is the offset of the Function DVSEC that can found in |
109 | * the function configuration | 109 | * the function configuration |
110 | */ | 110 | */ |
111 | extern void ocxl_config_set_actag(struct pci_dev *dev, int func_offset, | 111 | void ocxl_config_set_actag(struct pci_dev *dev, int func_offset, |
112 | u32 actag_base, u32 actag_count); | 112 | u32 actag_base, u32 actag_count); |
113 | 113 | ||
114 | /* | 114 | /* |
@@ -118,7 +118,7 @@ extern void ocxl_config_set_actag(struct pci_dev *dev, int func_offset, | |||
118 | * 'afu_control_offset' is the offset of the AFU control DVSEC for the | 118 | * 'afu_control_offset' is the offset of the AFU control DVSEC for the |
119 | * desired AFU. It can be found in the AFU configuration | 119 | * desired AFU. It can be found in the AFU configuration |
120 | */ | 120 | */ |
121 | extern void ocxl_config_set_afu_actag(struct pci_dev *dev, | 121 | void ocxl_config_set_afu_actag(struct pci_dev *dev, |
122 | int afu_control_offset, | 122 | int afu_control_offset, |
123 | int actag_base, int actag_count); | 123 | int actag_base, int actag_count); |
124 | 124 | ||
@@ -128,7 +128,7 @@ extern void ocxl_config_set_afu_actag(struct pci_dev *dev, | |||
128 | * 'afu_control_offset' is the offset of the AFU control DVSEC for the | 128 | * 'afu_control_offset' is the offset of the AFU control DVSEC for the |
129 | * desired AFU. It can be found in the AFU configuration | 129 | * desired AFU. It can be found in the AFU configuration |
130 | */ | 130 | */ |
131 | extern void ocxl_config_set_afu_state(struct pci_dev *dev, | 131 | void ocxl_config_set_afu_state(struct pci_dev *dev, |
132 | int afu_control_offset, int enable); | 132 | int afu_control_offset, int enable); |
133 | 133 | ||
134 | /* | 134 | /* |
@@ -139,7 +139,7 @@ extern void ocxl_config_set_afu_state(struct pci_dev *dev, | |||
139 | * between the host and device, and set the Transaction Layer on both | 139 | * between the host and device, and set the Transaction Layer on both |
140 | * accordingly. | 140 | * accordingly. |
141 | */ | 141 | */ |
142 | extern int ocxl_config_set_TL(struct pci_dev *dev, int tl_dvsec); | 142 | int ocxl_config_set_TL(struct pci_dev *dev, int tl_dvsec); |
143 | 143 | ||
144 | /* | 144 | /* |
145 | * Request an AFU to terminate a PASID. | 145 | * Request an AFU to terminate a PASID. |
@@ -152,7 +152,7 @@ extern int ocxl_config_set_TL(struct pci_dev *dev, int tl_dvsec); | |||
152 | * 'afu_control_offset' is the offset of the AFU control DVSEC for the | 152 | * 'afu_control_offset' is the offset of the AFU control DVSEC for the |
153 | * desired AFU. It can be found in the AFU configuration | 153 | * desired AFU. It can be found in the AFU configuration |
154 | */ | 154 | */ |
155 | extern int ocxl_config_terminate_pasid(struct pci_dev *dev, | 155 | int ocxl_config_terminate_pasid(struct pci_dev *dev, |
156 | int afu_control_offset, int pasid); | 156 | int afu_control_offset, int pasid); |
157 | 157 | ||
158 | /* | 158 | /* |
@@ -165,13 +165,13 @@ extern int ocxl_config_terminate_pasid(struct pci_dev *dev, | |||
165 | * Returns a 'link handle' that should be used for further calls for | 165 | * Returns a 'link handle' that should be used for further calls for |
166 | * the link | 166 | * the link |
167 | */ | 167 | */ |
168 | extern int ocxl_link_setup(struct pci_dev *dev, int PE_mask, | 168 | int ocxl_link_setup(struct pci_dev *dev, int PE_mask, |
169 | void **link_handle); | 169 | void **link_handle); |
170 | 170 | ||
171 | /* | 171 | /* |
172 | * Remove the association between the function and its link. | 172 | * Remove the association between the function and its link. |
173 | */ | 173 | */ |
174 | extern void ocxl_link_release(struct pci_dev *dev, void *link_handle); | 174 | void ocxl_link_release(struct pci_dev *dev, void *link_handle); |
175 | 175 | ||
176 | /* | 176 | /* |
177 | * Add a Process Element to the Shared Process Area for a link. | 177 | * Add a Process Element to the Shared Process Area for a link. |
@@ -183,7 +183,7 @@ extern void ocxl_link_release(struct pci_dev *dev, void *link_handle); | |||
183 | * 'xsl_err_data' is an argument passed to the above callback, if | 183 | * 'xsl_err_data' is an argument passed to the above callback, if |
184 | * defined | 184 | * defined |
185 | */ | 185 | */ |
186 | extern int ocxl_link_add_pe(void *link_handle, int pasid, u32 pidr, u32 tidr, | 186 | int ocxl_link_add_pe(void *link_handle, int pasid, u32 pidr, u32 tidr, |
187 | u64 amr, struct mm_struct *mm, | 187 | u64 amr, struct mm_struct *mm, |
188 | void (*xsl_err_cb)(void *data, u64 addr, u64 dsisr), | 188 | void (*xsl_err_cb)(void *data, u64 addr, u64 dsisr), |
189 | void *xsl_err_data); | 189 | void *xsl_err_data); |
@@ -195,12 +195,12 @@ extern int ocxl_link_add_pe(void *link_handle, int pasid, u32 pidr, u32 tidr, | |||
195 | * pasid: the PASID for the AFU context | 195 | * pasid: the PASID for the AFU context |
196 | * tid: the new thread id for the process element | 196 | * tid: the new thread id for the process element |
197 | */ | 197 | */ |
198 | extern int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid); | 198 | int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid); |
199 | 199 | ||
200 | /* | 200 | /* |
201 | * Remove a Process Element from the Shared Process Area for a link | 201 | * Remove a Process Element from the Shared Process Area for a link |
202 | */ | 202 | */ |
203 | extern int ocxl_link_remove_pe(void *link_handle, int pasid); | 203 | int ocxl_link_remove_pe(void *link_handle, int pasid); |
204 | 204 | ||
205 | /* | 205 | /* |
206 | * Allocate an AFU interrupt associated to the link. | 206 | * Allocate an AFU interrupt associated to the link. |
@@ -212,12 +212,12 @@ extern int ocxl_link_remove_pe(void *link_handle, int pasid); | |||
212 | * interrupt. It is an MMIO address which needs to be remapped (one | 212 | * interrupt. It is an MMIO address which needs to be remapped (one |
213 | * page). | 213 | * page). |
214 | */ | 214 | */ |
215 | extern int ocxl_link_irq_alloc(void *link_handle, int *hw_irq, | 215 | int ocxl_link_irq_alloc(void *link_handle, int *hw_irq, |
216 | u64 *obj_handle); | 216 | u64 *obj_handle); |
217 | 217 | ||
218 | /* | 218 | /* |
219 | * Free a previously allocated AFU interrupt | 219 | * Free a previously allocated AFU interrupt |
220 | */ | 220 | */ |
221 | extern void ocxl_link_free_irq(void *link_handle, int hw_irq); | 221 | void ocxl_link_free_irq(void *link_handle, int hw_irq); |
222 | 222 | ||
223 | #endif /* _MISC_OCXL_H_ */ | 223 | #endif /* _MISC_OCXL_H_ */ |