Return-path: Received: from sabertooth01.qualcomm.com ([65.197.215.72]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XYZT5-0001P3-7F for ath10k@lists.infradead.org; Mon, 29 Sep 2014 11:50:15 +0000 From: Kalle Valo Subject: checkpatch: CHECK: No space is necessary after a cast Date: Mon, 29 Sep 2014 14:49:48 +0300 Message-ID: <874mvq1w9v.fsf@kamboji.qca.qualcomm.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" Errors-To: ath10k-bounces+kvalo=adurom.com@lists.infradead.org To: Joe Perches Cc: ath10k@lists.infradead.org Hi Joe, I have a problem with checkpatch. On ath10k we have this function: static inline struct ath10k_skb_cb *ATH10K_SKB_CB(struct sk_buff *skb) { BUILD_BUG_ON(sizeof(struct ath10k_skb_cb) > IEEE80211_TX_INFO_DRIVER_DATA_SIZE); return (struct ath10k_skb_cb *)&IEEE80211_SKB_CB(skb)->driver_data; } And the BUILD_BUG_ON triggers this warning: drivers/net/wireless/ath/ath10k/core.h:85: CHECK: No space is necessary after a cast Any advice how to handle that? -- Kalle Valo _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k