Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp835764rwd; Thu, 18 May 2023 04:48:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4jvOsNVDN8aNpexeWmAc/5J4TpJDjjANjRE3ehkKpZRRMq2LKYq9JkOy75xt3Dwrl9EB4Z X-Received: by 2002:a05:6a20:144e:b0:109:12d0:db23 with SMTP id a14-20020a056a20144e00b0010912d0db23mr2183715pzi.1.1684410521547; Thu, 18 May 2023 04:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684410521; cv=none; d=google.com; s=arc-20160816; b=xtq+GJntzbKeUYWNQEbJfSLPssLJcGRtHmuP2HNhVL2ukCIkAsmYePqU+uO8mgxSma hIDMtZSNQFJhv38WRdH0Eczejn31BSJzlThrXCpRUvRGduWm/dnxzcTXv/ZvVA1ZNf85 lWJioQWK6SlmqHBdSnUnQvXXdwyepVvxh3XIaLugggomeYJRBC5LzAS6mkYW20WQ1G2z dD0HKjBUoXQuHZQoQQdCADiwzfrnXFbVnQ7QGiB1wANTv1oBb60D3E95B62pb+m/FSug N1NqZjlguvJVJsZt78WyvntQlQCtXYfg36lg8n1EiGW/xWkrhP7Yn93wzcFOg/mvNMc+ BuDw== 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=XZVDeBZ4tEGbclQr0pU/8gkKuBTERjClxXq8vdRRe18=; b=VaByPDdiYNO1/Dg3nNUt1fU6Py0mGN3/dKRu7Wczge1ZVczlag5DTMsrZYWZ34fz7k p8Sy9uDChqmN1x9DBFbasUO1+tOWBkyI74O7N/s18VGqYcptjd+hb5o+vW4cU+rYxoSK lkZHM0v+YXC6/XsRBHDChP/5VVQm/IP7vyWPktKq5ljqp8pvDhxBOzLMjtT6qj3XMPYT xbwj+77Hl0iR3zuDnTCjzJXPSYDu2gckMwmqzNG60G3003IdX6t/bn1ds3n5OyVZrBDK s/hWYCAjQ8/ayXCjRocRfh3g/nnQC2aHh/kLKVJYH7DXeLRmonyhMZk+0k7leNtKby7t UW6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Le3Kna3s; 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 v19-20020a63b953000000b00524da606618si1276755pgo.227.2023.05.18.04.48.24; Thu, 18 May 2023 04:48:41 -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=Le3Kna3s; 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 S231207AbjERLbJ (ORCPT + 99 others); Thu, 18 May 2023 07:31:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231295AbjERLau (ORCPT ); Thu, 18 May 2023 07:30:50 -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 EB283273A; Thu, 18 May 2023 04:30:20 -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 4F39E64E6B; Thu, 18 May 2023 11:29:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE5E7C433D2; Thu, 18 May 2023 11:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684409385; bh=9LI7Eie4pR+440TeZJdiGBPFtoSK4gvgmTsDZmYKKFQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Le3Kna3snPDKjpmB1zmAwiiW1VvfTzhGf4sAoLzuUl7HOm56O+mPASd9b6E5BzqTA dXKi0PrnxW3yvADZzJzOvD3SbhWCr6/6hteVb/YwNwXsqnvjoGiZ0xldWAVHEFNEop 8l1qaQrzaGQORoiGExX223xDTu4Xjbjq294030AbknxOXdJtgWRgN01PswI3YKept4 rRu+zCv9CgpXvL94n9egxrH3BqePxw7h3bdO4WRZD85iS77yCm8pwfH9U+jsEN6cZT g086H1rn8PQCoQl3Sz0jJoaJQTCcbimbDxBM2JCuYQdxV61IkcxIE/vtZHEqFlVOMN kIwPuaZONj/wA== Date: Thu, 18 May 2023 16:59:41 +0530 From: Vinod Koul To: Arnd Bergmann Cc: Linus Walleij , Arnd Bergmann , Julia Lawall , linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: ste_dma40: use proper format string for resource_size_t Message-ID: References: <20230517201951.619693-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230517201951.619693-1-arnd@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 17-05-23, 22:19, Arnd Bergmann wrote: > From: Arnd Bergmann > > When LPAE is set, both the dma_addr_t and resource_size_t become 64 bit > wide, causing a warning about the format string: > > drivers/dma/ste_dma40.c: In function 'd40_probe': > drivers/dma/ste_dma40.c:3539:23: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=] > 3539 | dev_info(dev, "found LCPA SRAM at 0x%08x, size 0x%08x\n", > > Change both to the special %pap and %pap helpers for these types. Already posted [1] and applied now [1]: https://lore.kernel.org/r/20230517064434.141091-1-vkoul@kernel.org -- ~Vinod