Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3670044imm; Tue, 17 Jul 2018 08:27:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfzBpYoVVXxz7v1vO9OES1dmWEMOx9KewNXWrdlyxLiuHysHS1QiJCjVddK+Ar3NzSRpAv3 X-Received: by 2002:a62:4b48:: with SMTP id y69-v6mr1140635pfa.93.1531841261439; Tue, 17 Jul 2018 08:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531841261; cv=none; d=google.com; s=arc-20160816; b=vXXw4kOAnojFKLFJyIJG29wx12H5Mo00KpqVx8cEzo6s6EDQMynmA5rZex1fsPnYgo PmkNERP1ODJ0jS6UCTFTFjhMTTTpCzU+8ezxVPTMSd1/33lpLqlM2g14U8y8aGjX6gqH nVAgzd+RWRiSAm6pQnNHjMXTHjLiXF6VwCuWGS6SyWQp+n1Q2Tu8U/A+vTsKaJ3M9Z0U 1LceGAR6aidhoaV9qctoV23NGAVkUaJUCy5Q/ONTP7p9AgOlGGw8NW4gAR1D1WmvtiA5 Rh3fKGV0+neu3p1BeyZ+FpHgdOPUs26FlBl2k4hwz4cam+rvIRQ51qtX/uG0M/ffXKuQ p9Cg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :arc-authentication-results; bh=Gn8X+Djfl8XWpv5nU5+Ad26hrAQUHm5vGlkDbi/r9lU=; b=t8lMkGbdC4JSW62EyG1IyG0BBmNNR/LtzlIjrA2/T/qtWQmyo934UBeEbL9KEXSuz3 D95C9agx535Hnhhy25iO4voEdz/U2P1viXgECgQJEocBffDQ12HJ/LdYSSARPUmg0cQP PlCnbdNhh0Jppun9On0egzQVnZ6+v2N3s8BRTOQ6Mf3ipNnrQ53gjsUP7Y420tvHJJo+ CH9IUr3q3qyERvpCD2SMHYbSCCQQaJSEoZdEZoprpw6oc+kRte7k8xrCGqFl9WJFcupL FTs6rCrJrvWds0Y3mldGHH8kTJWYak2+799qSWCQbPMLAioXOch77CbX2o3kHw2mWrHx 4t4w== 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 q13-v6si1084652plr.220.2018.07.17.08.27.26; Tue, 17 Jul 2018 08:27:41 -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 S1730128AbeGQP7m convert rfc822-to-8bit (ORCPT + 99 others); Tue, 17 Jul 2018 11:59:42 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:36771 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729805AbeGQP7m (ORCPT ); Tue, 17 Jul 2018 11:59:42 -0400 Received: by mail-ua0-f193.google.com with SMTP id y8-v6so937182uan.3 for ; Tue, 17 Jul 2018 08:26:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=X2r7/T/Nj5k4jvZh3uRsJCjgSv2Sm14noM0S+ydqvPg=; b=UXFvDVRHbDASqUMxN+BTaTzmEbv6DMGscCh+oMDTWc4BCszPblzyjL2/H91BKB3kF3 u9KA/033FYJ0rDYePsw9BtBh906BPNnsFFQdsK9AzzqjV9hirRMPIDFLPPLK/7oMUcHf 4xRCxDaBF9dSNJU/q0I90EVrI2PaI6t3rqgFLfg2rGkHePRibaZQT2a7IbGUK70zsDuR HWgq4vfTEkpNVoOA4NRKSSBdlKZAX92dE2apySfmSO1ClCLs8+RyCXQdBpsrdE0NPSCk pUDA3yGJJB9LUe6SHrcf+QrXL/D36pOqtdYy3wxJjuuo83e25Ocj+AVUukG6+I5sGt// GFUw== X-Gm-Message-State: AOUpUlGyw/PBfTzCzsGWv1FDwPUO+fLGsYXDhZ8KqLAFhXmo/usGHpUj zzaqgIyv8T+qjnTuvLr+6DXRFhMDaz1lg8gv0Oo= X-Received: by 2002:ab0:72d1:: with SMTP id g17-v6mr1439904uap.33.1531841192434; Tue, 17 Jul 2018 08:26:32 -0700 (PDT) MIME-Version: 1.0 References: <20180709083650.23549-1-daniel.vetter@ffwll.ch> <20180709083650.23549-9-daniel.vetter@ffwll.ch> In-Reply-To: <20180709083650.23549-9-daniel.vetter@ffwll.ch> From: Geert Uytterhoeven Date: Tue, 17 Jul 2018 17:26:21 +0200 Message-ID: Subject: Re: [PATCH 09/12] nubus: use for_each_if To: Daniel Vetter Cc: Linux Kernel Mailing List , DRI Development , Intel Graphics Development , Daniel Vetter , Finn Thain , linux-m68k Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, On Mon, Jul 9, 2018 at 10:44 AM Daniel Vetter wrote: > Avoids the inverted check compared to the open-coded version. > > Signed-off-by: Daniel Vetter > Cc: Finn Thain > Cc: linux-m68k@lists.linux-m68k.org Thanks for your patch! > --- a/include/linux/nubus.h > +++ b/include/linux/nubus.h > @@ -127,7 +127,7 @@ struct nubus_rsrc *nubus_next_rsrc_or_null(struct nubus_rsrc *from); > for (f = nubus_first_rsrc_or_null(); f; f = nubus_next_rsrc_or_null(f)) > > #define for_each_board_func_rsrc(b, f) \ > - for_each_func_rsrc(f) if (f->board != b) {} else > + for_each_func_rsrc(f) for_each_if (f->board == b) drivers/net/ethernet/8390/mac8390.c: In function ‘mac8390_device_probe’: drivers/net/ethernet/8390/mac8390.c:402: error: implicit declaration of function ‘for_each_if’ drivers/net/ethernet/8390/mac8390.c:402: error: expected ‘;’ before ‘{’ token Apparently this depends on patch [01/12], which wasn't CCed to linux-m68k@lists.linux-m68k.org? Please don't split CCs if all patches in the a series are not independent. Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds