From nobody Mon Feb 9 13:36:46 2026 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 9FE4885260 for ; Tue, 2 Apr 2024 13:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712064442; cv=none; b=n56cDAYLBKKnnrMrQh391lpncFV+wZXRTNjrlweOpkYJWvnBbdwPdr+RZ5pNydPBYVWMjZqFWdy56MTxY93WwmOr6S0iKBx3IpuYai9ppNz9DCUqKogtPWKc/hxiQjk87P2AMCskSucQny6+AVgCeDcLbpGWI9URDGS/5L5rWVg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712064442; c=relaxed/simple; bh=Cfslaf8i7E8aCEMveG0FfqBpUIgV5rW5DmCwP919Sqk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=EZ4b1XNh6o5cE3A2EIc8fzI0Sr94ccEM3VXUHP9hkCWCwgC6W+qMhKP7XH36EALGArfQfh/X2UdOyyauWIA7V1wz1C/gkNYoCoDlBepNxcnoNtgnqMvKZuaTydtDGbgM8siT8bmSrhpaYGFDzGw88oJOfBLwj6CVoAB9plGXjIw= 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=WTwXfqBa; arc=none smtp.client-ip=209.85.208.48 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WTwXfqBa" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-56df41365c8so580080a12.2 for ; Tue, 02 Apr 2024 06:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712064439; x=1712669239; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=/zlJk86kk+e6v/0Hhm5prLyYwej1Vl0sY7sp0RzGlSU=; b=WTwXfqBaCLZmTnVxnpm1CuF7/JhLBgZFi+gZtEbsIJlIOQh8fMnV/OLr4S0rgUEHxS VbkLv61O6/KqaZsIsFDE0YRmgyxAkjMhB2FTerMR2MNTly4Cpdd2iSmWsF5F0X4Pn7gC yTMRce+ckut6L2APuhkVwxFy+RIhCFZd9pDSQlDYeyUwmN86yAPMjtGl52OodOjE8mqj o/NpKOhubkS++HpLl5mxk09RR3G529gn9pvemx3sNaT1ghoQqjvnowT4TIj5SY7G1Ie0 6liJ3dSWuQXimuuZOZxG7iARv9WLlqzq6B5EIhrrwNGhUxsvhT3inOXQHWR1qzad87ss RIww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712064439; x=1712669239; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/zlJk86kk+e6v/0Hhm5prLyYwej1Vl0sY7sp0RzGlSU=; b=gFI6nTjO1uX9Xnn0YAD9qb5YjaKZGuAxXWyI0cHBiFEKMxpwv0Z0SdRiJyneLCmowZ N9RKnObL4p7Hw/BpcxpiZVum3IX1m1BogZ/qj5x0qzJmF0WlOpeKndADFE6jU5mOFQN5 f8oWrkkOcBLsPV9uMEShV85tlVCkirVuGoY5WFLt0cEX6DVPBj+mvZaVJ7O1KHxh9xUG bOm9zqTQe03KENviptaTbcMkpzACEGKXKVB5WHbCGi5xuFNWGUa1eKN4Qcf34luGJjZK C4RNrdQyjAEfJqX8nA33sZJBVGKXMJzbmEMrI1qcYMxu3WpCd6H4sl38YpFF02z6+AoZ gTWA== X-Gm-Message-State: AOJu0YxI62UBQm4rfF84txhdWq82B0PkOebAWdmRxh4MQFfvseFwDCpI CFwqT2CPrz5XeTsMh+yt6R3C2A7KG3SztfSpxZKQRx2P/VdzBKvu X-Google-Smtp-Source: AGHT+IGVGxd08nxJspeKCBa/sUfV4wRq6nZEH6TtddNfET39FJsuKrlK0+PJ5UXPJTlZxDo0ZOFcYA== X-Received: by 2002:a05:6402:348a:b0:568:9d96:b2d1 with SMTP id v10-20020a056402348a00b005689d96b2d1mr9264446edc.32.1712064438815; Tue, 02 Apr 2024 06:27:18 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id y11-20020aa7c24b000000b0056bdec673c3sm6942782edo.38.2024.04.02.06.27.17 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2024 06:27:17 -0700 (PDT) From: Wei Yang To: akpm@linux-foundation.org, rppt@kernel.org, rongtao@cestc.cn Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Wei Yang , Yajun Deng Subject: [PATCH 1/3] memblock tests: fix undefined reference to `early_pfn_to_nid' Date: Tue, 2 Apr 2024 13:26:59 +0000 Message-Id: <20240402132701.29744-2-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240402132701.29744-1-richard.weiyang@gmail.com> References: <20240402132701.29744-1-richard.weiyang@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" commit 6a9531c3a880 ("memblock: fix crash when reserved memory is not added to memory") introduce the usage of early_pfn_to_nid, which is not defined in memblock tests. The original definition of early_pfn_to_nid is defined in mm.h, so let add this in the corresponding mm.h. Signed-off-by: Wei Yang CC: Yajun Deng CC: Mike Rapoport --- tools/include/linux/mm.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/include/linux/mm.h b/tools/include/linux/mm.h index f3c82ab5b14c..7d73da098047 100644 --- a/tools/include/linux/mm.h +++ b/tools/include/linux/mm.h @@ -37,4 +37,9 @@ static inline void totalram_pages_add(long count) { } =20 +static inline int early_pfn_to_nid(unsigned long pfn) +{ + return 0; +} + #endif --=20 2.34.1 From nobody Mon Feb 9 13:36:46 2026 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 271C585287 for ; Tue, 2 Apr 2024 13:27:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712064443; cv=none; b=Har6gf8ALHKuBhehdJofqwfQeoj6CmolmSA42iHtbZmxMJzoT2IzQw8rg8R+9xpFUhoVijbZea4Aa/26p2QfV/ExVVOrkGFXkTwRuinlXVHetJjL2nCu6EQkO88+0AyQ335Kws67/2KYZd0M9YCsznnKnW6ChM9fgYKvtJ2duQI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712064443; c=relaxed/simple; bh=6dR3J0upXNj+1tYs1ts63PbosqZuz2MTKGiOBpIl+K4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=PG8ljtn+Kopzb8S74eOC3NacmDgSKrc2sMPCo4Ff/wWv7UiQmgitd6NbYPavspYy8tTltYJLY4upSMm6+KclYFcQbVF5tprJtDnYHV97Hg0ZMWa4khhAfysrA5I/GBZ1qB2gXitwEK4AzHUQL8wHym990Ws9fHpYKbrPYETNRJ0= 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=WCUsq5we; arc=none smtp.client-ip=209.85.218.41 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WCUsq5we" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a4702457ccbso643648866b.3 for ; Tue, 02 Apr 2024 06:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712064440; x=1712669240; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=6plq+jc/VvBXS+aNpltaWsMql6tEJfjJ+CETBOykAR0=; b=WCUsq5we3oU1fuxwA7iPLrwHQYjEqLzCa5TskvzfQ/oENr8+Es1TCi8l0Gtxf/Jt4Q ICg7rNH9jbuE9jlMDQT4wHsweE//m0lacd9xj+ucBxSLC8Vz0wEElcdmncDJzSWHklNt 9ofc4VnlVsL4r1C2by6dg2qy9NP5UNkWUc4wmbe1PHT9NxzjhaTTLXwQcbOZoM33D6LF aR5xNfJ+boh4qhmKwKNk6/NIkoB07RHt/OaAgvvXwQJ5xESMQdtaUkn92TwgSkdl/bWU Ui2iJY9o/yGvv+w0cerOztoNZ5lvcpOgu5Lfz7FYv3xaFZfBTvsQHlyhri9Et6nCYtF9 wEsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712064440; x=1712669240; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6plq+jc/VvBXS+aNpltaWsMql6tEJfjJ+CETBOykAR0=; b=XNZXNbYOtsjleFPUxKAu8WOzKHx06GQczScQsadQi2xJ/H/EtNImkpDCUaG1qLUNe6 3uHbcqaRNFZKbVGkOAK9GguaHPXlm34kKykEljkobYwUINyuoJULqSSDXbdfnBCxeVh1 yYuIMzBR4S+6YLnZa40oOaExY1jRLdhPccnvXLF0vnyyEPUMUDtT4lHdzV6+hVbWXxAT Q0mVBlzomN950x5RCfBo74qwV5+hT95qndfsXYUYfJArpMXJMAATCRXqHvm7EIbpPPRH kdHBW0OaxOS1CMkWi4Pp/1UFBrHo1GOVGsl23b/qKH30gsFnhWM5FZFF7341fAKEqRM6 pS2A== X-Gm-Message-State: AOJu0YxcphQPsaoXPgEjaRyyAWC0kBXoG1fA2zh1CvSvDVIXYGUB4vmr MV57MkSbu4GZYI0kHk6yU3vKyIsuFjLfEtk4E+UhKs89pe70Xna2 X-Google-Smtp-Source: AGHT+IFh6Iw2TrL0kjEkoE4UmamEPUEI6XGozO1yFO9A91flOMzrYblCqI4/31CIdw8aKkhQg2lR8g== X-Received: by 2002:a17:906:b1c5:b0:a46:cee9:e412 with SMTP id bv5-20020a170906b1c500b00a46cee9e412mr7005460ejb.15.1712064440404; Tue, 02 Apr 2024 06:27:20 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id q27-20020a17090622db00b00a46a9425fe5sm6499992eja.212.2024.04.02.06.27.19 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2024 06:27:19 -0700 (PDT) From: Wei Yang To: akpm@linux-foundation.org, rppt@kernel.org, rongtao@cestc.cn Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Wei Yang , Song Shuai Subject: [PATCH 2/3] memblock tests: fix undefined reference to `panic' Date: Tue, 2 Apr 2024 13:27:00 +0000 Message-Id: <20240402132701.29744-3-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240402132701.29744-1-richard.weiyang@gmail.com> References: <20240402132701.29744-1-richard.weiyang@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" commit e96c6b8f212a ("memblock: report failures when memblock_can_resize is not set") introduced the usage of panic, which is not defined in memblock test. Let's define it directly in panic.h to fix it. Signed-off-by: Wei Yang CC: Song Shuai CC: Mike Rapoport --- tools/include/linux/kernel.h | 1 + tools/include/linux/panic.h | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 tools/include/linux/panic.h diff --git a/tools/include/linux/kernel.h b/tools/include/linux/kernel.h index 4b0673bf52c2..07cfad817d53 100644 --- a/tools/include/linux/kernel.h +++ b/tools/include/linux/kernel.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include =20 diff --git a/tools/include/linux/panic.h b/tools/include/linux/panic.h new file mode 100644 index 000000000000..9c8f17a41ce8 --- /dev/null +++ b/tools/include/linux/panic.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _TOOLS_LINUX_PANIC_H +#define _TOOLS_LINUX_PANIC_H + +#include +#include +#include + +static inline void panic(const char *fmt, ...) +{ + va_list argp; + + va_start(argp, fmt); + vfprintf(stderr, fmt, argp); + va_end(argp); + exit(-1); +} + +#endif --=20 2.34.1 From nobody Mon Feb 9 13:36:46 2026 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 43A5583CDF for ; Tue, 2 Apr 2024 13:27:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712064444; cv=none; b=jJDojviGcpp4D8NpAkUItGgo3jmkAhd8TBUvwgAztcuA8fz8eyGwHRqIAfaDyvNIYxd4fYJoISAztF8Dg/c+5zOoWrFUkzFBspx2vFfvERFC0LzsMkz/a8prClAulhKBepHmyui6bjT48CGt5f8g/58WMKlx0qOmhsbehM3/VSI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712064444; c=relaxed/simple; bh=Gpl6+RFGBVOtKmVuE3aToXQdg4cMocS4faBp8f2P3lE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=q6RE5QuSEvUI8bsF2s3YoC3CGCuHv4S14NCSe7ogXPA8D+FI2R/nFM3HyhweHjP/36tG4LXFuPwf3KKpKQNpQ4ANFNd0HKwqeywTCtUFHqkNDcEBtet3epac6MTWXCrSVp0/mgG30zWGdPH3iX5vRXDpqmhQlzOljSNQUtd4y9A= 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=C2u4KHOe; arc=none smtp.client-ip=209.85.218.48 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="C2u4KHOe" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a46ea03c2a5so939079966b.1 for ; Tue, 02 Apr 2024 06:27:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712064442; x=1712669242; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=B6ALcUhn3bkfonAFTQyhGpgkfckA9UhL/OB/3gO2UMI=; b=C2u4KHOew0lGMerx6DCG4RZVdXYleYjz6F7Ayspa7IH1oRhx4ht3DCB1Pha0xARfR5 21Ao3mbo04NXOWQ8l6TV+AI5Oc5JFPotkFQmihMnoIWV/0htaWOCIx4PRe5N+3banCDQ zqiBf6BKoencmdAXD2g+mF1KB/xgbhwP8eNA2GDcaAqnmPAR2D3DtDMbEaANNvAS+9HC vibph959qf4MK1U8Uw52/7XEEelIefWXftoflwZ+/KExWH21yUK/nuEi5RSLpLhpDLzV IXl1vrU57JJglxypjcjTdJHZJU1v90aO83k5jh28py+GgSrs96TDoqFwrq01MeE7CU61 htpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712064442; x=1712669242; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=B6ALcUhn3bkfonAFTQyhGpgkfckA9UhL/OB/3gO2UMI=; b=fxPqF7YfT1l68sH1jRXOyewxn/6hBwf3AD94QMS7mVqQDw5rpAaT2cQdNSqrCzPEgB BECl4WZvwCi1Sq+IBX7EbyJ7Bjd5Ab4RPRr+2TQ7/CCMO7Qzg0/37yLaDIwEDVRjuHWT lajqQODozuuPXIvAB/1zWRD+4RZmM6TXEzsGA46qjRmm61tKVFcVv9woVdsCAEph6lE1 HPFndz9S92eCI7DE/TvRM0byOrw3inra7/vN6hyXCT1Rs5vOOoIXJ6Igz5qBYL5UO11a RiN7m1BFmUVcol06JPifWcW/yXVjA3RYQ7Y8Sbez9NWAm61Pth88RvWrqMCzT2xYA0ON RFkw== X-Gm-Message-State: AOJu0Yy6yby6aoLqrMfA/h5W+QWWsBl4gfyK4xVaS/PGn3gVCAbupm90 o4H/67FbJCY3U5myVy0EGqxjJOKq8aXoBWG2b1pWm2TsBnAiRkxc X-Google-Smtp-Source: AGHT+IFTabiMBzV2DetNy6rdQODxSmUfHTAHQgfA3KyyBQOMZScRczY67MoRnE4oSPyLwrU+ldb6Rw== X-Received: by 2002:a17:906:2892:b0:a4e:7d0e:f62d with SMTP id o18-20020a170906289200b00a4e7d0ef62dmr3372904ejd.13.1712064441572; Tue, 02 Apr 2024 06:27:21 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id lw7-20020a170906bcc700b00a4df01f4232sm6534084ejb.189.2024.04.02.06.27.20 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2024 06:27:21 -0700 (PDT) From: Wei Yang To: akpm@linux-foundation.org, rppt@kernel.org, rongtao@cestc.cn Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Wei Yang , Suren Baghdasaryan , Michal Hocko Subject: [PATCH 3/3] memblock tests: fix undefined reference to `BIT' Date: Tue, 2 Apr 2024 13:27:01 +0000 Message-Id: <20240402132701.29744-4-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240402132701.29744-1-richard.weiyang@gmail.com> References: <20240402132701.29744-1-richard.weiyang@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" commit 772dd0342727 ("mm: enumerate all gfp flags") define gfp flags with the help of BIT, while gfp_types.h doesn't include header file for the definition. This through an error on building memblock tests. Let's include linux/bits.h to fix it. Signed-off-by: Wei Yang CC: Suren Baghdasaryan CC: Michal Hocko --- include/linux/gfp_types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/gfp_types.h b/include/linux/gfp_types.h index 868c8fb1bbc1..13becafe41df 100644 --- a/include/linux/gfp_types.h +++ b/include/linux/gfp_types.h @@ -2,6 +2,8 @@ #ifndef __LINUX_GFP_TYPES_H #define __LINUX_GFP_TYPES_H =20 +#include + /* The typedef is in types.h but we want the documentation here */ #if 0 /** --=20 2.34.1