Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2343761imm; Tue, 4 Sep 2018 02:50:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYttVeoko1sAXiPGmlM59Er+s33ZX3b067AskH9yc/Hk8brceRTuahgtNzncA2+/YrdWXT+ X-Received: by 2002:a65:580a:: with SMTP id g10-v6mr30396227pgr.117.1536054628666; Tue, 04 Sep 2018 02:50:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536054628; cv=none; d=google.com; s=arc-20160816; b=ELQ+0ZdjTYLxyk2RKzzYAO3T3hXCAnQBwKHqcKTLFl3HUH57bpVcuytiQEsz3h4DZ2 pR2dwuCz9m/+ZzmDjJYOOWbbuleQGMf+lE1iHQ6clv32OdaNpVWincVFERwncq9WY4iH U2LqPVbC7JaBxxHFk7jSzYDZ5kn/wURq4zRswRTOaFtbSY54oxOUq32OfXujf2XhUGfq YTRkGYG71ngJ7/wCGBkk703esckcOv2dXCQvbaxEYboiVTsN703RXVbvg7BVjghRBVKG 0ZdMkGVlY8O3FTQ3IgPDeOFVKTK/pn05KlyMUZwOgXXGBSbzmQtdMZ5zEX0F5jSyIkVB VVgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=v7ZM3TGlDUHsk0T+HGFEsaiNhDpionGl6nawbn0xnu4=; b=s244TpARrpLUjCY6+/4UWM/kG+dZ48LeQ0LaLQ1co6HDbch6TS7GRki5ENJzNG7s4v Bz5LW+CWBDR2XpznFvYI+U4inyo2dAZIjuMDZBFNU6SDtRrtB+GZGO2DvAINQ/3FElGu g5JombNiVhyvVaO8KU3m9RgASo2RZFF5a1jRQXOvUwNA9fYXGHFgC88fwpwOwMOyCxXh sHqh3YjGw/FGh7H9DodTCOi1EgdP1l6NZWhL4C+Wb/vuI/2I+ZUoVNqZkJ5/gHld9crQ e0zR2q+shekzMhNeFGPzDM0BD9h5wOpBAwrLp9bfqk3b8zZny/cbsougpZ84B2/auEeI VygQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a93-v6si22203332pla.277.2018.09.04.02.50.12; Tue, 04 Sep 2018 02:50:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727255AbeIDON3 (ORCPT + 99 others); Tue, 4 Sep 2018 10:13:29 -0400 Received: from mx01.hxt-semitech.com ([223.203.96.7]:36449 "EHLO barracuda.hxt-semitech.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726203AbeIDON2 (ORCPT ); Tue, 4 Sep 2018 10:13:28 -0400 X-ASG-Debug-ID: 1536054535-093b7e636b113490001-xx1T2L Received: from HXTBJIDCEMVIW02.hxtcorp.net ([10.128.0.15]) by barracuda.hxt-semitech.com with ESMTP id 5zRlLBeMC85CPmo0 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Tue, 04 Sep 2018 17:48:55 +0800 (CST) X-Barracuda-Envelope-From: dongsheng.wang@hxt-semitech.com Received: from localhost.localdomain.localdomain (10.5.21.103) by HXTBJIDCEMVIW02.hxtcorp.net (10.128.0.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 4 Sep 2018 17:49:01 +0800 From: Wang Dongsheng To: CC: , , , , , Wang Dongsheng Subject: [PATCH] net: ethernet: i40e: fix build error Date: Tue, 4 Sep 2018 17:48:47 +0800 X-ASG-Orig-Subj: [PATCH] net: ethernet: i40e: fix build error Message-ID: <1536054527-34184-1-git-send-email-dongsheng.wang@hxt-semitech.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.5.21.103] X-ClientProxiedBy: HXTBJIDCEMVIW01.hxtcorp.net (10.128.0.14) To HXTBJIDCEMVIW02.hxtcorp.net (10.128.0.15) X-Barracuda-Connect: UNKNOWN[10.128.0.15] X-Barracuda-Start-Time: 1536054535 X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA384 X-Barracuda-URL: https://192.168.50.101:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hxt-semitech.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.6628 1.0000 1.1043 X-Barracuda-Spam-Score: 1.10 X-Barracuda-Spam-Status: No, SCORE=1.10 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.56851 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove "inline" from __i40e_add_stat_strings. In file included from drivers/net/ethernet/intel/i40e/i40e_ethtool.c:9:0: drivers/net/ethernet/intel/i40e/i40e_ethtool.c: In function ‘__i40e_add_stat_strings’: drivers/net/ethernet/intel/i40e/i40e_ethtool_stats.h:193:20: error: function ‘__i40e_add_stat_strings’ can never be inlined because it uses variable argument lists static inline void __i40e_add_stat_strings(u8 **p, const struct i40e_stats stats[], Signed-off-by: Wang Dongsheng --- drivers/net/ethernet/intel/i40e/i40e_ethtool_stats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool_stats.h b/drivers/net/ethernet/intel/i40e/i40e_ethtool_stats.h index bba1cb0..0290ade 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_ethtool_stats.h +++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool_stats.h @@ -190,7 +190,7 @@ struct i40e_stats { * Format and copy the strings described by stats into the buffer pointed at * by p. **/ -static inline void __i40e_add_stat_strings(u8 **p, const struct i40e_stats stats[], +static void __i40e_add_stat_strings(u8 **p, const struct i40e_stats stats[], const unsigned int size, ...) { unsigned int i; -- 1.8.3.1