Received: by 10.223.185.111 with SMTP id b44csp26363wrg; Fri, 9 Mar 2018 00:05:36 -0800 (PST) X-Google-Smtp-Source: AG47ELsqG0Ei+JLFDUCrALDRtWhWSpRG2EpefmCDz97WpK+0ypFKZ/STQh8uA1krQMp+rq31DjTw X-Received: by 2002:a17:902:584c:: with SMTP id f12-v6mr26719896plj.374.1520582736888; Fri, 09 Mar 2018 00:05:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520582736; cv=none; d=google.com; s=arc-20160816; b=KtylIVizlt9W5ExGstb6o5Vpli3hYoTzz8NRqN9OUUI1OFVT2yXHFuPli0tK86kcwa EKZcZV8mHADFWJGZzqBxRma02MstSp/uYyNvPllCYEEheI0kgqXa759R7wqyGB1bFh9p R8MX06f5jrrYdbn5MTO/AmBHCVSIdhPxHht3CC3KVf7hi2UtOXvckuiKrJMbhbfKlPVV k/Ro12Hpbaswq9w2u7Mi0tIZRpkVmESdna+mqUhHhsDk5ibga1HW/ZxX3/3UhfROI8Xx mJBMSW+YfPunT8XgIaDg4hnV8IT+w4EbBi4OVUoogE5jBnTIyys/zXeUzQrFGQO/rpxk KmGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=NyzgU8/vK5/7Ax3m4+w14/6kWXSbPIx6q9wLZy65/s4=; b=Oj4a+y5t4ng4QE2H1kEF8m8rivpa4gbz2dO4rM4Hkb4nAmWNyL5TwVL6VzX4l4yuwt A/sbbqSZ34qZ2ZCsZ8RI5NC03871GXextVvSTHVtXWgQEMBcayh+g+Q1PJiJfyK9QFlA ihtLszb1Uv32N2y17myY/Ke8Dr/r8UipEL68g+iajpBfKrRu69ejQnIXhlWvPUZ1rmWP XmO3SVk9IgB9kme0nJRouUCfHFw06ECqlGsymgVirrvm7c8plHGrybsEqkx/PIB3jS/k kUEDzsNvVL8F5/SFlajYddVuUE32Om8i4SuWEteAAmUNldAPn2qTXvuNwPofutQM5o5/ twwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=FGKJ5Qcn; 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 x6si462690pfx.81.2018.03.09.00.05.22; Fri, 09 Mar 2018 00:05:36 -0800 (PST) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=FGKJ5Qcn; 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 S1751599AbeCIIEe (ORCPT + 99 others); Fri, 9 Mar 2018 03:04:34 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:55966 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750926AbeCIIEc (ORCPT ); Fri, 9 Mar 2018 03:04:32 -0500 Received: by mail-wm0-f67.google.com with SMTP id q83so2257377wme.5; Fri, 09 Mar 2018 00:04:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NyzgU8/vK5/7Ax3m4+w14/6kWXSbPIx6q9wLZy65/s4=; b=FGKJ5QcnZnvgVZQBRhd7lamCz4B8svHXItRLWWjGP22/aiwcsOacOWFwweZ371ghiC VHjYhLszvsxsyYqLsUdEp8l+kScYSzS7s0i+r0h/ZjEB6eIL/RHz7Yr2P07GwP+xd/ZR 6wyP2EH+8DMpt1NOg5iXppN4AJ11KlpMOdDbRVQQfw8hVMlYKWiqti1I3FMP2yweZPJi LSUXMkCMeVuxekB/Yd97wxW9YwTCEi4GietCDUU0RUrx24zVDgdG3/UUIWpDS0mfqdAT Tvm7w+HUwdoeOEevkSGqM45OVYdIjte6hw5rqBkpKLVtcJVs9wnSjGOn29+2boQDtsA4 sIlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=NyzgU8/vK5/7Ax3m4+w14/6kWXSbPIx6q9wLZy65/s4=; b=DaidsfOH5vYlt+I/46gUdYefwCwK5Xqa2Z9q3iu9vS4wpXICnxiLOey9SpyNb1ugDn Ih1vnUTbtBCjvssPe259kieR5GPVUGXVV6C6SSn1bMCBISkEVVam6cLHBZCiGY+ywzRi jvgC6+LVMhr7xSaWeEfqxgJceZLSUGeaCRYrl4nI6oVdL1mhNCtA/wceS+tjUuugQ8A7 WWBaEBohs+Bc8pqEpreJ8x6eXYomdpgKg2c4VhNo6y4fhDOoiaCo23F2G+8cbPDS0TAl 6QJBAvMm+/xt4aF1yQn61pjL1JlbVl36Psuubt0fZ2ioX//q/GxhcqjwTJLKtLnphLnH WF3g== X-Gm-Message-State: AElRT7G8BzNyZQkxpDK1jrM3uqvrhXUVQb2nKARGnTCwTsou/cb8GQTl yDCFCMM2Ug5f4IfNcCbYGZE= X-Received: by 10.28.64.193 with SMTP id n184mr1125879wma.4.1520582670932; Fri, 09 Mar 2018 00:04:30 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id i44sm523788wri.23.2018.03.09.00.04.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Mar 2018 00:04:30 -0800 (PST) Date: Fri, 9 Mar 2018 09:04:28 +0100 From: Ingo Molnar To: Ard Biesheuvel Cc: linux-efi@vger.kernel.org, Thomas Gleixner , Colin Ian King , Linux Kernel Mailing List Subject: Re: [PATCH 12/12] efi: make const array 'apple' static Message-ID: <20180309080428.atur6wcbb6vtonhz@gmail.com> References: <20180308080020.22828-1-ard.biesheuvel@linaro.org> <20180308080020.22828-13-ard.biesheuvel@linaro.org> <20180309074719.y33xe4bjkjsjsaa3@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ard Biesheuvel wrote: > > Also, would it make sense to rename it to something more descriptive like > > "apple_unicode_str[]" or so? > > > > Plus an unicode string literal initializer would be pretty descriptive as well, > > instead of the weird looking character array, i.e. something like: > > > > static efi_char16_t const apple_unicode_str[] = u"Apple"; > > > > ... or so? > > > > is u"xxx" the same as L"xxx"? So "L" literals map to wchar_t, which wide character type is implementation specific IIRC, could be 16-bit or 32-bit wide. u"" literals OTOH are specified by the C11 spec to be char16_t, i.e. 16-bit wide characters - which I assume is the EFI type as well? > In any case, this is for historical reasons: at some point (and I > don't remember the exact details) we had a conflict at link time with > objects using 4 byte wchar_t, so we started using this notation to be > independent of the size of wchar_t. That issue no longer exists so we > should be able to get rid of this. Yes, my guess is that those problems were due to L"xyz" mapping to wchar_t and having a different type in the kernel build and the host build side - but u"xyz" should solve that. Thanks, Ingo