Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac2ae4c9 authored by Roland Dreier's avatar Roland Dreier
Browse files

IB/ipath: Make more names static



Make symbols that are only used in a single source file static.

Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 64cb9c6a
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -365,15 +365,3 @@ static ssize_t ipath_diag_write(struct file *fp, const char __user *data,
bail:
	return ret;
}

void ipath_diag_bringup_link(struct ipath_devdata *dd)
{
	if (diag_set_link || (dd->ipath_flags & IPATH_LINKACTIVE))
		return;

	diag_set_link = 1;
	ipath_cdbg(VERBOSE, "Trying to set to set link active for "
		   "diag pkt\n");
	ipath_layer_set_linkstate(dd, IPATH_IB_LINKARM);
	ipath_layer_set_linkstate(dd, IPATH_IB_LINKACTIVE);
}
+1 −1
Original line number Diff line number Diff line
@@ -1729,7 +1729,7 @@ void ipath_free_pddata(struct ipath_devdata *dd, u32 port, int freehdrq)
	}
}

int __init infinipath_init(void)
static int __init infinipath_init(void)
{
	int ret;

+0 −1
Original line number Diff line number Diff line
@@ -528,7 +528,6 @@ extern spinlock_t ipath_devs_lock;
extern struct ipath_devdata *ipath_lookup(int unit);

extern u16 ipath_layer_rcv_opcode;
extern int ipath_verbs_registered;
extern int __ipath_layer_intr(struct ipath_devdata *, u32);
extern int ipath_layer_intr(struct ipath_devdata *, u32);
extern int __ipath_layer_rcv(struct ipath_devdata *, void *,
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ static int (*layer_rcv)(void *, void *, struct sk_buff *);
static int (*layer_rcv_lid)(void *, void *);
static int (*verbs_piobufavail)(void *);
static void (*verbs_rcv)(void *, void *, void *, u32);
int ipath_verbs_registered;
static int ipath_verbs_registered;

static void *(*layer_add_one)(int, struct ipath_devdata *);
static void (*layer_remove_one)(void *);
+5 −5
Original line number Diff line number Diff line
@@ -305,7 +305,7 @@ static const struct ipath_cregs ipath_pe_cregs = {
 * we'll print them and continue.  We reuse the same message buffer as
 * ipath_handle_errors() to avoid excessive stack usage.
 */
void ipath_pe_handle_hwerrors(struct ipath_devdata *dd, char *msg,
static void ipath_pe_handle_hwerrors(struct ipath_devdata *dd, char *msg,
				     size_t msgl)
{
	ipath_err_t hwerrs;
@@ -552,7 +552,7 @@ static int ipath_pe_boardname(struct ipath_devdata *dd, char *name,
 * freeze mode), and enable hardware errors as errors (along with
 * everything else) in errormask
 */
void ipath_pe_init_hwerrors(struct ipath_devdata *dd)
static void ipath_pe_init_hwerrors(struct ipath_devdata *dd)
{
	ipath_err_t val;
	u64 extsval;
@@ -577,7 +577,7 @@ void ipath_pe_init_hwerrors(struct ipath_devdata *dd)
 * ipath_pe_bringup_serdes - bring up the serdes
 * @dd: the infinipath device
 */
int ipath_pe_bringup_serdes(struct ipath_devdata *dd)
static int ipath_pe_bringup_serdes(struct ipath_devdata *dd)
{
	u64 val, tmp, config1;
	int ret = 0, change = 0;
@@ -694,7 +694,7 @@ int ipath_pe_bringup_serdes(struct ipath_devdata *dd)
 * @dd: the infinipath device
 * Called when driver is being unloaded
 */
void ipath_pe_quiet_serdes(struct ipath_devdata *dd)
static void ipath_pe_quiet_serdes(struct ipath_devdata *dd)
{
	u64 val = ipath_read_kreg64(dd, dd->ipath_kregs->kr_serdesconfig0);

Loading