Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5642098rwl; Tue, 4 Apr 2023 01:11:49 -0700 (PDT) X-Google-Smtp-Source: AKy350Zyz96avURd8Re+MXsiw/9aw7tU3YkjYY3DrbZU6sHCvGbpnzBV+Glucr7dcN7phSAaOlq9 X-Received: by 2002:a17:906:7c53:b0:932:da0d:96ac with SMTP id g19-20020a1709067c5300b00932da0d96acmr1543810ejp.10.1680595909200; Tue, 04 Apr 2023 01:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680595909; cv=none; d=google.com; s=arc-20160816; b=aZb8A+alSTHr1rrjBP92nVyn4xEE+5Nj8uiXVlDlyVzdDxSMqZF3QbDR433hcvI0e6 QFtoL0HXfSj5H3G+k/Q9pfsiWtqqy458vemTgv73q2hTSFxZlLHNmUuMc3qFQd/D0vB9 tNgfS8WbZy7EqYRVK/h+xc2HqOH6biyU6IKFpLa70yhSgPSubeu+nKInnb4ByOGoQb6M gLFhm+tDyKnrP3nqhEj+M3Dv2oFPY1XiJfCFbCtg8ymTvicag03LjkbdUODyxEtgE9hO Ev3nsDBdHzRrTKg36wEgUTvhD0eQAvpXDDh2EGRLdken8Cfp2RdGTvQDt+xFtHZjjppZ X6cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=idHC4X2AaNfRXIqOZXtg6LSTY0J0XqeXxf0Fpo5TsJI=; b=O8vzGmNqi7A7ZEEhtwwcGrfDeJe7h6Jog9+iI1vWfxPjhIbjNi9n1cYBhxZIGBiN9H EOfcqaE8rVMRACyjlp913m7c5iaXs/sLACebnKbIWZlkpPPTuLQZOOMNoE89WfxLUQOH FP2QdE7b2NRRslqU6w2S8euE7Bm3oEiVODqx58T/qnP9jawZgFUQafmAmQ9P/ZntY12A SMAhM0vCYCAHutSn5qHhL1iT9AUB9e1HsJeVJns6gRLGzBaEM+AzYQU6OL8L10Pa2nM/ CYkIdElHaHr5To4NL1g+xy0nYkIJ7Mpk+DmfQ/2uQOsQRCavWiBIPqIImgCFCBiHVnAv wZLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eRNZbNUh; 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 oz10-20020a1709077d8a00b0092be625bf1dsi213612ejc.826.2023.04.04.01.11.24; Tue, 04 Apr 2023 01:11:49 -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=eRNZbNUh; 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 S233972AbjDDICz (ORCPT + 99 others); Tue, 4 Apr 2023 04:02:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233823AbjDDICx (ORCPT ); Tue, 4 Apr 2023 04:02:53 -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 01F67198C; Tue, 4 Apr 2023 01:02:52 -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 8E1A260FC6; Tue, 4 Apr 2023 08:02:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E034C4339E; Tue, 4 Apr 2023 08:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680595372; bh=BGeGIQ/3c78hfuaB5DICgCXUcGmxYE4MIbvJjF1qb8Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eRNZbNUhOFRuWn4bTNIqS9wIWfUp2DGUXHa2/3OGdsWmywF0rJ6Aw9eYShJmaqhca rH3vPtrhnMzrJUm3WhyKe+khwAQXynw/2il1l6jGAwpAeWvucDb//TZjEJuilQP94Q aQGUdRO847d91Y9UQxyNrJaOupAh8OwRdDDC2NxK6/VZfBbLN1aGsp1uG9owME8utq hnMSSL104QWRMDaHti61iCPt1wVpvORNNy8+Qc1VOBJdawSWWApxLvg9Qn8oMkgRuo IFMEkP2xBrQ8Oatiy51JrM98md/eamhUSijvxW12/wK5xI9lhdLXCArpueR9g7khEu 9i/pGTQQzlxrA== Date: Tue, 4 Apr 2023 11:02:47 +0300 From: Leon Romanovsky To: xiaolinkui Cc: dennis.dalessandro@cornelisnetworks.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Linkui Xiao Subject: Re: [PATCH] RDMA/hfi: add a judgment on the availability of cpumask Message-ID: <20230404080247.GI4514@unreal> References: <20230404030525.24020-1-xiaolinkui@126.com> <20230404060522.GH4514@unreal> <940e1807-7e89-4de0-ee69-9346d231a59f@126.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <940e1807-7e89-4de0-ee69-9346d231a59f@126.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,PDS_TONAME_EQ_TOLOCAL_SHORT, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Tue, Apr 04, 2023 at 03:01:58PM +0800, xiaolinkui wrote: > Thanks for your reply. > > When CONFIG_CPUMASK_OFFSTACK=y, "ret" will be false if diff==NULL. > > However, when CONFIG_CPUMASK_OFFSTACK=n, these two are not necessarily > equivalent. And what is the problem with that? cpumask_* API is built to handle correctly this mode. Reminder: please don't top post. > > Thanks