Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp783073imc; Sun, 10 Mar 2019 22:10:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfyggZggcx+89njUCtdp3nEXwtkoBg7UCZ2dThf/BCTPnp0WWtFgLLyhhmb3YWOQAonJng X-Received: by 2002:a65:6210:: with SMTP id d16mr14797956pgv.189.1552281051018; Sun, 10 Mar 2019 22:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552281051; cv=none; d=google.com; s=arc-20160816; b=zywoXqJHPXcYtCAUArGI6D4vCam8Ziq1Rz1mKbrEiR6dvAfuQswbrWrNQoDJU7IPYM /fp4FcCGvGy7iqzF6ueTadtrqplHOoK7oi/054LKh2K8UWprZKy9jW/vlJEHiyDAL7ly nohcLcJ51FAss1cgwwLnitxddJbg3Ab28kI4910JFGyU2GpDa9dqPvtCuc8ohqgggW24 jEvo7PTKD6e455KLHJBwPmbHSVyl2aK49CRp+2vBuLirS43hT2bGlEMVTdTIZ0wfK5MM gLVTsyEbF5DchVPYcydCy+/gk2BOIdEqT9TGxLw9WvU25xVlW6kJ9psyztt3FXvqKygZ 53/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=vfLiQuP9XhvIH0aIML08yoKeEJ3gcCmEumXqcsC09Q4=; b=pHNpJBL1zGcS5EJH7b2OreTuonEWH9ARk9DnUaOTjyQRVknnc0/BhGqghhmFvWOkdO iFAvQILMhPvRRzgKz3BnPPh5sZYNfI9Th5gNkODVEhcQaXFBELCLHc9X/ASTEdTim3Di LkdXtqDNDzIwOrJ5g4xYVHCg8kKV02wwwjSurg+DdeIfYhvzCNokucpiazEA6YQg+Bqr 8eRvMmBEEpYMNkoVDKmY0j845b/JyP55Xf+EKCaQnwTjItLZu3HrBpJvdwDhewiUJmRD jvNIOXEaWzmC2zWJCMRPhDiY5komdgyh/ZS/WLiHSReq3zXgPa+vKDikjT3so5J6CkBd wh1g== 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 g14si4247502pfh.190.2019.03.10.22.10.35; Sun, 10 Mar 2019 22:10:51 -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 S1727220AbfCKD6X (ORCPT + 99 others); Sun, 10 Mar 2019 23:58:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:37052 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726976AbfCKD6X (ORCPT ); Sun, 10 Mar 2019 23:58:23 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id F110BACA8; Mon, 11 Mar 2019 03:58:21 +0000 (UTC) Date: Sun, 10 Mar 2019 20:58:15 -0700 From: Davidlohr Bueso To: Qian Cai Cc: akpm@linux-foundation.org, jgg@mellanox.com, arnd@arndb.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/debug: add a cast to u64 for atomic64_read() Message-ID: <20190311035815.kq7ftc6vphy6vwen@linux-r8p5> Mail-Followup-To: Qian Cai , akpm@linux-foundation.org, jgg@mellanox.com, arnd@arndb.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20190310183051.87303-1-cai@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190310183051.87303-1-cai@lca.pw> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 10 Mar 2019, Qian Cai wrote: >atomic64_read() on ppc64le returns "long int", so fix the same way as >the commit d549f545e690 ("drm/virtio: use %llu format string form >atomic64_t") by adding a cast to u64, which makes it work on all arches. > >In file included from ./include/linux/printk.h:7, > from ./include/linux/kernel.h:15, > from mm/debug.c:9: >mm/debug.c: In function 'dump_mm': >./include/linux/kern_levels.h:5:18: warning: format '%llx' expects >argument of type 'long long unsigned int', but argument 19 has type >'long int' [-Wformat=] > #define KERN_SOH "\001" /* ASCII Start Of Header */ > ^~~~~~ >./include/linux/kern_levels.h:8:20: note: in expansion of macro >'KERN_SOH' > #define KERN_EMERG KERN_SOH "0" /* system is unusable */ > ^~~~~~~~ >./include/linux/printk.h:297:9: note: in expansion of macro 'KERN_EMERG' > printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__) > ^~~~~~~~~~ >mm/debug.c:133:2: note: in expansion of macro 'pr_emerg' > pr_emerg("mm %px mmap %px seqnum %llu task_size %lu\n" > ^~~~~~~~ >mm/debug.c:140:17: note: format string is defined here > "pinned_vm %llx data_vm %lx exec_vm %lx stack_vm %lx\n" > ~~~^ > %lx > >Fixes: 70f8a3ca68d3 ("mm: make mm->pinned_vm an atomic64 counter") >Signed-off-by: Qian Cai Acked-by: Davidlohr Bueso