From patchwork Mon Oct 17 14:30:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101696 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp423632qge; Mon, 17 Oct 2016 07:33:46 -0700 (PDT) X-Received: by 10.99.123.28 with SMTP id w28mr31725882pgc.48.1476714826082; Mon, 17 Oct 2016 07:33:46 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si3321618pfg.240.2016.10.17.07.33.45; Mon, 17 Oct 2016 07:33:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934833AbcJQOdn (ORCPT + 4 others); Mon, 17 Oct 2016 10:33:43 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:59489 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933168AbcJQOdi (ORCPT ); Mon, 17 Oct 2016 10:33:38 -0400 Received: from wuerfel.lan. ([78.43.20.153]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0Lj2j8-1cWryV3cw2-00dDsj; Mon, 17 Oct 2016 16:33:26 +0200 From: Arnd Bergmann To: "David S. Miller" Cc: Arnd Bergmann , Taku Izumi , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fjes: fix format string for trace output Date: Mon, 17 Oct 2016 16:30:57 +0200 Message-Id: <20161017143314.515133-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 X-Provags-ID: V03:K0:Mw+qmG7W/LOW4+DEmiaeghHKOh2ZLnkpwTtdldoYU3OfFecbjN8 kpMZDH1lUS1XgJ0Gx5yCzkxXPm+JHjsRMBoRNmkXqDxQLQON9IxOCSAlsQVHSBA+4c7o77X EGAT7gh/ND4yg745WnurWNEREYFqX5rVqN7obSYzcOO2J69Gef6BlPd6jvwc+1Kq6Um4xg0 zVg20nF9dmFkz4BYBVaeg== X-UI-Out-Filterresults: notjunk:1; V01:K0:MOrRRYXtqHg=:QHnyrL/MOamCyqnFdVgN5Y nZhTRvcF4CK19fR9t2seyOIUi3VyN29aeQ0Aqwbj6kuHaW4ZdsioRF4onHTYnCVm1Rj5r16mA Td9ipfgP/daHBAofLY7TORc4CFPqsUTjlfLQ/qaM1m6fARrAfvYiNTTwXQUOStgMkHR1MyFO0 q/8CEGbZnYlKirGuygDhU7Gl8RanLALLG+V+DD2csGPaJGnX+CodRISa9ggkOLqw4edFkaNGs sIufmLxS2wOasC2vMzDSljKiYr7ar/wpjzAkzv6fhYVKccdvfnWaW4IK0NXbPeH4CIHxyZqVi nlWgGLOY0VFQr9w0VWHekunXSywH33blyMqgvlR8eZrWEq4HA09cQLe8wOVgNAAlsFUg9ok+3 kJ1te2KtfxaMPV3sTzZrK5VhToJNLqlMSFs74fMpUuzEo2W1NtccKDv/WS5U92FjWYf1bCmU9 qMHyn4nFy34+iNebbyBBziCX6ZCGORhX4xgaFNa0HhXrqkttgEtHwv99SRHn+tzU1HhSXU2yI ACl7QYC3lcqAX/R5vSSvhrokAw175lzODdMDEEngk03R5zh4BGollWoj+bW7pqzlpceCQMucp 8NpECbhEX2xdKJcf4OQY3jGrMTB9snOfjZQx/2+GmVZpWa5cFOpPn7amIakWvCgENZnXyJSZg teYpWv+RLn3dzJSgNvzaY9ZlWPt1/B02M5rxx1tuI12uHH6XsCODVbXUEgINFO0xoa8FZhH+w K5Ru+TsNu0QtsyIL Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org phys_addr_t may be wider than a pointer and has to be printed using the special %pap format string, as pointed out by this new warning. arch/x86/include/../../../drivers/net/fjes/fjes_trace.h: In function ‘trace_raw_output_fjes_hw_start_debug_req’: arch/x86/include/../../../drivers/net/fjes/fjes_trace.h:212:563: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] Note that this has to pass the address by reference instead of casting it to a different type. Fixes: b6ba737d0b29 ("fjes: ethtool -w and -W support for fjes driver") Signed-off-by: Arnd Bergmann --- drivers/net/fjes/fjes_trace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 diff --git a/drivers/net/fjes/fjes_trace.h b/drivers/net/fjes/fjes_trace.h index 22e8f1a4f9ee..cca01a1b3d64 100644 --- a/drivers/net/fjes/fjes_trace.h +++ b/drivers/net/fjes/fjes_trace.h @@ -222,8 +222,8 @@ TRACE_EVENT(fjes_hw_start_debug_req, __entry->mode = req_buf->start_trace.mode; __entry->buffer = req_buf->start_trace.buffer[0]; ), - TP_printk("req_buf=[length=%d, mode=%d, buffer=%p]", - __entry->length, __entry->mode, (void *)__entry->buffer) + TP_printk("req_buf=[length=%d, mode=%d, buffer=%pap]", + __entry->length, __entry->mode, &__entry->buffer) ); TRACE_EVENT(fjes_hw_start_debug,