Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3925323ybh; Tue, 17 Mar 2020 09:01:41 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs369jfcP1mN3kyxdMo5sY0/w8FTvjy/c16iSG/OJeGZc/k3KMxvJpCeRMZwCZsxkWOmkMs X-Received: by 2002:a05:6808:b2d:: with SMTP id t13mr4236169oij.107.1584460901250; Tue, 17 Mar 2020 09:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584460901; cv=none; d=google.com; s=arc-20160816; b=n/dYqnY+T0WhF2tszIXJnF3dpZEY3u4G1JsrS2gXahnaCynHM1H9wM8/5B7dSS1IgD F1WvZhe1G5oikgzNADw3FKzSuEK4925TWU8cr1Olq0iZ2mtxJUpgakIMVC4VfMePTf9l W0Aur7SsYIaAIyTOUH0X0fmwQlDvQZRj5grMyYLdvxYXqhOkYrs9t70vqCbzja8KBw6q GLfqrtUVJvmBZJZkRqKEnGAH9NQnn+IRkPOrwhUk6+gB39ErsclKqPNclKjfewUTZCCu hWp28hyt6djjX+bOhfkQN8fCyz6HS3NILls4mKZ8XxYEtlSSEQGw8aYLbqWm4hjAWlnQ 0e5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=i3/HhLR/O0/CbHZXM0VcSB7U8Xi1Wft1dlRFMRO02HY=; b=aFhZOWAxANpNGMdcBbjYr+gZKM9h81fDA6gusVJPvkY9KCNA1KndP0O76N0Fzvq17V MBWAMqPLRJUbD3jpxZJfl7dFUdkSSQLdfS3LdVFrBnhJy25qnBuzBiOmcUS7vhO4IpGi o94DB7SnEWH5t3v8Y8Ekjuank2j0PtCdPTK+ucLPfR/BQRTucIOLi4vOredJ0nv37VR7 xbgpkv+R2C3JnJATAtKp1H/r6e3565eyH2whdYDr2RA7zRT8vCJ0+wXfDCXfxzh6LLNH MRxzn7k3hYm6aNJe0Y73Wjne+D9J/0TYy3y+yTQcLKmeSlILk4h2vXvsorQPfJKlbN0T 5w6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bhJ9poWF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t2si1779479otb.284.2020.03.17.09.01.02; Tue, 17 Mar 2020 09:01: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bhJ9poWF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726874AbgCQQAL (ORCPT + 99 others); Tue, 17 Mar 2020 12:00:11 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38182 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726498AbgCQQAK (ORCPT ); Tue, 17 Mar 2020 12:00:10 -0400 Received: by mail-wr1-f65.google.com with SMTP id s1so4656428wrv.5 for ; Tue, 17 Mar 2020 09:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=i3/HhLR/O0/CbHZXM0VcSB7U8Xi1Wft1dlRFMRO02HY=; b=bhJ9poWFWMl3+oFEzoqGdFvuBFpm4liZ2xa75YGFftjCp27P/Rq5S9JgCJRzJeRhFp ET2jcWzJwcmzndjTjjgo4I3sJMcKP+zOFfJHkcmviLpx6GFMub044cfodyeDzvBTr5rz QdrlvCdm3eeXDmrKrYARcYEsRegY7+N/81F2BDIkvGaOUXh+IY+1mzKNynCPCRccwVWO p9wZAVHWeEtV8zdWfRvvT54cIDi65FYaftfEROjVkUCwMBrrLFZ3jnkcn40bfP8wrEy5 bBmK5VKsrEKR0a4bhnsKqu8+qk/Tp35ox/MPtgBJghewi5xBETXjkq8jPZi6yKH4U4Wm 9Big== 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:in-reply-to; bh=i3/HhLR/O0/CbHZXM0VcSB7U8Xi1Wft1dlRFMRO02HY=; b=sQ5tLAcuqSVxMkmGHSGI8S89iyFYtJTdadV/gCthZbmlE/ddbJmFKJXsZXptbZKeYt Qq2MJArPddWRg4Xs5pTpXZ9DMRtDtJjbzAACRoAXf0jEdWHuf/yw7fGds4ZdXxHKCBds DpXVlQ+DspvNoc/hU5YO5rmOKsrC7Wf/fFYVMYi6ewJzgF2Ruhm4coQOTpYVJXxa/oRx fknjSi/hkrWWwL44Dq/2p0jpRBlwwoDWmAmUwGVFIZK+vqZ2l+ctom9a8lZdKIlsgWmx /8aSYzK2whk/pGQIW4iqh/zbdYZrX6ZdeIr4HfzTM5C8S6RhbvrOWHMpj4DsCmPKRMSe +aOg== X-Gm-Message-State: ANhLgQ3GfrMnaY7MLpedE6//C1nirpikWu0Ba6rK6fRaQBIpz3ibDlUb rlp2mLnz10cmlEdLXWsRjZw= X-Received: by 2002:adf:ecc7:: with SMTP id s7mr6946877wro.386.1584460807500; Tue, 17 Mar 2020 09:00:07 -0700 (PDT) Received: from ltop.local ([2a02:a03f:b7f9:7600:e00d:142c:5e21:c280]) by smtp.gmail.com with ESMTPSA id a13sm5194418wrh.80.2020.03.17.09.00.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2020 09:00:06 -0700 (PDT) Date: Tue, 17 Mar 2020 17:00:05 +0100 From: Luc Van Oostenryck To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 16/46] powerpc/mm: Allocate static page tables for fixmap Message-ID: <20200317160005.imgtv3w62op4nm2t@ltop.local> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 17, 2020 at 03:38:46PM +0100, Christophe Leroy wrote: > > diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c > > index f62de06e3d07..9934659cb871 100644 > > --- a/arch/powerpc/mm/pgtable_32.c > > +++ b/arch/powerpc/mm/pgtable_32.c > > @@ -29,11 +29,27 @@ > > #include > > #include > > #include > > +#include > > #include > > extern char etext[], _stext[], _sinittext[], _einittext[]; > > +static u8 early_fixmap_pagetable[FIXMAP_PTE_SIZE] __page_aligned_data; > > Sparse reports this as a variable size array. This is definitely not. Gcc > properly sees it is an 8k table (2 pages). Yes, thing is that FIXMAP_PTE_SIZE is not that constant since it uses __builtin_ffs() (via PTE_SHIFT / PTE_T_LOG2). Nevertheless, since Sparse v0.6.1 (released in October) accepts these in constant expressions, like GCC does. -- Luc