Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp135016ioo; Wed, 25 May 2022 23:29:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwKBoYEHJDaWsiXts5Q9DxEhEZq1d+inVdeaCWVkdAu9MylMHV3IjJgPc5mT/6bQgefH74 X-Received: by 2002:a17:902:7582:b0:162:1131:23c2 with SMTP id j2-20020a170902758200b00162113123c2mr23250642pll.83.1653546543207; Wed, 25 May 2022 23:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653546543; cv=none; d=google.com; s=arc-20160816; b=j5ji7HNlKijBa9DsgwjxHnHxArbK6BWxcWU6H3NfBHZYt5bnYg4sLyoqBCixpS5BI1 4yBj1l9OS1hQpsM0BV0VECNwouAfg/nDUWvahARdgDHo1cxxrBpbLndZitr72krgT+Bs kSUiK6Doag25TP4102368wDK6ClsyGcX79tQVEQW4BidkZwk7rJRrjtecyeYaAIwLKW9 g7Zm08R+FQllUnjPUwtBnCw1C7FGqyLzcHaZHX8ti+kSdpSu+qB+R/7WVR9hsz53mvCM wNQr217ryEnqxvC+97eu6nv8F9aJTfu/qJYpIm8QPryK2864MM7Ffs0zQqdDKxw300nj diFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JaqQEwN5gGu7MuEou1u1zwwpE+vqC3sAxcFTo02SWDA=; b=T7tWvteXctetwZemTxAnxRq1OlIghv00DcsCsAA+9ZV4iipNQUH5dxqLsqUOuCB4dp LMLi3tJFAY3d+LsFT3qZM/jHT/r8x+G3OC7srctVZr3nCEkyWuaMtWjmLm6yuEW3GWNu km2R7jX6ahIwJGhw5RLcFRdq7ZEKhoX5lYfyxMBixkwVlFM5OCA7l2aA80ITOQT2TBQv 0ZA56X2ObH0dOjQDaF6agquiJT6JgEMROvdc1QHMKNuhf28+MWKm/9IxrzrF1ZmuRUGy yS861NAkzbmISXNZWk1+TLS2k8fPrd8l5VNIsFD4kp6ITzJbVnFyWQlQ3fIGNU6eXOgj jq4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bhIkJ14B; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u27-20020a056a00099b00b0050d4265128dsi835063pfg.313.2022.05.25.23.28.50; Wed, 25 May 2022 23:29:03 -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=@gmail.com header.s=20210112 header.b=bhIkJ14B; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344196AbiEZAz5 (ORCPT + 99 others); Wed, 25 May 2022 20:55:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345796AbiEZAzb (ORCPT ); Wed, 25 May 2022 20:55:31 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FEF9DFE4 for ; Wed, 25 May 2022 17:55:30 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id wh22so270606ejb.7 for ; Wed, 25 May 2022 17:55:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JaqQEwN5gGu7MuEou1u1zwwpE+vqC3sAxcFTo02SWDA=; b=bhIkJ14BXb4Gmmp5f8z02sxBhmmF8TGvh22Xut1tW0ARNZ219RGX+wDUOBoddOxasb PGt9EIIl0NJdNBixbeh6bgcmUh5262AJYw/ZYLvhECdizqGT6ooae01wART2qqLCv8lf bA4cAR6zOdWtKEcUl8+nSv9hJS/mSVGl/hNMXAZlXHYa/YajTW7VXpZT7+oysBxRgIn+ +IE6D8w+1ffUNjJ8HGKCYT16ltx/GffdyDJXa15RTvUM9gYm96e3z/BNOB/UsxEDnPi2 FYPYdZFd6DEqztc01Reat8aS3WeDkLbWIixPR2WWoGeJtfsvcUm395TiS8r14DN8caIj qZ2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JaqQEwN5gGu7MuEou1u1zwwpE+vqC3sAxcFTo02SWDA=; b=xqbyN1Moz/oO+g0gfXan7A6a53b0CSQSO0dHn/HtCCZ3GfAu4kfDTPfHhLhldVzxTU lIydIEoEnD+NIErKID5NJqMUE+1YDmGjehgFq5yS8s/n+yk2SJzi1Qv+LHXdSycqUkIx te/92+eSTl+o58Pr6Sof7W8KpmM1IVHyL5m+5YDXm/OmZwj+xgO0VVXgCoaVBYp1Rb85 mRLBTkp5MF2a8z34Ss8fudlstZqormOZb6r9LgQyYFFA1IbOZoqEmuAREc3xecxIeyM6 sZEp1qiO/ytDM7/lsom09U/1AvJywZevTEvMZZ9S4VpRt2pj8m7/b8SRYPfAmYOOYh3P 693A== X-Gm-Message-State: AOAM530zUim6y1DipiYFKvhjVrydHxW+iADJBap1VheXePCiPOWrLdRQ G0u5Zkj4DCB5zFJy86nlO1lYQxMv0qh6fjlhk0E= X-Received: by 2002:a17:907:728b:b0:6f9:a9bf:a8e7 with SMTP id dt11-20020a170907728b00b006f9a9bfa8e7mr32415738ejc.696.1653526528840; Wed, 25 May 2022 17:55:28 -0700 (PDT) MIME-Version: 1.0 References: <202205021042.xPjJ6Z4J-lkp@intel.com> In-Reply-To: From: Fabio Estevam Date: Wed, 25 May 2022 21:55:20 -0300 Message-ID: Subject: Re: drivers/dma/imx-dma.c:1048:20: warning: cast to smaller integer type 'enum imx_dma_type' from 'const void *' To: Nathan Chancellor Cc: kernel test robot , llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel , Vinod Koul Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Hi Nathan, On Wed, May 25, 2022 at 9:38 PM Nathan Chancellor wrote: > 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") Thanks for sharing these commits. I have submitted a patch. Cheers