From patchwork Mon Aug 3 11:57:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kubecek X-Patchwork-Id: 262795 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=-10.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=ham 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 A0AE4C433E0 for ; Mon, 3 Aug 2020 11:57:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 89AB92076C for ; Mon, 3 Aug 2020 11:57:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726710AbgHCL5R (ORCPT ); Mon, 3 Aug 2020 07:57:17 -0400 Received: from mx2.suse.de ([195.135.220.15]:41796 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726517AbgHCL5N (ORCPT ); Mon, 3 Aug 2020 07:57:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 0E571AC5E for ; Mon, 3 Aug 2020 11:57:28 +0000 (UTC) Received: by lion.mk-sys.cz (Postfix, from userid 1000) id B863160754; Mon, 3 Aug 2020 13:57:12 +0200 (CEST) Message-Id: In-Reply-To: References: From: Michal Kubecek Subject: [PATCH ethtool 3/7] igc: mark unused callback parameter To: netdev@vger.kernel.org Date: Mon, 3 Aug 2020 13:57:12 +0200 (CEST) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Mark info parameter of igc_dump_regs() as unused to get rid of gcc warning. Signed-off-by: Michal Kubecek --- igc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/igc.c b/igc.c index 2c4abcef1e15..1550ac0c1c2b 100644 --- a/igc.c +++ b/igc.c @@ -94,7 +94,8 @@ static const char *bit_to_prio(u32 val) return val ? "low" : "high"; } -int igc_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs) +int igc_dump_regs(struct ethtool_drvinfo *info __maybe_unused, + struct ethtool_regs *regs) { u32 reg; int offset, i;