From patchwork Mon Jul 9 08:36:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10513901 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 1A7A3603D7 for ; Mon, 9 Jul 2018 08:37:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0525F28A54 for ; Mon, 9 Jul 2018 08:37:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EDD2A28A59; Mon, 9 Jul 2018 08:37:31 +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 AB6B228A54 for ; Mon, 9 Jul 2018 08:37:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 99E786E3E7; Mon, 9 Jul 2018 08:37:08 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4C9D96E3E4 for ; Mon, 9 Jul 2018 08:37:06 +0000 (UTC) Received: by mail-ed1-x543.google.com with SMTP id a5-v6so13264801edt.5 for ; Mon, 09 Jul 2018 01:37:06 -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=Ov/SM/leutMGGo1KhNLwkwH7jDC356hbqJVFsDFnB1w=; b=BwLATp0hd3fLCRUeAIPzMcS8fNXqDwhzmMgTB/ng414T/gSF6x2bDem+ARMzyyZqNN VxqzleLdvpYDKfl1okUf9EboLMAFTiSgmcm+ogWcGHBeeEUBuo9YqljgbY2Ps+DfztcC 28KQRZKe1dsssNKHClG5hPtI/jxrU/H+K5qz+lqI4pDcvgt/yWA1ZrHOjmPpDPTvNYYJ +dbkVSXWGJwRxQozQl4PN4LZQ4QQrjJapuMr/6mHF85rcZL+xzYNBU3zds0JcRQLjMQy nOCQzmyzAxXYYtUR+rgmH47IN40jqh/9AMH6seO88oPy7urMnyFC+Qa+wheVbq1zkuAo pweQ== X-Gm-Message-State: APt69E3WRiXhiJEg9j9c+e/16Z40tLto95qeK70lY1Orhwub7Z6Y1iam nONaUk/ScsTxYmyQ8czJNbv3rZKf X-Google-Smtp-Source: AAOMgpcNv4NGli2xb/MoJSgsPLPjMgHFstz2Xu3Ni+xp8WCuQiQGWZfVY1UAmTiiDLC9VbyK3PFVGQ== X-Received: by 2002:aa7:da9a:: with SMTP id q26-v6mr20937602eds.115.1531125424993; Mon, 09 Jul 2018 01:37:04 -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.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 01:37:04 -0700 (PDT) From: Daniel Vetter To: LKML Date: Mon, 9 Jul 2018 10:36:45 +0200 Message-Id: <20180709083650.23549-7-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 07/12] ide: 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 , linux-ide@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 ambigious else clauses. Not that any of those are likely to show up in ide ... Signed-off-by: Daniel Vetter Cc: "David S. Miller" Cc: linux-ide@vger.kernel.org --- include/linux/ide.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/ide.h b/include/linux/ide.h index c74b0321922a..1530d81319ef 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h @@ -1601,7 +1601,7 @@ static inline void ide_set_drivedata(ide_drive_t *drive, void *data) #define ide_port_for_each_present_dev(i, dev, port) \ for ((i) = 0; ((dev) = (port)->devices[i]) || (i) < MAX_DRIVES; (i)++) \ - if ((dev)->dev_flags & IDE_DFLAG_PRESENT) + for_each_if ((dev)->dev_flags & IDE_DFLAG_PRESENT) #define ide_host_for_each_port(i, port, host) \ for ((i) = 0; ((port) = (host)->ports[i]) || (i) < MAX_HOST_PORTS; (i)++)