Received: by 10.192.165.156 with SMTP id m28csp66975imm; Tue, 10 Apr 2018 16:33:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx48gAC/T8DXuiMwQC3DKTBltidB6rO79+ZUBaO77sfHGdHEjPjggFuEc4aXWLEj2IbIUiR4j X-Received: by 10.98.220.218 with SMTP id c87mr2007785pfl.198.1523403215585; Tue, 10 Apr 2018 16:33:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523403215; cv=none; d=google.com; s=arc-20160816; b=AkHC24E9GXf4Rghs0W8qzQ7sq3QB8NLnZMRt4rxXB89REa0GD3XlrskUV8y0xk5YKd dvpomDqGXZ4DbRHnj4vUpQHbgOWQVAwTDOwo036KLu5Y6umm11Jvb1C3DaVj6v2DjAQ8 wEof1aSc8ap0xtISr+rLHL0baO0p2z4cKF34VGthcaQ78jjeg2Wk5CtYADbuq84OrvYz PMbvXaU2w0zSbJcrXBsZVf98OZLSWcDp14XLaVVcAuTYlUNFB7wT/vCiEpFff0+3MnuQ o6pcxrPe4OvJND1MotOGYkiTmHZD6tBDYpsu7QG8vwdajQTWbefdLRJ9BDh68BJEh9ao SVXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=xKwnQ9bPhmo7kBryyIaCCvxmW20DDO4P9CxfQ0Qu9wU=; b=cv32a9yR4b2cerXiFQQI0wQbX/Y1MudEw0wBE4D9gsVm//6sSpqmHPqG7E1Leh8ODI HR7Glc29g9xi/nMkJpdhRE2wYllvpBkRXLXtbW2B24vDAqMIMQD0EEEuTB0SZXK7WX6L sKrmomDE+xhneQ4uLEBKxhPeZurSYEjyxZF9JZWLduYXiatlGG/47sYakK5eZaCH/jXH 4VHJsF48fNh5IL1SGSVSfuj7I3mHwmgds8PMa0PZ+2wyNHdhPmFSPmagGBPfUqOu1WZs ubUlumU63cUSeDm2lvANqgSi+8DOsQnP/lDe+66zm0DRMhHmfrwKOUKKgMl9aq71LJoa /KnA== 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 f1si2388437pgq.806.2018.04.10.16.32.58; Tue, 10 Apr 2018 16:33:35 -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 S1754483AbeDJWaG (ORCPT + 99 others); Tue, 10 Apr 2018 18:30:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39834 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754428AbeDJWaF (ORCPT ); Tue, 10 Apr 2018 18:30:05 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 54821DA4; Tue, 10 Apr 2018 22:30:04 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Gal Pressman , Saeed Mahameed , "David S. Miller" , Sasha Levin Subject: [PATCH 4.15 076/168] net: Fix netdev_WARN_ONCE macro Date: Wed, 11 Apr 2018 00:23:38 +0200 Message-Id: <20180410212803.513922398@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212800.144079021@linuxfoundation.org> References: <20180410212800.144079021@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gal Pressman [ Upstream commit 72dd831e24cc9487a9cd534fdd675fe97e3c1839 ] netdev_WARN_ONCE is broken (whoops..), this fix will remove the unnecessary "condition" parameter, add the missing comma and change "arg" to "args". Fixes: 375ef2b1f0d0 ("net: Introduce netdev_*_once functions") Signed-off-by: Gal Pressman Reviewed-by: Saeed Mahameed Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- include/linux/netdevice.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -4402,8 +4402,8 @@ do { \ WARN(1, "netdevice: %s%s\n" format, netdev_name(dev), \ netdev_reg_state(dev), ##args) -#define netdev_WARN_ONCE(dev, condition, format, arg...) \ - WARN_ONCE(1, "netdevice: %s%s\n" format, netdev_name(dev) \ +#define netdev_WARN_ONCE(dev, format, args...) \ + WARN_ONCE(1, "netdevice: %s%s\n" format, netdev_name(dev), \ netdev_reg_state(dev), ##args) /* netif printk helpers, similar to netdev_printk */