From patchwork Fri Aug 2 01:09:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13750995 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BE70C3DA64 for ; Fri, 2 Aug 2024 01:09:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 45D996B0083; Thu, 1 Aug 2024 21:09:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 40DC56B0085; Thu, 1 Aug 2024 21:09:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2D6CC6B0088; Thu, 1 Aug 2024 21:09:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 0F2C46B0083 for ; Thu, 1 Aug 2024 21:09:39 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 722D316102C for ; Fri, 2 Aug 2024 01:09:38 +0000 (UTC) X-FDA: 82405522836.01.33814DF Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) by imf23.hostedemail.com (Postfix) with ESMTP id B007214000C for ; Fri, 2 Aug 2024 01:09:36 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="JpRo3Ti/"; spf=pass (imf23.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.50 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722560948; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references:dkim-signature; bh=BbCh2qq+GqJnDj1NLZnr9Rls+DkMZwrRCOx9dR1Do1E=; b=IWk+dJyGu+nmiKYaTMAVl27pt4RiG7w7931YhRX4+BtdYhA+WLJ7q9ORLBtlyyrMSG5mqp M05gnUsN728lnjlrpWFHIaCOV5l/UqDZAR8GaXeBPJEMAJwkGJMYx8xXzfanVN3kbcjQvR 5wFOX/7GiNCHA6rnsh/5Stg9cZ9EIvo= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="JpRo3Ti/"; spf=pass (imf23.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.50 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722560948; a=rsa-sha256; cv=none; b=H42JSTdCTHz0FRbixcdg7sByWeceWCq2S+qEjkZE1NeJn0H7EuBNqCOMj1hBn+7i54MhtS erNFeJOYaAyCsISe8mNk1AqgmFTTx5l0fk7YQp0JtKFBFFxdQ2Suunqz0DMrGx54gPBMW2 w/FWaE7LYJrukF9y7MX9BvFWqP6YSkk= Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5af51684d52so8676116a12.1 for ; Thu, 01 Aug 2024 18:09:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722560975; x=1723165775; darn=kvack.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=BbCh2qq+GqJnDj1NLZnr9Rls+DkMZwrRCOx9dR1Do1E=; b=JpRo3Ti/EVxLIT1vcUpz8BZk0Micva/fj59FGKLJde/SjCwQhEpr9eqxeGKkrPAi44 JswRyYvZPjcrI3r09Lq59g41NTRDh/9xB3MECjqElFmGJ0eZ/donFphJ900VzPZLNj1r k4ei9Lx1QRl27XCC8x143tgbxFvyHqk2NvdNGB0iAtSfArRzpwmVsmiWI+NuhfNVyE98 QmoOGcVl+iRFcawcB7I2IjljpX4cC7WauT+Z6p4k2+uISfYIlMF+mBARJzy2xi+KDhH2 N+0VQmD5IPsm39eAXBvw3xDwKhQrpQB1aKhStPxud2c6A46d//WO8DAQa5qxhFIW9jdv HvSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722560975; x=1723165775; 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=BbCh2qq+GqJnDj1NLZnr9Rls+DkMZwrRCOx9dR1Do1E=; b=T9EJkOz8DVcmdA2z0PEm0NlBCqiPpNNZzqiEGuKULC9VXIB/fMvWegjtnD0eViyRF/ fdlfBPNh85IKYdhuGwNbMpdlQ4QSSDTj/RWuU3k8FHcbfKHB0fj1fdwPI/RVscYRh4W8 AaxFXCjythGpaIpHiOQ/k7m9n8Vmvlc8vHhHg6VU8fUz5+vu8t0hiJWD3vwJSQ+qk21E ah7CeeJVy3usaMZVdlBI/+jQcC6lno9e7gnBu9GCQZ9YF9Wf0P3YuxOCcozee4n3Rvo3 qAQBojJL+N/X6RELeKX1aEDdWXuI/vVg+/DbhSh0442bT6a4G2ctV9s9stk+lkrMoe2H CyXw== X-Forwarded-Encrypted: i=1; AJvYcCWJhpnZOvuJ+aHJVMYP6lVD4yB4xGoueSctBPZOnH8LfuSVqB6yCGO77q1jsFCiNxynviCGYDuc3v+nGB+ss4RW9xA= X-Gm-Message-State: AOJu0YzHqbCCNRdCxdjZ8NbnG06Ir/zI8idd9Stgs5XryQrB+Rl0iRUf TZCEeQyGmU7vBcHe65Y5ej6sJtgx7Fdm4580kWAXTuPMWmkG5oB5 X-Google-Smtp-Source: AGHT+IEWJ/rEpduxi5nKxB1TDcKkBxA4cQbX6nPfFw0nWnayCRn9XuSyJ4S4tCylzwzeT02VOCPEvg== X-Received: by 2002:a17:907:3e1c:b0:a7d:26ff:aeb0 with SMTP id a640c23a62f3a-a7dc4fa89dfmr115937866b.30.1722560974799; Thu, 01 Aug 2024 18:09:34 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9c0c185sm37411466b.61.2024.08.01.18.09.34 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Aug 2024 18:09:34 -0700 (PDT) From: Wei Yang To: rppt@kernel.org, richard.weiyang@gmail.com Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH v3 2/5] memblock test: add the definition of __setup() Date: Fri, 2 Aug 2024 01:09:20 +0000 Message-Id: <20240802010923.15577-2-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240802010923.15577-1-richard.weiyang@gmail.com> References: <20240802010923.15577-1-richard.weiyang@gmail.com> X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: B007214000C X-Stat-Signature: 8urpa3pqfosh6rc7tfka6mgzgka8n1hm X-HE-Tag: 1722560976-174555 X-HE-Meta: U2FsdGVkX1+w5nEEc8anHFkcMG/VghPynX+JfPgSZW9QIsjkqjHJtWqX9MBE3BWtw8+44X1hR2u+Z1vu7j6mGM1OH1N7Ka8wxrFIqzLHD4oAKzcyktBFQoJAWQU8TVHIZaZbSD4i7JpIMCgV4Z3USBbByVO52rYwumJMOlbS6I0ethfikmqTl5jKZtxC71BRBStx6PspV+IMUiC40BVjID9oRFfk1xKTkb/9Mxsp5D/AmPEyWv5lYo0NbeVh7iCVohTeKFaHohN+U2BY34gQHP+y1ARAp+uISieatFUJ2wvTVlf6PE4n8CMAeEQTouCtO1ngT77K1XqvXRwwglY3Vpo335ZzaJlf0HVWQMzaL38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/UjlFYo4VZR8= X-Bogosity: Ham, tests=bogofilter, spamicity=0.008513, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Commit 1e4c64b71c9b ("mm/memblock: Add "reserve_mem" to reserved named memory at boot up") introduce usage of __setup(), which is not defined in memblock test. Define it in init.h to fix the build error. Signed-off-by: Wei Yang --- tools/testing/memblock/linux/init.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/memblock/linux/init.h b/tools/testing/memblock/linux/init.h index 828e0ee0bc6c..036616a25427 100644 --- a/tools/testing/memblock/linux/init.h +++ b/tools/testing/memblock/linux/init.h @@ -28,6 +28,9 @@ struct obs_kernel_param { __aligned(__alignof__(struct obs_kernel_param)) = \ { __setup_str_##unique_id, fn, early } +#define __setup(str, fn) \ + __setup_param(str, fn, fn, 0) + #define early_param(str, fn) \ __setup_param(str, fn, fn, 1)