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: 12836560 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25097C433EF for ; Wed, 4 May 2022 00:04:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229509AbiEDAID (ORCPT ); Tue, 3 May 2022 20:08:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244469AbiEDAIB (ORCPT ); Tue, 3 May 2022 20:08:01 -0400 Received: from mail-pj1-x104a.google.com (mail-pj1-x104a.google.com [IPv6:2607:f8b0:4864:20::104a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ECF2433AC for ; Tue, 3 May 2022 17:04:26 -0700 (PDT) Received: by mail-pj1-x104a.google.com with SMTP id 16-20020a17090a0a9000b001d48f5547fbso7783307pjw.9 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=cjWzj0XLh8PgRZeFJDRcVry+J9iw6ej7vl0KOYkamCfHc65Y4wEZcxtTrZvAgSiNeP 9CZELz8HLaIYn/E8dXsr3gkv0Ji39nTc1uLOood7u3lkCEZCjO+twssww9FCNKHOezHY KdGhmLmtVOdjqqH/Fw8JELUiiklXKetWDawZakEmGlwzRSVbvGXGA5Bw6BpKW6NOZrLb 7m8/E1Po4X+5OgSCseRvd4IcnWWrVz446w8X8/BsqTW8Xn9v/2CjpxTt9B/DtywhD0aR Wicits6rGam5Ur0AGcX5dooXSScMDDV8ig+bWAb6i9rZyK41252E77CS63EMUqmQLA+y Qm2Q== X-Gm-Message-State: AOAM530AKKmr/yT43wpfbDH8KxyBii+6iOems7at0nqyuRk4yNx0tikW e7D0G4hccag/jIuCCqpsLK/cXf2BbmCI 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 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org 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