Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3226255pxx; Mon, 2 Nov 2020 03:32:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdj8IVaDmO96+vCSdMEv1sOTtQ/L5jHtEIOXeD7MVwnBsO62miVMUbY+lhsCK7lMquP1IB X-Received: by 2002:a17:906:cc4c:: with SMTP id mm12mr1098914ejb.141.1604316756948; Mon, 02 Nov 2020 03:32:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604316756; cv=none; d=google.com; s=arc-20160816; b=wqeGRpdzDad+l0ELSdvez3EGpwKz2ESBOukHD7+4/H37IB8s2mTLrGFCoVW73EnO23 rFE5zBHnmcn8yKYjFMkmOG60n/6BVRCzdsNJQLmQW2aBLUisMDbdCSkoxk7/UlZhMGh/ GmddcDdb4Dm7dTIozYAY12iaN2dU/ujzUiJp/FsQfCQKqLyKU+y/Z4cjkkX0M6r9xQNT n3HDaglvLZq69GO0qLoNo34g5g5uHYTTkyTQtbk7KddLo0R1fqyx3SvISRTT0kWl+b2n i2I3ZNM3chJnhmlEGab+CZadJT+PChpkeoMF/T6KU+iKeEYguSdY7jxsE294LOBYDEDy q/mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=i8P+1ihFPTbcqcdmnuv8HM9WxJxCIqZJiXX7QB+7i7w=; b=bCucJ+zI8IRLm3Jqy2mz5IRJm28TmPOVv7VvpS9GKDPpKbJo6JdcQJNTQyZayLifEy FBUFYWKstnZslw6uMOS2jTLxwfCzw3tgbGsTO0toErA1pq9XMxZ+2IUmrkwB3vF9b6O5 6hSVnKRiVJuw7hCIUqcfMIpSKkMWrHesFDoczF8/DNKQ99EVXVFEQcFIovyaK4RZlH5O 2h/zKb0Mx5bPDUtuG/yzeJZoUxj5nUlpyHU/Mgzlwvxtbl38Y1RIGIgNS7VCISiMQxPo h9qcBQfk+VgU0xfhLVcWPOjDLgRHH/HqsKbCaXg3XG1VhXjOpEHrHREXIW/ifPS8n7lP QEKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m5bLNXPJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ym1si9834318ejb.689.2020.11.02.03.32.14; Mon, 02 Nov 2020 03:32:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m5bLNXPJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728745AbgKBLal (ORCPT + 99 others); Mon, 2 Nov 2020 06:30:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728714AbgKBLai (ORCPT ); Mon, 2 Nov 2020 06:30:38 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86CBCC061A04 for ; Mon, 2 Nov 2020 03:30:38 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id 205so1394852wma.4 for ; Mon, 02 Nov 2020 03:30:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=i8P+1ihFPTbcqcdmnuv8HM9WxJxCIqZJiXX7QB+7i7w=; b=m5bLNXPJlIXPe6vWNe3sFFSqDvuKpn8KQElblDrEAUjPPJ2eqIzNOrD3K/kopR8Ase RSAPoUZhcDDx3dQFrjjHC1QIKuuD6JSsE7It14yxKziSIBvaSZXu33sWRJ7uDViuTbvl 9kL2L2H4wJNIMI/GCwrvWmmHkxvHRxlISY03JRMcZALik0l9m0WgQj/dslfRvAR1yxC+ eAwXE3y4fJ/pPTlC7Ag+jgR1TRLjYFw4KpXIH93q62PTyU6cogjAnQzL15l4NPVyZ8iA nG47OUy2+XRjE47dt1+j+COQE96+FTrP+xnGYV6RMYjFEvlaVqGW2ZVkKtbaHZPn3xJz gzzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=i8P+1ihFPTbcqcdmnuv8HM9WxJxCIqZJiXX7QB+7i7w=; b=d/X6s6AW5ODSxEEtYFCAPL+oRz20v0XZdpQI6njjZJSP9xWva0trwgTu0m43fN7zNB gDLojvl+xAg1ZR0HbPm5JARI64SRjJDWT/cmj04+ruTCJRrwF72erCa2QoC4qy0tEfpb XR4iJEbrM7jn/vn0hP9wvpRKBsS0vXvzKVf7MRsxLf/muRBGSXVzlKyuxErcz2ySNOvx lVH6II7gtHu0T7pPRvYVBd6NTtGorjGuv/FMVLH+s+BAEO5TnVd8dM9sLJinajaLt+7+ 43HzUnRZcX3kIXwE6PKOXFq42J39s2af4wNRov0tuGv82TCaBp9qi5fe+E1vpl8B5wWW ivgA== X-Gm-Message-State: AOAM531c8wXAOkS8ROi7GnJL+0T8MJZQ5rTA8Zl+9Hsl1qdOcQR14iRx oe4HpbxrxQR9DGsjhR9YkKZJ5g== X-Received: by 2002:a7b:ce85:: with SMTP id q5mr16890502wmj.35.1604316637217; Mon, 02 Nov 2020 03:30:37 -0800 (PST) Received: from dell ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id b136sm14536930wmb.21.2020.11.02.03.30.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 03:30:36 -0800 (PST) Date: Mon, 2 Nov 2020 11:30:34 +0000 From: Lee Jones To: Daniel Vetter Cc: Greg KH , Peilin Ye , Linux ARM , Linux Kernel Mailing List , stable , Russell King Subject: Re: [PATCH 1/1] Fonts: font_acorn_8x8: Replace discarded const qualifier Message-ID: <20201102113034.GL4127@dell> References: <20201030181822.570402-1-lee.jones@linaro.org> <20201102110916.GK4127@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 02 Nov 2020, Daniel Vetter wrote: > On Mon, Nov 2, 2020 at 12:09 PM Lee Jones wrote: > > > > On Mon, 02 Nov 2020, Daniel Vetter wrote: > > > > > On Fri, Oct 30, 2020 at 7:18 PM Lee Jones wrote: > > > > > > > > Commit 09e5b3fd5672 ("Fonts: Support FONT_EXTRA_WORDS macros for > > > > built-in fonts") introduced the following error when building > > > > rpc_defconfig (only this build appears to be affected): > > > > > > > > `acorndata_8x8' referenced in section `.text' of arch/arm/boot/compressed/ll_char_wr.o: > > > > defined in discarded section `.data' of arch/arm/boot/compressed/font.o > > > > `acorndata_8x8' referenced in section `.data.rel.ro' of arch/arm/boot/compressed/font.o: > > > > defined in discarded section `.data' of arch/arm/boot/compressed/font.o > > > > make[3]: *** [/scratch/linux/arch/arm/boot/compressed/Makefile:191: arch/arm/boot/compressed/vmlinux] Error 1 > > > > make[2]: *** [/scratch/linux/arch/arm/boot/Makefile:61: arch/arm/boot/compressed/vmlinux] Error 2 > > > > make[1]: *** [/scratch/linux/arch/arm/Makefile:317: zImage] Error 2 > > > > > > > > The .data section is discarded at link time. Reinstating > > > > acorndata_8x8 as const ensures it is still available after linking. > > > > > > > > Cc: > > > > Cc: Russell King > > > > Signed-off-by: Lee Jones > > > > > > Shouldn't we add the const to all of them, for consistency? > > > > The thought did cross my mind. However, I do not see any further > > issues which need addressing. Nor do I have any visibility into what > > issues may be caused by doing so. The only thing I know for sure is > > that this patch fixes the compile error pertained to in the commit > > message, and I'd like for this fix to be as atomic as possible, as > > it's designed to be routed through the Stable/LTS trees. > > The trouble is that if we only make one of them const, then it'll take > so much longer to hit any issues due to code not handling this > correctly. Being consistent with all fonts sounds like the best > approach. > > And the original patch that lost the const for the additional data > also went through cc: stable for all fonts together. So that shouldn't > be the hold-up. My plan was to keep the fix as simple as possible. This is only an issue due to the odd handling of the compressed Arm image which exclusively references 'acorndata_8x8' and discards it's .data section. I am happy to go with the majority on this though. Does anyone else have an opinion? -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog