Skip to content

Commit b696d28

Browse files
deecempe
authored andcommitted
ocxl: Remove some unused exported symbols
Remove some unused exported symbols. 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>
1 parent 53e3e74 commit b696d28

3 files changed

Lines changed: 24 additions & 26 deletions

File tree

‎drivers/misc/ocxl/config.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Copyright 2017 IBM Corp.
33
#include <linux/pci.h>
44
#include <asm/pnv-ocxl.h>
5-
#include <misc/ocxl.h>
65
#include <misc/ocxl-config.h>
6+
#include "ocxl_internal.h"
77

88
#define EXTRACT_BIT(val, bit) (!!(val & BIT(bit)))
99
#define EXTRACT_BITS(val, s, e) ((val & GENMASK(e, s)) >> s)
@@ -299,7 +299,6 @@ int ocxl_config_check_afu_index(struct pci_dev *dev,
299299
}
300300
return 1;
301301
}
302-
EXPORT_SYMBOL_GPL(ocxl_config_check_afu_index);
303302

304303
static int read_afu_name(struct pci_dev *dev, struct ocxl_fn_config *fn,
305304
struct ocxl_afu_config *afu)
@@ -535,7 +534,6 @@ int ocxl_config_get_pasid_info(struct pci_dev *dev, int *count)
535534
{
536535
return pnv_ocxl_get_pasid_count(dev, count);
537536
}
538-
EXPORT_SYMBOL_GPL(ocxl_config_get_pasid_info);
539537

540538
void ocxl_config_set_afu_pasid(struct pci_dev *dev, int pos, int pasid_base,
541539
u32 pasid_count_log)

‎drivers/misc/ocxl/ocxl_internal.h‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,29 @@ void ocxl_pasid_afu_free(struct ocxl_fn *fn, u32 start, u32 size);
107107
int ocxl_actag_afu_alloc(struct ocxl_fn *fn, u32 size);
108108
void ocxl_actag_afu_free(struct ocxl_fn *fn, u32 start, u32 size);
109109

110+
/*
111+
* Get the max PASID value that can be used by the function
112+
*/
113+
int ocxl_config_get_pasid_info(struct pci_dev *dev, int *count);
114+
115+
/*
116+
* Check if an AFU index is valid for the given function.
117+
*
118+
* AFU indexes can be sparse, so a driver should check all indexes up
119+
* to the maximum found in the function description
120+
*/
121+
int ocxl_config_check_afu_index(struct pci_dev *dev,
122+
struct ocxl_fn_config *fn, int afu_idx);
123+
124+
/**
125+
* Update values within a Process Element
126+
*
127+
* link_handle: the link handle associated with the process element
128+
* pasid: the PASID for the AFU context
129+
* tid: the new thread id for the process element
130+
*/
131+
int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid);
132+
110133
struct ocxl_context *ocxl_context_alloc(void);
111134
int ocxl_context_init(struct ocxl_context *ctx, struct ocxl_afu *afu,
112135
struct address_space *mapping);

‎include/misc/ocxl.h‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,6 @@ struct ocxl_fn_config {
5656
int ocxl_config_read_function(struct pci_dev *dev,
5757
struct ocxl_fn_config *fn);
5858

59-
/*
60-
* Check if an AFU index is valid for the given function.
61-
*
62-
* AFU indexes can be sparse, so a driver should check all indexes up
63-
* to the maximum found in the function description
64-
*/
65-
int ocxl_config_check_afu_index(struct pci_dev *dev,
66-
struct ocxl_fn_config *fn, int afu_idx);
67-
6859
/*
6960
* Read the configuration space of a function for the AFU specified by
7061
* the index 'afu_idx'. Fills in a ocxl_afu_config structure
@@ -74,11 +65,6 @@ int ocxl_config_read_afu(struct pci_dev *dev,
7465
struct ocxl_afu_config *afu,
7566
u8 afu_idx);
7667

77-
/*
78-
* Get the max PASID value that can be used by the function
79-
*/
80-
int ocxl_config_get_pasid_info(struct pci_dev *dev, int *count);
81-
8268
/*
8369
* Tell an AFU, by writing in the configuration space, the PASIDs that
8470
* it can use. Range starts at 'pasid_base' and its size is a multiple
@@ -188,15 +174,6 @@ int ocxl_link_add_pe(void *link_handle, int pasid, u32 pidr, u32 tidr,
188174
void (*xsl_err_cb)(void *data, u64 addr, u64 dsisr),
189175
void *xsl_err_data);
190176

191-
/**
192-
* Update values within a Process Element
193-
*
194-
* link_handle: the link handle associated with the process element
195-
* pasid: the PASID for the AFU context
196-
* tid: the new thread id for the process element
197-
*/
198-
int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid);
199-
200177
/*
201178
* Remove a Process Element from the Shared Process Area for a link
202179
*/

0 commit comments

Comments
 (0)