From patchwork Fri Oct 28 20:48:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Walker X-Patchwork-Id: 13024291 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 B0D57FA3740 for ; Fri, 28 Oct 2022 20:48:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229945AbiJ1Usm (ORCPT ); Fri, 28 Oct 2022 16:48:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229838AbiJ1Ush (ORCPT ); Fri, 28 Oct 2022 16:48:37 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2049123AB6C; Fri, 28 Oct 2022 13:48:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666990117; x=1698526117; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cV0R+8GoIkGqd7y8oYhqM5PrpbnhFRPNwiSxTQR2btQ=; b=j+g714N+mVYs5CT/uBi6Wav7bPUucsbAPRdt4ynEASqh5ys+sPwQ+249 TxQQKHHPhlZbDjJDrbWp3d5zNdV4/i6LnWKqh3Mv/4oX/CJPxaJmGwF3f ILZpijgbyvzNyfIiop62/wT7lGygswV0F6G9xXwlJTlf0WdNxGIolgb5m /PRZme6eCYY8bte6rEiS6hTTsIdepw3GQEQqzNcrOeviDdigxwLFmNpul ZyrYqLUCNlfzcfXPDxSXLsfU3m3xIXKmRip1XH6FHN4WbeRgPII5lmpvX VD7vlpEFGiLIT2/ENcxmXKLqNYsVaMdulQKHcsJwmE/gr6ihW4uUmsPxK Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10514"; a="291885122" X-IronPort-AV: E=Sophos;i="5.95,222,1661842800"; d="scan'208";a="291885122" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Oct 2022 13:48:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10514"; a="962159875" X-IronPort-AV: E=Sophos;i="5.95,222,1661842800"; d="scan'208";a="962159875" Received: from bwalker-desk.ch.intel.com ([143.182.136.162]) by fmsmga005.fm.intel.com with ESMTP; 28 Oct 2022 13:48:36 -0700 From: Ben Walker To: vkoul@kernel.org Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Dave Jiang Subject: [PATCH v6 5/7] dmaengine: idxd: idxd_desc.id is now a u16 Date: Fri, 28 Oct 2022 13:48:10 -0700 Message-Id: <20221028204812.1772736-6-benjamin.walker@intel.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221028204812.1772736-1-benjamin.walker@intel.com> References: <20220829203537.30676-1-benjamin.walker@intel.com> <20221028204812.1772736-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 Reviewed-by: Dave Jiang --- 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 1196ab342f011..d9096dfb27422 100644 --- a/drivers/dma/idxd/idxd.h +++ b/drivers/dma/idxd/idxd.h @@ -333,7 +333,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; };