From patchwork Thu Jul 25 01:41:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13741499 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 9A066C3DA63 for ; Thu, 25 Jul 2024 01:42:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9F33F6B008C; Wed, 24 Jul 2024 21:42:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 92C616B0092; Wed, 24 Jul 2024 21:42:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6E2176B0093; Wed, 24 Jul 2024 21:42:10 -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 4B83F6B008C for ; Wed, 24 Jul 2024 21:42:10 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 0F115A0CF3 for ; Thu, 25 Jul 2024 01:42:10 +0000 (UTC) X-FDA: 82376574420.25.729A770 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by imf14.hostedemail.com (Postfix) with ESMTP id 3FFE110001C for ; Thu, 25 Jul 2024 01:42:07 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Nc8GvbCV; spf=pass (imf14.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.53 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=1721871681; 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=d9t9X8YtjQJ97vnjdUQkBC7tpE7oM03qFERBGMdqLiQ=; b=R4nKEEQCRjm2icMlpdMZq19Y9Iuxv2ans4PWpCuOdYJ2Mwm3MnItksGhHf9RZh63G4YV/0 q5Y6Q8IkFUMpUnTZlp3CMuzsikR89Cc+Gr+6IugXO38+1du6DIiUf1fnHKj0YiwNrWu3gB FS8dR3wmdK1c/2lPei2Mb/1rXfBMpEc= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1721871681; a=rsa-sha256; cv=none; b=w9eU9HzpmRa9R5BxzTJHR/l7wiP1dhez1mFs2PfQ3n2Opy0apyXw+KNlNXQrSkmXrn3Oel Si9d5jKFj2udrPLaeUW+FqrhVf7yNKwaNqFA7XjwXGhxdAj6gCCCB98VM8xhmeRsmpKmMU yc1AUJMNiIEjAhU5+C+99IDMKCti2Sw= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Nc8GvbCV; spf=pass (imf14.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.53 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5a2ffc346ceso582714a12.1 for ; Wed, 24 Jul 2024 18:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721871727; x=1722476527; 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=d9t9X8YtjQJ97vnjdUQkBC7tpE7oM03qFERBGMdqLiQ=; b=Nc8GvbCVAa7z8Gc4r9pu1CmzV89jvEIrUF2Xblh/vJqwDJfetIB/40J5XCaBCIL9qD IE1UY2aPDJ7tl5ukDjw1/2IUqgE/Ouu45fLoQ4cFFSN7zgt8j9r8GLKozhE7zM/6gh2F SVSn9j2Qt4ct0uta7BHo1y99Ee3jeX9xuwtf7LPvihbXh9AfW9coHnCMBf0n2Bd0e6O9 Jbi7EP6kl5lE+IgmRXfNAVpv1gcpXB8r24vBOye1fGSx1xjrnOxixlzEG3eZ/wgWftoa vQCatgtupTK8RnwLFjCDgPaF6kMLpbG41m4KzV9MzeOEL0boIwYLLfG2X1hYjgQ7HsEi UGmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721871727; x=1722476527; 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=d9t9X8YtjQJ97vnjdUQkBC7tpE7oM03qFERBGMdqLiQ=; b=geuadD+9GWSdSp9COEOfVpfXewMdto0xmJx2q3zj4792vVyqySlGWm4QxapoMxhDK3 tywQpRIFRoV1CxEEQhDScEPYJQKG9L5leDSfO6JhXmcaNNXF9ObllH1ITRy8OCg1MYd8 dKsKxa3P6HcAhCeB5MOMgpu2eJLhg6DGV6ycJzBisHjJQ/qxnBrRn3J8ESss8BggVcos M+SezX4SkreMIQJhPtoMNy8UdZEB+5Owi0tUVplk3XXKaWePaoF1Us+kUx3FQcTlWHji QJaDB6NU8HGJJICbat8dEEA6UVaqtlXArhD4AK59Ls4a0uLCCMxS3IH6MUHJlBBZV0zM e+Ow== X-Forwarded-Encrypted: i=1; AJvYcCXrwl2CZm2ede8oVTR8N+Z3pF2TDVB9n5lcRPsT9PLs7c69DFKASwau6+G2316gOmaJr5hN7dPCTK71dFQ6vvxLx6g= X-Gm-Message-State: AOJu0YyJeZNuQ2TgW6ydvZPIRaGjFcwLDsV1MMrxwS5WUq0Vd31+jOyj qeJUnf4cF/q4jpaTdXZ4pp7o8G64FBB1ptLMepy8gmfYXK4oJrUzFPd9aw== X-Google-Smtp-Source: AGHT+IGV/bfSCfjZ2C2cURoUMo+w0MNVOHbB3RnlpWzPQrY+R7g3EebmWtmWo1mrRNSyoHfngvlUFA== X-Received: by 2002:a17:907:971f:b0:a7a:8522:5eec with SMTP id a640c23a62f3a-a7ac5076647mr83849166b.53.1721871726359; Wed, 24 Jul 2024 18:42:06 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acadb8039sm17289766b.200.2024.07.24.18.42.05 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jul 2024 18:42:05 -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 4/5] memblock test: fix implicit declaration of function 'isspace' Date: Thu, 25 Jul 2024 01:41:56 +0000 Message-Id: <20240725014157.17707-4-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-Queue-Id: 3FFE110001C X-Stat-Signature: ckhtmnsiccswqgkmwdqfg8ki6jfiqeb6 X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1721871727-887717 X-HE-Meta: U2FsdGVkX189Zuha6QAK/KhdpfT4dTM+Avvk9HLDs4ChrRLxd2k8Z3z+fH8xfvAB5bd6GNzwAjFguiK1HONjKNKmjVMApKBewtzrCGwI3ZCiOdkNly9cR4gJDcTf4/t2nA1jUvE+xB+52K/SzVmLHI/KRIFHGhhmXw8dC8DyC6xdPmvejshPf/LFMdEvDUxi6KRA8R24iGdp50na+04bfCCZ6UZHHaWYNDQZCNBTjXrzcC+0eNN4Pl6VuDMZEsJy0D3ZorKqQTW2OjQEjG6QVBnAWRSUOKHIva8a3SUlswaUDwoSBE9gBCCNmwBwHAXveO7LJc4HB6O6MkJ2mZ2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V7viUN4OWfeW6spB X-Bogosity: Ham, tests=bogofilter, spamicity=0.000093, 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 isspace(). In kernel source code, memblock.c include the definition by debugfs.h/seq_file.h/string_helpers.h/ctype.h. Since it already has ctype.h in tools, let complete the include chain to fix the build error. Signed-off-by: Wei Yang --- tools/include/linux/debugfs.h | 2 ++ tools/include/linux/seq_file.h | 2 ++ tools/include/linux/string_helpers.h | 8 ++++++++ 3 files changed, 12 insertions(+) create mode 100644 tools/include/linux/string_helpers.h diff --git a/tools/include/linux/debugfs.h b/tools/include/linux/debugfs.h index 4ba06140b1be..a99b0e0c5414 100644 --- a/tools/include/linux/debugfs.h +++ b/tools/include/linux/debugfs.h @@ -2,4 +2,6 @@ #ifndef _TOOLS_DEBUGFS_H #define _TOOLS_DEBUGFS_H +#include + #endif diff --git a/tools/include/linux/seq_file.h b/tools/include/linux/seq_file.h index f6bc226af0c1..8614fc2ca695 100644 --- a/tools/include/linux/seq_file.h +++ b/tools/include/linux/seq_file.h @@ -1,6 +1,8 @@ #ifndef _TOOLS_INCLUDE_LINUX_SEQ_FILE_H #define _TOOLS_INCLUDE_LINUX_SEQ_FILE_H +#include + struct seq_file; #endif /* _TOOLS_INCLUDE_LINUX_SEQ_FILE_H */ diff --git a/tools/include/linux/string_helpers.h b/tools/include/linux/string_helpers.h new file mode 100644 index 000000000000..bc11a762be8c --- /dev/null +++ b/tools/include/linux/string_helpers.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _TOOLS_INCLUDE_LINUX_STRING_HELPERS_H +#define _TOOLS_INCLUDE_LINUX_STRING_HELPERS_H + +#include + +#endif /* _TOOLS_INCLUDE_LINUX_STRING_HELPERS_H */ +