Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1247289ioo; Fri, 27 May 2022 04:59:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUgvua4zNWuM4iky3dzFKURh2JvEpN3We6S2TbztM8I8zcbWrYH6I3Nv5shWZYeSkLKCdY X-Received: by 2002:a17:90a:2c43:b0:1e0:b3fe:1bf5 with SMTP id p3-20020a17090a2c4300b001e0b3fe1bf5mr8019000pjm.27.1653652754572; Fri, 27 May 2022 04:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653652754; cv=none; d=google.com; s=arc-20160816; b=e2y2NYebRKMePqBkwPaKFimcvdhLrZ4yO+JYa+YQaUkNGMn0C/wRNn18ORcPFJyZtt flYDo/+vtL2Ww1ES0s44Xw9977k4NvmgUo4hY2Y4ysTnCSzrBdsks9el2peA4lOjTZhd +YGHqDUdSLVXt6L3FDu6xQquuMr8UpwQXtuoMTSKeERpV/1SG8tas3iaj0QenZ222ZGq TCnWgXhcuomwkBTpRAu0+KsRdQlrMqZVlj85wiTR1DW05K/OG2UGcXR2qahYbkgb70Rs KOSgnYcKsDaLx6pzQfJ6iBI/CIWW+kjQwp6ls+UBLsrB7qu2tkapYQxdbIlLQGxkNsDB vlZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GCV+ZfmYFqtovC/BgJ+aeYpdKNCUaYqxU2OU5wMxXWY=; b=1A2zX3vLLxHJqZou4uxeutLRWR1Tgo/yqSLPHqAQAiszeL8AFsaqAfwruptklu1EzG vShTPsapYITqO7iVnOIWi3WTceoYyLgKeejoapLTQVXfANnL/LNM7KAKicf9lwqwxaX3 S3NzmcC7826n7EOPi+JaTBGPz8xfKrk0WwXG0SZ9zxcwMqqJtE1Q0p/fFMwZI1gCr0sy wsbQlAMPfywZjh5NpW3Ix/GEIKACxu7kMMdcXfYo2/hrnxJI8hLxKvEuVWMED0D/pYzo XYrrwrJqRHwIiSOVNY6I57hLAf/ZsJ5lnJ5lnAc9JSZbx6UUqt92WG0SF5MuiwUB/za6 Xerw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N81Te+SF; 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 q9-20020a056a00084900b0051829831f15si6322299pfk.95.2022.05.27.04.59.03; Fri, 27 May 2022 04:59:14 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N81Te+SF; 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 S1344549AbiEZAiv (ORCPT + 99 others); Wed, 25 May 2022 20:38:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344494AbiEZAit (ORCPT ); Wed, 25 May 2022 20:38:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75C4412A86 for ; Wed, 25 May 2022 17:38:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0FBDA61699 for ; Thu, 26 May 2022 00:38:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09E87C385B8; Thu, 26 May 2022 00:38:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653525527; bh=mcqnCN2YBvUwzyeX7k9K0peIxzEFPkn3xDeteHBJrdo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N81Te+SF1DaTNUMLBN4mZrqMfFtVaNu04yzxkWAlTPTkjjB2gjrpRj4YiUOUG2C9s wVOIhua2ME2fPtnqKDcwdZRp7/toRuiOBEgYWx4yfRor4GbFQhNwSsgZ2baz26jZ0/ KqNpbrO/hogCJiuGrST8myIByIeIz52S387T66zjv/KgCiLaCXWTxnbPwLpWDr0PEs zOehz4xfU646b/yq2Q47pM3yfoprinh8TG5y/4ArXluhF2hfpv8nmOrvBtVvQ7bLWC 8nf1S1iLaIkPcmLl9wWRXx6wgzMUAbQXC2kLwWp9fb7IkzLsIxXKJFXd9ee9tf44w0 XaYPLwyZb1QjQ== Date: Wed, 25 May 2022 17:38:45 -0700 From: Nathan Chancellor To: Fabio Estevam Cc: kernel test robot , llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel , Vinod Koul Subject: Re: drivers/dma/imx-dma.c:1048:20: warning: cast to smaller integer type 'enum imx_dma_type' from 'const void *' Message-ID: References: <202205021042.xPjJ6Z4J-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Wed, May 25, 2022 at 09:14:30PM -0300, Fabio Estevam wrote: > On Sun, May 1, 2022 at 11:13 PM kernel test robot wrote: > > > > Hi Fabio, > > > > FYI, the error/warning still remains. > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > head: 672c0c5173427e6b3e2a9bbb7be51ceeec78093a > > commit: 0ab785c894e618587e83bb67e8a8e96649868ad1 dmaengine: imx-dma: Remove unused .id_table > > date: 1 year, 5 months ago > > config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220502/202205021042.xPjJ6Z4J-lkp@intel.com/config) > > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 09325d36061e42b495d1f4c7e933e260eac260ed) > > reproduce (this is a W=1 build): > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # install arm64 cross compiling tool for clang build > > # apt-get install binutils-aarch64-linux-gnu > > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0ab785c894e618587e83bb67e8a8e96649868ad1 > > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > git fetch --no-tags linus master > > git checkout 0ab785c894e618587e83bb67e8a8e96649868ad1 > > # save the config file > > mkdir build_dir && cp config build_dir/.config > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/dma/ > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All warnings (new ones prefixed by >>): > > > > >> drivers/dma/imx-dma.c:1048:20: warning: cast to smaller integer type 'enum imx_dma_type' from 'const void *' [-Wvoid-pointer-to-enum-cast] > > imxdma->devtype = (enum imx_dma_type)of_device_get_match_data(&pdev->dev); > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > 1 warning generated. > > Does anyone know how to fix this clang warning? Either an intermediate cast to uintptr_t or unsigned long or replacing the enum cast with one of those should work. See commits: 2602dc10f9d9 ("memory: renesas-rpc-if: Silence clang warning") 10462b3558d4 ("can: mcp251x: mcp251x_can_probe(): silence clang warning") 83415669d8d8 ("can: hi311x: hi3110_can_probe(): silence clang warning") be5aeee30e45 ("scsi: fcoe: Suppress a compiler warning") Cheers, Nathan