From patchwork Thu May 25 09:16:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98916 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp227082vqr; Thu, 25 May 2023 02:23:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ48/isK1g9j+c2Fi41ZhFpweEVUfipFk0CWZcyXUNmXr/6l3pdHsDy3dkX8W+V8GMVT7paB X-Received: by 2002:a05:6a20:3d21:b0:10c:6956:a23c with SMTP id y33-20020a056a203d2100b0010c6956a23cmr2050888pzi.25.1685006611597; Thu, 25 May 2023 02:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685006611; cv=none; d=google.com; s=arc-20160816; b=myRQxosDYFoNOCJebKdYlyBYheVxOLf7MZtut+1kNrgh9Ffenx9O4psOlMFs4efEUX 39F3UuOfAnXHWYHdBpWIYtkkkwvNoOeilK44aXqTJFHuU6rZkhPYpHF3MM0+EWmFqc0y mAKe4zJQ7T+1HkknvuHPLH/zDanUN0kLW+OmIJtrCAn7gzI4gNW5Yqpdwz5QxZ8a3PKW Vk4huakcBbGnd76Zf/m7/z7iyH/AAJ3JwtPlLjCJ5Qc99CR1dCanviMsNVD0A2errI3n 4hdCt8d3GQur78bZiqR2l1Vost82lLAc1S63Sc8UXohBkCzEHi7o98QHBm0Vh5qleGmi njwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=S/j7dhgF+yChbiyZsSWilek8Pm/dPvu5ZdRAKQ8Bcm4=; b=MBW2JXaYCP54h9eXVwEKHC8sfRz4JRCYqkVmruslU16uOOMrEEzAhp+d2HpeAUYfH4 J1bXUNs8qOf5KvH8ffan8x12BzlrMUbJxjsKoA39LhMrJW/nLCqmfeATX5+PEGqIIX58 lc7GMNyXhC/RxE/3hB5l4+zyU/cguoU9Yowr2uvE22xMDvRzvgx6R1bskAG7C3+ifk3R e7DsNO2sV/VBFdqiiJr4MeGfCUTEzyb5rVeDaZBeWXjQnzU2vf+gYGxXToqwFjDQaBQm F4aqIjNwx4iCH36/eXMpKB9Pwk6QPw3DdzDkxDbvyjMoE7utDhUpO/wRLSw8v2k1tdEq K4sw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h193-20020a636cca000000b0052c8234a858si716583pgc.168.2023.05.25.02.23.18; Thu, 25 May 2023 02:23:31 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239303AbjEYJQp (ORCPT + 99 others); Thu, 25 May 2023 05:16:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbjEYJQn (ORCPT ); Thu, 25 May 2023 05:16:43 -0400 Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A04EDA7; Thu, 25 May 2023 02:16:41 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VjRf0H8_1685006198; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjRf0H8_1685006198) by smtp.aliyun-inc.com; Thu, 25 May 2023 17:16:39 +0800 From: Yang Li To: agross@kernel.org Cc: andersson@kernel.org, okaya@kernel.org, konrad.dybcio@linaro.org, vkoul@kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] dmaengine: hidma: Fix cast to smaller integer type warning Date: Thu, 25 May 2023 17:16:37 +0800 Message-Id: <20230525091637.62315-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766857492709037581?= X-GMAIL-MSGID: =?utf-8?q?1766857492709037581?= Fix the following warning: drivers/dma/qcom/hidma.c:748:8: warning: cast to smaller integer type 'enum hidma_cap' from 'const void *' Signed-off-by: Yang Li --- drivers/dma/qcom/hidma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c index 344525c3a32f..0165e2fa7be4 100644 --- a/drivers/dma/qcom/hidma.c +++ b/drivers/dma/qcom/hidma.c @@ -745,7 +745,7 @@ static bool hidma_test_capability(struct device *dev, enum hidma_cap test_cap) { enum hidma_cap cap; - cap = (enum hidma_cap) device_get_match_data(dev); + cap = (unsigned long) device_get_match_data(dev); return cap ? ((cap & test_cap) > 0) : 0; }