From patchwork Mon Jul 29 01:47:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13744139 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 1CEB9C3DA64 for ; Mon, 29 Jul 2024 01:48:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 247EC6B0088; Sun, 28 Jul 2024 21:48:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1F80B6B0089; Sun, 28 Jul 2024 21:48:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0C0096B008A; Sun, 28 Jul 2024 21:48:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id E3F956B0088 for ; Sun, 28 Jul 2024 21:48:01 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 9A7408019B for ; Mon, 29 Jul 2024 01:48:01 +0000 (UTC) X-FDA: 82391104362.22.21EC1BA Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by imf04.hostedemail.com (Postfix) with ESMTP id C5AB940005 for ; Mon, 29 Jul 2024 01:47:59 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=YWIroAhj; spf=pass (imf04.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.167.49 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=1722217676; 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=G2Cb+EeA1g9/GTwfbxEW5h9Qo7fjpvIAd1ihyQCS4VWmAdmw/Iy8mEQfjOYOlI3L6ISDFO eTnnaKWTiNj7JIudH1g+1ock3VhFwxkg22yBjOLenCkASG5JVUSdi00UcbeqIJQvMJKeHC L4SdFo5m/BuFJsOmxkKrpYCNwtyVkss= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=YWIroAhj; spf=pass (imf04.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.167.49 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=1722217676; a=rsa-sha256; cv=none; b=IbOxmm4GQuVzDaBFBYJe41DDs1yLhQHXV8XIbaQd75MZYjJGAVIz4q3jVQFwLosAF2cAqL WrVZOj8eDmFBsm2gQSZnfbjBMJe6trLizcQQ5y5zrCHCGfmzxUZcX4Sna2d4/OxKtTNggA AtPcqG14klwjB+vsb2ypnjxdtJfnui0= Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-52efa16aad9so4300620e87.0 for ; Sun, 28 Jul 2024 18:47:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722217678; x=1722822478; 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=YWIroAhjKQ6v2PIimh3V6N4sn0XMa3CVQXlSLVCyDCsZ49XsD/ymOlIJBT40tzXPC7 FCKhgNm588eF65a3iEpajQ1OnzsfOe8ZmSWXqtFoEV1+wDkeneE7t5taThivRv19O/vU 357myqmbgres1f2BxbOG4gETtgYdjiCjkAcjOW+6o35RukZteswgzRC7PSP0YZmT5cp4 1SGhYEs8NhHW8x7hTWp46of0XhnVI6zVyR5qJrz8j6piLrklne02dNz+u9FraQk9x/tE 4L3azZfvNpaFUE0pkjlwh5rmIQEYgcE0iPeRwVFu77lqoOQZ4cx+qoW+NEEByne6gfbE uSOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722217678; x=1722822478; 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=q9brlCMHzlhJIL5RXSztkDOshsZch9NthkQWQt/85chVBPxMg6kvnc8XH/7iEBoLEw qbM2I+d2HSxhjj+aQnT24xemFgpgZKYIpnEZiicv/Am+fsLKwWoFN6rP+O3L+Yn4vd6J CXK9EOrI9DxiChM2Zrt5Ex4eJYDG2FmZ/t3O2AB8bR8UvQuwuvSqKWEK0Dm+gydsaFIJ EZ6EGciHQ3jQMuVfI97w3jbWTZxWk6Eg599b9fqxv3XWvCauKXZaC/jZVVgsg8p3OO5N Ao7TqqSd8/N78Y6JTm37T7aATZZ9Nu0VdENNOI616TI+3vws7T0ZJXg01BQ6UhSq4kSN TXAw== X-Forwarded-Encrypted: i=1; AJvYcCVRbiA8WR4zALr42XV4BNOJ6z6LHnyw4MjhV+eeCO7uhsYbaRR1b2vbsWQxGXCW3XlTWobRT4jj/zzmWUORSTbcmp4= X-Gm-Message-State: AOJu0Yz/UuvXDEB9c7XDQqJOO5z2DYc+UZaz6lM4XghQb7lRc8fZ7MZ1 iisWOrrQ7aZEoZRTZ6p9cd7is3c9nTMb6amwThF1f80KFfLFMtkb X-Google-Smtp-Source: AGHT+IEVzBqqk3h+Q+ML88j7YQtqbRjU/2MEWf7kaMFlyHzEl7/UyentabOeAYROp50qc9GhPlsyIg== X-Received: by 2002:a05:6512:3504:b0:52c:de00:9c04 with SMTP id 2adb3069b0e04-5309b2c2ac3mr4293542e87.48.1722217677979; Sun, 28 Jul 2024 18:47:57 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acac63795sm448355566b.95.2024.07.28.18.47.57 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 Jul 2024 18:47:57 -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 v2 2/5] memblock test: add the definition of __setup() Date: Mon, 29 Jul 2024 01:47:22 +0000 Message-Id: <20240729014725.29839-2-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240729014725.29839-1-richard.weiyang@gmail.com> References: <20240729014725.29839-1-richard.weiyang@gmail.com> X-Rspam-User: X-Stat-Signature: j6ixqxynihhu6kwk3rs1wir8ymg3t9ow X-Rspamd-Queue-Id: C5AB940005 X-Rspamd-Server: rspam11 X-HE-Tag: 1722217679-702520 X-HE-Meta: U2FsdGVkX18PL2gT/pGFRtQubQ4KDURIDHeUD+TEaZ9HkxSpw9LzQ4wL53DCq4I4X9+8MezxPNHpGVyXW6whbb9PnbWfBRLtxOC7XmYHhseZoXlS9BIiaypEwICxeJVkj4LpyUMRBvv9HW2e+JQ8sNqc/fFkkfXbQHINROJUph8TTuqOgz89vDSqBijlhWLW/VxGe6apaVfccRBtXFiCnwm1a/ISKx1UW6z6ZpLzaJ+F9l8Vij3Kdpna0pf5xmXYQ/4KI0FH6uugTboVkBzmTr+gR9NDpzGgAif0vdJe9UzX75WrTghsENdAAv+X1Bxnhwc5C239TXklw+o6lcZJg8La6u7VuoCHrL7fvWjqqIhhcrB1CufVPMdYiyaj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osity: Ham, tests=bogofilter, spamicity=0.000118, 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)