From patchwork Fri Oct 14 03:04:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 95 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp589950wrs; Thu, 13 Oct 2022 20:09:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Ds8zrlDK/3BdiH3DDH8glrlNAwWiJ3Jva0Hg/k3zETh4zhd4AYsIrQUr+UvxSHoXoddp8 X-Received: by 2002:a17:90b:2741:b0:20a:ebc3:6513 with SMTP id qi1-20020a17090b274100b0020aebc36513mr3346840pjb.29.1665716970217; Thu, 13 Oct 2022 20:09:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665716970; cv=none; d=google.com; s=arc-20160816; b=UkAII1O5IPlLvrZrNXEhCO/V34dBixAMDKLqo2N8uBGWoVgV3tNNAc7qSQ1qCks658 VWj+u3pb1YP678Zb1iXxVQJPOGZKRFaYQssmJZpWjoiXinn98jZAMIppdVvyL0gHTBxK yvJJEGFKlOiP8U/d96mIkObEg9DxC/1n8Hv8Fh96RrRimscRSB27KLkZNULVsvp0f5vn Y1qRADzCrP5fy/uj3Z/UVZjXsTrqTqZQ6+gv/vAWC9dv+xzTvEPFRJuGvTxm+XoQ1oPe 6yS/6r4tzocuR3m8O2kgszJ9Oq1nLD5RtVFBoHJRZ61wVt0XcxkYxF8KBtnzfkaeMdDi 7d5Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=lemonIT2i9irbh6afGuh6PT2jPBJsw1QwoI1ISVTS0k=; b=EJRqu3QKktiSHUrc1+Uci96WF0Bv/rSqrEKOvcRjpyxuws/CXZSmb2LoZ05aBk7+2W mpzpMxlqKMfTdKG/gifaOBl69hvDXZ+5+ZXVo/2ptxvQka6Bz7GD5fQH42u0OMlu7UCy eDu7hblhZWglQJ1GQYuJ8L1S9iZigX6sdPronwtf+bG1hq7J+/R3lrMzLs8L0nVK7lMs JqnDSB8K9xetwpdRRSlwszqVmi/IIB/9pkhaUrm8L8syhrnsdaEUggDN6IiaaqVT4+/M vA5AihHEol/ysPXhPz5Brfw1ed8zedi9rvTnFTp2e0FWGnsAwP8SocXCXQVNSvB2oX1i oCVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AuU4ynnn; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a056a000ccf00b00537d8aa3bc3si1365345pfv.200.2022.10.13.20.09.17; Thu, 13 Oct 2022 20:09:30 -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=AuU4ynnn; 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 S229803AbiJNDFn (ORCPT + 99 others); Thu, 13 Oct 2022 23:05:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbiJNDFW (ORCPT ); Thu, 13 Oct 2022 23:05:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 768DB4D263; Thu, 13 Oct 2022 20:05:13 -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 16485B821B3; Fri, 14 Oct 2022 03:05:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A928C433D6; Fri, 14 Oct 2022 03:05:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665716709; bh=ldowPF7sFqLiViXUTA/fAMmO4R830NHCzYAbu57HVXA=; h=From:To:Cc:Subject:Date:From; b=AuU4ynnnStqadUaXN9zHktRKYJfqFZauBtmPaTMnSe3bJHDC8TWgrBgTWQRbvR/Ka mRcQtf4gs2h76hMIroTt5zVGkFtwVLGJ3ewbbkPQBxv8W882/zNo8bzVG0xurOCSCD mG24ZDPeAssJonhlvIKe8FRyytOVIblGCUDY4sgdUJ+pNP3YAVxJurFF2K8aj5fCiT ygy/mB99fFIqgI+rh9I/2Fsxy834HitnrOkFAO+nOk/T+CCMkPLZCO/T2YyPDtCarG dzoe3h4f8wfwaGgh4csMD8EQx/caCOHVbTy/i82O5mK1anDv+DrJlyCi63w6BKudtv ExuZppoDS6qdA== From: guoren@kernel.org To: andriy.shevchenko@linux.intel.com, 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 Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Guo Ren Subject: [PATCH V2 0/2] net: Fixup cpu_mask usage Date: Thu, 13 Oct 2022 23:04:57 -0400 Message-Id: <20221014030459.3272206-1-guoren@kernel.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746630837967297333?= X-GMAIL-MSGID: =?utf-8?q?1746630837967297333?= From: Guo Ren Yury Norov repaired cpumask_check() in [1], which eveals the problem in other code. The series fixup them one by one clearly. [1] https://lore.kernel.org/all/20220919210559.1509179-1-yury.norov@gmail.com/ Changes: v2: - Fixup fixes tag in commit log with Yury Norov advice. v1: https://lore.kernel.org/all/20221013163857.3086718-1-guoren@kernel.org/ https://lore.kernel.org/all/20221013171434.3132854-1-guoren@kernel.org/ Guo Ren (2): net: Fixup netif_attrmask_next_and warning net: Fixup virtnet_set_affinity() cause cpumask warning drivers/net/virtio_net.c | 2 ++ net/core/dev.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-)