Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2261855iof; Wed, 8 Jun 2022 00:45:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3zDmWbUGwzUv6a8bAFhMbW8iWL8IzBiQ1NdNs7HQ9nx0I1aYxdD281oYhZ1CsGR5kLpez X-Received: by 2002:a17:907:1c0b:b0:711:cc52:2920 with SMTP id nc11-20020a1709071c0b00b00711cc522920mr15141878ejc.301.1654674357724; Wed, 08 Jun 2022 00:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654674357; cv=none; d=google.com; s=arc-20160816; b=oNvwSjJ+dutKUy94UNZeJBpniOq9jSsSlBI3Ai0B7uWYAslhTjq7de1m0ZdKPr50gV 4NXnfrEGHqbke6THHyofl/75EpXFOBlBfX47dmEYoZWsSHUielRS8vJPnN6VKFfRxTOY 50K97ILQNrbSnIMGWIumLQ8A/70fJzJnbnXmYzX8JzLiFMfiNEUchxgupLa/EeiGPsqq m3yalOWUWHsLj/zgrWdyjjXzvR8jYYcUKmNepao4GLlnFVTVnslmzQLT8JMa14Pf97WV FGfTSJQGpmoWAnjxxzE4I7d2XwkMqGDZJ1e0PqHlMii3K/EHesfq55JdjEk8XeueQkLj Ld2A== 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=PnJdyQyic4agLwp/E1R+JSUb6IaAqQgF9uNcOOzSIVQ=; b=poVQMRPtN5lq8i5G7mTvPV/eYDtCWMwdVTf/c8BDAPRNcbgI95i+MZAABYswKTsh8E h7zXHB6B4loUMeAka/6VFSwwilmZZxzZwfo2GACm1QxuHd/Wh8NgnpDkHoi8pxki/k9X wn7aMM41C4dMvqyDMubImCW9g0u8w5MyaoCGb2Q5W9JYQIUNyhzGqs131vqCyxN06VgL i7eNMM2jDqSslP9vSv1zzr9KIT/DGmWF+zvbjCed+MTjJVKUUY4/l3S1H29cJkCmpUuI gXrWNBDmMLjna8wOVWSls1sAq5FLGOjd8O4phS1QD+N2O03w+d3xE4pNYCLA2aawTNxa XhXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GZVE6IiS; 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 g10-20020a1709065d0a00b006f39645649asi12315127ejt.639.2022.06.08.00.45.06; Wed, 08 Jun 2022 00:45:57 -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=GZVE6IiS; 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 S1381787AbiFGW34 (ORCPT + 99 others); Tue, 7 Jun 2022 18:29:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380830AbiFGVRB (ORCPT ); Tue, 7 Jun 2022 17:17:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6919A443C9; Tue, 7 Jun 2022 11:57:51 -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 CABC46156D; Tue, 7 Jun 2022 18:57:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4DB8C385A2; Tue, 7 Jun 2022 18:57:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628270; bh=8MKqyuteXsOfc+Xa4/v5pSDbjAuCsg3+b35G++XMffs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GZVE6IiSMYajTvbSLIQtCRInnCeqSaq+zZpkjpFA/8v7SX1rAl7/Z8516NnZEW78P 2doP8bcCEzA29i2mKgZwgJw5otmJqRQRVU3pgHuyWWTAudPeWsZhWPvx06m13ZLQkZ /e6cqHi4rGXyeeFxOZBfYLvqzY7irucPbT4+OSas= 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.18 241/879] tracing: incorrect isolate_mote_t cast in mm_vmscan_lru_isolate Date: Tue, 7 Jun 2022 18:55:59 +0200 Message-Id: <20220607165009.848671864@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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 de136dbd623a..e7d28dc549da 100644 --- a/include/trace/events/vmscan.h +++ b/include/trace/events/vmscan.h @@ -297,7 +297,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) ), @@ -308,7 +308,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