Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp569463iog; Mon, 13 Jun 2022 08:19:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzL/AoQ+OJHbGoPK2sAC0R4U0dhQDSMZIEXvDzAh76IQW/c1mjZB3Mh3BvTujblSWA1WkvA X-Received: by 2002:a05:6402:350b:b0:42f:d079:647f with SMTP id b11-20020a056402350b00b0042fd079647fmr218200edd.321.1655133551437; Mon, 13 Jun 2022 08:19:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655133551; cv=none; d=google.com; s=arc-20160816; b=tfMIsa7/gb3MBEVz1jkyfTuUyVp7nljJptkjzocxY3wP55S7qTp63YqNiv715I0bS2 ZMLfZlEiF1eYjX9D8JJ2GAVEXklDbUzBuO0ymvE4iJodsEy2Avy694wUdAc8mritrox1 K1J1WIEJjhuFROPTXOT8u5ziQScZvPTjeoWerq3QwVpvF4qQKe4G86/EPF/lrTIK5LWb /CmM/4MoHnAvu7malD6WeOKHx6IaPEHEg4uisU9zGp9qT1tVH33uJnRMhSMSxNvlPv90 njBruR7LUaCmAkTp1iiQlyjEJx8gIVALAUxofZQhZEmTXmfR5fv3/o1BO/ACsJfATMRT LG1w== 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=p53s1bsj9xaK+BlUCWY+KbvaFn28ZSjoRLUQf2PvFC4=; b=1GDVWfaVYz50XeO4o9QhL9x2r2Jq4HLAQKDtWO4lILngDmq2ZLcZSa+w73bu/orwNW kIMNa+/QDMULpHsZX924Crb+RipFM9FwtVRXy7Zvfbm3jB4EJrAJ8gQDSXLDoGcTBE9o T0IHyVg43Vqaxv54xHvyMDb1K26O1vnJidUbHpDu6KwMDwFta+yOz9DGtXhL6RqI9t5q Umz4yAUDlEgP9VEadSHyWpkwoeXCdHdrBCKl24wOHxDSb94s//za2iz32aEDZp8tBnNs EyXO/3hYrJEUKMBeHIuYXbSV1Pe+aZ+Pf4joOlQ/2gep+8znSepKzd/qcslMZKQNLEvv bQAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UmAyAn06; 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 cb11-20020a0564020b6b00b0042b816bcc59si7690465edb.127.2022.06.13.08.18.46; Mon, 13 Jun 2022 08:19:11 -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=UmAyAn06; 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 S1351711AbiFMLHv (ORCPT + 99 others); Mon, 13 Jun 2022 07:07:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349524AbiFMLAc (ORCPT ); Mon, 13 Jun 2022 07:00:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E879C31354; Mon, 13 Jun 2022 03:33:08 -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 BBB2360FB1; Mon, 13 Jun 2022 10:32:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA1E6C34114; Mon, 13 Jun 2022 10:32:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655116373; bh=cKRrTbnI+d4+LE1Ydfu6A33V3P+MWNPCyFbzbhkVuKc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UmAyAn06+6GrEUvtJFMt0MD/KyXLbnPGTOs8HTRnwWkdvnqA83oUg5B0sK2KXGI08 Cne3VrPHAkGw788ooMvN2nJDt00VfEux4sA1R4zYQP1d5LZoKZGcXk2B4AAtFjgTw4 MCIob7jnmD62FBHvDEVeVWOvO4aL8PrO7cqC2kxM= 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 5.4 074/411] tracing: incorrect isolate_mote_t cast in mm_vmscan_lru_isolate Date: Mon, 13 Jun 2022 12:05:47 +0200 Message-Id: <20220613094930.897166778@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@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 a5ab2973e8dc..57184c02e3b9 100644 --- a/include/trace/events/vmscan.h +++ b/include/trace/events/vmscan.h @@ -283,7 +283,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) ), @@ -294,7 +294,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