Message ID | 20240729014725.29839-5-richard.weiyang@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 E148FC3DA64 for <linux-mm@archiver.kernel.org>; Mon, 29 Jul 2024 01:48:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7C6DF6B0092; Sun, 28 Jul 2024 21:48:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7765E6B0093; Sun, 28 Jul 2024 21:48:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5559C6B0095; Sun, 28 Jul 2024 21:48:05 -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 3447C6B0092 for <linux-mm@kvack.org>; Sun, 28 Jul 2024 21:48:05 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id E084F1401A7 for <linux-mm@kvack.org>; Mon, 29 Jul 2024 01:48:04 +0000 (UTC) X-FDA: 82391104488.18.A8E979D Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) by imf11.hostedemail.com (Postfix) with ESMTP id 2BEB54000D for <linux-mm@kvack.org>; Mon, 29 Jul 2024 01:48:02 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=O4xpwXTq; spf=pass (imf11.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.43 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=1722217657; 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=MG9S6gbxwdSBJfdbb/Z4n1WtX6iDsEmG4mLp80lBudU=; b=zNyyWStF1b3jXmgQQLcDzz1hKN0AhrxliH3e4uYHFrzoJ7STc0c/WiyDakTWlQeDQ561ik IoptmB2V3k+zEuNQvcYSJWxmMn+dRKr+I0pxeWShvSJDXTSBNN4KG3kY0lV9sEeFc0rsjr UjqsuEJtWdQ0BdyXJTplCv6VEt+u3d8= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=O4xpwXTq; spf=pass (imf11.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.43 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=1722217657; a=rsa-sha256; cv=none; b=PGy+QC8uCmO0zj6HVo1zlza4e/vubdwA671j0fdZS6JkSRA7xjxDIN51flZxrwKxat/2LE k14C7nME6jek3IDcAalOFU1n2kfk7IYgGMNDLOCNfEQnEjPubk71xv16ZcCZYiuBUS+R3H zHxuhVdi2qUzHBesmdXINRkvsPOyRYY= Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5a1337cfbb5so5324718a12.3 for <linux-mm@kvack.org>; Sun, 28 Jul 2024 18:48:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722217682; x=1722822482; 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=MG9S6gbxwdSBJfdbb/Z4n1WtX6iDsEmG4mLp80lBudU=; b=O4xpwXTqBD+9nyCE93o9jOcecZ++vAiyWnZle64hHJufoau6NL9IeZ17HTaMeBk5mX qxbjSvIENoGOYJJic1vXeaQZtIb9D+kx9tAdUxFTJ+yWQzOyPT3+0jnzMGD8/O1iE0o1 JsHgEs2HloIHWTL8IBz6ZKEAips+CSzGt81stDuikeqboGyeiiDGDaj2JoCZbM6oSp/+ 6h2v5/zC24Bzx4YRNblY3quG2fAEb+BMuatJJwNkt9l04FuJKVnuBsylG1jxZDR46sfO tcTjDXOZ4yp6kZh+z0sFvQNi/5cBsF/XP5jgkPc+2nR6deTNEUV6qpn6yi32YRAy0n2x pW8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722217682; x=1722822482; 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=MG9S6gbxwdSBJfdbb/Z4n1WtX6iDsEmG4mLp80lBudU=; b=DWQP0uCJ6SdgJMGhEGImdFiEMzcPHchC0sIoyrpqY+NQk/pJI7P0ydkhOQMNfNfz5U kVFf9ts1TxwF0UKhq42IyH6B+jLgVLQpSC5V3ylTQVVwjKkCxncREAB62gSuNTKT54h6 JBuWmvSKfYskPL/pnFCwiv2PFXlluR3RaBimgtpBf6fojJR/NtO7iZRyg1V/gUewHDDk zKRtHJp/d5ZpD+G1l8qaS1JL+S1TGCD0Y+AXS50g3tS3r9/fmYEBPhsgr0Q5jVsXJ8i8 vESWuKamNzamd9jCYOkzWRQ7oyQNg8mP60mgct+3np6hLOCN2HvZsvWdEkr9nzNkcSZ8 87Zg== X-Forwarded-Encrypted: i=1; AJvYcCU8MOvwmN0xDKmNwnWilaASp1QgbZFUqwYuDLe5QAHotVaIPXubJTz7YY4t/1ZujP2HjrGLIFPX21W/glPt/ATHj1s= X-Gm-Message-State: AOJu0YwkEjoEbZr7QU83dq/Lx8X2WExbmPYS0Ve4cMqGGu8r1tFYhXj9 oN9oG30QXdsQ03j9dmaSviUrMmsxciq/jIem4K2onzX+zdRmS3J9 X-Google-Smtp-Source: AGHT+IFV5uloFEw3dLtZ5qdkRVEgAh3a5HblKniDcyE/0U3trOXnrt8hQKyxN8LuaZwFQOHz4VSW2g== X-Received: by 2002:a50:cd9d:0:b0:5a2:fc48:db12 with SMTP id 4fb4d7f45d1cf-5b020cb9a13mr3615025a12.19.1722217681428; Sun, 28 Jul 2024 18:48:01 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5ac657836f9sm4949206a12.90.2024.07.28.18.48.00 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 Jul 2024 18:48:01 -0700 (PDT) From: Wei Yang <richard.weiyang@gmail.com> To: rppt@kernel.org, richard.weiyang@gmail.com Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH v2 5/5] memblock test: fix implicit declaration of function 'strscpy' Date: Mon, 29 Jul 2024 01:47:25 +0000 Message-Id: <20240729014725.29839-5-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-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 2BEB54000D X-Stat-Signature: wgi147e5ai11q7jno3xd5exx7cbtr1ws X-HE-Tag: 1722217682-421424 X-HE-Meta: U2FsdGVkX1+9DdLudq7lVtISkKrvPNCWt15xiiL7uEHJLqkHErH3gULDzhZ9IfWP53ltUVMxN9mmA5SzmbzGv6T+h5Cj1Wrfmdhp4aYbKnA71u/F1ejpC3dPmBzhpUAdxHMbjEo8/645s4BPLqXFcK8Uf1gk+EpRaWfoa9eBQK78m7LB/1Kr9KEVQdLLLAmQkhz/j/J9Jrqz+PV9UC8gFs6ao+Kzhoy1nYSmw7DPleGNnFzP9+wwi1F2EQzBo+lFYqlt4Yh3UwoooEcUvXjYQHT6qj54eQ0T+x1IuHEyZUqBs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kJ+zpJ//FP3jXULM 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
[v2,1/5] memblock test: fix implicit declaration of function 'virt_to_phys'
|
expand
|
diff --git a/tools/include/linux/string.h b/tools/include/linux/string.h index fb8eda3019b5..41e7fa734922 100644 --- a/tools/include/linux/string.h +++ b/tools/include/linux/string.h @@ -12,6 +12,8 @@ void argv_free(char **argv); int strtobool(const char *s, bool *res); +#define strscpy strcpy + /* * glibc based builds needs the extern while uClibc doesn't. * However uClibc headers also define __GLIBC__ hence the hack below
Commit 1e4c64b71c9b ("mm/memblock: Add "reserve_mem" to reserved named memory at boot up") introduce the usage of strscpy, which breaks the memblock test. Let's define it as strcpy in userspace to fix it. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> --- tools/include/linux/string.h | 2 ++ 1 file changed, 2 insertions(+)