Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD076C433E0 for ; Wed, 10 Mar 2021 07:50:06 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6674264FC4 for ; Wed, 10 Mar 2021 07:50:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6674264FC4 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.95878.181002 (Exim 4.92) (envelope-from ) id 1lJtb3-0001cz-L7; Wed, 10 Mar 2021 07:49:33 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 95878.181002; Wed, 10 Mar 2021 07:49:33 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lJtb3-0001cs-I1; Wed, 10 Mar 2021 07:49:33 +0000 Received: by outflank-mailman (input) for mailman id 95878; Wed, 10 Mar 2021 07:49:32 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lJtb1-0001ci-TJ for xen-devel@lists.xenproject.org; Wed, 10 Mar 2021 07:49:32 +0000 Received: from esa2.hc3370-68.iphmx.com (unknown [216.71.145.153]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 9514d391-d566-4922-b2d9-8afcde969665; Wed, 10 Mar 2021 07:49:30 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 9514d391-d566-4922-b2d9-8afcde969665 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1615362570; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=ERaUF3hE5TkWVE0K1zQogibFQ0R3myO9yEuuhccJP/g=; b=aJx1orDo/C0wg3Tqw814GoPjXmMcB/yAbzJsg01ys3tbtr14z7KTYbTF +rxCUl4cr/4BINOt9xFqm1msuhvIBEtAuhNVNuTyNg+l+ova57z5hchiu NQ3j5wBxPzIUkTUP8s8DzPwGGlSI/6CAw7t21PYaXymnKRdU/LkzT3DEQ I=; Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com IronPort-SDR: diq+iEhyD8zUhnkJhgA8xdr37BCoGItms7uLOMYaku9XkEvkx7/9uNmepFYrV5lkOGFeX2RV7e QCpg3M/sRQa3JGiEysyHF0aIGtKHqa2K6rUinytAmZ5Yr4dT3A+rg8FlFxAvuRhKIbL1ymWwO2 oX+5J/GsTntvqPE4RZoq87NFyoZXNWKuVa2On4PlwQVLvqtFIRcZVex8+QmOKEHtkNq7aLXksC xRPFreTB2nKeOMWfcIK8GMO64nvRVOTrsNs4I7ylOiXiYBvKIkD1vC1QeLBiImqEjYuXcpjJn1 2CA= X-SBRS: 5.2 X-MesageID: 38947527 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.81,237,1610427600"; d="scan'208";a="38947527" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N7btv2Qd42rbZliF43n4ZYUHkQZL5Sg4LAII7vayZpHkt0eCX6zUl6gM1yxVX7yHLRgtvDp9zh8xv+DSi5JmQKC5g/3Sq9GlGQENiKb0Y1KvWlcrWmr3h7ZJoYO78fXlA4BsOvJXX1OIaiA72NnY29Ta2/bMhFqBhk1FTOB69HJiLDbpHcT1/CbQJN4FZHjemPT47YwkVT0dxC+o2hpwDgJtdF5B8eeQddmC9MyNCbcbQ2yKc36eGOKKx8/EjV/Z7LElGkrhFG7908aSxfTCO1Yy9Zr/VCV+Q1sgONgdqh9HigRSPz38ID/nvfHkFyOHZCTpGzALmYeVApZ5hjD+zg== 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-SenderADCheck; bh=CpZtEeIqrPtN0Q79N5PPXnH4BaXxQ3jqSvohJqdn32s=; b=TE6M05wB/WQSLGOBA5dKoOILJPy79tBO3tgRg7I63p+lOcBzPN4qK5aZ3QGZ0FPQ98UG2ltLJ0ZZ3vsutw4sgcIAqjl+d4gBUZDKDvm2Y5BUHNvr0sqQc8El4PSlgPtaF+npSU79XM5sVbP7TPM+jqq5KAT/21HhbWspa/a6d/fFAm5Nn8GOu3EqNaDmW30FudmpX6AI68rSdDuVpL0XAprYtTLmibJeXqtpebiN2bhy04s7+uR8/VZXSHPDLYWbzvrgpRfjPhpdEu7EX+Lfp3LynMIuP5g562k7FryO/sPMHG9JFpDsR0yqDlom1lZbyGonSOLbQW/Nq25ei2ULuw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CpZtEeIqrPtN0Q79N5PPXnH4BaXxQ3jqSvohJqdn32s=; b=I+fCLATSVgeh5CXjUNHZ+q0BwUEfy8BpkR5x4q8lYbQ//ayGT/W5qtHCyw5y/x4XaAOQDFlOW9UZGbZSAKxsNnTZD6azFik4t7Z+9snRdZEUAS7hVfAqfDGNENlOm58ASmYL8L36egw3ocnOgODFXzOuM6lt7ZrFhVN7xfQDfz8= Date: Wed, 10 Mar 2021 08:49:07 +0100 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Elliott Mitchell CC: Andrew Cooper , , Stefano Stabellini , Julien Grall , Volodymyr Babchuk , George Dunlap , Ian Jackson , Jan Beulich , Wei Liu , Juergen Gross Subject: Re: [PATCH for-4.15] arm: replace typeof() with __typeof__() Message-ID: References: <202103092114.129LEgZp059925@m5p.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: AM6P195CA0002.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:81::15) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bb77dd1f-49c7-495e-39bb-08d8e398ffe2 X-MS-TrafficTypeDiagnostic: DM5PR03MB2633: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Pcq+NfcnY9ga3+2PuNOs1rwCF8SWINm5bKT8S+vpjZIWdcWyvVcpB3Ofld2NFH7OI6RHE1mwlfkiSQBOeER4H/a3L95TCLy/VWbFt1FdQWSP1OssUeCAEaC1imS8LpITwQ8SDcr71FiuR0ssOcSNUTJsxOJ2NOBIaF+1uGrJJmyvWLAjPjMoIN8tAtrSkcdNiddcy4ouJ+cDmyZ6zbBEtaP9DbYQYKtJ/lLBtrOKO29sGXqA/TEmIuyx9kW1QTPsKzVJWqvJvlUCIh3+berNOfb7Dn53Xay6YiPzFgMS2+di6/4sNwDxbfjT52axK9Thara/81ZegaAAExsgrSiJY/t4tOoyjG44JX/CEeU7nvQhQyx4h69JvaDt9xRx9JmuB24hE1a+fm6IZwYXrYOWLnDcbhiUTWRevhvYmnyFbmov7mXymDzUIG+W6jlMJ8Qkp8GQgHau0L3z02Q/VOarIFVGEkBJghhYcmI+EipOuLBBFRK3Zf7G/YEyGoKB09ueiIh8dxssKwN22yaQw30+fw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(7916004)(4636009)(376002)(39850400004)(136003)(346002)(366004)(396003)(5660300002)(8676002)(316002)(53546011)(86362001)(33716001)(8936002)(54906003)(66476007)(6496006)(66556008)(85182001)(16526019)(26005)(186003)(956004)(2906002)(6486002)(9686003)(66946007)(6666004)(478600001)(4326008)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?N2hDNzNGdmNJcmN2aTh5dlhZc3VoZ2tpMmZOaGVqcVdweWRpaXVra0owMmlK?= =?utf-8?B?V0t2R0c2c1ovN0dLamZWdmU1alJkc1JRM3hDSDVtZmlvVzQ2UXNrWHVBNXQ0?= =?utf-8?B?SERDdGpIMFJkeVk3QzAvN1hhcVVTRWwrSEhlRE9VaFdMQkJUUUNYM1N6SVZC?= =?utf-8?B?NW5lbEMwN0NPZmd4NHpwR0FYVWM4QndtTFJkbzNYMFpCYzBSbk1ZVERmc3Az?= =?utf-8?B?cFdXaGRIb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m13WmFY?= =?utf-8?B?aTF6VWhPbjhuZUdsZXcyeGF3a0dOeGM4VVlyeHU4b0hTbit6Q0ZLaHVxTGZ3?= =?utf-8?B?UldwcGZQYUk4b1AySEN1aGZkRDlyY3JHTkFDZXcya0ZKNjBDd0pWV0pkQk5t?= =?utf-8?B?QUZxbU5wTExqZ3JNR3doTmw1UVZNSFJQa3FrcXVlcFBxNGkzdnlYZWtQTEdV?= =?utf-8?B?Zk1wRmNYa3VaQWF1Y0NCSnFHL3RUT0ZsSzdrYThSTEQ3L1NoMGZZZ25lOHlL?= =?utf-8?B?R2NyTG03ci9ZOEk2dm5pZm1DcVVuSVl6ZFlkbWVSWHcvMVBKbnJ2ODBwMFdh?= =?utf-8?B?RzBvL0F4MDdJUWdUc016bjl6aVY2TlkzcW1wTGJSZFpWTzUwZUNkNVRYNlAx?= =?utf-8?B?Y0RmbWx0MlZJNUFqYndlZWpDOEZKbnF0ajljNzd5ZnZ1dnZ3VHpJQVNDQ2ow?= =?utf-8?B?WVVVVVJSUGorQlExTFRlc0FZWDQ3TTVCYStZVHpiZlBoZWdKbWE1a1NRMXY1?= =?utf-8?B?L1BPT1ZYd2JnNjdhbDFCejZRbkV1QkFEbkNPanZFQ051UjBia09tbzVkSEh6?= =?utf-8?B?K1pUWi9OSFdPaitlVGV5Z0VYVmFxSXVPTHRsQVBUOGJ6SmZkOG5tNDhPWlFi?= =?utf-8?Q?lksK2g03u5Y3v+qQIsCKtgfDr3RVmIEzMobMWvd?= X-MS-Exchange-CrossTenant-Network-Message-Id: bb77dd1f-49c7-495e-39bb-08d8e398ffe2 X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2021 07:49:14.2566 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hVW6LRiEHDOYW/WYmyLPF4ntkgOQnDMuTLF4jyUjE8fhoZ74R3/ojoFtsBymVyJuGEEn0dwIGXS3rx33Rm4cMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2633 X-OriginatorOrg: citrix.com On Tue, Mar 09, 2021 at 07:24:32PM -0800, Elliott Mitchell wrote: > On Tue, Mar 09, 2021 at 09:27:34PM +0000, Andrew Cooper wrote: > > On 08/03/2021 13:36, Elliott Mitchell wrote: > > > typeof() is available in Xen's build environment, which uses Xen's > > > compiler. As these headers are public, they need strict standards > > > conformance. Only __typeof__() is officially standardized. > > > > > > A compiler in standards conformance mode should report: > > > > > > warning: implicit declaration of function 'typeof' is invalid in C99 > > > [-Wimplicit-function-declaration] > > > > > > (this has been observed with FreeBSD's kernel build environment) > > > > > > Based-on-patch-by: Julien Grall , Sun Oct 4 20:33:04 2015 +0100 > > > Signed-off-by: Elliott Mitchell > > > > s!arm!xen/public! in the subject seeing as two thirds of the > > modifications are in non-ARM headers. > > Gah! Crucial little detail missing when rewriting the subject line. > Julien Grall's original patch/commit only did ARM, but when I checked I > found the other two and I did them too. > > > > Acked-by: Andrew Cooper > > > > This wants backporting as a build fix, so should be considered for 4.15 > > at this point. > > > > I wonder why our header checks don't pick this up.?? Do we need to throw > > a -pedantic around? > > This came up since FreeBSD's kernel build uses Clang with > -std=iso9899:1999. When I found FreeBSD was simply copying Xen's headers > it was clear this needed to be *here*. FTR this was never spotted on x86 because we don't make use of any of the macros that use typeof in the kernel. Arm OTOH has a typeof in set_xen_guest_handle_raw which is used by kernel code. Thanks for fixing those. Thanks, Roger.