Received: by 10.192.165.148 with SMTP id m20csp2064162imm; Thu, 26 Apr 2018 05:53:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/MVvn2QRTd2Qe/INTkA48L3Ac48KzhLMKtlfhxd16NcJTGmeEAPZfPzqhyPLLFAcBuzOiN X-Received: by 2002:a17:902:bd41:: with SMTP id b1-v6mr33072874plx.302.1524747229463; Thu, 26 Apr 2018 05:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524747229; cv=none; d=google.com; s=arc-20160816; b=Vdii6iJMVsDxDPhQXOirjS03Vhm4I6/E5khXCVOYUf7NjkCPH9GCIvMNp+tucb0y+R UT9Xv9jnE7U/oEDPXIPFgoi5RK+I6mJaq+sIhj4Sv3HqMMgJwcdRUhJp/z7qaoyiNyko osE6BZ2443KE5HIGzvA8OM7+duSGn5mkKqtPYytZ+9oSSRSKv9Vl0K0VQZuainMMloEk 1lMYK6s7z2t9ox2W5D9mkHbow9z9GD0Pxov+2J8xQc2CYZ+42qemqs+mAOQTVSFJkFsM zn+0l/vGd9AENMpButcpXXtUmpQ2JyheMENNDvN5G5O57i9T2rtu0NYCFal7cR40MeyE yi3Q== 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=JlVARRqls7uBQXhSfv/K3lHAAVB+mk6v8QAEGx6z8+A=; b=LbsIffF+B7/DytPO/2/QhYseQiAqdS8ppoI4vDtspjZubEBgr0xUUhOPNlj0uBNijr duOWQ5k7JHSim5LSiDRZ2fnbzO7b2ZyvMMkPXHBYmLb2nKIo4fx8a0XizFkGzxXFxVBC /MYEM+0KjTmNnr355UfqIRuXFCdKoPGRG1Xq/GzB7PD/5h6J6I5E3CaYDVpeONG8ORdp 2AXjX3U9uEqDpIK36u/fvveOxBpFwaEb6IgmUvXlcm2BBrk13fdy5k1zSCHZ1zeDlQB8 VJ0DBql9iVXBJYMRhvQpBC1tnq9zoZLd8YZb3bslUFnQeQP87d0NiL5astEUjQLdjqSI kEtg== 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 o10si2419293pgv.636.2018.04.26.05.53.34; Thu, 26 Apr 2018 05:53:49 -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 S1756193AbeDZMue (ORCPT + 99 others); Thu, 26 Apr 2018 08:50:34 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:47524 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755542AbeDZMu3 (ORCPT ); Thu, 26 Apr 2018 08:50:29 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fBgLx-0004mv-S9; Thu, 26 Apr 2018 14:50:26 +0200 Date: Thu, 26 Apr 2018 14:50:25 +0200 (CEST) From: Thomas Gleixner To: Jiri Kosina cc: "Kirill A. Shutemov" , "Kirill A. Shutemov" , 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: Message-ID: References: <20180412142801.oi7bzju3frgkdskp@node.shutemov.name> <20180416094603.fj3wevho5j7wy7s6@black.fi.intel.com> User-Agent: Alpine 2.21 (DEB 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 Thu, 26 Apr 2018, Jiri Kosina wrote: > 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 > > ping, please? > > sparse build is still noisy like hell :/ /me goes to dig it out in the pile ....