Commit 9f98ce8f authored by David S. Miller's avatar David S. Miller Committed by Thomas Graf

[IRDA]: More staticization becomes possible in ircomm_ttp.c

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2923857f
......@@ -40,6 +40,35 @@
#include <net/irda/ircomm_event.h>
#include <net/irda/ircomm_ttp.h>
static int ircomm_ttp_data_indication(void *instance, void *sap,
struct sk_buff *skb);
static void ircomm_ttp_connect_confirm(void *instance, void *sap,
struct qos_info *qos,
__u32 max_sdu_size,
__u8 max_header_size,
struct sk_buff *skb);
static void ircomm_ttp_connect_indication(void *instance, void *sap,
struct qos_info *qos,
__u32 max_sdu_size,
__u8 max_header_size,
struct sk_buff *skb);
static void ircomm_ttp_flow_indication(void *instance, void *sap,
LOCAL_FLOW cmd);
static void ircomm_ttp_disconnect_indication(void *instance, void *sap,
LM_REASON reason,
struct sk_buff *skb);
static int ircomm_ttp_data_request(struct ircomm_cb *self,
struct sk_buff *skb,
int clen);
static int ircomm_ttp_connect_request(struct ircomm_cb *self,
struct sk_buff *userdata,
struct ircomm_info *info);
static int ircomm_ttp_connect_response(struct ircomm_cb *self,
struct sk_buff *userdata);
static int ircomm_ttp_disconnect_request(struct ircomm_cb *self,
struct sk_buff *userdata,
struct ircomm_info *info);
/*
* Function ircomm_open_tsap (self)
*
......@@ -87,7 +116,7 @@ int ircomm_open_tsap(struct ircomm_cb *self)
*
*
*/
int ircomm_ttp_connect_request(struct ircomm_cb *self,
static int ircomm_ttp_connect_request(struct ircomm_cb *self,
struct sk_buff *userdata,
struct ircomm_info *info)
{
......@@ -112,7 +141,7 @@ int ircomm_ttp_connect_request(struct ircomm_cb *self,
*
*
*/
int ircomm_ttp_connect_response(struct ircomm_cb *self,
static int ircomm_ttp_connect_response(struct ircomm_cb *self,
struct sk_buff *userdata)
{
int ret;
......@@ -137,7 +166,7 @@ int ircomm_ttp_connect_response(struct ircomm_cb *self,
* some of them are sent after connection establishment, so this can
* increase the latency a bit.
*/
int ircomm_ttp_data_request(struct ircomm_cb *self,
static int ircomm_ttp_data_request(struct ircomm_cb *self,
struct sk_buff *skb,
int clen)
{
......@@ -175,7 +204,7 @@ int ircomm_ttp_data_request(struct ircomm_cb *self,
* Incoming data
*
*/
int ircomm_ttp_data_indication(void *instance, void *sap,
static int ircomm_ttp_data_indication(void *instance, void *sap,
struct sk_buff *skb)
{
struct ircomm_cb *self = (struct ircomm_cb *) instance;
......@@ -194,7 +223,7 @@ int ircomm_ttp_data_indication(void *instance, void *sap,
return 0;
}
void ircomm_ttp_connect_confirm(void *instance, void *sap,
static void ircomm_ttp_connect_confirm(void *instance, void *sap,
struct qos_info *qos,
__u32 max_sdu_size,
__u8 max_header_size,
......@@ -234,7 +263,7 @@ void ircomm_ttp_connect_confirm(void *instance, void *sap,
*
*
*/
void ircomm_ttp_connect_indication(void *instance, void *sap,
static void ircomm_ttp_connect_indication(void *instance, void *sap,
struct qos_info *qos,
__u32 max_sdu_size,
__u8 max_header_size,
......@@ -273,7 +302,7 @@ void ircomm_ttp_connect_indication(void *instance, void *sap,
*
*
*/
int ircomm_ttp_disconnect_request(struct ircomm_cb *self,
static int ircomm_ttp_disconnect_request(struct ircomm_cb *self,
struct sk_buff *userdata,
struct ircomm_info *info)
{
......@@ -294,7 +323,7 @@ int ircomm_ttp_disconnect_request(struct ircomm_cb *self,
*
*
*/
void ircomm_ttp_disconnect_indication(void *instance, void *sap,
static void ircomm_ttp_disconnect_indication(void *instance, void *sap,
LM_REASON reason,
struct sk_buff *skb)
{
......@@ -321,7 +350,8 @@ void ircomm_ttp_disconnect_indication(void *instance, void *sap,
* Layer below is telling us to start or stop the flow of data
*
*/
void ircomm_ttp_flow_indication(void *instance, void *sap, LOCAL_FLOW cmd)
static void ircomm_ttp_flow_indication(void *instance, void *sap,
LOCAL_FLOW cmd)
{
struct ircomm_cb *self = (struct ircomm_cb *) instance;
......
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