aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.vnet.ibm.com>2014-10-22 06:18:02 -0400
committerDavid S. Miller <davem@davemloft.net>2014-10-26 22:21:39 -0400
commitbca516502efe1884515ff9bb8390a00f35464efa (patch)
tree7ab913f3272773c55893433d00fe25c3f0bba527 /drivers/s390
parent1f3c2eba1e2d866ef99bb9b10ade4096e3d7607c (diff)
qeth: qeth_core_main make local functions static
This patch makes some global functions static and removes the prototypes from the header file. Also function qeth_query_card_info is not exported anymore, there is no external user for it, this function should never have been exported in the first place. Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com> Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/net/qeth_core.h16
-rw-r--r--drivers/s390/net/qeth_core_main.c18
2 files changed, 15 insertions, 19 deletions
diff --git a/drivers/s390/net/qeth_core.h b/drivers/s390/net/qeth_core.h
index e7646ce3d659..7a8bb9f78e76 100644
--- a/drivers/s390/net/qeth_core.h
+++ b/drivers/s390/net/qeth_core.h
@@ -380,11 +380,6 @@ enum qeth_header_ids {
380#define QETH_HDR_EXT_CSUM_TRANSP_REQ 0x20 380#define QETH_HDR_EXT_CSUM_TRANSP_REQ 0x20
381#define QETH_HDR_EXT_UDP 0x40 /*bit off for TCP*/ 381#define QETH_HDR_EXT_UDP 0x40 /*bit off for TCP*/
382 382
383static inline int qeth_is_last_sbale(struct qdio_buffer_element *sbale)
384{
385 return (sbale->eflags & SBAL_EFLAGS_LAST_ENTRY);
386}
387
388enum qeth_qdio_buffer_states { 383enum qeth_qdio_buffer_states {
389 /* 384 /*
390 * inbound: read out by driver; owned by hardware in order to be filled 385 * inbound: read out by driver; owned by hardware in order to be filled
@@ -843,13 +838,6 @@ struct qeth_trap_id {
843/*some helper functions*/ 838/*some helper functions*/
844#define QETH_CARD_IFNAME(card) (((card)->dev)? (card)->dev->name : "") 839#define QETH_CARD_IFNAME(card) (((card)->dev)? (card)->dev->name : "")
845 840
846static inline struct qeth_card *CARD_FROM_CDEV(struct ccw_device *cdev)
847{
848 struct qeth_card *card = dev_get_drvdata(&((struct ccwgroup_device *)
849 dev_get_drvdata(&cdev->dev))->dev);
850 return card;
851}
852
853static inline int qeth_get_micros(void) 841static inline int qeth_get_micros(void)
854{ 842{
855 return (int) (get_tod_clock() >> 12); 843 return (int) (get_tod_clock() >> 12);
@@ -894,7 +882,6 @@ const char *qeth_get_cardname_short(struct qeth_card *);
894int qeth_realloc_buffer_pool(struct qeth_card *, int); 882int qeth_realloc_buffer_pool(struct qeth_card *, int);
895int qeth_core_load_discipline(struct qeth_card *, enum qeth_discipline_id); 883int qeth_core_load_discipline(struct qeth_card *, enum qeth_discipline_id);
896void qeth_core_free_discipline(struct qeth_card *); 884void qeth_core_free_discipline(struct qeth_card *);
897void qeth_buffer_reclaim_work(struct work_struct *);
898 885
899/* exports for qeth discipline device drivers */ 886/* exports for qeth discipline device drivers */
900extern struct qeth_card_list_struct qeth_core_card_list; 887extern struct qeth_card_list_struct qeth_core_card_list;
@@ -913,7 +900,6 @@ int qeth_core_hardsetup_card(struct qeth_card *);
913void qeth_print_status_message(struct qeth_card *); 900void qeth_print_status_message(struct qeth_card *);
914int qeth_init_qdio_queues(struct qeth_card *); 901int qeth_init_qdio_queues(struct qeth_card *);
915int qeth_send_startlan(struct qeth_card *); 902int qeth_send_startlan(struct qeth_card *);
916int qeth_send_stoplan(struct qeth_card *);
917int qeth_send_ipa_cmd(struct qeth_card *, struct qeth_cmd_buffer *, 903int qeth_send_ipa_cmd(struct qeth_card *, struct qeth_cmd_buffer *,
918 int (*reply_cb) 904 int (*reply_cb)
919 (struct qeth_card *, struct qeth_reply *, unsigned long), 905 (struct qeth_card *, struct qeth_reply *, unsigned long),
@@ -954,8 +940,6 @@ int qeth_snmp_command(struct qeth_card *, char __user *);
954int qeth_query_oat_command(struct qeth_card *, char __user *); 940int qeth_query_oat_command(struct qeth_card *, char __user *);
955int qeth_query_switch_attributes(struct qeth_card *card, 941int qeth_query_switch_attributes(struct qeth_card *card,
956 struct qeth_switch_info *sw_info); 942 struct qeth_switch_info *sw_info);
957int qeth_query_card_info(struct qeth_card *card,
958 struct carrier_info *carrier_info);
959int qeth_send_control_data(struct qeth_card *, int, struct qeth_cmd_buffer *, 943int qeth_send_control_data(struct qeth_card *, int, struct qeth_cmd_buffer *,
960 int (*reply_cb)(struct qeth_card *, struct qeth_reply*, unsigned long), 944 int (*reply_cb)(struct qeth_card *, struct qeth_reply*, unsigned long),
961 void *reply_param); 945 void *reply_param);
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
index fd22c811cbe1..098bb0fff9cb 100644
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -718,6 +718,13 @@ static int qeth_check_idx_response(struct qeth_card *card,
718 return 0; 718 return 0;
719} 719}
720 720
721static struct qeth_card *CARD_FROM_CDEV(struct ccw_device *cdev)
722{
723 struct qeth_card *card = dev_get_drvdata(&((struct ccwgroup_device *)
724 dev_get_drvdata(&cdev->dev))->dev);
725 return card;
726}
727
721static void qeth_setup_ccw(struct qeth_channel *channel, unsigned char *iob, 728static void qeth_setup_ccw(struct qeth_channel *channel, unsigned char *iob,
722 __u32 len) 729 __u32 len)
723{ 730{
@@ -1431,6 +1438,7 @@ static void qeth_start_kernel_thread(struct work_struct *work)
1431 } 1438 }
1432} 1439}
1433 1440
1441static void qeth_buffer_reclaim_work(struct work_struct *);
1434static int qeth_setup_card(struct qeth_card *card) 1442static int qeth_setup_card(struct qeth_card *card)
1435{ 1443{
1436 1444
@@ -3232,7 +3240,7 @@ int qeth_check_qdio_errors(struct qeth_card *card, struct qdio_buffer *buf,
3232} 3240}
3233EXPORT_SYMBOL_GPL(qeth_check_qdio_errors); 3241EXPORT_SYMBOL_GPL(qeth_check_qdio_errors);
3234 3242
3235void qeth_buffer_reclaim_work(struct work_struct *work) 3243static void qeth_buffer_reclaim_work(struct work_struct *work)
3236{ 3244{
3237 struct qeth_card *card = container_of(work, struct qeth_card, 3245 struct qeth_card *card = container_of(work, struct qeth_card,
3238 buffer_reclaim_work.work); 3246 buffer_reclaim_work.work);
@@ -4717,7 +4725,7 @@ static int qeth_query_card_info_cb(struct qeth_card *card,
4717 return 0; 4725 return 0;
4718} 4726}
4719 4727
4720int qeth_query_card_info(struct qeth_card *card, 4728static int qeth_query_card_info(struct qeth_card *card,
4721 struct carrier_info *carrier_info) 4729 struct carrier_info *carrier_info)
4722{ 4730{
4723 struct qeth_cmd_buffer *iob; 4731 struct qeth_cmd_buffer *iob;
@@ -4730,7 +4738,6 @@ int qeth_query_card_info(struct qeth_card *card,
4730 return qeth_send_ipa_cmd(card, iob, qeth_query_card_info_cb, 4738 return qeth_send_ipa_cmd(card, iob, qeth_query_card_info_cb,
4731 (void *)carrier_info); 4739 (void *)carrier_info);
4732} 4740}
4733EXPORT_SYMBOL_GPL(qeth_query_card_info);
4734 4741
4735static inline int qeth_get_qdio_q_format(struct qeth_card *card) 4742static inline int qeth_get_qdio_q_format(struct qeth_card *card)
4736{ 4743{
@@ -5113,6 +5120,11 @@ static inline int qeth_create_skb_frag(struct qeth_qdio_buffer *qethbuffer,
5113 return 0; 5120 return 0;
5114} 5121}
5115 5122
5123static inline int qeth_is_last_sbale(struct qdio_buffer_element *sbale)
5124{
5125 return (sbale->eflags & SBAL_EFLAGS_LAST_ENTRY);
5126}
5127
5116struct sk_buff *qeth_core_get_next_skb(struct qeth_card *card, 5128struct sk_buff *qeth_core_get_next_skb(struct qeth_card *card,
5117 struct qeth_qdio_buffer *qethbuffer, 5129 struct qeth_qdio_buffer *qethbuffer,
5118 struct qdio_buffer_element **__element, int *__offset, 5130 struct qdio_buffer_element **__element, int *__offset,