From: "Serge E. Hallyn" Two variables in drivers/s390/net/qeth_main.c:qeth_send_packet() are only used if CONFIG_QETH_PERF_STATS. Move their definition under the same ifdef to remove compiler warning. Signed-off-by: Serge Hallyn Cc: Martin Schwidefsky Cc: Heiko Carstens Signed-off-by: Andrew Morton --- drivers/s390/net/qeth_main.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN drivers/s390/net/qeth_main.c~s390-move-var-declarations-behind-ifdef drivers/s390/net/qeth_main.c --- a/drivers/s390/net/qeth_main.c~s390-move-var-declarations-behind-ifdef +++ a/drivers/s390/net/qeth_main.c @@ -4416,8 +4416,10 @@ qeth_send_packet(struct qeth_card *card, enum qeth_large_send_types large_send = QETH_LARGE_SEND_NO; struct qeth_eddp_context *ctx = NULL; int tx_bytes = skb->len; +#ifdef CONFIG_QETH_PERF_STATS unsigned short nr_frags = skb_shinfo(skb)->nr_frags; unsigned short tso_size = skb_shinfo(skb)->gso_size; +#endif int rc; QETH_DBF_TEXT(trace, 6, "sendpkt"); _