Received: by 10.223.185.116 with SMTP id b49csp3875647wrg; Mon, 19 Feb 2018 07:25:44 -0800 (PST) X-Google-Smtp-Source: AH8x2259tTfbi1mG+LhxUwLslM9LOpcyk7jXipcR9DXZ1wcJw3p/vctfn20pLIS//gMWg8s3daLU X-Received: by 2002:a17:902:aa0b:: with SMTP id be11-v6mr14447461plb.250.1519053944786; Mon, 19 Feb 2018 07:25:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519053944; cv=none; d=google.com; s=arc-20160816; b=HOsU7TvRt3iomdRCxGRmV8ht+diUHnqHcxARWyW5TqBbBQPrjIllRaWZymA9VDMoa1 yR+nO7cPn9yQC1Nfh3VPS/qQ73Pwm9wDUm9kblk4N6oHU1t2tqaP2h1l5S7OXuam2RKL lsj1JUPd2DnbGxpmhi0CJlt8L9E56HnCj4BkrfL4BGSyfiRBei1d6XVXNfdmnhbGC+iB kH4dJSzLjUDZK0trAQ4p0rrgilOLIla/qFK2wqpFBWC8bh79d+j1WQS1mZMW6Sm3Cj9t YmQXw1rJyswvUcF924N9cVsxvKj03Kf7bD9CcMGDV/lnNR2a3p3v4ZYL3Zvk5j0PWMOT kSkg== 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:date:cc:to:from:subject :message-id:arc-authentication-results; bh=2WW4m/dCyygaQhJI95z76oZGZUWIGRUGw3f5rSCA5+Q=; b=bR9b2suiwAKOtv6XSs+pxlSMGE9qpjl8uhqHHvQq0/P2vIQvkoSnPzqjCyTd3U0Z1R yUxMVMDxTuwAPiQGsqzoVQ7vq8vzC7uJNRqIwheybEko5VfOkFLvl5YF/J4NH73EmMu2 lPQZOTQcRHcDJErhdoYaxbiPEGLt2zxL6/mLbdgn1yVTCJ96rF089cclOBh3XHv3PEO1 mkUD1l4Ma302b19BTDHtvQYPhv9VV83BRVDZsF4t58rzyAtfIIS+ktyubYrTpZWPbXEq wDz4SQNQx/oQsZQstRWjtTJq/GbddRPp/QJXHL8IxnRuKg3UUM+lL2nXzYIsXZVvxA02 4pBg== 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 64-v6si5966526plb.472.2018.02.19.07.25.30; Mon, 19 Feb 2018 07:25:44 -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 S1753113AbeBSPYm (ORCPT + 99 others); Mon, 19 Feb 2018 10:24:42 -0500 Received: from mga04.intel.com ([192.55.52.120]:45600 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753031AbeBSPY0 (ORCPT ); Mon, 19 Feb 2018 10:24:26 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Feb 2018 07:24:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,535,1511856000"; d="scan'208";a="18927936" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by fmsmga008.fm.intel.com with ESMTP; 19 Feb 2018 07:24:23 -0800 Message-ID: <1519053862.22495.396.camel@linux.intel.com> Subject: Re: [PATCH v2 1/9] lib/test_printf: Mark big constant with ULL From: Andy Shevchenko To: Luc Van Oostenryck Cc: "Tobin C . Harding" , linux@rasmusvillemoes.dk, Petr Mladek , Joe Perches , linux-kernel@vger.kernel.org, Andrew Morton Date: Mon, 19 Feb 2018 17:24:22 +0200 In-Reply-To: <20180218125802.lu5abzydm2hwxj5p@ltop.local> References: <20180216210711.79901-1-andriy.shevchenko@linux.intel.com> <20180218125802.lu5abzydm2hwxj5p@ltop.local> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.3-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2018-02-18 at 13:58 +0100, Luc Van Oostenryck wrote: > On Fri, Feb 16, 2018 at 11:07:03PM +0200, Andy Shevchenko wrote: > > Sparse complains that constant is so bit for unsigned long on 64-bit > > architecture. > > > > lib/test_printf.c:217:54: warning: constant 0xffff0123456789ab is so > > big it is unsigned long > > lib/test_printf.c:246:54: warning: constant 0xffff0123456789ab is so > > big it is unsigned long > > > > To satisfy everyone, mark the constant with ULL. > > It should be 'UL' not 'ULL' since for architectures a pointer and > a unsigned long have the ame size while on 32bit archs, long long > are (or may?) 64bit. Yes, UL works as well. Andrew, tell me if I need to send an update (followup) or a new version. Btw, I ran test_printf suite on both 32- and 64-bit code, everything passed. So, if anyone notices a regression, please, create a test case that we may run. -- Andy Shevchenko Intel Finland Oy