From patchwork Mon Jul 9 08:36:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10513905 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5C6BC600CA for ; Mon, 9 Jul 2018 08:37:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4875928A59 for ; Mon, 9 Jul 2018 08:37:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D0A428A5B; Mon, 9 Jul 2018 08:37:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EEAC828A5C for ; Mon, 9 Jul 2018 08:37:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F32A86E3EF; Mon, 9 Jul 2018 08:37:09 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8D11C6E3E7 for ; Mon, 9 Jul 2018 08:37:07 +0000 (UTC) Received: by mail-ed1-x541.google.com with SMTP id b10-v6so13259076edi.2 for ; Mon, 09 Jul 2018 01:37:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AnPdz71tzpAowtCFc4wpuTxDlL40bTWT6Uy4GnWWwKQ=; b=p23Pzk3FLT71Io1l55HAFocTP4tONJcm6GHLB67f5MbYmer0SPit220B9/Atmqkt8G Hyua3Vvzu/svGw/8ZmULEN5BMzu4Q0aaTrYjbHToe5aqD+Oswk2A37NP0A4Pb0aIDFAL Uy4bZWctBNsI3xTUch8m2LfOzPTgNulKCvTyrth3JSPlulCSMy1VaTvSJu6RprHEWDhI dcd69vHJshpNbd1MN75GQPlhbwW6cLhiD2AYtWE8iwOPujOJWOugPFdvNngweshZMcqL J/wKh8czML7FepDts95cPX5b6YR1vcGbeyDZgVEnF2dZWDkiK5lN63zG1GhfdWCrnAeE 2qXg== X-Gm-Message-State: APt69E2BIUQd3YKywKBt4smG6gWz+Uux5GHQjeztSYh2Yt+LalT0MSAR KrPG2xApZVtbvOaMjGE6tbt4LQ== X-Google-Smtp-Source: AAOMgpeN3GebpRkcugROTz5kjaFmLrr6CTLi4BbRGaqRZhcs8U2Vob34CgbrZScqv9ob2Fos+AXUWQ== X-Received: by 2002:a50:8f42:: with SMTP id 60-v6mr20618263edy.248.1531125426223; Mon, 09 Jul 2018 01:37:06 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5628:0:496f:7dc5:66d7:a057]) by smtp.gmail.com with ESMTPSA id 8-v6sm340067edv.77.2018.07.09.01.37.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 01:37:05 -0700 (PDT) From: Daniel Vetter To: LKML Date: Mon, 9 Jul 2018 10:36:46 +0200 Message-Id: <20180709083650.23549-8-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180709083650.23549-1-daniel.vetter@ffwll.ch> References: <20180709083650.23549-1-daniel.vetter@ffwll.ch> Subject: [Intel-gfx] [PATCH 08/12] netdev: use for_each_if X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , Intel Graphics Development , DRI Development , netdev@vger.kernel.org, Daniel Vetter , "David S. Miller" MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Avoids complaints from gcc about ambiguous else clauses. Signed-off-by: Daniel Vetter Cc: "David S. Miller" Cc: netdev@vger.kernel.org --- include/linux/netdevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 3ec9850c7936..cdffe7f88dbe 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -2476,7 +2476,7 @@ extern rwlock_t dev_base_lock; /* Device list lock */ list_for_each_entry_continue_rcu(d, &(net)->dev_base_head, dev_list) #define for_each_netdev_in_bond_rcu(bond, slave) \ for_each_netdev_rcu(&init_net, slave) \ - if (netdev_master_upper_dev_get_rcu(slave) == (bond)) + for_each_if (netdev_master_upper_dev_get_rcu(slave) == (bond)) #define net_device_entry(lh) list_entry(lh, struct net_device, dev_list) static inline struct net_device *next_net_device(struct net_device *dev)