From patchwork Wed Jun 22 19:37:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Walker X-Patchwork-Id: 12891436 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E875ACCA47E for ; Wed, 22 Jun 2022 19:39:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359490AbiFVTjG (ORCPT ); Wed, 22 Jun 2022 15:39:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359854AbiFVTih (ORCPT ); Wed, 22 Jun 2022 15:38:37 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CD4517E0E; Wed, 22 Jun 2022 12:38:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655926714; x=1687462714; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=b2jYdUokYSrhLLJ65hnYCKypoanrr8xEmX1WraLh+kI=; b=XhWTImSyKzEAZGaufTfISFbQHCzPjilYzwtGxHs900QtUjUVMODUUHeG 1PUiqDCtUIy24S4z57oVkFEIoqrRRLKUjmXaEAGgf4m7X92VRLvGXXfAF Tztqkdd4usw9EBtqTULzA9SECMux5CzDoKZYQFkkr3rXNDm2ra1cLcGOb vTBG5/gqpeXV9iVzobqAPjeS2bNIwBFI9+frz/YH/l3fuNzcxEHvQ+68U zhB8+xDXVFuMcgSEELWEEb8wmCJtItXCiazFU//eLywKbHUCS9xTM/+kp jQPtG8nbIkUZ7EFt7HOcJnyyyfp9wlznBm1+qdh+LPYVXmZHG4gw5ZBef g==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="305983112" X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="305983112" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 12:38:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="715542104" Received: from bwalker-desk.ch.intel.com ([143.182.136.162]) by orsmga004.jf.intel.com with ESMTP; 22 Jun 2022 12:38:33 -0700 From: Ben Walker To: vkoul@kernel.org Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 13/15] dmaengine: idxd: idxd_desc.id is now a u16 Date: Wed, 22 Jun 2022 12:37:51 -0700 Message-Id: <20220622193753.3044206-14-benjamin.walker@intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220622193753.3044206-1-benjamin.walker@intel.com> References: <20220503200728.2321188-1-benjamin.walker@intel.com> <20220622193753.3044206-1-benjamin.walker@intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org This is going to be packed into the cookie. It does not need to be negative or larger than u16. Signed-off-by: Ben Walker --- drivers/dma/idxd/idxd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/idxd/idxd.h b/drivers/dma/idxd/idxd.h index fed0dfc1eaa83..bd93ada32c89d 100644 --- a/drivers/dma/idxd/idxd.h +++ b/drivers/dma/idxd/idxd.h @@ -325,7 +325,7 @@ struct idxd_desc { struct dma_async_tx_descriptor txd; struct llist_node llnode; struct list_head list; - int id; + u16 id; int cpu; struct idxd_wq *wq; };