Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2809150iob; Mon, 16 May 2022 06:46:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRe8b/ItyjVexKc/PeMi/lo1lZWWSIIFxuNFOmOgdDL14zaZdpLl8EjAaM8l2SzbuzY4Kd X-Received: by 2002:a17:907:1b09:b0:6d8:faa8:4a06 with SMTP id mp9-20020a1709071b0900b006d8faa84a06mr15473088ejc.701.1652708776950; Mon, 16 May 2022 06:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652708776; cv=none; d=google.com; s=arc-20160816; b=vJ4gd80eS6s+/wzlBMxROXGJhVx1R4cbR4G1AyrJGhmco2ytJg9PCoUOK1ydpkfSuR CVJ3/STQI5kUKMST3cAMqIe/PGy7MR1euCHiUew2NTMeE73NuFS0gyQe4bKViIZFmJT7 NWuC121tEOrLeUfttWEc/4NHb2ZqlXxI8BgpPt/6sfq2FSJOi6ugalCtKA7qm6PQ2Cdy SGrNWwik+ls8ps2bABDR7iHFgRbvuPDvEx6h8JKdmC76u0JmSSjR6BadmtlYX7+mAir2 MYvG2ExcwtJ5eimEfhmqq8aYM2pkwF3zUXIzWFA2JZgYXa2tg94wb8Jp9Ev8AwSkek49 COIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=MEqAsbb4/Nuy+450W0Y4u9JpmykRNfXXl6fpYWryxfY=; b=L4NE+X0ZqmMEgjyMBBRBN1KSA/hLHVIha1PLxoRgqoc21ls89EuC3wSocdTcGW2jOU QUZFLBO+klKi5MGwF0BtcAD+gL1YeMsADZ24t7wreeg2/NqIZfr6GkfDn8MUFjmzf7ag sz6c7vg6/NnWsjNdfF27hIWokkijTZTqENtXoxJXp2fE3VnBpsURuLKVpfxXS7YmwGWE PB6sPpCHXJSWSsZS+DbHLgmzaeEvr0CWGCtdNO9gyh33W+0u2LM9p1ld6sAho6o3tEhL ySydKFbLFUxn/j2APzW+V8YPQLE65IIA8iYGNF0JCmdVN5CwF3u8JqDXP0cRsKN8e1W2 /BsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv21-20020a17090760d500b006f4adc54180si9175314ejc.611.2022.05.16.06.45.47; Mon, 16 May 2022 06:46:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235658AbiEOWJJ convert rfc822-to-8bit (ORCPT + 99 others); Sun, 15 May 2022 18:09:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbiEOWJH (ORCPT ); Sun, 15 May 2022 18:09:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0FD124964 for ; Sun, 15 May 2022 15:09:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 69833611A3 for ; Sun, 15 May 2022 22:09:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEB27C385B8; Sun, 15 May 2022 22:09:04 +0000 (UTC) Date: Sun, 15 May 2022 18:09:03 -0400 From: Steven Rostedt To: Vasily Averin Cc: Ingo Molnar , Andrew Morton , Matthew Wilcox , Joe Perches , kernel@openvz.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH mm v2] tracing: incorrect gfp_t conversion Message-ID: <20220515180903.37fc18e4@gandalf.local.home> In-Reply-To: <8b9ba8ce-7376-2ef2-95f5-30e53cb46914@openvz.org> References: <8b9ba8ce-7376-2ef2-95f5-30e53cb46914@openvz.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 May 2022 10:20:39 +0300 Vasily Averin wrote: > Fixes the following sparse warnings: > > include/trace/events/*: sparse: cast to restricted gfp_t > include/trace/events/*: sparse: restricted gfp_t degrades to integer > > gfp_t type is bitwise and requires __force attributes for any casts. > > Signed-off-by: Vasily Averin > --- > v2: 1) re-based to 5.18-rc6 > 2) re-defined __def_gfpflag_names array according to > akpm@, willy@ and Joe Perches recommendations > --- > include/linux/gfp.h | 2 +- > include/trace/events/btrfs.h | 4 +- > include/trace/events/compaction.h | 4 +- > include/trace/events/kmem.h | 12 ++--- > include/trace/events/mmflags.h | 84 ++++++++++++++++--------------- > include/trace/events/vmscan.h | 16 +++--- > mm/compaction.c | 2 +- > 7 files changed, 63 insertions(+), 61 deletions(-) From the tracing POV: Acked-by: Steven Rostedt (Google) -- Steve