Message ID | 20240806010319.29194-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 B9762C3DA4A for <linux-mm@archiver.kernel.org>; Tue, 6 Aug 2024 01:03:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8BD576B0089; Mon, 5 Aug 2024 21:03:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 83A5D6B008C; Mon, 5 Aug 2024 21:03:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6DABE6B0092; Mon, 5 Aug 2024 21:03:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 4938D6B008C for <linux-mm@kvack.org>; Mon, 5 Aug 2024 21:03:40 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 05404A04C0 for <linux-mm@kvack.org>; Tue, 6 Aug 2024 01:03:40 +0000 (UTC) X-FDA: 82420023000.27.4DE9C25 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by imf11.hostedemail.com (Postfix) with ESMTP id 47AB84001B for <linux-mm@kvack.org>; Tue, 6 Aug 2024 01:03:38 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=ZKR5+gz9; spf=pass (imf11.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.221.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=1722906156; 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=JGJ4IA/MiZ2PRAlbVlDf3Kouv76PWEvFVnlfW5DnCxMfotuHEkYHzfOzVkVpCQeYBQUHUT ct3wa9Mox273/ychU6V1hnjkOyzajePoPm2kXP/DS3R4xtssd6tUWAGXCdaVH2MwyUiW6w uvjgf036qTPM2fAF259+9LLxvRCVA8c= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722906156; a=rsa-sha256; cv=none; b=H7CAwygeOuHo3YhQHG1eRxD6POlfus7MJy4qL+iJczC1wcmcbY68RhlOIbkaoDcoBeGSPN fjeCk4+zNu/qsPzwxmLj4Fvt+WAbEyJ3u+N59FpHbFVuCISKaMJYgLy7vSfgZVMagL1aCs uGpHudowhdsIRaRMm2mzAZZ7bpeOjcs= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=ZKR5+gz9; spf=pass (imf11.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.221.43 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-3687ea0521cso47339f8f.1 for <linux-mm@kvack.org>; Mon, 05 Aug 2024 18:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722906217; x=1723511017; 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=ZKR5+gz92TtNJL5vY01YBEUXHiu3ZnooWY8Pq6IMm6ZqtQ3vLONGEvXgeH18K2JawP xXRg5k3GfENplnID2W9lQryqdRg1pNIFVaArCOrWdUHPhijv+Dkb7kHLNtpMnLHi7HSu AcNc+8zVvaNVzPgO6VeSg1JhinapGMi7qoLrCzUDWZlPq5Ia0DM9Sqh3uIpTouI0fvN7 vjksYyjOVVFHnd8JPLHL/iVFSy/xtVf5dUSBG88i9NQAh1EC/1ZTl3tuzC1TyOsZUXOp K0oPmpuTEviQaW+N8TOADrKH3UL8LmbKojbIZbK/PCEedhW5gWvsQEy5dXgaRM5Re7Vs SelQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722906217; x=1723511017; 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=NbxP6ohalEO53bKjlYTkDAYKOZTrjReeNyLhDTJy1obSBh1LvD7MmTjm3HhwdoBrZr yCdJsDYWq2QE2OVjMAIX/8fKhmBvHZ7nf4tmSv/8GHy8QeSCBRnh9nDONgmFBkDQE7O/ ynMF4+RmNyhUjO1jeH/X1rKxR9ZLyvmhRyaIlVKehRlEcianJsPWvdjf5cvpABP7Qw3o YZ6+6LRvkuubUrqI0MTsxKLVO6mE3dIUC/JOD4h3SpSvTrLT7cfpJ+JhYqHy1khr1k9P fhpOR5AYO9OJKU8JdftV1pdGxpe8s+rSRmk53rBVm/x2Sho5PewCvFK1dFnoJ/q42tau SgGA== X-Forwarded-Encrypted: i=1; AJvYcCUG9fOKnXaBor5xJYuiC4LK9zEpdnGQav6Xz+6UAKH4kxLSwYoGZMAJPORl2Hea8HFqSpQ+hA+ODrZaQ1FPB+6E8L0= X-Gm-Message-State: AOJu0Yw/P8EytDZ36AJyCG+vGCeU6sNUcQSpdlYbTBvYE9TiUNg0K7Wr wQky7spqXyg+OZY45g+iyj4kXNOKmrEtwub+XjsMQgvQGKayKpDn X-Google-Smtp-Source: AGHT+IFOjaD0QRaWTraWGT8ewzbBmgOZWO2WZvbgW373+/rfGS0vP9WSqHSco9kNwtVcIvWjJ653GA== X-Received: by 2002:a05:6000:8:b0:366:ec30:adcd with SMTP id ffacd0b85a97d-36bbc0e09d3mr10399765f8f.7.1722906216631; Mon, 05 Aug 2024 18:03:36 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9ec755bsm503344466b.200.2024.08.05.18.03.35 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Aug 2024 18:03:36 -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 v4 5/5] memblock test: fix implicit declaration of function 'strscpy' Date: Tue, 6 Aug 2024 01:03:19 +0000 Message-Id: <20240806010319.29194-5-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-Stat-Signature: oj6m3mksdd8tb95w8qjfbe7fwbh3xek8 X-Rspamd-Queue-Id: 47AB84001B X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1722906218-96957 X-HE-Meta: U2FsdGVkX18hNPqdL12k9mytmETc4A3JyIW1IGICP3jH/P6cabiVyDIOqmQM7hNxI00mHG9n2NJb970iN5KnH/K0DtU7tM6YduzV0lT2qJ4bwoLiD9b1bSLCtSChyTCGE2MZgTzdByeQdkht+cVJ91ezSvJd3fdlklJYgmn34/hltDhKbUIvjC8ceykzgQi2J0ClhatHDRCR5t/6GKFkfOvNTHmFV7nw/yscR+biOo4hznMuCeCcIz5FfzXU3DCJDsKY7L5IaFr8aoj7fLQy02F/UX8mxpBMU2IZ32838bbk7h+KWb0ifAaTG+1R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pOg0dwO7tOgwM7AaT+5ZqvaVxCALtF0/R+VMb0izD+FYJ3C0d6wWww6xEIYwPmYZmdBNHzhpQfZUI8TonWT+0b1ST0doQnHA= 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 |
[v4,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(+)