From patchwork Thu Jul 25 01:41:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13741496 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 B1AB3C3DA63 for ; Thu, 25 Jul 2024 01:42:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 18C9E6B0083; Wed, 24 Jul 2024 21:42:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 13D6D6B0085; Wed, 24 Jul 2024 21:42:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0041F6B0088; Wed, 24 Jul 2024 21:42:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id C95546B0083 for ; Wed, 24 Jul 2024 21:42:05 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 65846C0D4A for ; Thu, 25 Jul 2024 01:42:05 +0000 (UTC) X-FDA: 82376574210.27.D117CE9 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) by imf10.hostedemail.com (Postfix) with ESMTP id B08F3C000B for ; Thu, 25 Jul 2024 01:42:03 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=bmPsHqfl; spf=pass (imf10.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.52 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=1721871675; 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:references:dkim-signature; bh=NFpkKmmT3youOgcmlSfL4KcOPVXS0ZnF2VstHXtU494=; b=I9xxn5UYV5pIzu7oH25x9mt3RSghFY8ItbvB7bwxP9q4Wkg4rrEK5Ib+OFsFPc0iJ52MkB PkE9eN4EmOnSd929aaFlwLVNVp/kK8MdP2TeayAeRlw+j7cH2dVePttCbMR2cqQZ13BAR5 y48h8Xa8dsmlhYOjmCLOS83D29URYyY= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1721871675; a=rsa-sha256; cv=none; b=adOD+RzPvwN4xwYnR/BSm51yre/YaKGdfUxE+fhGk6DL45JlJh9I7rx8V2M8MEF9cHJaY2 EvFS29wbGzLCZX8Fs0GWMdN0yXJTj9s650f2PpjVfmmBzG9gLj/wgUKstEkURAc8v9qFdQ ewYtelZ2rzDzc+lLIfMdgK5zhI6imWw= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=bmPsHqfl; spf=pass (imf10.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.52 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-595856e2336so694864a12.1 for ; Wed, 24 Jul 2024 18:42:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721871722; x=1722476522; darn=kvack.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NFpkKmmT3youOgcmlSfL4KcOPVXS0ZnF2VstHXtU494=; b=bmPsHqfluh9/TKtoqO0wIQgzWhLtZ/6MnAiTKEfrwx55RAYMI/jRpsF1FNllsBykMl tVcDOY4mz30Taxq8+vqs8fABFOWivT+qQWerAyueylXeNnmKLlV1/cfQnPnXUhHxArZo +Zkq0TsnLEl5Qa++W/XqcyWiAMzVYhFXLI5AZ0PU1ZuLYvN3lCxqWMDsMbxrjFHeZXCE fRJYH+jdKCNB/o0jeOJ7q+Pc7R4xbjuiKs/+aj+vnvvQnDHs4CXK567GOoaOUvqsAXof g0qsnccHbOw3j+RVJEEU7PRD8KkGT1VLKjHIJSTJ+qOzmeKEabALamacJUZE4HZn3o7f WESQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721871722; x=1722476522; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NFpkKmmT3youOgcmlSfL4KcOPVXS0ZnF2VstHXtU494=; b=SMgChmPU57X32CLWNRZLMnP/nZgfSyutiLXMqAaDZ89YWIdkz0XMUtFTH3PPX8BP0x ery2r7CM9FmHwlcWwZFwRuwpiW/UUQr01gYUTl+bBOroO8pv7j6WWhuaTY1xBSIsPYjt tGkfSedqHQOuwTUS6bWFQm4svJIV8xCY/+yz0fLA70JjDxOptYyNKsl44uumTBg8gnPM PRr3nRxAKYpWMsJlMJVh9RPAMr8xf62JMD+VnakwuPj1Iwkg6mtz+g2+0aujTuXi3k0b dKbaThdwPTSPlIS79pQNDU9AYFnZy4XtoqXdkWwPxhxg6WR24qAGw/Ft9MERLFCwcWbk dfmg== X-Forwarded-Encrypted: i=1; AJvYcCVf/YIaNzeQx2ZKgWjgrz49KVJy+Jp6uojSRVJUWOg/xCAqPDziqt6YnCofkV2YKg21d2nPOs0ELWi1Jmc6u9xXLUg= X-Gm-Message-State: AOJu0YxWbN+gYpiLlF6NMM82ZJ7pxHD1nX6HaCiDgOCmf5St8rpEPEEV 6/iab/aWvHgqCmGiZnwBlIB+yUSlwbr54GWGrpcmuFcujGdOZn/2 X-Google-Smtp-Source: AGHT+IGoI+YQCe7Aw7rC7D+UViXAni2IQOz76J6pHhJWn2CLyBJkJKv38LUss6T7pyAx/2pjSOHYUQ== X-Received: by 2002:a05:6402:2546:b0:57c:614c:56e7 with SMTP id 4fb4d7f45d1cf-5ac148aa3b2mr1227907a12.18.1721871722021; Wed, 24 Jul 2024 18:42:02 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5ac63b59c86sm246231a12.42.2024.07.24.18.42.01 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jul 2024 18:42:01 -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 1/5] memblock test: fix implicit declaration of function 'virt_to_phys' Date: Thu, 25 Jul 2024 01:41:53 +0000 Message-Id: <20240725014157.17707-1-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: B08F3C000B X-Stat-Signature: s9kzodp4u8eh8zcnwmdbg79m1kgjopbe X-HE-Tag: 1721871723-460031 X-HE-Meta: U2FsdGVkX1/dzKkXeVKhERJyrTJToZWxPY4KR5JpLoLf79GhO6y/HPqlVu+O5hGeflJgXb3OL06KxuTqhCZtovUEXtoLNyqn0b9rmYZ2izo9H417ZJZMvvrb4K72T9HEQxRwqp/IEqrZb8f1rGE8FlOaQBbZZtQQl4PSrxlqaIob2fJPMyksL1URazJWHCDt7OFtXQi+xcZNBowPbHX1PHic0QhwxFXZAOU+LoM4xPJrNuVPF0k0rcEriYkbd8RdrZcav/tV+dk4B0wKk+BA5yvn1Sm2kem9SsHFr1MRGB3eMa1sF/qUvxYQcTKzoRo7s2OcNxnhH/rpdgr4vxAqz5OWqTfbdmk4N0dEMa5GM2/jBQvNXo2JneCj7FwBP8mjFVc/WtBnLXOwRKdDUOtnFW4sSjns95zZTnEh6f442dt7wYg3k43iqlRPhDBvD1rOh6GtQ0wNa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X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Commit 94ff46de4a73 ("memblock: Move late alloc warning down to phys alloc") introduce the usage of virt_to_phys(), which is not defined in memblock tests. Define it in kernel.h to fix the build error. Signed-off-by: Wei Yang --- tools/testing/memblock/linux/kernel.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/memblock/linux/kernel.h b/tools/testing/memblock/linux/kernel.h index d2f148bd8902..ca56f36ef296 100644 --- a/tools/testing/memblock/linux/kernel.h +++ b/tools/testing/memblock/linux/kernel.h @@ -9,4 +9,6 @@ #include #include +#define virt_to_phys(p) ((unsigned long)p) + #endif