Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2098113rdd; Thu, 11 Jan 2024 21:42:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGriST0EjxN8/W1nkUUfS/RTjGglDvo4qlsTygY23x99Dx7C5beHFlzLfba0ivGpN4po7FP X-Received: by 2002:a05:6a20:3947:b0:19a:43a3:714c with SMTP id r7-20020a056a20394700b0019a43a3714cmr660913pzg.27.1705038136253; Thu, 11 Jan 2024 21:42:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705038136; cv=none; d=google.com; s=arc-20160816; b=oxFYDnW09FMJm85tWTOi7dDdlGSfo4LOl1P2KDnQZzO4wKGN2B/YLCjmgVh7SCKrCV oPAXL+QHOD/zgRpDnmv82KS0r8zbYd++wmqm6BmMjwQfKBEdCOHWEQuTvLvl94zQf3aZ LWLPyguRFjRQASsuXuGwkhHMfSxRv1jhU6wj+ZS76Oy3FyHafnRZON7UzLPibFfMjkMC kYh7sSNE3Ux0dbeA6AoZ57yeN5YcKadTZLDWr1vG8WUAZG9KMTmdMASKp1XtLMz3STgD CcwoCzVv4+n0ao2OMHSvqDgSt9NAHy+PdxNwsgu+2/nVY1aeNXuCxgVuXWbJ9wFr0alt OLSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=g6BSFRepca9WGGc5Fa5O/uOTZnuhNDHcJLcyaQXXfX4=; fh=yuw9n9WZcjsLZuKMhE3YVmF09e9NIARnDju1y09RKE0=; b=EnKMoB16ET822IujDivV/55pCWzfHXQobxAmKgblD1SlivS4sfFklIcgiUFa3ST+PP MOgLXV5vuY3VaMQCC0vptb2NNDOJTkvuq5suaS4zehQ2pcHErQWXhGJ2du1nk9XwXGGF TatJqSPInCjk2bvrmY0ZSopEbeyQqO+c2udGdcQ9wigXx42TDH4bRW2oG9SL93/m6s7J P3t/ATVj77KnudgkVZrs5+ilTgOTMMFEjEj0O3Nsq5TjGCCezxUSTFitE2VKRYAYMn+j 7wOka2XSSnTvuWLkalUu7WAsunH+Fv7w6uSt1DOI/SFfL+bec8fXfxgxr/mDBICSIYh9 8ZjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eDURiJiU; spf=pass (google.com: domain of linux-kernel+bounces-24318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24318-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 199-20020a6302d0000000b005c606792120si2599288pgc.107.2024.01.11.21.42.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 21:42:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eDURiJiU; spf=pass (google.com: domain of linux-kernel+bounces-24318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24318-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CAB93B210C4 for ; Fri, 12 Jan 2024 05:42:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 721765B5D4; Fri, 12 Jan 2024 05:42:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="eDURiJiU" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E47FC5B5A3 for ; Fri, 12 Jan 2024 05:42:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705038121; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=g6BSFRepca9WGGc5Fa5O/uOTZnuhNDHcJLcyaQXXfX4=; b=eDURiJiUxpslLKjsd+D8wp/a0M0K6NJqZOMtzp+IIpSowyk+q4wJMlUkc9LtJIfY/Wy8AE O/E6xHq+oev7Ey9QMHz65A+xD2sx1IETktDRBrqgdomELGHV/iRb6ARzqDVe5CiPukxF/J DsRz4s4rRyaj0Dc5wXv5bqnscNf+ie8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-183-3isU-4a_PDSNjcCvGJ2gNA-1; Fri, 12 Jan 2024 00:41:56 -0500 X-MC-Unique: 3isU-4a_PDSNjcCvGJ2gNA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4AA6C85A588; Fri, 12 Jan 2024 05:41:55 +0000 (UTC) Received: from localhost (unknown [10.72.116.129]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EC2FD2026D66; Fri, 12 Jan 2024 05:41:53 +0000 (UTC) Date: Fri, 12 Jan 2024 13:41:50 +0800 From: Baoquan He To: "Uladzislau Rezki (Sony)" Cc: linux-mm@kvack.org, Andrew Morton , LKML , Lorenzo Stoakes , Christoph Hellwig , Matthew Wilcox , "Liam R . Howlett" , Dave Chinner , Oleksiy Avramchenko , kernel test robot Subject: Re: [PATCH 1/1] mm: vmalloc: Fix a warning in the crash_save_vmcoreinfo_init() Message-ID: References: <20240111192329.449189-1-urezki@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240111192329.449189-1-urezki@gmail.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 On 01/11/24 at 08:23pm, Uladzislau Rezki (Sony) wrote: > The vmcoreinfo_append_str() function expects "long unsigned int" > type as a second argument(0x%lx) to print a beginning of vmalloc > start address which is defined as a VMALLOC_START macro. > > For some architectures it can be considered as "int" type, for > example m68 generates a compile warning message. To fix it cast > a second argument to "unsigned long". > > Fixes: 9bdb180b2d ("mm/vmalloc: remove vmap_area_list") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202401120218.y469Puyf-lkp@intel.com/ > Signed-off-by: Uladzislau Rezki (Sony) > --- > kernel/crash_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/crash_core.c b/kernel/crash_core.c > index b60de490c1fc..49b31e59d3cc 100644 > --- a/kernel/crash_core.c > +++ b/kernel/crash_core.c > @@ -748,7 +748,7 @@ static int __init crash_save_vmcoreinfo_init(void) > VMCOREINFO_SYMBOL_ARRAY(swapper_pg_dir); > #endif > VMCOREINFO_SYMBOL(_stext); > - vmcoreinfo_append_str("NUMBER(VMALLOC_START)=0x%lx\n", VMALLOC_START); > + vmcoreinfo_append_str("NUMBER(VMALLOC_START)=0x%lx\n", (unsigned long) VMALLOC_START); Thanks for the fix. Acked-by: Baoquan He > > #ifndef CONFIG_NUMA > VMCOREINFO_SYMBOL(mem_map); > -- > 2.39.2 >