Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp198305iob; Wed, 11 May 2022 12:24:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsdY69WiuwRUfhOW3GVxz11P4kZ6VpJS5r8jx9CLdOy6jrKSxSmTAb0BRuUoF4PEqKHELt X-Received: by 2002:a05:6808:e8c:b0:322:4b82:d33d with SMTP id k12-20020a0568080e8c00b003224b82d33dmr3396696oil.21.1652297048355; Wed, 11 May 2022 12:24:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652297048; cv=none; d=google.com; s=arc-20160816; b=qaEhEQ8TBIXE8urzpkMGEYqGIxdmkgBt/ZobRAFSw4zsmISXiwXLqnnDUl28aBuLUD lypXbT84kr9t7Z8ItbdfR6QUtLX2yWOsVg3s/xpM7QiR1c3U/00EKbx6+2UaW0wsnNYU 1UhKhkZW43ukyu6Rj6xxslE2NODANcJ4ce/x0wSXdFcoSSf9UUK9YFrUq/KIZbN4vD77 /g9+3P41w84iFEuwoHGagyiNWBHopCHz2ytU6fm9PktIhhYzAn34ispuD1IeoS3zmTZt c7cZTp6YfZFAQH611lLf1oSiX648xEeQhOZTPph0bK9s85an53ucq0OuXCbpeX6IMsbC pzGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language:cc:to :subject:from:user-agent:mime-version:date:message-id:dkim-signature; bh=WHZoD4vvX9VyNiaR95wWgtu4Xn3fEVjHGLKQ6WEC6Eg=; b=VTYpnMx8Sr/5vyhjrTd28xXkcKb8Dtchzp3i11TP6GoeNOOp+EHR+gq8qYzS1nkfIV WHsoteFZBZ5Jm1A5p52Har5bi0EqoKRGYJhrn3GULODSLhZaBrHFW4wWvRaLJyq9dyQ2 2X2iXhLi6C1viGAj1YFVny8F1EEBZNaylfL8uEH8pit66eYmDUrpjsrJxq1Pffb1gOHK RKhBz14s0lIsKrScyq9nfbKXS6M9XiWVq5sg0vB9osVEDvmpS6jDgLNeftOwLVLlGA3/ 6SN3gQdkoSQppBLpXPrkvHl1TWqGlj7mnfHp+qqou4EpRF2OMgGnmroLh8Gul5uXXl+N fx5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=g9SsvUoB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=openvz.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a056870d58300b000e90110f942si3157711oao.48.2022.05.11.12.23.53; Wed, 11 May 2022 12:24:08 -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=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=g9SsvUoB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=openvz.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235275AbiEKJrE (ORCPT + 99 others); Wed, 11 May 2022 05:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236182AbiEKJq7 (ORCPT ); Wed, 11 May 2022 05:46:59 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07A112B1B9 for ; Wed, 11 May 2022 02:46:57 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id g16so1878047lja.3 for ; Wed, 11 May 2022 02:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz-org.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject:to:cc :content-language:content-transfer-encoding; bh=WHZoD4vvX9VyNiaR95wWgtu4Xn3fEVjHGLKQ6WEC6Eg=; b=g9SsvUoB+GmiIOh0IKTIcEseW9w4TeMEkNh+KjPytdfqUo2MV/bSDsAGbgdGOhBoWU Ttu7o4qLG2nkA8A2g7AcZbRkTERO3MZdkv1hhD+mWxK426uKRHv/OkrKUO4gjrdyh8Pm XIpBhRXa4Hr8/UYhW3jbR5mIgg6hmtK5l98oDTQJk+auR4D+BwmBkhvT8J9eBaaZHCbM bzC7DHTrJM4kZTEMKL3CBeM+zNtVtimCM2TQzCeYNzzIgBcSnRUfPKku9ahhNIPlwFzU 6KFWklX7985o5S9GmmIu/AB7E3UyGS0FPV1tzNJPCLqaBfp+xu5INiPSxRnYL7fQ0jvg K0OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:cc:content-language:content-transfer-encoding; bh=WHZoD4vvX9VyNiaR95wWgtu4Xn3fEVjHGLKQ6WEC6Eg=; b=5EEwHl+ULGcc4HwkfDsxZvfFZL8+mOJOnU1rOVEQTZUCFuOsMMKNaTV/UpmyIgY3LA VFqI4vMbZiykkGjdnE92150qCO3+obO1mUREp4WxAC6NpWMPw9g/P+Chs4Uln6AT42d8 pzYz14W0uRb2557QzFQuCLUVnMWg23DpPkxqO8axO1K5AJ16z/p3nAwSNDMYY8V55lMW 82+TJyfyy9l1S0Sf0gW32V12ck3gWbh7A5SoPFu6ocEbYnnhyQb7Wdbhs+nsGMQ/AM5f OJ2EgxBzelUYasqObTDTQjUOkaEskgHemd7IYDHyJQnqlEfsW9uiYFJbE8Ss3k+9wV8J Vcqw== X-Gm-Message-State: AOAM531jTj4tE6Cuq93l6DyCqXZYY4nE3yWgrzFs/jhoNC5yZ+6wViOW bodzgy24FmG7FB00lwrnRsswOw== X-Received: by 2002:a2e:8e84:0:b0:24f:1d40:ceb0 with SMTP id z4-20020a2e8e84000000b0024f1d40ceb0mr17007899ljk.292.1652262415349; Wed, 11 May 2022 02:46:55 -0700 (PDT) Received: from [192.168.1.65] ([46.188.121.177]) by smtp.gmail.com with ESMTPSA id q6-20020a05651232a600b0047255d210d5sm206379lfe.4.2022.05.11.02.46.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 May 2022 02:46:54 -0700 (PDT) Message-ID: Date: Wed, 11 May 2022 12:46:53 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 From: Vasily Averin Subject: [PATCH mm] tracing: incorrect isolate_mote_t cast in mm_vmscan_lru_isolate To: Steven Rostedt , Ingo Molnar , Andrew Morton Cc: kernel@openvz.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 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 Signed-off-by: Vasily Averin --- 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 408c86244d64..d2123dd960d5 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.31.1