From patchwork Wed May 4 00:03:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuanchu Xie X-Patchwork-Id: 12836562 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 D0D20C433EF for ; Wed, 4 May 2022 00:04:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 38CE46B0071; Tue, 3 May 2022 20:04:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 33B376B0073; Tue, 3 May 2022 20:04:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1DC8C6B0074; Tue, 3 May 2022 20:04:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 104666B0071 for ; Tue, 3 May 2022 20:04:27 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id E4E50335 for ; Wed, 4 May 2022 00:04:26 +0000 (UTC) X-FDA: 79426113732.10.EF47EBA Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) by imf28.hostedemail.com (Postfix) with ESMTP id 2F216C0078 for ; Wed, 4 May 2022 00:04:13 +0000 (UTC) Received: by mail-pj1-f73.google.com with SMTP id u1-20020a17090a2b8100b001d9325a862fso7789679pjd.6 for ; Tue, 03 May 2022 17:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=gNOfQOttyQ9bVdMrdcaVGQzcGPZiZGz3FawVW6e6qqo=; b=r1bamZ7/7YEkejVukK6LVq3CiZ+A2M9izekAohqwa+FB57ha2fq+WrXtd7hH+dC+eM 13L40ZPCJ7MbYJIPBHnucGx0+jSuR6Klo6py8YazOIbgqjzbAFafjzycEiYhPNYOpvub 338Zq5b1D8ArkuljrgfcDPO7/mNsxLoJVdaDSMRynpo//Ko75zb103HfcQg1v55oWZ7d Ay7ghn9fZYhDkPwRoBKQFAjq7BcP2L2UNLgsSPouYgBwI39ZffFfu3Q9m8Hh5SG1+vnL pUlUIGOZWUX7cIdGZIiF9lg6/Mmb3Cl3Py4ZOszvYoDFudV7YI8uKIrmnS7Awh7SqCTA t2Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=gNOfQOttyQ9bVdMrdcaVGQzcGPZiZGz3FawVW6e6qqo=; b=WZEtdYaslLao3GJ1suOywS4kWJkIiLPzsK6/nOT62xBzddhGt18BOg6Cqvudt/GyRj RIq5rqxlSsd7UhHp6qEP6kKPo9xb8VAdm9qT4HKqu+FwfIPmbvhBzSuxTQv4D8mt9SKf Dx9jE85HQ/P1opYmMX1HYik2TJbMIl1bCxEzYJ5Zi5tFklzSTu9nunyVmjsg+gIArl2M EvHqzrjuye+AlJIO2MHQgbPqiU4YDC+ySVq5jApqlN1uVAg3YJll9KNlUyCN3qoaY5Jv 9GKFUtQGv6Unlo8P0OrFcnM8gmkmaUOt+B726D9hn2w1M1tKNRI2SrvVVf+r9ybogSFL WXiQ== X-Gm-Message-State: AOAM531npxmwcjGD8YKRl5oxdedciYxKXVxGkIdKvH/Fqp5gyUc2lqqv /ipcwgfRPAbHmy65t3t9qYGXTzt+pJqs X-Google-Smtp-Source: ABdhPJzMqS7AZBrEZnEXn6eaRzkfHjclxm/qy0rBrOu081u0jfBoGWFBDKB5jzuoKh5xrj08ZHLyw/ElYT+g X-Received: from yuanchu.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1e51]) (user=yuanchu job=sendgmr) by 2002:a65:4c4e:0:b0:39d:21c4:2381 with SMTP id l14-20020a654c4e000000b0039d21c42381mr15913964pgr.566.1651622665163; Tue, 03 May 2022 17:04:25 -0700 (PDT) Date: Wed, 4 May 2022 00:03:57 +0000 In-Reply-To: Message-Id: <20220504000358.1174849-1-yuanchu@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.36.0.464.gb9c8b46e94-goog Subject: [PATCH v2 1/2] selftests/damon: suppress compiler warnings for huge_count_read_write From: Yuanchu Xie To: Shuah Khan , Markus Boehme , SeongJae Park Cc: rientjes@google.com, Andrew Morton , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Yuanchu Xie X-Stat-Signature: r8ueemfjpyfe3ub48mqq8kimi5f7fwqz X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 2F216C0078 Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b="r1bamZ7/"; spf=pass (imf28.hostedemail.com: domain of 3CcNxYgcKCHAmiObQViUccUZS.QcaZWbil-aaYjOQY.cfU@flex--yuanchu.bounces.google.com designates 209.85.216.73 as permitted sender) smtp.mailfrom=3CcNxYgcKCHAmiObQViUccUZS.QcaZWbil-aaYjOQY.cfU@flex--yuanchu.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com X-Rspam-User: X-HE-Tag: 1651622653-571108 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000863, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The test case added in commit db7a347b26fe ("mm/damon/dbgfs: use '__GFP_NOWARN' for user-specified size buffer allocation") intentionally writes and reads with a large count to cause allocation failure and check for kernel warnings. We suppress the compiler warnings for these calls as they work as intended. Signed-off-by: Yuanchu Xie Reviewed-by: SeongJae Park --- tools/testing/selftests/damon/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/damon/Makefile b/tools/testing/selftests/damon/Makefile index 0470c5f3e690..a300b4c5b373 100644 --- a/tools/testing/selftests/damon/Makefile +++ b/tools/testing/selftests/damon/Makefile @@ -1,6 +1,9 @@ # SPDX-License-Identifier: GPL-2.0 # Makefile for damon selftests +CFLAGS += -Wno-stringop-overread +CFLAGS += -Wno-stringop-overflow + TEST_GEN_FILES += huge_count_read_write TEST_FILES = _chk_dependency.sh _debugfs_common.sh From patchwork Wed May 4 00:03:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuanchu Xie X-Patchwork-Id: 12836563 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 08F0DC433EF for ; Wed, 4 May 2022 00:04:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8BBD56B0073; Tue, 3 May 2022 20:04:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 86BCE6B0074; Tue, 3 May 2022 20:04:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 70CDE6B0075; Tue, 3 May 2022 20:04:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 6060E6B0073 for ; Tue, 3 May 2022 20:04:37 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 45D6E2088E for ; Wed, 4 May 2022 00:04:37 +0000 (UTC) X-FDA: 79426114194.26.B8222E8 Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.201]) by imf21.hostedemail.com (Postfix) with ESMTP id A2C951C0097 for ; Wed, 4 May 2022 00:04:31 +0000 (UTC) Received: by mail-pg1-f201.google.com with SMTP id q13-20020a638c4d000000b003821725ad66so9121264pgn.23 for ; Tue, 03 May 2022 17:04:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=lolNF5na6ezwHOllGytfK9EWHDRXUvw2xu6SIn6lfiQ=; b=rv5B+Kn3eMfEVOnYUOMyvbzSi54WrfqWS8YwOlXtTChiJm74YyuMmXZFc3qUYLHQu3 RUtHg577Nel87C7paT84znz/tyFkf4I/2nPvmOddKmHO7ObqQlKhbhGL1ZbiHNF1kTqr 9Byb+U98VOcOqSYNe0hctmYZ6wYBwZPPXkt8qt9yC3p2jStppKQ/0yn5Qg870qU+RWz+ WDP8evFJIlTSJNcF9/b0brepgnWFVxWUdwRvcZbS8aU58sk81XIcjwK7AwzxDUKRulgx qAzQ+MLvJwDoV4ZGZlolgMbchvlrFRtHtqEFZ7+NpkU2HhAlf5NCU8h/VLghb2xcD3/I x2xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=lolNF5na6ezwHOllGytfK9EWHDRXUvw2xu6SIn6lfiQ=; b=1GzmmJGbYHdGkwVDxBJEFvTnNnl7CwaKsgOaG0wjcET62gJw5mKdeFAa0wWFksb1/c ywlFJvwoKufqbabU9/ywkrE1ouJBZh1/bQevOWHEnCoODaNJPG3sTxMDT6IhId5b6l/h yQaI+EiFs0/MQM6Ezf/mhjpy94SeK9pZxq+zrr0ZeRXel4KxVTRqFfPCqrU7KGE9wEdP G0tQoF4gDj86FurpILC+opubUJElcom5CWV6PYGeGbrHYRdk/THVrQgjfZrHRBMaZGy2 /JyISscfueWXYODCvMEy2pNJun3ZPO8EKXoJ1nOjPxGrC5Dxspl9+I2HMjlDFNKAX0fU ELlw== X-Gm-Message-State: AOAM531dZFzxEMUymlUBJfLKUN+ZHVnZa8ZWAztE/bRMDIlZxg5gSH+w vpW56kyIKgMBy6IpVrSwFt97/IvAB/D6 X-Google-Smtp-Source: ABdhPJxlNnp2FhHVp5naZ/23iqD6T7CS6Y0uQdSLS87TLV54f/oWg7j+OW/ulnqIWu5ag0JT8ohRyL0jznCo X-Received: from yuanchu.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1e51]) (user=yuanchu job=sendgmr) by 2002:a62:a211:0:b0:50d:cdb2:87f4 with SMTP id m17-20020a62a211000000b0050dcdb287f4mr17447824pff.63.1651622675780; Tue, 03 May 2022 17:04:35 -0700 (PDT) Date: Wed, 4 May 2022 00:03:58 +0000 In-Reply-To: <20220504000358.1174849-1-yuanchu@google.com> Message-Id: <20220504000358.1174849-2-yuanchu@google.com> Mime-Version: 1.0 References: <20220504000358.1174849-1-yuanchu@google.com> X-Mailer: git-send-email 2.36.0.464.gb9c8b46e94-goog Subject: [PATCH v2 2/2] selftests/damon: add damon to selftests root Makefile From: Yuanchu Xie To: Shuah Khan , Markus Boehme , SeongJae Park Cc: rientjes@google.com, Andrew Morton , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Yuanchu Xie X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: A2C951C0097 Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=rv5B+Kn3; spf=pass (imf21.hostedemail.com: domain of 3E8NxYgcKCHowsYlafsemmejc.amkjglsv-kkitYai.mpe@flex--yuanchu.bounces.google.com designates 209.85.215.201 as permitted sender) smtp.mailfrom=3E8NxYgcKCHowsYlafsemmejc.amkjglsv-kkitYai.mpe@flex--yuanchu.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com X-Rspam-User: X-Stat-Signature: naupurwf1138f3izo6cqypuk8mtg7ub8 X-HE-Tag: 1651622671-172257 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Currently the damon selftests are not built with the rest of the selftests. We add damon to the list of targets. Fixes: b348eb7abd09 ("mm/damon: add user space selftests") Signed-off-by: Yuanchu Xie Reviewed-by: SeongJae Park Acked-by: David Rientjes --- tools/testing/selftests/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 2319ec87f53d..bd2ac8b3bf1f 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile @@ -9,6 +9,7 @@ TARGETS += clone3 TARGETS += core TARGETS += cpufreq TARGETS += cpu-hotplug +TARGETS += damon TARGETS += drivers/dma-buf TARGETS += efivarfs TARGETS += exec