Received: by 10.192.165.156 with SMTP id m28csp503379imm; Mon, 16 Apr 2018 04:12:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+oTJuwnKz0qkVYFmoqXE1VCDaZ1ziID7C6+AAeHSYpC6vdBs5chag0FLEVGdKRJUNSNJlX X-Received: by 10.99.37.70 with SMTP id l67mr12888383pgl.106.1523877156514; Mon, 16 Apr 2018 04:12:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523877156; cv=none; d=google.com; s=arc-20160816; b=iFFOEUPD4OK5fio/qOUJbdNDcxk4em5kLGj+KPtyT2anAIvTqXX0uQ5POAc+RoTpau 8AsZoZYRe3RDIEd92vBGZNSy2l5R9TTgBnPqCPevvJHHvalpSmUPQJEZUTk4L1hdCVqB m+MRDet1FmYJZu6Tgo1XEueyWjiggpmnLblUSK5hkIs2sgmsq5zsyvFnjlM3+Ueg46/C 4FlHWiwjnSdVUnx9KX5H4xmco9lhk/QRdo1JiizU7rnrqyJ36bW7YXXAMb5KTQhQlNDa R2K3I/BKM5FPlHA6SNdfCPfiOo3wq6D3pnrfyjAkrXvsu/7BXq/KhDiF1TdJ+I+m6yZS 44HQ== 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=X/1IjePWism36kXnfS8ZLyOH07bGU/U9SrWnLe/ioJs=; b=DMlyW0vzWtejAuAdLc5I2vZYfNyysC+wjLHbpUEcyAXjTG/sBdr5mydFyQweqTyV8E BtRTCVlf8GqNminyxAPHlpsbOT3DLdM5iOd/5F9w0DRrPPqJEV6h/0B+Y5TBfOJ95cz5 aP5TEx2OHqs2Y5yLfGJbj5kwHdv3+nxDmGwwYgudD2E8tJY2J2qG0o4j9R2cMNgcdeXt HChD5UiwgfYfDdZibScB1VBoEt6dkNYrkdLczhuSdd3WJ5SRZcuX5snMbKdJnvJkAvnZ CZtjLKNq26mZc7Ka0150lM54U7OnNzyVI4X69Rrn4W02qrkVJttc4vAyRvDjO1UbQ1wn PWLw== 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 n185si4257638pga.151.2018.04.16.04.12.22; Mon, 16 Apr 2018 04:12:36 -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 S1754270AbeDPJnG (ORCPT + 99 others); Mon, 16 Apr 2018 05:43:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:55219 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752876AbeDPJnE (ORCPT ); Mon, 16 Apr 2018 05:43:04 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 60F8FAECC; Mon, 16 Apr 2018 09:43:03 +0000 (UTC) Date: Mon, 16 Apr 2018 11:43:02 +0200 (CEST) From: Jiri Kosina To: "Kirill A. Shutemov" cc: Thomas Gleixner , Ingo Molnar , "Kirill A. Shutemov" , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH] x86/mm: vmemmap and vmalloc base addressess are usngined longs In-Reply-To: <20180412142801.oi7bzju3frgkdskp@node.shutemov.name> Message-ID: References: <20180412142801.oi7bzju3frgkdskp@node.shutemov.name> 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 Thu, 12 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. Thanks, -- Jiri Kosina SUSE Labs