Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp211609rdb; Tue, 16 Jan 2024 22:29:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IGnYeejQULrRZzCt8IcXqy4ao1D4I+gYpw7cbLGsa9IZth8eZTK3eq0mlFxf2i5WwSkpAX1 X-Received: by 2002:a05:620a:4551:b0:783:3423:c76d with SMTP id u17-20020a05620a455100b007833423c76dmr11050224qkp.1.1705472992133; Tue, 16 Jan 2024 22:29:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705472992; cv=pass; d=google.com; s=arc-20160816; b=tLpxSYUmUjNAkm8d1FXNjKG4utHRPgd4Fm0KltlELfUCVcwElKjWg1KayFlRuN4NKb 7QF5rn/HOJIXWUMg60A5eewY80Q5JOugafwEbeffPdfvyySPqUi2CheE4y8BILmC74dr IUduLqEap50LZ5OFu1f/WHENTtyTXqGnTpw9Jrc0vDDfmX5ChAdCtnxQ/XNLc3zacqc/ caY9/y7JN+WOlMDndKQZpznLo+d9aTMe9DCVY28I7h/3GwsQ23V6KHuaMKcFq6I8s5I3 Aab5aTiCUIyIgBq4X/IIITAnRAO0/MulC6KxMHqhGLpwd3KrmXW+g8qH2bR1nNuCro/c iw3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=VEdphBCHZ/nKF48ZsW/nWVCeB+A6M2MoiBd4FbIEbBw=; fh=H6CW+Gbiw1lL5cvgR7ovqVv1bUG8Ccb+RD+i9YowSjA=; b=ABqNNDRfq3HxK3jbo6YKMEoJMcPEUWmb5lxODeZvpD0uOLLEy4ek/N8mPpQb+YOcoS CS4xGeapCbgyDWvOYRwz1CXvtj0b0igtJtSwaSmx2Asfd3PdZMd5F4A67wg/rfdN8lxF e31cH7BVWFhccNA7Fwf86RANPrC83Wr/+7PBeIzb5SIloN945x7z3pRLjwvIVVhv74Nb hSnVC9EOwRqKFAWXZiF96eQuUspZHcgn3D+Mhs90qKWY4765AmNlSDH0fJZQI44jQ/K2 D7hYOzjsk7tWo3OnietvHraKYiJW0+gFSy94cdxNy1UQYy5SR3JOhLHDiT3NyFbIufm1 vCGw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-28568-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28568-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ou6-20020a05620a620600b007833ea2a23bsi11032322qkn.126.2024.01.16.22.29.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 22:29:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28568-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-28568-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28568-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DCC541C234BF for ; Wed, 17 Jan 2024 06:29:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED20E9463; Wed, 17 Jan 2024 06:27:54 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 50B268C1B for ; Wed, 17 Jan 2024 06:27:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705472874; cv=none; b=oUnC5+vfa7Rrh+At8HDNvlr8YIMzYCQmcy/eYIJvHzIZC+a42Uij3HSIy5rSNOLOIztqC8RR4lXQ+ae1SV01yn6wPd9cYpRq5gDxIcjShp3JTDS2d9jKHpQpmiabFKbX0YnGidhAvnokVjnJGaI9H6Q8rwb80MU7ti9R7NNqvEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705472874; c=relaxed/simple; bh=PYNAmLO4Yra4ku4Ukuk0ZUNkXnXzjyFVCFNdfNPnMAQ=; h=Received:Received:Message-ID:Date:MIME-Version:User-Agent:Subject: Content-Language:To:Cc:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=swCxONG6J6xk/s6/Tb5hKMkNndKexa2APCSruF+jkCVAdLWPBEEFITTNvrE4AvbniCqjWGMWsswuuf+Fmte4V2VNwFPxedxiKt1O5aS877TbkLnxgFW1CjzMOE1DPZ52P0rrur0QeHM1aXJs15Ijz2G/fBCT5G2b+3h7nvAW86Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 728B42F4; Tue, 16 Jan 2024 22:28:37 -0800 (PST) Received: from [10.162.43.8] (a077893.blr.arm.com [10.162.43.8]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4C2603F5A1; Tue, 16 Jan 2024 22:27:47 -0800 (PST) Message-ID: <2b81f323-c4b1-4580-8f2f-1654b6c1d016@arm.com> Date: Wed, 17 Jan 2024 11:57:44 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] mm: vmalloc: Fix a warning in the crash_save_vmcoreinfo_init() Content-Language: en-US To: "Uladzislau Rezki (Sony)" , linux-mm@kvack.org, Andrew Morton Cc: LKML , Baoquan He , Lorenzo Stoakes , Christoph Hellwig , Matthew Wilcox , "Liam R . Howlett" , Dave Chinner , Oleksiy Avramchenko , kernel test robot References: <20240111192329.449189-1-urezki@gmail.com> From: Anshuman Khandual In-Reply-To: <20240111192329.449189-1-urezki@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/12/24 00:53, 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); > > #ifndef CONFIG_NUMA > VMCOREINFO_SYMBOL(mem_map); Agree with Christoph - the right place to have this fixed properly is in m68k platform while defining VMALLOC_START. But otherwise this fix in itself LGTM. Reviewed-by: Anshuman Khandual