From patchwork Sat Oct 31 00:49:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Lunn X-Patchwork-Id: 315933 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A8A1C00A89 for ; Sat, 31 Oct 2020 00:50:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3BA112224F for ; Sat, 31 Oct 2020 00:50:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726298AbgJaAuT (ORCPT ); Fri, 30 Oct 2020 20:50:19 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:55804 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbgJaAuT (ORCPT ); Fri, 30 Oct 2020 20:50:19 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kYf5z-004RiN-Aa; Sat, 31 Oct 2020 01:50:15 +0100 From: Andrew Lunn To: Jakub Kicinski Cc: netdev , Nicolas Pitre , Andrew Lunn Subject: [PATCH net-next 0/7] smsc W=1 warning fixes Date: Sat, 31 Oct 2020 01:49:51 +0100 Message-Id: <20201031004958.1059797-1-andrew@lunn.ch> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fixup various W=1 warnings, and then add COMPILE_TEST support, which explains why these where missed on the previous pass. One of these patches added as a new checkpatch warning, by copy/pasting an existing macro and slightly modifying it. The code already has lots of checkpatch warnings, so one more is not going to make that much difference. Andrew Lunn (7): drivers: net: smc91x: Fix set but unused W=1 warning drivers: net: smc91x: Fix missing kerneldoc reported by W=1 drivers: net: smc911x: Work around set but unused status drivers: net: smc911x: Fix set but unused status because of DBG macro drivers: net: smc911x: Fix passing wrong number of parameters to DBG() macro drivers: net: smc911x: Fix cast from pointer to integer of different size drivers: net: smsc: Add COMPILE_TEST support drivers/net/ethernet/smsc/Kconfig | 6 +++--- drivers/net/ethernet/smsc/smc911x.c | 18 ++++++++++-------- drivers/net/ethernet/smsc/smc91x.c | 10 ++++++++-- drivers/net/ethernet/smsc/smc91x.h | 10 ++++++++++ 4 files changed, 31 insertions(+), 13 deletions(-)