From patchwork Wed Nov 4 15:48: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: 318471 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 E581DC2D0A3 for ; Wed, 4 Nov 2020 15:49:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6A1FC2074B for ; Wed, 4 Nov 2020 15:49:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730818AbgKDPta (ORCPT ); Wed, 4 Nov 2020 10:49:30 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:35322 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726919AbgKDPtZ (ORCPT ); Wed, 4 Nov 2020 10:49:25 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kaL2F-005EbW-Tn; Wed, 04 Nov 2020 16:49:19 +0100 From: Andrew Lunn To: Jakub Kicinski Cc: netdev , Nicolas Pitre , David Laight , Lee Jones , Andrew Lunn Subject: [PATCH net-next v2 0/7] smsc W=1 warning fixes Date: Wed, 4 Nov 2020 16:48:51 +0100 Message-Id: <20201104154858.1247725-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. v2: Use while (0) Rework buffer alignment to make it clearer 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 | 19 +++++++++++-------- drivers/net/ethernet/smsc/smc91x.c | 10 ++++++++-- drivers/net/ethernet/smsc/smc91x.h | 10 ++++++++++ 4 files changed, 32 insertions(+), 13 deletions(-)