Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp839311rwl; Thu, 10 Aug 2023 02:22:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFSOb29wrLgOvT+gaJlErQlC+uOyH8FACEAdUC/3WtpW+HYEU0uD/bqUV4Ua+tBksZUOICO X-Received: by 2002:a17:90a:f993:b0:263:fc43:5f39 with SMTP id cq19-20020a17090af99300b00263fc435f39mr1482595pjb.13.1691659329749; Thu, 10 Aug 2023 02:22:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691659329; cv=pass; d=google.com; s=arc-20160816; b=gKVhg6U/CECrxd/3pkE3BG5R0ndLBj+uCCSRuR9bMufmf7aKtHL+20wHA3IcEi5F+7 uTTqCksXn1T2qKlP3pVIp+yGzTH/V32JJF40cdzY71+HlaHJFmjE//8lrljwxtpzqGxo rRLuBgNymV5Q1JIbPAlsbuUJfMio++ACAFmwULUnBG2yLZ7BsuaZzWw6LxQyVqeKQ/Kx 3ckNY9wFk6EIcF7oxJ1mULP7ooDmdiLdsAKDqShvFxWY0Mptp/4IH8BF+85ghx+MqUQH tLtwFAEb5PLYFA67fZ8rDzfxmpfVl/B9f7DmMM76NcfLZ/vf9rTbzRyZMst1ir1ohwEy Qw7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=fLeaOXS2wCsh/kscIsIYoapBAole9Nu4b1nDa0hE4Kc=; fh=RaPuiI9M2Z0wkYtpAUk4R/48i7hmUTPQwXXnB9kNaTk=; b=wXECqmNIku8CpR8EP7k4sIFBo1Cxm7WQQL8CEWTyxzg67dRGBRTe541ExVRb0lz1pa U/UmgzBIr4exYPtAhtu35oK9iLr11wq3UxTb5xqbI8rvfGPSYTByAem1Ik+HkqqUy5mY 42CwETifg6m+qnjaWaS92LQuf29KkySSu3Wqi8hkR14r6ZYQmECqpWj9+iG5sQ6ntC7b G9frUSqp/D2PCq11sg9hzl1rSw+gWRcn5nmFYVy7D2ROhWZt1yaagjRD5n2lB2dg0sBP va6DZ/lmRDlU7XSTnB4ljyyo/GmUA8jEbCX7j37G6FttD/bREueoHhGFJ29qxCJG5b4g cxKg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@prevas.dk header.s=selector1 header.b=WLdu7T02; arc=pass (i=1 spf=pass spfdomain=prevas.dk dkim=pass dkdomain=prevas.dk dmarc=pass fromdomain=prevas.dk); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=prevas.dk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id le6-20020a170902fb0600b001b8867a7ce2si1112530plb.273.2023.08.10.02.21.57; Thu, 10 Aug 2023 02:22:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@prevas.dk header.s=selector1 header.b=WLdu7T02; arc=pass (i=1 spf=pass spfdomain=prevas.dk dkim=pass dkdomain=prevas.dk dmarc=pass fromdomain=prevas.dk); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=prevas.dk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232784AbjHJIaW (ORCPT + 99 others); Thu, 10 Aug 2023 04:30:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234206AbjHJIaC (ORCPT ); Thu, 10 Aug 2023 04:30:02 -0400 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2128.outbound.protection.outlook.com [40.107.247.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0E202127 for ; Thu, 10 Aug 2023 01:29:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FwIpUy/xkUXk3cYSwQeSbZsjkZaL0mPVayXK6t0cWv0f7twvkB+N8Krf6VsWxMng0wFIc6HxfLl5niATDnHxgq1/hG1IXZUG9BbRDq4+7oLRCe6Lo939Gk5fstkWFlFVgAE63jZ/8+usbQwsVHuXpYA0djeK86P5TVvqlJTr+8m4GpFkzez4jIR+YBPp+mgFArfPNIHiOcyTlZ/UEMwqp9m5R7H50V2uE3VFqnxwZ/i66/xjg30vQVEOn40/0+x7jJqsJDC3qFBuEmRH91cq/C6Bj5zeFSaerflEouBU1OjPp3dEvbI85EhCfApYCWYdFRMwF0KzhBaY0shIn0l4Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fLeaOXS2wCsh/kscIsIYoapBAole9Nu4b1nDa0hE4Kc=; b=Pv+ygkDz8q0A1/ODgwYQCAC069zUsFG67CYQgxRy0CbLuv6SpIHkLWUA7y5zB/hdl4Ne7rWon7xHhDyO5/O/cOVDkWbfFRe8ASvfPR4AY0NA+SWlbcOO+baD8Ig/nsX6iQ51/klo0ipkJ9ZHEAl8ap3fBPCPGSJp/fd7bWkjF7fMuTrTDicBBRrO6jUm8fZdpUzVN+bPEmZDZ9ZWnObd/Vq8yMT88yIgDyJu6h7ID4jt7aaYhgCIlsXGZ52e6r7pBz6CqTlRdh2WCQ+muVxejTzFln4BVu/uXTx8SJ/5O/zl9H3osZQj2fyVhoNrWq2Z7Lre1NEdR9rbbOiJOjTSIA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fLeaOXS2wCsh/kscIsIYoapBAole9Nu4b1nDa0hE4Kc=; b=WLdu7T02egprsozK1RKTXiyJO1rd71lWmMYe3p1UkJ03ZR37bGO2rQ+AMJBuGwueJOg2N8FgNVEYf23Nt0vFpxfAfIN3eCSqvTg0K4njy7OVqwJ5jgdAFcF2uAXGIxdcYoRAq8/8/YE+81P7Q9n8bTGNcbLkG4EG6fcEgdQOdZs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=prevas.dk; Received: from DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:45a::14) by PR3PR10MB3769.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:48::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.30; Thu, 10 Aug 2023 08:29:55 +0000 Received: from DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM ([fe80::c3fb:2416:2628:ca95]) by DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM ([fe80::c3fb:2416:2628:ca95%6]) with mapi id 15.20.6652.028; Thu, 10 Aug 2023 08:29:54 +0000 Message-ID: Date: Thu, 10 Aug 2023 10:29:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/2] drm/exec: use unique instead of local label Content-Language: en-US, da To: Nick Desaulniers , =?UTF-8?Q?Christian_K=c3=b6nig?= Cc: boris.brezillon@collabora.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, trix@redhat.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, naresh.kamboju@linaro.org, dakr@redhat.com References: <20230731123625.3766-1-christian.koenig@amd.com> From: Rasmus Villemoes In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM9P195CA0004.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:21f::9) To DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:45a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR10MB7100:EE_|PR3PR10MB3769:EE_ X-MS-Office365-Filtering-Correlation-Id: ff752d07-7978-4362-a3d0-08db997bf955 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ooldtfXJOBscPp34u8f8O37nEQzXK1SpqgXnLakOh7XiBm0Z4sAvuYMZO9nyoHufL2nj/uSbmjOB9T0mKNf0BxboBH5n0wFbzV1rS7PsmGHpSyqavDKG/0TvcNR06SLkElSTLodSgdplru+6HofupAStoBTJAKYhHBP3H6nK4juJRCSDarNGsjLaXZmiUfd67VKhV/LIGust6kbJ/QZDvwEnSTEn5GcsyRq3b0WOedJADGxUPe2zigbmlh48UGll0pXbc6VcD/Luyvs9aI0hU1eosFFdsLlRFl9ATJZTnDsieLXAsHcLikKv1Rj/VK6rdRLLWY3XWwluGXO5BBFcxxh+gInVW3KLQUSksivmnmjkTDYgGIiwy1oqlS9okv0AP0SsCNDIZ3xi8tHesH5w+JkW9LLjO8eEmZ9hnM5kC1oZIZ2lmsAu4RQo5srXKCINnH55MLQIh/gthtHj7DVMulSS4h655VH0qbnhVkL1XAAOPS447D/JIwWXtMF/1CubhSoBioKwlY0yQ7MV/tIY0Qqw8VANW9bqSR405WclJCSqvhBQQxGupN34juaWRrgx+u0fW4j2hfCtrMKjVqmjIigFE+DOosJGHzYPWP1vggvep4NTD2emmgxec7pDoLjioMR9F7Db4i6Xcfssp/wfCa8fjYanIrBoxWhZ+45hRj7bcPYL/t/9i4qb1KdAO49l X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(346002)(376002)(39850400004)(136003)(396003)(1800799006)(186006)(451199021)(31686004)(66946007)(6506007)(66556008)(26005)(66476007)(478600001)(6666004)(110136005)(36756003)(31696002)(83380400001)(2616005)(52116002)(316002)(7416002)(41300700001)(8976002)(44832011)(6512007)(4326008)(6486002)(2906002)(8936002)(8676002)(86362001)(38100700002)(5660300002)(38350700002)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cytXZ2JSMlpuYmdodEhqZW5HcHJLdjBOdHhNUGY0OWlEczZvYStDV2g2REZ1?= =?utf-8?B?OXRzdkE2d09WKzdLNTJRYm1lNHc5dmtzclNmZmtPWGJtU2krdHJJa0hQR1Av?= =?utf-8?B?cGxBa0tNYzNjVTlZTVU2WTFwMGdXdXFuT01mUWlONWFIS1hmVENBL2pyU0t1?= =?utf-8?B?ZkFJU0pKOUVtOE1UekZ2SmpEOVgvSFIyWVo0YU5SRFJncC8xRXBpUE0vaDBK?= =?utf-8?B?NkFFa1dqRHoxYjRzVURDaFo5WGRMcnpCY1pmbDArQzRoU0NGQlZkNFJ1WHBS?= =?utf-8?B?WS84aW9aMVJZS0NkWXZjSEdpZmRaRTFMdGZsK0dEYURDVDh6blF4WTVJWThQ?= =?utf-8?B?VkRtR3hGSWpYOHQzVVN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utf-8?B?ZGc9PQ==?= X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: ff752d07-7978-4362-a3d0-08db997bf955 X-MS-Exchange-CrossTenant-AuthSource: DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2023 08:29:54.7632 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ctuRAegWWqQckCKyTW96Dpsfl6K4kaUYSq5TsdFd5Wo7qbnzTTOklGeyrz9kzd2a4kQIOeShK4kniUyF+pf5PAM43HLbUi0EHLjY6mnzNA8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR10MB3769 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/08/2023 22.35, Nick Desaulniers wrote: > I suspect it's possible to change the indirect goto into a direct goto > with some further refactoring (macros can take block statements; Well, with some somewhat subtle restrictions. C99, 6.10.3.11. "The sequence of preprocessing tokens bounded by the outside-most matching parentheses forms the list of arguments for the function-like macro. The individual arguments within the list are separated by comma preprocessing tokens, but comma preprocessing tokens between matching inner parentheses do not separate arguments." cpp doesn't care about the {} tokens when trying to figure out what constitutes the "block" argument, so if that block contained any comma outside a () pair, cpp would barf something like error: macro "foo" passed 3 arguments, but takes just 2 So while the commas inside function calls (and other macro invocations) are fine, constructs like int x, y; or struct s s = {.a = 3, .b = 4} would be verboten inside that block. One way around that is to make block a variadic argument so it just gobbles up all preprocessor token. Or have the users pass a statement expression instead of a block. Rasmus