Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752887AbcLIVU6 (ORCPT ); Fri, 9 Dec 2016 16:20:58 -0500 Received: from mail-db5eur01on0056.outbound.protection.outlook.com ([104.47.2.56]:62319 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751610AbcLIVUz (ORCPT ); Fri, 9 Dec 2016 16:20:55 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=saeedm@mellanox.com; Subject: Re: [PATCH net-next 1/3] net/mlx5e: use %pad format string for dma_addr_t To: Arnd Bergmann , Matan Barak , "Leon Romanovsky" References: <20161208215727.44841-1-arnd@arndb.de> CC: "David S. Miller" , Daniel Jurgens , Tariq Toukan , , , From: Saeed Mahameed Message-ID: <5a451128-7d3a-1204-c2e2-2a928b8638e9@mellanox.com> Date: Fri, 9 Dec 2016 01:16:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161208215727.44841-1-arnd@arndb.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [77.138.146.176] X-ClientProxiedBy: DB6PR1001CA0011.EURPRD10.PROD.OUTLOOK.COM (10.171.79.21) To AM2PR05MB1204.eurprd05.prod.outlook.com (10.163.148.142) X-MS-Office365-Filtering-Correlation-Id: 57017565-2d4c-4f5d-a9d5-08d41fc03fe7 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:AM2PR05MB1204; X-Microsoft-Exchange-Diagnostics: 1;AM2PR05MB1204;3:CJvOdEhdgnfCAMkWsbL+xSjirR75Drwci0+8wlLHgiEa0Rxn0sYJOZn5cU8pkIK8CEAIAzDvjftOyyfWDCuJ8AfEJ2aQaBmTFQMzgYtlD/op1QFmM9hfh9RnLkRu8fI7gL2cS/W6Hruu7XFxi8FDXzgYW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fnnH1dJWs2v/YH9bmpcEferrEkRAu3swifPDZiodgRhDi0XpVQDMJnVwuBtyCVW7MAL3OvXGPySsYz6jM69uK8qgCj0TTf9zKUFEPxa7MkfsMSOpnbmKAA//tW4jQlkz6NB2MAaY/MckaMRGXKKI8Lr2gptmXp8xFM+czHGjrwQuAs6HLZaqUzKqmLsasnw==;20:Awxlrv9XrULiLArV9xZ9BohCFfwJEQf53MDz5eHiECylJLUQeqQeBx1yU0O1ut1pceI6rLNgFUXwkjPGFqPA79yCWSg4aZLWI2BO5NLgh/+inFtGZmUuViPaYHYZHZ5DZDoED91cPFUpYvb6IFMwSS9RAzi5A2ezs5ILYeK5ZejtMy1l23dlR9oFk+J24fVgGlcqUHtEykmgP6LDZ9nQBg3fbtCu4OSAwlBJLe/6xEZbt1AMq3Kxn7ZZRaagslx4voXTjFQHI6URKKUc7zYB0pBhamfx3ZkQSdt3msYwwuo2cGoXi34WZ3rcakIZq3M8IUyhGS0kgtelocO1R1Yq78p4X195minfkT+EAOiDZ7iDaKt1/ccfHtKUKr4bd0jptexzEfzhmLofRX5ENGPpmVJjpfHs+ZMX0Rsk6Ly9gJaMUDVt1vdRBBEcNgxZVy6W2CHfjg9UlD+mi99POrcybtYH3dKUo4nbzE/RJV/7nY+8i4aStTpj0Rko5+L5Jr35 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(6072148);SRVR:AM2PR05MB1204;BCL:0;PCL:0;RULEID:;SRVR:AM2PR05MB1204; X-Microsoft-Exchange-Diagnostics: 1;AM2PR05MB1204;4:A1/Hs9BpVEEzZ9K1IMTwkhrDYaB1Hp5OLDI1ByhhNcS4MqD7Wy7WddQzHjPirxBuT+JO54KIAFRJm8mZgwuPrADJH+fFYgTFskhnqNjEo0CPiwofium8tYb52kcJIvwN0TcIhZoOBn4tYWMPLy53NLHLTrsIX9WqEAecjBp8DnnJ0r7TXt6WjFHdVNOTpS5fTmyL0kblsAO90R2W2J77IZPO/Sw2jJ6YLBL1rx4C5/o0IXShHLoHv4EttBpRErsVhjyOiU0u89A0gCNdZVNXkXvmB//K3NvGjIQ5/bBkz00RgTCpkyQrqKh+T1h8NEW5p6PTeBivFVTDQuqIVKaeBKni50Uke/rp3/ugQVFlVfGhXc5Ua0emZEuUP+lj+zeV2z/KT1T0VakRx56AaXmKpX7Gce6xbntufuZRnihQznIWtaVxjXpYVRQHBqZE0OV7M90vTPZY2qTlbQ24Gnf6MpFoJPdIgNY/uSKR7EI265eBtckVVDdCBfM4z7l0k0aC7WeQDpVaA+fzyxU8PUBtPpPSY9Q7OwbuuI2VK9k67q0UsosLEeZi6Ee+j7TRHPxeZD2oUMOOfVVSUeKkmWq3TQ== X-Forefront-PRVS: 0150F3F97D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6049001)(7916002)(39840400002)(39410400002)(39850400002)(39860400002)(39450400003)(199003)(377454003)(24454002)(189002)(36756003)(117156001)(7736002)(2906002)(76176999)(31686004)(50986999)(6116002)(54356999)(4326007)(229853002)(106356001)(64126003)(50466002)(81166006)(33646002)(2870700001)(42186005)(8676002)(81156014)(3846002)(38730400001)(305945005)(105586002)(68736007)(101416001)(189998001)(6486002)(4001350100001)(733004)(6636002)(97736004)(31696002)(65956001)(6666003)(5001770100001)(6862003)(77096006)(5660300001)(86362001)(92566002)(65806001)(65826007)(66066001)(47776003)(83506001)(23676002)(90366009)(2950100002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM2PR05MB1204;H:[192.168.1.25];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTJQUjA1TUIxMjA0OzIzOlN5dmIrak5WdHpKUm54aU54UnR1Y0VWUkEy?= =?utf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 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;AM2PR05MB1204;7:OODorXlomYbpaebAw/zxIf3M6cXPtCOPERtiUD7FE/Y8eIEQ9JYmkbNj8MnGQOvxU4CiAgpmYcemeFcTftgdWozKHOJn8EO8AO+Rifx49P4oe2xAsg7WOuty2ciqMM+BUZLrtdt0fcYFiRONLNu5c2UEdtTes8FpVqVcsTGt1DLen5zjCZFGbLCDZfSHJ16hI1Nc7ysgTEkG+0AOcKvxQJ/aAXi4w5zj6BNmV3k11oA3KDiIGIdZy8IDvkhSd9vduwiG2DdpMNfHUEPhp7I1j/NtW61CNk5jsulDl+zuE4B9iqtdeXprJvzPPtLrjYdlzf+x9GWFFgZQDo3zt9ZJONa1rFxZHCh/YTg6NaWJS5qynNKw6zhzPVHp1vY7OUlOUkPF3mJlPcVCqEqeO4J/jItwF3HGH/AWMQnsPSr82THP913aZgAHpFGmC2KOIRgoFNJ2UWpvQJWAn0tLNOVigA==;23:lnfWIn4srCkx9QExwn8pSpBrBN/TGyU1Le0ttFOKoQ+nwPKMRE2lhjq3Px5WbFE6JihABEQTGwdmiBCKOmYD7blaErw0Gr8YaNMvO8yMG6342zcSWLVd7/QZ36VmphpLRTjBFKjGoMbc/VUFJNQQFw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2016 23:16:31.7049 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR05MB1204 X-OriginatorOrg: Mellanox.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 791 Lines: 19 On 12/08/2016 11:57 PM, Arnd Bergmann wrote: > On 32-bit ARM with 64-bit dma_addr_t I get this warning about an > incorrect format string: > > In file included from /git/arm-soc/drivers/net/ethernet/mellanox/mlx5/core/alloc.c:42:0: > drivers/net/ethernet/mellanox/mlx5/core/alloc.c: In function ‘mlx5_frag_buf_alloc_node’: > drivers/net/ethernet/mellanox/mlx5/core/alloc.c:134:12: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] > > We have the special %pad format for printing dma_addr_t, so use that > to print the correct address and avoid the warning. > > Fixes: 1c1b522808a1 ("net/mlx5e: Implement Fragmented Work Queue (WQ)") > Signed-off-by: Arnd Bergmann Thank you Arnd !! Acked-by: Saeed Mahameed