Received: by 10.223.185.116 with SMTP id b49csp1784wrg; Tue, 13 Feb 2018 15:20:40 -0800 (PST) X-Google-Smtp-Source: AH8x224MvBvj+cOWFJmD/IVSLO3VDwcfdnGa+RPqN7JyAU+oBCNFB/JEFod84wTAfCzq0foTBeJt X-Received: by 2002:a17:902:8c91:: with SMTP id t17-v6mr2622005plo.310.1518564040718; Tue, 13 Feb 2018 15:20:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518564040; cv=none; d=google.com; s=arc-20160816; b=vKYDkYAvy53wMUU5H4klIr4QGzxntOO+BMA3Dt9XoKqxDbgr68cyrFuDh7q+ut/3TZ aeLxy9toFR3HWVAMy9QkgMWddKo2qARf8rHRCfmsLtPdboWF3UwRxds07ZpFH86sIRR2 s9ZBQCO5LnQ3+CNNJK7fEH2+Sm21oxWIurrcEYdluv/yDKkAKWMRePwHfvxlMGwImodj ksqeohTiIjcbquZUqHAugxqnIi0Yw8yko5EPiuAr0E+z8JAspuB/qolPr/Xg5h0qQjEj xB4VSHg3yrtzt6sssFSHvWX3QT2j9ghzWeZc2u1XHwLKgrBIiBllt2n0Xfmr9B1INK0w gIUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=NmCKcRayqSbL2/ydZvnwII/p1eBJo1pW2a8bNEyydoo=; b=Oxx0xVXEBg1JaQlDhseIoRY1sKtWp5k+29jsxGd2FCyNjSy2JzFOzLQGVPF8ZNthdi GrlF5yBF32O5DhYpVVmRYkQ9BJ8UnHz5/Wc67CftVrcNrVdRIFvadraRVvExVdgVT0/T crk9MGMv8JZhUb4Yf5f3oGj8QZqBAN7jrgGcASZ/W1qS1q9/S31olCg9tX+nvxd1DYaR LLe4EMrsrKrxKdsOwk2UkJrUQzhLNJqYpxkO9ykCu2mSeYNcLNiZiEUEQKbUvoyN70Of 980+yz9h6CKZ4nLhxOTQ6KlIdbDmWqFYqT2Pp2H/NhVLv79LKklXUzV0zTQ0XQWq7QjD M0Zg== 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 q6si1654962pff.164.2018.02.13.15.20.01; Tue, 13 Feb 2018 15:20:40 -0800 (PST) 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 S966068AbeBMXTQ (ORCPT + 99 others); Tue, 13 Feb 2018 18:19:16 -0500 Received: from www.llwyncelyn.cymru ([82.70.14.225]:33728 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965783AbeBMXTP (ORCPT ); Tue, 13 Feb 2018 18:19:15 -0500 Received: from alans-desktop (82-70-14-226.dsl.in-addr.zen.co.uk [82.70.14.226]) by fuzix.org (8.15.2/8.15.2) with ESMTP id w1DNIleM003839; Tue, 13 Feb 2018 23:18:47 GMT Date: Tue, 13 Feb 2018 23:18:47 +0000 From: Alan Cox To: Thomas Gleixner Cc: "Gustavo A. R. Silva" , Borislav Petkov , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/microcode/intel: Use 64-bit arithmetic instead of 32-bit Message-ID: <20180213231847.36f87c0b@alans-desktop> In-Reply-To: References: <20180213164404.GA11664@embeddedor.com> Organization: Intel Corporation X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > if (c->x86_cache_size >= 0) > seq_printf(m, "cache size\t: %d KB\n", c->x86_cache_size); > > which is silly, because that really can be done with: > > if (c->x86_cache_size) > > as there is no point in printing 'cache size 0KB', which means > x86_cache_size can be made unsigned int, which makes sense because cache > size < 0 does not at all. Currently 0MB means "I know you have no cache" (early slot 1 celeron), while not printing it means 'I have no clue' Alan