From patchwork Tue Aug 6 01:03:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13754294 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 7776EC52D6F for ; Tue, 6 Aug 2024 01:03:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 09BA36B0082; Mon, 5 Aug 2024 21:03:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EF1C56B0083; Mon, 5 Aug 2024 21:03:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D69916B0085; Mon, 5 Aug 2024 21:03:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id B4A836B0082 for ; Mon, 5 Aug 2024 21:03:36 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 4118EA8892 for ; Tue, 6 Aug 2024 01:03:36 +0000 (UTC) X-FDA: 82420022832.15.B51E770 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) by imf12.hostedemail.com (Postfix) with ESMTP id 5F8A84000A for ; Tue, 6 Aug 2024 01:03:34 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EAL93hDf; spf=pass (imf12.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.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=1722906206; 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=WLxekeF74B6FYcgqHfthVlBvPK8TDcKHskmecqFm82j4N7ULnbQ4z+EuY1Et2mI6Hefit6 En6FCwO1LviWQMYiJ8QNwBwxoF3t4xqjyvaVGDL+M6vYPQYjq1lwBrKkQp0rz01TJhuYd7 A2nh8NWVLgUihm+NDm1sMSfo70P/YPM= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EAL93hDf; spf=pass (imf12.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.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=1722906206; a=rsa-sha256; cv=none; b=rONVN/ay2zGJ+dxbmXkeIHCMaFdDoP/HROTKXUr2ve+9j12z89b7c0KSwDWiQERa6Gx4xN fphaxjkYAt7MnZB4WToyUNN60bQZJ9eT0UF6gq28erkCdJJVJjr2MpXaO6KoQ9tqFyBFXv aXSbb9mrotf/W90Kq3eviFagcnanuWw= Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a7a94478a4eso1025419866b.1 for ; Mon, 05 Aug 2024 18:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722906213; x=1723511013; 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=EAL93hDfpuWLm+nmcIJ01Y36O1IqN1Mpvdv3ZaphGzuVPPQSsRgX2+RahufXl2gq4R h7+bTcQc1KFsm9vBdRlClmT2ao/W4C21PZJEF9Qykd5kxFDKSOagyzmILBRVJps3zSLy VD+qCrCva8JdHgFPyhUsJF0o9uby7AjbJeNpe3K7cE/87bZwtBkuSE+z5UhGuabHHH1Z XTdfI2zc7wUbvuAveAzXUn4F0JWfNyUKwq36NzlCKwfy0wLpufbnXoEUPFf3IbfZwitO aPySaVFoD7vloTpRUNRFUXcymeWJbs3PR5Flzs8VvXRlvr+oSSqBshMTCTUw/TCf7nPN OOXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722906213; x=1723511013; 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=wWARjw2LtHV3VPeh6Ylk6AaQWjQdXeKO7qxMII9cNp74E5h3m0okX1kLv0yA3Um9lO AcPn68U33+cMupmR+lIffSpeSdkIRNcTxoCpcGPhd2j3eAJEKflVQv2X8ua2O24ASqJN TNapgOpAQhTqx9AqDNfbCfNPotJ+1V5sd8tSkj3xgnlLT4G0edzfPnOYiQ8+zZ6LkzVi vPwY7b42SVl/I4f2YdkjWCM9SqDcwZsyNEDtDssbGrGH07aD6YC8P9Z90LjN93CVboht k4czSNRwxdn03ad85gCGhderkRKhh2MrtCI29jvAHDI5mE+yzHT9vQi/fvE9Xa2Xjb94 uBRQ== X-Forwarded-Encrypted: i=1; AJvYcCUQT2oFCLyX5WCgtJw5BHKqolbKleH/Lm2ZQN8Lzw+9v71rG1EiafRGDjmDJqQVH0uHZhykC5/C8tMDOWINLz0E3MY= X-Gm-Message-State: AOJu0YzZQ1ZcMXgROkMLLm4rgY9BZR0TPnP3KKiHJKIFxz9O6vD4/0y4 5x4DPUwobqg/yVFRB4s+5BNdLF8uuJM7xG+bCkliiOJH3ttI2K62 X-Google-Smtp-Source: AGHT+IGuTf/b4YdpgjtwBg1LhcMiQUU+y1pTk83h8KRO15nmAc7hlDjau/mLVdeNvR4tOYDUcVe/ow== X-Received: by 2002:a17:907:25c5:b0:a7a:acae:340b with SMTP id a640c23a62f3a-a7dc628bf8fmr1196681066b.31.1722906212844; Mon, 05 Aug 2024 18:03:32 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9bc3cbesm501271566b.5.2024.08.05.18.03.31 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Aug 2024 18:03:32 -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 v4 2/5] memblock test: add the definition of __setup() Date: Tue, 6 Aug 2024 01:03:16 +0000 Message-Id: <20240806010319.29194-2-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240806010319.29194-1-richard.weiyang@gmail.com> References: <20240806010319.29194-1-richard.weiyang@gmail.com> X-Rspam-User: X-Stat-Signature: 8boqxb4cd3gbkfck6kqw3z1b5ysh8rc9 X-Rspamd-Queue-Id: 5F8A84000A X-Rspamd-Server: rspam11 X-HE-Tag: 1722906214-263551 X-HE-Meta: U2FsdGVkX1/lLiDKojmFRlxsVjYMJQB/I83rqIfXqRaIayMEjweBlXcmnYiVi1rg/3Tci5iGwQKx0FaROlIbEGShy/EE5sNwwSIPQDKSlfWKCm5xFw0VseHAdtCYpiMrwykQ2TzeV9HOZtEgeDutHUYOKohOeNSSpldnTzlhBy8Qa+sANMfx1U0Ofuen/fhyyKRJ3VdiEd3dHuwUYJKI69PFQn7J+qg9e59JScNGMAm/9AYyHhkF+u7TzX15SJnCIpZYUd9EDWk0MNGNN97r6EcSINNWG/UxXTAyw+MjHfr+W2qigWFerl2FUDPwYgjwjyxNmYAkAXwTqF9iUxHZihCJPbAMDWu0AnR+o4w5Nmb66HPQZsG3CHMY5AfTZ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EJDclzvscpwBTyGQ5QaRkTe79VrpVLosdGH3gewqBEDEt9VxmggHiMuK+fXLbBlC4LN/vRFbvDCZpL7qHc X-Bogosity: Ham, tests=bogofilter, 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)