Received: by 10.192.165.156 with SMTP id m28csp350849imm; Wed, 18 Apr 2018 23:37:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx496z1M4DW4ahAiSM2W7hOGYK1vYU04W1+xEYD0/kJdNGYQQIt45aor4xAHQE1VQcbSpYXMK X-Received: by 10.98.86.16 with SMTP id k16mr4688590pfb.149.1524119848697; Wed, 18 Apr 2018 23:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524119848; cv=none; d=google.com; s=arc-20160816; b=Vpg5R9hAwHtx3DPW+mnQupEvrXdOpoKyTyJt5j+jHk5HSo1RSTaTI1LEDXkbZVF11p m1obKaUrR7I+58H3QUq422jmHn4rYvbDy/E6iXyAz3HiC+KGS5OKipMB8j9WUrDSoT1O DT03ps8MGPu8zmAnZvrfG1FQfxpt8U4/pCYb9p9syxFnf4SA87/OuWHAy6INfyH9r3Tm 8own65cnMpIU77/KNCkZ25ctS7cuvDXRPSJ9ExhpwsnqYMRqW/RF1oz2Ys/q5Q8y+57f TddkbaoHN53MFSp9waoW9+SrBm0k6wkOnzXsGFnJ719LJd1kMe6EZPEeIkpsz7rWOIGA U1Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=o+9IOxo0huRlYRQa1NW9YgFPDSD8KcHvRsGtbDuC1Vg=; b=j67O0Nyb2v1mNDBKtTKOP6F+DvdTt8LxLUTIEm0TTtKNPeNd9eJC/45yqPA+xOmvgH sqo87g2Ct7DBMBETpuJy4jXrn6SZ1mQZA6nIOAmpVhXm/1rSshuOcOWePudPwnlWU4jB 4SiFXHqNAbS3GtVJ+qIg7rtPrxqh8rCcCQ5lb6wU93hFmBkA5Wbq5tDzPF4BPphddIph WWDup8KoJcboslMqjp4l1IMysCxbCvFjcKUcMPREVS02UUYiWGnOImZ+pnT6vTStxbzJ elMGKUBEe14AGE+ocVW6Z+iLwtR8zN0xxj3e9DRv/u+C9Gs9+rlB2Xkx7exW7Mr/YRxs fR8A== ARC-Authentication-Results: i=1; mx.google.com; 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 s10-v6si2970251plq.240.2018.04.18.23.37.14; Wed, 18 Apr 2018 23:37:28 -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; 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 S1752100AbeDSGf5 (ORCPT + 99 others); Thu, 19 Apr 2018 02:35:57 -0400 Received: from mx2.suse.de ([195.135.220.15]:40965 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751953AbeDSGf4 (ORCPT ); Thu, 19 Apr 2018 02:35:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 017B0AEFC; Thu, 19 Apr 2018 06:35:54 +0000 (UTC) Date: Thu, 19 Apr 2018 08:35:37 +0200 (CEST) From: Jiri Kosina To: "Kirill A. Shutemov" cc: "Kirill A. Shutemov" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH] x86/mm: vmemmap and vmalloc base addressess are usngined longs In-Reply-To: <20180416094603.fj3wevho5j7wy7s6@black.fi.intel.com> Message-ID: References: <20180412142801.oi7bzju3frgkdskp@node.shutemov.name> <20180416094603.fj3wevho5j7wy7s6@black.fi.intel.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Apr 2018, Kirill A. Shutemov wrote: > > > > Commits 9b46a051e4 ("x86/mm: Initialize vmemmap_base at boot-time") and > > > > a7412546d8 ("x86/mm: Adjust vmalloc base and size at boot-time") lost the > > > > type information for __VMALLOC_BASE_L4, __VMALLOC_BASE_L5, > > > > __VMEMMAP_BASE_L4 and __VMEMMAP_BASE_L5 constants. > > > > > > > > Let's declare them explicitly unsigned long again. > > > > > > It is just cosmetics, right? I mean these literals are 'unsigned long' > > > anyway. > > > > Yeah, I can't imagine this particular case leading to any overflow > > scenario, as the literal is big enough to be automatically treated as > > unsigned long by the compiler, but it shuts up sparse which treats this as > > a generic case (where the missing UL might be a problem), and totally > > pollutes the build output. > > > > Either we put the 'UL' there, or teach sparse about figuring out the > > 'closer bigger fitting type' for hexadecimal literals, which might be more > > tricky. > > I don't have a problem with the patch: > > Acked-by: Kirill A. Shutemov x86 folks, any objections to merging this? Without it, the sparse build is currently totally unreadable mess. Thanks, -- Jiri Kosina SUSE Labs