Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp50312rdb; Tue, 16 Jan 2024 14:43:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGChraNqNoiEi5Pz+pAIArZFY5KA5lYEnfS/3QPhC/Re61unb+eze8wnrKfbBaKw474WPP9 X-Received: by 2002:a2e:9bd2:0:b0:2cc:db7e:aac2 with SMTP id w18-20020a2e9bd2000000b002ccdb7eaac2mr3373247ljj.58.1705445036409; Tue, 16 Jan 2024 14:43:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705445036; cv=pass; d=google.com; s=arc-20160816; b=DWhgdw3T50T9lll29a/l+d7qxdF8GXF8mXX428wlxqugumHPIq9QSRkQotBB+5rTa5 TUPnqhwCOgsZRK5UvRoVn7eEgUJVY7XYGn6MRZrieR2+9aj3qSKV8lUFFf0bPTXpaH++ U5P3eKoewg5kxwoyoK5ySG6j7ayxU4L2kqqjANi2+DIaKIiynXzs/Oo7awnEM+R0G7H/ l4qXY9DtE9NCh617RPED99pHnoLHc0aoeoipdKKZui6ePchKhU6vk5muFpMpaECpuOv6 kaL+JKYY2TXRBIY/p4fVTAY1e9lA+E5zZy2TxppalmwlKh7GTiDh9mYmTx7pEdf/aULF /m+A== ARC-Message-Signature: i=2; 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=euua8TbFvT7bIKUoXXmmlR4cAfJPgJdRjAqKppqIecE=; fh=hLv/k0qCkuzDKgmJLEetmv7nQJwzGUHWtM5AmoR2WxM=; b=FbLSWddBnp1KvUsOm4TyZAbeMgTqglKQXocAubDEuKYcAITUe9yO7L5UfXoeYcvety LCbbpJp2JCrdyTQPFeuTpGcvLdvfgv9MKJum/SdSwAA7vpYWWYRo8dKFEtqzzys/GxcV cgITd6R3rM10NwRTi/XvgA1X1F7OJS8fhDrJHcyK6xrpKLeCuwcue1EtiMY3mL7gWUF3 JAbf7Rx+7vAINW4SWGgF2cRQSFeZjoGfDGO7BqJazB3zi1bos7yAqG5odHM/xsZPLP6z i35lFfH4eQiLBeTOTc70ywF2HDn2RufxxNTVMnz0Oj/R1NmgDSZb66ePXzV4FjvsjZBk TJZw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CX0kyKBr; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-28350-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28350-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o3-20020aa7d3c3000000b00559c53f2b9esi386923edr.67.2024.01.16.14.43.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 14:43:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28350-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CX0kyKBr; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-28350-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28350-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id EA6E31F29B51 for ; Tue, 16 Jan 2024 22:43:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F4106249F1; Tue, 16 Jan 2024 22:27:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CX0kyKBr" Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95C422030B for ; Tue, 16 Jan 2024 22:27:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705444062; cv=none; b=aUDYNXWFW3yMm0dtpcCY4e1UCV/HO5eABAuZpLEZ2DV/phA3Sl4SAA+HC4jgqMFdaI0KzDfQDJDSCO1whs8skSLAmfVs46wNNNhxmd1jmuDLFXnmbfVZBcu0iYqY6TTIvgMU2IjVluAVeoTh86K/pDOz21M2UwZtc2lHgs1ex3Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705444062; c=relaxed/simple; bh=zI0jbX+WO4M4NfPXietR8OsFyCiuEocjZhcffxu17a0=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received:Date: From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=ru7V6GdpKOOWUhQg9IAt2S3Lvnp4IfmpUGwxCjS5cyOB7VwGIKXLlxtFQGX9Eyho5mQ83bWnndgAkWMxx7Poenb2UDL8Yi2vX5uYNkm2qT80hAyuuf8P8E2c09KadYWQ+pPljLkk++rgwrpHL+L4MP3SBrsAtLTul8BpX0jzai0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CX0kyKBr; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-3376ead25e1so8194377f8f.3 for ; Tue, 16 Jan 2024 14:27:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705444059; x=1706048859; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=euua8TbFvT7bIKUoXXmmlR4cAfJPgJdRjAqKppqIecE=; b=CX0kyKBrhQLQHd5Z0GsSjSJGfOHZFbjuQGmrSEs4P1GukYr14Xz7JwRFAUBPuui26I A1ciPzWPUqpw9wowFWNjFNcuxXXmrFMLCRs3ERvWbbF8Htdh9Dm7Z0277KfP23P5Hli0 Zcj9PDNS0jV5fXK80XaCaMpubRQ14YSU5QNEKvGcAr+vmoQmWopNc97tqrW74aZJmPmr r8RBvPFcnZ0ju2pqCCofaBX7ReAuoIU8Rvra0MRw1pKN+Lj18SJnfoDO4PVWFoATS1qT taUoQ2nXFmOhEqjBwoEEB1EW9EIUEAiTFXsUZp/czp2Tobm6GpL066+Qh/ppGo9hUJtq SaZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705444059; x=1706048859; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=euua8TbFvT7bIKUoXXmmlR4cAfJPgJdRjAqKppqIecE=; b=tEzqqQbo4A7qHOOmftYhRnTGCRQTwDWc/0c6k7k4WqkTB7Ppuy5qziGunk6vlsKTxp tDxVIt8mE4LcnW8MSyOmTH5MoaWcj43d9xOcO6idHkjqdQ3uz/HLrXjZkTYaAYw0wrBF RGBfk1Fu5a3fxgF884Wy7XAEtKOqpdh0lVikfsioXu676QAH8F/X2uKsn/hOCNK+U3d7 fEyRWmcPB2pfG0wZaf2O2trWIRfFdzpCcMeJYxiEb8qi63hcU8+HOLOzA7h/petE1+cH 7+ma4ShRXEYkYrOH9n/Oxcx+ywkKw7weMIYAX/xh2PgwY7e2mdd/iqFr5wmYN2cHW/i2 FmUQ== X-Gm-Message-State: AOJu0YzTbE2XP6xXssyJ5yyVFQobhNpMFmXYjwwZpvWnMAruGy/+CYhD 17ncIhH7UFzZz3AjO/3bdbU= X-Received: by 2002:adf:e94a:0:b0:336:6837:efd0 with SMTP id m10-20020adfe94a000000b003366837efd0mr4073622wrn.142.1705444058565; Tue, 16 Jan 2024 14:27:38 -0800 (PST) Received: from localhost (host86-162-136-255.range86-162.btcentralplus.com. [86.162.136.255]) by smtp.gmail.com with ESMTPSA id i2-20020adff302000000b0033788e357e1sm145538wro.108.2024.01.16.14.27.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 14:27:37 -0800 (PST) Date: Tue, 16 Jan 2024 22:25:23 +0000 From: Lorenzo Stoakes To: "Uladzislau Rezki (Sony)" Cc: linux-mm@kvack.org, Andrew Morton , LKML , Baoquan He , 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: <2fcf0acd-f451-4e8d-a769-81e1cee16ade@lucifer.local> 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> On Thu, Jan 11, 2024 at 08:23:29PM +0100, 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". Ugh dear Lord. Insert grumble about maintenance costs surrounding hobbyist architectures. I agree with Christoph the correct fix is within m68 (and any others with inconsistent typing). But for now we do need to work around this. > > 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); > -- > 2.39.2 > We definitely need to get this sorted for the bots, though moving forward we should patch this problem correctly in the right arch. However for the purposes of the fix feel free to add: Reviewed-by: Lorenzo Stoakes