Received: by 10.223.185.116 with SMTP id b49csp2792061wrg; Sun, 18 Feb 2018 06:46:35 -0800 (PST) X-Google-Smtp-Source: AH8x227qTbN+2sq9ZLd/BGBUJ5qgNrzH5skBNMzsLaynSGjJ6GICpZKXjAA7EwiQyCAisxuGmVpu X-Received: by 2002:a17:902:6ecf:: with SMTP id l15-v6mr11560043pln.443.1518965195542; Sun, 18 Feb 2018 06:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518965195; cv=none; d=google.com; s=arc-20160816; b=EllKSsXCUnW5obqLMMJp5kSimvq3yCO7t1Nx14Hlx9YlZ66oD8lqAlXYcmWTH9nNL1 GHEx4GjlX2gJvfT0ALfgWvNXnXVdKSuGCbtQrQkLo2q+XtpB5esTDIoSrjHlCPoeEL5+ 8JFnsc0b4AsFlhlBXsMw56D5GF1M1ljxjNTFTEhsU8X/yF2G0zi6ucybPSqkwJczP5o3 AYDdCHtWlo766Ptnnimw2z+9Um5+jByZ353lMy4FiAVDoLt3EAcPcP/j8PanlE7W6ugP URt8vAevt/qPJH0Cnm5xsU3DGQtMMdmmuLEoMWcuUunTUr4tER65i3d05rURVzYOPFLv /DZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=+w+rl9KsYaU2Wq5Gg98zG6PxUPj7zN6jnPerGO9Y/7g=; b=sNSLqqPY0weI8bofh4M08+wK/bhlK+KlKP/nisY7ZfdUYZoqAMq+ofwvZ3MYpOVrUU sKI7ZmVwrN79dpXtN0oWmFA7L4rpVLqwDQXA8Jm09oFhZEPoeflhCjc/xzFiFdPbomR0 wLo7xq4fqo+SAiTWS91Xcjh7Kx30CXZFtfvjtChivkeOaXzPSjGT1rm6k+SHsFfkf3Nr j3iPiM1kPcnSyZuOqqqZfofqK0Rh432qDPpWRXSDFjhl4tnZ3UJ8AlcYkAZZIoDUWp46 d/aVGKKxLZCxxx8sv684nW7zBR+M12/8nvtDpkXFqRJc0puGTPBZhYWXTvc+dc6y7fhZ e7eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YdeMHNbN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j25si6746311pgn.657.2018.02.18.06.46.08; Sun, 18 Feb 2018 06:46:35 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YdeMHNbN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751541AbeBROUd (ORCPT + 99 others); Sun, 18 Feb 2018 09:20:33 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:40236 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751335AbeBROUc (ORCPT ); Sun, 18 Feb 2018 09:20:32 -0500 Received: by mail-qt0-f196.google.com with SMTP id c19so9338707qtm.7 for ; Sun, 18 Feb 2018 06:20:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+w+rl9KsYaU2Wq5Gg98zG6PxUPj7zN6jnPerGO9Y/7g=; b=YdeMHNbNmT86touymBbc+gRKHyNfpFa2JE+mbfMbH2eEVzQqcl3EBYfmcLCx7tveQH wDWKBwbLDoBifiJlHt0ikGADznX3CzXt9mihPnhBbu4IBE2QyFt8EVIEo0it/t4odNg+ LTWg0QV1UhEAg3m4xBs7YWNFnxdgrdeGLXgNW+q79z2gj4OixBdzGXFAEHl3w48T0HPm f5PGdPFoAWQNsiLHsxiW+I1IAHyTAduDC7PgMV7IKYVsCv3MWYDAmiPC2mCkEKB2cLwd rtQawLwGUMVj3GhJDeYoI9kxJJjYLPpVK72a8uLEBabudV4KHmNe7xPkAT6laqr9R1j/ vC7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+w+rl9KsYaU2Wq5Gg98zG6PxUPj7zN6jnPerGO9Y/7g=; b=hpRH+cUhYXS+8mF5Jroc0D3l6MuttI97dXmnnXBVoG2QmWSRCLxNxHt3WpxneGN+0/ 4ybi+5MnIqYD61pMifTvwoNkmAb2GYwLQBmGCe930zts3Kwh3fytnY4G6WcX3FNqmSGN zgjuZqeZFYnbpnLnk8RN11r/y9SHV+/f90ncNU4Le+YnZ0pDq379fOMGIEEswsEv6pl9 AQ0KI9Q+vfBkjsLB5NNwaG2y4GUWu+Y3dHuSjzlccbZECvaN21N2YG71qMtXwlMCQQYo NuO8JbCxXwyeZ4ho5BXthYNLdTI48ZwQ69RTfLIa1YfUjggLa/IkoFP1vBIiXzCt2eGq VdaA== X-Gm-Message-State: APf1xPAwGyvM9vaDhfrQ/yY1StEkufPNt/F9ag5GctUlSkWme6OmY4Qw BGZVh7e2t+nYWAdr0ZJ2UOwe+QRMKCr9gPGOQMk= X-Received: by 10.200.18.3 with SMTP id x3mr12375585qti.40.1518963631768; Sun, 18 Feb 2018 06:20:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.195.80 with HTTP; Sun, 18 Feb 2018 06:20:31 -0800 (PST) In-Reply-To: <20180218125802.lu5abzydm2hwxj5p@ltop.local> References: <20180216210711.79901-1-andriy.shevchenko@linux.intel.com> <20180218125802.lu5abzydm2hwxj5p@ltop.local> From: Andy Shevchenko Date: Sun, 18 Feb 2018 16:20:31 +0200 Message-ID: Subject: Re: [PATCH v2 1/9] lib/test_printf: Mark big constant with ULL To: Luc Van Oostenryck Cc: Andy Shevchenko , "Tobin C . Harding" , Rasmus Villemoes , Petr Mladek , Joe Perches , Linux Kernel Mailing List , Andrew Morton Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 18, 2018 at 2:58 PM, 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. Perhaps, I'll try next week. Though ULL works fine as well. -- With Best Regards, Andy Shevchenko