Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp441767iog; Mon, 13 Jun 2022 06:05:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxA9r1CfNh+zyvAWFo3XkH8cy6mJHwhCB0jkUXGTUmo5YU2edQW4kAokl3zBjx1Xz5wFuL5 X-Received: by 2002:a17:90b:4c8a:b0:1e3:60f:58c3 with SMTP id my10-20020a17090b4c8a00b001e3060f58c3mr15557797pjb.230.1655125521181; Mon, 13 Jun 2022 06:05:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655125521; cv=none; d=google.com; s=arc-20160816; b=BNKomJkKdXju3WxBgQo6XluaBQykidh8+KFBA6nl82iPFJLZFww1tgVXqMR2QLT8ox 9vyyBNSV1x52x1OZ/zbNi1hhXmDL7IQz4wOhzKPeaIy77deMMf1QTThZZnGnNh++Ei7O xPzZHUIuLQWc9zD2H6sKmeZqScEsYilgFfOqdlk1nsVLJn0Xc1wa5qiXv3is3ADYcmyz ARYMeCXwAGtT2xgEQa/XtfXZXSn4Bjn4RK9QhoMbbYYBhBHg06oxXDhS10PFgY/Nllew IpRzuxAe+f3FCC5jA23bsQhTY5NTed5fM3EWuOXAbWtWBIFD56WFV5WYWh5Niznr9xw4 vIAg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MuSuKYQcFfSq2M86hq20Wpy49vK8dcalEomPBOrVaw4=; b=WRhVH47QFLMv18UQWBDAW2O39SYiid4MKI8AQ9gkLdePTdFq2Whe30qYC7V6E2cCfb julUaWu8HC8itIOptjqpn1rRHDfJrsmF/bFsAIlgiOM0xLvmXXMkQWS3Y/8+U9Rqtaii 9eSXMp7W1aVVceq7ESrabpZ6/qGcTjSM2sv5dmn34TR8WvJ0fbowweeVn7BTeJK8PlBd V0cmgeuU0Uk6HcAaXEIspZW9T9pROlI0IHkPPSruqArX/9g5FXvEgJAwJn1uZO3Q2EZS /ahOFxaFb5ttdv6TSXaCrv8Iwn1piKORnl/0/HOQe9cH7de9rT5MghENjglZu/dpc9j+ YkBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Np/Oo1ic"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x23-20020a637c17000000b003c69ae10963si8838330pgc.229.2022.06.13.06.05.06; Mon, 13 Jun 2022 06:05:21 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Np/Oo1ic"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343934AbiFMKnC (ORCPT + 99 others); Mon, 13 Jun 2022 06:43:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244711AbiFMKlM (ORCPT ); Mon, 13 Jun 2022 06:41:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65A5C22B01; Mon, 13 Jun 2022 03:23:45 -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 ams.source.kernel.org (Postfix) with ESMTPS id 1A054B80E95; Mon, 13 Jun 2022 10:23:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C415C3411F; Mon, 13 Jun 2022 10:23:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655115822; bh=FQzVNMnLYI5uHT3rQ0PmNawNLjc6hqdIBzkgK+v51q8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Np/Oo1icdMVgU2PREMTktP5nKC5fyi3/FjHl6HNCQyTeUFBCDB2hUpA96OX723G77 IpWJrJ2/o/PwMwzlC+jY7AMzmZ3kb22IZ7JIKjxey8IqnL0r1XpMduDidelT+3sW66 V4lb4ksShCKO54UpwGKHfbBOKQMTDXKyh+5AAixk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vasily Averin , "Steven Rostedt (Google)" , Andrew Morton , Sasha Levin Subject: [PATCH 4.14 043/218] tracing: incorrect isolate_mote_t cast in mm_vmscan_lru_isolate Date: Mon, 13 Jun 2022 12:08:21 +0200 Message-Id: <20220613094918.603430980@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094908.257446132@linuxfoundation.org> References: <20220613094908.257446132@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 From: Vasily Averin [ Upstream commit 2b132903de7124dd9a758be0c27562e91a510848 ] Fixes following sparse warnings: CHECK mm/vmscan.c mm/vmscan.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, include/trace/events/vmscan.h): ./include/trace/events/vmscan.h:281:1: sparse: warning: cast to restricted isolate_mode_t ./include/trace/events/vmscan.h:281:1: sparse: warning: restricted isolate_mode_t degrades to integer Link: https://lkml.kernel.org/r/e85d7ff2-fd10-53f8-c24e-ba0458439c1b@openvz.org Signed-off-by: Vasily Averin Acked-by: Steven Rostedt (Google) Signed-off-by: Andrew Morton Signed-off-by: Sasha Levin --- include/trace/events/vmscan.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/trace/events/vmscan.h b/include/trace/events/vmscan.h index dc23cf032403..9553f6167e51 100644 --- a/include/trace/events/vmscan.h +++ b/include/trace/events/vmscan.h @@ -290,7 +290,7 @@ TRACE_EVENT(mm_vmscan_lru_isolate, __field(unsigned long, nr_scanned) __field(unsigned long, nr_skipped) __field(unsigned long, nr_taken) - __field(isolate_mode_t, isolate_mode) + __field(unsigned int, isolate_mode) __field(int, lru) ), @@ -301,7 +301,7 @@ TRACE_EVENT(mm_vmscan_lru_isolate, __entry->nr_scanned = nr_scanned; __entry->nr_skipped = nr_skipped; __entry->nr_taken = nr_taken; - __entry->isolate_mode = isolate_mode; + __entry->isolate_mode = (__force unsigned int)isolate_mode; __entry->lru = lru; ), -- 2.35.1