Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3052089rwj; Mon, 19 Dec 2022 12:18:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXuYLPq/fDiMFR6IGJB436uxlz93oQRKn3OLi20Z1t0BChi3LTKzKmR6kHLiJLRTg0v9tPn0 X-Received: by 2002:a17:902:eb8f:b0:191:1545:a652 with SMTP id q15-20020a170902eb8f00b001911545a652mr9330539plg.31.1671481106090; Mon, 19 Dec 2022 12:18:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671481106; cv=none; d=google.com; s=arc-20160816; b=nTUUX+KNrJQ5C/rELBWllTDqJ1W9SdR6IfpWmCXWY0NElXqZfJJXGRSkLUhpvAsFJj oHvs5s0zyMaZeF3WRQEjayHpavRQicFnfpqvwRo9HZqrKKi9IB5H/gk8EYiMzXmlkmsI sSr8oZClW+G9ttbRDrxG8lfubrON7pQpCiNXQfiWR6TgD88bAWXPb9MxFU5MtN/aIstU ZDG0WO/GUWSHuX9CHyFOZKO18msFTZq2viEZ7VDoSGwoaMhPik3je7dQq59GoGNwdSRJ IbGkIUOwm6lDooqMemB0tAStOPSwI2JTUXi+6iCLEiez5nXnqIDX3oAfiDRGyR3YEsC4 4Ffg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AlvpYVcs/x5S41hvTdL+jGslAuM/L8CEpzIkpPoNAWg=; b=xwPwrOjuwnDgdbisNKRsf4Jc3xYM9z+EIIqBO4OMLfG0TqyYlOrBARjltuEwRIDxul 1ie9U41gJvyf2bbRaUcMTxmLpr1Z0M6vALLa9Z+M6VyOcFGsjGUsDBFqpVTM1LOLh5Kx O+Ni3LAqKLO2FgexIZvJ24YD2lBenUifLrcV/7sm83M3u94PdhZkgcuonazxYNhfsUEc r4Pfq1NFVirkHfuc0KZakh1yzX8amFcX13toRFzb6YWPbc+8c3rlKKS6Bj0xX3HtIY78 4g8CFFy3U3+WfT2caUtOnTjGSkU+pDXeGc7wz202At3YX7e1Hsu/locBnzMVFVcljSeR Wd9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=dJCjhk4s; 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 a9-20020a63e849000000b00478d43abd0dsi12053877pgk.248.2022.12.19.12.18.16; Mon, 19 Dec 2022 12:18:26 -0800 (PST) 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=@infradead.org header.s=bombadil.20210309 header.b=dJCjhk4s; 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 S232299AbiLSTvI (ORCPT + 70 others); Mon, 19 Dec 2022 14:51:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232268AbiLSTu5 (ORCPT ); Mon, 19 Dec 2022 14:50:57 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33B50D117; Mon, 19 Dec 2022 11:50:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=AlvpYVcs/x5S41hvTdL+jGslAuM/L8CEpzIkpPoNAWg=; b=dJCjhk4sC2g9tG/uSFGrtuUSwT HpWlXFxcvqRPHdwpBloZNZCHHWvGC8YbVA8mvQV8jemQxEKUQ6kOqbprKjiLBy/ViaDyDBgYaXK6G BRgbXJFPm+eMP5jakYxWtcyLSqPcJXKk9Uo23YtoPncW24C7uR4V/Fz+RIeWtwWKHlKPiFNjTFYmL m5vH7dqxWiF2TdHKoxaxj8DttEJNEtTo66QLMpg7HEkKVG/FsNScjTx9Clhtw8WD1SmvgKi7wrbll tndVgcSmX8Ccefc5ySuASy7SOTR4tqHaMKJ566kDPhWZICTcysJ5rYNj9q07TnB4nHZ6TUQUFXd3Q ZqLlIbMw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1p7MA1-001MzD-2K; Mon, 19 Dec 2022 19:50:53 +0000 From: Luis Chamberlain To: alison.schofield@intel.com, vishal.l.verma@intel.com, ira.weiny@intel.com, bwidawsk@kernel.org, dan.j.williams@intel.com Cc: dave@stgolabs.net, a.manzanares@samsung.com, mcgrof@kernel.org, linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cxl_test: require 64-bit Date: Mon, 19 Dec 2022 11:50:50 -0800 Message-Id: <20221219195050.325959-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 size_t is limited to 32-bits and so the gen_pool_alloc() using the size of SZ_64G would map to 0, triggering a low allocation which is not expected. Force the dependency on 64-bit for cxl_test as that is what it was designed for. This issue was found by build test reports when converting this driver as a proper upstream driver. Signed-off-by: Luis Chamberlain --- tools/testing/cxl/config_check.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/cxl/config_check.c b/tools/testing/cxl/config_check.c index c4c457e59841..99b56b5f6edf 100644 --- a/tools/testing/cxl/config_check.c +++ b/tools/testing/cxl/config_check.c @@ -7,6 +7,7 @@ void check(void) * These kconfig symbols must be set to "m" for cxl_test to load * and operate. */ + BUILD_BUG_ON(!IS_ENABLED(CONFIG_64BIT)); BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_BUS)); BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_ACPI)); BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_PMEM)); -- 2.35.1