From patchwork Mon Aug 30 17:17:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Widawsky X-Patchwork-Id: 12465573 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87BF3C4320E for ; Mon, 30 Aug 2021 17:17:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6B31C60F56 for ; Mon, 30 Aug 2021 17:17:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234721AbhH3RS1 (ORCPT ); Mon, 30 Aug 2021 13:18:27 -0400 Received: from mga03.intel.com ([134.134.136.65]:52385 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237940AbhH3RS1 (ORCPT ); Mon, 30 Aug 2021 13:18:27 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10092"; a="218360685" X-IronPort-AV: E=Sophos;i="5.84,364,1620716400"; d="scan'208";a="218360685" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2021 10:17:33 -0700 X-IronPort-AV: E=Sophos;i="5.84,364,1620716400"; d="scan'208";a="427905708" Received: from lopezale-mobl.amr.corp.intel.com (HELO bad-guy.kumite) ([10.252.130.82]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2021 10:17:32 -0700 From: Ben Widawsky To: linux-cxl@vger.kernel.org Cc: Ben Widawsky , Alison Schofield , Dan Williams , Ira Weiny , Jonathan Cameron , Vishal Verma Subject: [PATCH 1/3] cxl: Fixed defined but not used warnings Date: Mon, 30 Aug 2021 10:17:24 -0700 Message-Id: <20210830171726.2342558-1-ben.widawsky@intel.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org This fixes unused-const-variable warnings emitted by gcc when cxlmem.h is used by pretty much all files except pci.c Signed-off-by: Ben Widawsky --- include/uapi/linux/cxl_mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/cxl_mem.h b/include/uapi/linux/cxl_mem.h index f6e8a005b113..1236dd9ffe23 100644 --- a/include/uapi/linux/cxl_mem.h +++ b/include/uapi/linux/cxl_mem.h @@ -50,7 +50,7 @@ enum { CXL_CMDS }; #define ___C(a, b) { b } static const struct { const char *name; -} cxl_command_names[] = { CXL_CMDS }; +} cxl_command_names[] __maybe_unused = { CXL_CMDS }; /* * Here's how this actually breaks out: From patchwork Mon Aug 30 17:17:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Widawsky X-Patchwork-Id: 12465575 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17C0AC43214 for ; Mon, 30 Aug 2021 17:17:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ED33C60F6C for ; Mon, 30 Aug 2021 17:17:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237949AbhH3RS1 (ORCPT ); Mon, 30 Aug 2021 13:18:27 -0400 Received: from mga03.intel.com ([134.134.136.65]:52385 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237944AbhH3RS1 (ORCPT ); Mon, 30 Aug 2021 13:18:27 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10092"; a="218360687" X-IronPort-AV: E=Sophos;i="5.84,364,1620716400"; d="scan'208";a="218360687" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2021 10:17:33 -0700 X-IronPort-AV: E=Sophos;i="5.84,364,1620716400"; d="scan'208";a="427905712" Received: from lopezale-mobl.amr.corp.intel.com (HELO bad-guy.kumite) ([10.252.130.82]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2021 10:17:33 -0700 From: Ben Widawsky To: linux-cxl@vger.kernel.org Cc: Ben Widawsky , Alison Schofield , Dan Williams , Ira Weiny , Jonathan Cameron , Vishal Verma Subject: [PATCH 2/3] cxl/core/mbox: Remove extra parameter docs Date: Mon, 30 Aug 2021 10:17:25 -0700 Message-Id: <20210830171726.2342558-2-ben.widawsky@intel.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210830171726.2342558-1-ben.widawsky@intel.com> References: <20210830171726.2342558-1-ben.widawsky@intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org Fixed "Excess function parameter" warnings generated by the CHECK stage of build. Signed-off-by: Ben Widawsky --- drivers/cxl/core/mbox.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/cxl/core/mbox.c b/drivers/cxl/core/mbox.c index 48a07cf2deb4..1b3335f5ed59 100644 --- a/drivers/cxl/core/mbox.c +++ b/drivers/cxl/core/mbox.c @@ -640,10 +640,6 @@ EXPORT_SYMBOL_GPL(cxl_mem_enumerate_cmds); /** * cxl_mem_get_partition_info - Get partition info * @cxlm: The device to act on - * @active_volatile_bytes: returned active volatile capacity; in bytes - * @active_persistent_bytes: returned active persistent capacity; in bytes - * @next_volatile_bytes: return next volatile capacity; in bytes - * @next_persistent_bytes: return next persistent capacity; in bytes * * Retrieve the current partition info for the device specified. The active * values are the current capacity in bytes. If not 0, the 'next' values are From patchwork Mon Aug 30 17:17:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Widawsky X-Patchwork-Id: 12465577 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91CCEC43216 for ; Mon, 30 Aug 2021 17:17:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7AB9A60F42 for ; Mon, 30 Aug 2021 17:17:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231890AbhH3RS2 (ORCPT ); Mon, 30 Aug 2021 13:18:28 -0400 Received: from mga03.intel.com ([134.134.136.65]:52385 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237940AbhH3RS1 (ORCPT ); Mon, 30 Aug 2021 13:18:27 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10092"; a="218360690" X-IronPort-AV: E=Sophos;i="5.84,364,1620716400"; d="scan'208";a="218360690" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2021 10:17:33 -0700 X-IronPort-AV: E=Sophos;i="5.84,364,1620716400"; d="scan'208";a="427905718" Received: from lopezale-mobl.amr.corp.intel.com (HELO bad-guy.kumite) ([10.252.130.82]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2021 10:17:33 -0700 From: Ben Widawsky To: linux-cxl@vger.kernel.org Cc: Ben Widawsky , Alison Schofield , Dan Williams , Ira Weiny , Jonathan Cameron , Vishal Verma Subject: [PATCH 3/3] cxl/docs: Remove undocumented references Date: Mon, 30 Aug 2021 10:17:26 -0700 Message-Id: <20210830171726.2342558-3-ben.widawsky@intel.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210830171726.2342558-1-ben.widawsky@intel.com> References: <20210830171726.2342558-1-ben.widawsky@intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org When the core pmem and regs implementation was added, there were no structured comments added. This change allows docs to be generated without warnings. Signed-off-by: Ben Widawsky --- Documentation/driver-api/cxl/memory-devices.rst | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Documentation/driver-api/cxl/memory-devices.rst b/Documentation/driver-api/cxl/memory-devices.rst index 356f70d28316..20e177fab487 100644 --- a/Documentation/driver-api/cxl/memory-devices.rst +++ b/Documentation/driver-api/cxl/memory-devices.rst @@ -39,12 +39,6 @@ CXL Core .. kernel-doc:: drivers/cxl/core/bus.c :doc: cxl core -.. kernel-doc:: drivers/cxl/core/pmem.c - :internal: - -.. kernel-doc:: drivers/cxl/core/regs.c - :internal: - .. kernel-doc:: drivers/cxl/core/mbox.c :doc: cxl mbox