Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp385726rwi; Fri, 14 Oct 2022 03:32:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Z6+NlHL9KOAa2zU6Tb24DQgtSWf5nAsTo1HIU+ICmaqpZV55KyRWgv45ezvTGOpj7onGI X-Received: by 2002:a17:906:9c82:b0:781:5752:4f2b with SMTP id fj2-20020a1709069c8200b0078157524f2bmr2900196ejc.561.1665743525163; Fri, 14 Oct 2022 03:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665743525; cv=none; d=google.com; s=arc-20160816; b=L9e6uyu8j5iuWoMfQat6UYvvCHIBIaTu9/ubwei3DYI20zIhJFV+DmU5685QTtxWXo qo0xqFBhS6WCI6ncxtEY65zbPHxJO492hps6Wpy40LKaW2SE9cxo/cV2Q5Dd083s6PAA 8gTSkkXJ+wociAyhZKNGnI5WNhsKF7GtePcdAZax65J5VIEpFJYHwVDqgQfbqT+m/utf XMmHUTxCSO6w9vT3K7c6Rw0IrF8O2DHiGUvqBPBqxW1Y1H5RaZuGllAFnw54jAzhdBp5 9hNHMIfiMYPp7UWXh0L0HEMixY3UmP5HWdzKjcs/Kf81vN9kUxGECWbctlIrLBdEuxGw Iykg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CDyF6hP2L8+XKYeM6qmy6QjrW7PqWWU7k2rP7p+DWuk=; b=YR3NGAo8raamWNFLfrPdEtqsNFWaXKfBZyfyU/+MztmaI2/OCud0ULQS10av4IK4DC 3jUiuVGU4oE6UVnUSgdUvrKkGcAPQCPWxFhOLb0AbI5yk1biXbQ6861OFYVoyIymsIhQ 49RDuF6vuFba+Ij+q1rjGpmnwVN+SIXmGMk7FWdWjOQoOr9UgSZJ3ArV6DGweBvFOBwx 27zCoT0Ec132Sb9h3rGXXnWfe54SASn6FZNEMZzf0rgBFeNI96mnx2tsS+m8dzuYOEot a4vuciEAwYA1RWjUoMu6hDeo3tA5XCy4ajDqGIADPs4/ajDE3NCPQS2kva0N3nAdzJ6R I9Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bFVraoR+; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h25-20020a056402095900b0045901fa87a6si1719765edz.449.2022.10.14.03.31.38; Fri, 14 Oct 2022 03:32:05 -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=@kernel.org header.s=k20201202 header.b=bFVraoR+; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbiJNKFT (ORCPT + 99 others); Fri, 14 Oct 2022 06:05:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbiJNKFQ (ORCPT ); Fri, 14 Oct 2022 06:05:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79CFD4DF13; Fri, 14 Oct 2022 03:05:15 -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 E6E37B82214; Fri, 14 Oct 2022 10:05:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 977DBC4347C; Fri, 14 Oct 2022 10:05:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665741912; bh=kQ6GsrFoYb1xxcIqX5jvTD5g30h+H0/nMu6gMa3iuhQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bFVraoR+KBZlJMiW6OJVjKdA0qNbVdmvSKet627k8vi7WE3zkwz9rEzsWlwYCyLRP Vmzo9KzbyzclaeFyD9TjL2pJDFziWCr3G85oYE++ednWJZbakyDB4mZ8aPvv81ABAL iXw7ZMOon0ucQgdC4hwFkMGInljPH6jJatptCt3H4UvbHQlbrUo16g+iIIXH8A+ufs juNx8mE7h6CwGRQUEG8KFDpCdBqHfqyVy6dyO98N5104xOVjNAiNc/KTWP6uoSPDQi TvxmwTQ7jAbzwhmn+WfiyBPyPDsMX4ehQEnk178w0tTzDqll3TUAW2YNXfJsRx/xkh TBeKfB/RWB8Pg== Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-1370acb6588so5269316fac.9; Fri, 14 Oct 2022 03:05:12 -0700 (PDT) X-Gm-Message-State: ACrzQf1tmrkcmE02EbHA0iUh8OglZLgcY2uEGFqD1mQuU6bnJh558yuA zPMoMGdaX5PB5Mx7eG8A7YIMQspBorTCC8nZDkY= X-Received: by 2002:a05:6870:4413:b0:136:66cc:6af8 with SMTP id u19-20020a056870441300b0013666cc6af8mr8050336oah.112.1665741911827; Fri, 14 Oct 2022 03:05:11 -0700 (PDT) MIME-Version: 1.0 References: <20221014030459.3272206-1-guoren@kernel.org> <20221014030459.3272206-3-guoren@kernel.org> In-Reply-To: From: Guo Ren Date: Fri, 14 Oct 2022 18:04:58 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V2 2/2] net: Fixup virtnet_set_affinity() cause cpumask warning To: Andy Shevchenko Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux@rasmusvillemoes.dk, yury.norov@gmail.com, caraitto@google.com, willemb@google.com, jonolson@google.com, amritha.nambiar@intel.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Guo Ren Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 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 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 Fri, Oct 14, 2022 at 6:00 PM Andy Shevchenko wrote: > > On Thu, Oct 13, 2022 at 11:04:59PM -0400, guoren@kernel.org wrote: > > From: Guo Ren > > > > Don't pass nr_bits-1 as arg1 for cpumask_next_wrap, which would > > cause warning now 78e5a3399421 ("cpumask: fix checking valid > > cpu range"). > > > ------------[ cut here ]------------ > > WARNING: CPU: 0 PID: 1 at include/linux/cpumask.h:110 cpumask_next_wrap+0x5c/0x80 > > Modules linked in: > > Submitting Patches document suggests to cut this huge warning to only what > makes sense to see in the report. Okay > > -- > With Best Regards, > Andy Shevchenko > > -- Best Regards Guo Ren