From patchwork Thu Jul 25 01:41:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13741497 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 35FD0C3DA61 for ; Thu, 25 Jul 2024 01:42:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BEDDD6B0085; Wed, 24 Jul 2024 21:42:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B27A96B0088; Wed, 24 Jul 2024 21:42:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 979526B0089; Wed, 24 Jul 2024 21:42:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 7BAAF6B0085 for ; Wed, 24 Jul 2024 21:42:07 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 1D774C0D54 for ; Thu, 25 Jul 2024 01:42:07 +0000 (UTC) X-FDA: 82376574294.15.A435DC4 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by imf11.hostedemail.com (Postfix) with ESMTP id 3737A4000E for ; Thu, 25 Jul 2024 01:42:04 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jquuiBq+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf11.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.53 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1721871671; 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=ibcSoVIKXFytqZ6oO4u04Ah+TfQGl6xtDOvpYetFHunHS7AoCbT6S2jhQ8ZHuvQjwnk/AB xey39xtRrZwNEbGciDe6DU3JW4Y3s4x9avhfm4U8HFbfQjyb1A0XF2eGDyM4+yuzuQcpwt Vr4Y43yMWQXex735HGIJ55WkM2BTSmo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1721871671; a=rsa-sha256; cv=none; b=yjWNaZnYGjosyoVB+DrBATzVFpUDMJoylYTx46Un4BFdH0NlZFMBM9qxZKgMP86X3prkAk cV5ItPFL9bV/BOVpo+KIR7mU+hAxR0GWQzbO2vO4/fOlqRV08ibM6InZkjCkR2mvvANFw9 zjwoujyRg/q+2q+9LcbSM8bbkfRmtj8= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jquuiBq+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf11.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.53 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5a10835487fso536318a12.1 for ; Wed, 24 Jul 2024 18:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721871724; x=1722476524; 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=jquuiBq+smLthZpM48/v+hi+2JnE9iLJ2t8Ty6KRs/Rh/ujP2uB7pMFl3OvkYk1jOP F/FkpxGQMJGguNwS7LtOtEDfe7IsXJQAqzXp5iuy7VDyUuLMyhEJbGJl2mWzUkv9rD8W U02PDYFmSt3zZJBGQZftU4FlwDTdNdSj0+61LWLo+cyxIC+muL7VE6taY046u1d6vdtw 6pULHgnwOZzIdWBtogGWSwsAU1s3JTZ9TgjRGXFqLsRK5fd6hrTaNimmHNW/yUfjWxW/ 4eJh2+eeM6haDrasJKL0Hnw5p2NlMW6mP7ru5qHFIgvjM5I/8rHP9p+pWb1+ffSEe5ab HEmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721871724; x=1722476524; 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=cWaMPdFv8gdkD5g02Xaig4JIebJwDL9l+zdHvN0DJujciUbzgW5CsSidtiTzBpAGgS LP2gss8cXFlEhvLzkPVgNGjj9YVPRpnLLwV7eSHxvUXivMuqwRde36kNsjrZw0LPb+zz ypTWYxt3NbPdf/EM4Jok9Gqu7jsgy38HzdgPcBw9/pcoHwkorANyzvGAgm70ao9byMOG NZKwTADheA8cWHljji9QbQCzkTCPw3UcUbT0CUF1So12rDLz7tx+whl//Xc+MzTMTxL9 dAJdVIxJBmHg5SvYF8UE7RYkXQimBSCBWFMRMJa6AeiH79j/XEnFmUOXirsGwLehw3p5 SbNA== X-Forwarded-Encrypted: i=1; AJvYcCVPiR1FYtewTDERlNVbqY75jBQTDPHhLgSHVSK9zb2QldHyMjO4pk99MPFLncBFLzuFxANlj6lVUriFZmVoKsL1VNI= X-Gm-Message-State: AOJu0YxhBj3/4a+v8BWa2qnbw6jpDtB7g8zAyb6/TYOdIOvlIsewbGAw W4YrzXl6cqQAkp1n2t1iythwGWC+6Etruni8mi7F97QJe0a4FP7M X-Google-Smtp-Source: AGHT+IFk3Ms/SyOdiC39YFmwoxbzYL/KBF5t+PsVfe5ruS/QQcledGnBNNjWB+rCtaq7rwicVZt4Pw== X-Received: by 2002:a17:906:c148:b0:a77:eb34:3b49 with SMTP id a640c23a62f3a-a7ac4f40e95mr83707666b.37.1721871723509; Wed, 24 Jul 2024 18:42:03 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acadb9a2asm17354366b.218.2024.07.24.18.42.02 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jul 2024 18:42:02 -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 2/5] memblock test: add the definition of __setup() Date: Thu, 25 Jul 2024 01:41:54 +0000 Message-Id: <20240725014157.17707-2-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240725014157.17707-1-richard.weiyang@gmail.com> References: <20240725014157.17707-1-richard.weiyang@gmail.com> X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 3737A4000E X-Stat-Signature: wocqmu9c79xcq6ht3jpp5h7qdas5czg5 X-Rspam-User: X-HE-Tag: 1721871724-494836 X-HE-Meta: U2FsdGVkX1+v7FOSBLUu4FXtBHY3KY1zh8Ssn1g/4da9I9TGcH2G0u+vaXfkwIJYJ/jpaYQyt/n2WbD8eYkYo+rAith2QfEf7XBncPt6tpugHJ3PzCy4JfmNeOTabKBmp/63w8DSbvQNf1XFDKuVLdw/qFetjGyZLqlETC4xzvnhrmIYlOq5uYcaHaMyWmcXWGxVrtDMuFb7AwH07+q/MwfZCdFxMRipd1bQoNcK8C+gxMHTbj1IQUcVfwyIJZfBvk5Uzg4Uct15ycK+pkPxyq/2AMM1xRhbLECsjVxPGGufbw8r/hXKc0ogVcaUeWepG9BdgCYLPjcYWVajTQwIzY1epiXvUyONaaRdF9v1KBPq2xAPs8IfPdSPA4E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ilter, spamicity=0.000000, 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)