From patchwork Fri Mar 16 11:02:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886724 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402jNL5MS5z9sLt for ; Fri, 16 Mar 2018 22:07:30 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="i0ejf7Bx"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402jNL38c2zDqqN for ; Fri, 16 Mar 2018 22:07:30 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="i0ejf7Bx"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c09::241; helo=mail-wm0-x241.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="i0ejf7Bx"; dkim-atps=neutral Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jGz1qP5zF0T6 for ; Fri, 16 Mar 2018 22:02:51 +1100 (AEDT) Received: by mail-wm0-x241.google.com with SMTP id 139so2274162wmn.2 for ; Fri, 16 Mar 2018 04:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5OTCaj/nlWwa1wrf98nv2Rd3lW1CXa+U0J5yQxFIetQ=; b=i0ejf7BxPCHoC8VETYCCAUH7h3Zm7khhayqp+xYoJzmxOLswA3anB+K8MmgChC5hw8 K2b8+CHJKXDbpwSWG/rtf02J5+hcSzCEgkaMqlZrw2fqTv4aT8bQVyX04d1s7SUGXwv/ TxN6o4Tm9hXcBHfx7DKuu7dm1aVWtIEDY8iI0gU+59MvxUVesj17e7X4wIZd6g63sEo3 5AkUFDfqhDLv6dVcwQenXZ9Lgiyr4OcBxCCjjSLG+dMgzhA70KfERuRJcLLtmN8nzNQq y7bMhuXEiG1wnHw1Ab/z7/xMSGmClkKHj5qFeM9dWgAPu7kzeWYLImxTwcXMULWM4AaD MEwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=5OTCaj/nlWwa1wrf98nv2Rd3lW1CXa+U0J5yQxFIetQ=; b=l8/qnM+kNyqMsFohyh5YtBaufVrAkpZOuccjRZOyMAD40LZnPreA0B1T64PwQVxnDu HJsImcnOTRMVdUfJttifyeWBNl9316jtJMskKGk8P8bd6R00oymzj/rhxOICO7wfifas GreoCndBfNVk5Q1aBvJws1qG4hisgXBNsaF/akH114pkrstSMmYrGxANhyTozG2c1mCj n7uNEqRU42H+fRghn/EVjxg2LmVXnEZnfaTXvFnnlmIyG1oXvRCkBEPQh34iA6NkfhYg JkldMaHuHWUEpeR35PWW9TJ43Ph9T5ZtmAp4LT+rF3pI9mqWeXfhHAL1YP9xQ7XCjVtn OEDA== X-Gm-Message-State: AElRT7Fa7yKEubrrvvAKy1rrwjdEB3evgk+Z16A4RcQnjvXZC+saqY01 DEE03EefJzcUqcq7D1L6yZc= X-Google-Smtp-Source: AG47ELs7Nxi+cdyn3VdI3CsYwsrThqb/L4WT0fNTwp5FsQFEocgSZ0msoVk6Dz9KqvRjSlgZhQk8bg== X-Received: by 10.28.64.193 with SMTP id n184mr1292589wma.4.1521198167692; Fri, 16 Mar 2018 04:02:47 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id p79sm7484796wmf.34.2018.03.16.04.02.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:46 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id BAF2F10C01A9; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 01/19] xmon: Use __printf markup to silence compiler Date: Fri, 16 Mar 2018 12:02:06 +0100 Message-Id: <20180316110224.12260-2-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Update also the other prototype declaration in asm/xmon.h. Silence warnings (triggered at W=1) by adding relevant __printf attribute. Move #define at bottom of the file to prevent conflict with gcc attribute. CC arch/powerpc/xmon/nonstdio.o arch/powerpc/xmon/nonstdio.c: In function ‘xmon_printf’: arch/powerpc/xmon/nonstdio.c:178:2: error: function might be possible candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format] n = vsnprintf(xmon_outbuf, sizeof(xmon_outbuf), format, args); ^ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/include/asm/xmon.h | 2 +- arch/powerpc/xmon/nonstdio.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/include/asm/xmon.h b/arch/powerpc/include/asm/xmon.h index eb42a0c6e1d9..30ff69bd8f43 100644 --- a/arch/powerpc/include/asm/xmon.h +++ b/arch/powerpc/include/asm/xmon.h @@ -29,7 +29,7 @@ static inline void xmon_register_spus(struct list_head *list) { }; extern int cpus_are_in_xmon(void); #endif -extern void xmon_printf(const char *format, ...); +extern __printf(1, 2) void xmon_printf(const char *format, ...); #endif /* __KERNEL __ */ #endif /* __ASM_POWERPC_XMON_H */ diff --git a/arch/powerpc/xmon/nonstdio.h b/arch/powerpc/xmon/nonstdio.h index 2202ec61972c..e8deac6c84e2 100644 --- a/arch/powerpc/xmon/nonstdio.h +++ b/arch/powerpc/xmon/nonstdio.h @@ -1,13 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0 */ #define EOF (-1) -#define printf xmon_printf -#define putchar xmon_putchar - extern void xmon_set_pagination_lpp(unsigned long lpp); extern void xmon_start_pagination(void); extern void xmon_end_pagination(void); extern int xmon_putchar(int c); extern void xmon_puts(const char *); extern char *xmon_gets(char *, int); -extern void xmon_printf(const char *, ...); +extern __printf(1, 2) void xmon_printf(const char *fmt, ...); + +#define printf xmon_printf +#define putchar xmon_putchar From patchwork Fri Mar 16 11:02:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886727 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402jRM54sSz9sLt for ; Fri, 16 Mar 2018 22:10:07 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="HdyG979x"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402jRM2sCzzDr2G for ; Fri, 16 Mar 2018 22:10:07 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="HdyG979x"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c09::244; helo=mail-wm0-x244.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="HdyG979x"; dkim-atps=neutral Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jGz1VGQzDrLP for ; Fri, 16 Mar 2018 22:02:50 +1100 (AEDT) Received: by mail-wm0-x244.google.com with SMTP id w128so2291166wmw.0 for ; Fri, 16 Mar 2018 04:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1VKkwZM6St8L9oHg3tzRN7MZyB7qRZ5CzBtAmzzFEmU=; b=HdyG979xLNTQHkTa0/ppPVPMRyanHfgJxKRxqmePMk4JvcCuH27ZjaPbE+rJ/5r1VE gGH+NzWsqY1zych28CIzqkDmGaOgG5yzBlN9VEYBj0zITj7CPwvhX8fKu3ioyzT8G/yN xHJNDLwdoc4H27+ouYRN2xeKju1ARq75DvZQf7ZsyJQtN8XqmQlKw6gPQwwCS86rKfmc rrjG9XzWH8hBVTNT5MvFwDEfQXpF3gw6DMArugI1UKJ2N7cKFNSaKM52vg0rgjLgAqw3 v8m5f6YDd6p3sXx4hwcGLhy2HkTojzl02jbdWN+xI28eCWyo6IngsQrKmDvXqIPUX2K8 sRKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=1VKkwZM6St8L9oHg3tzRN7MZyB7qRZ5CzBtAmzzFEmU=; b=HaiXeciSBDxc7SuaM6aWiiV8h/F418zN9CX40+By9cYQQM6eXBZu2WaWyA+7WpAT+Q 98cJr7qE7cn9kWD2HgOjNj0MC98jGgase65e+PNzkevZZXrfK0SCYIEHHx0cez6nOXOu WZ1WhgjHJfd4QR6XD8yEFYu3DWjOwBj42TmLdfvgV8AVl3uM9jyQNOqKE6/nYuWWf3y3 B0iT0/AszGOZGWziCWLnPq60T7npdZ/G3V/1ZLpbBWG8eL2bgKe/KewDvKVvPAEkcv+p itugvu4waNFQyuWlAWSMsdVw0aPajDo07wnpRT28Rz7RFdJZyZGntecJ1KWerw7u8qmb 9SLA== X-Gm-Message-State: AElRT7Eiq6xkraTCBnQK9oLI82F/yZ+MKdn2QXwyZ+bbA01rI7BpY4Ni M87rzYFvzOYGdHdPsw0ST0eUNt/s X-Google-Smtp-Source: AG47ELv9baMP+5nT20Tdsrynu/XlgYQ8sghz0YUY2+8dL4YPjvUYdLhdke0dsitw9SetNIrd65yOcg== X-Received: by 10.28.63.66 with SMTP id m63mr1505244wma.102.1521198168116; Fri, 16 Mar 2018 04:02:48 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id l22sm5973764wmi.39.2018.03.16.04.02.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:46 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id BE95710C04B7; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 02/19] ppc32: change %x into %lx Date: Fri, 16 Mar 2018 12:02:07 +0100 Message-Id: <20180316110224.12260-3-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘memdiffs’: ../arch/powerpc/xmon/xmon.c:2866:17: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘unsigned char *’ [-Werror=format=] printf("%.16x %.2x # %.16x %.2x\n", p1 - 1, ^ ../arch/powerpc/xmon/xmon.c:2866:30: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘unsigned char *’ [-Werror=format=] printf("%.16x %.2x # %.16x %.2x\n", p1 - 1, ^ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index ee113a6e008c..ee7a8c9a042b 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -1671,7 +1671,7 @@ static void prregs(struct pt_regs *fp) } #else for (n = 0; n < 32; ++n) { - printf("R%.2d = %.8x%s", n, fp->gpr[n], + printf("R%.2d = %.8lx%s", n, fp->gpr[n], (n & 3) == 3? "\n": " "); if (n == 12 && !FULL_REGS(fp)) { printf("\n"); @@ -2728,7 +2728,7 @@ generic_inst_dump(unsigned long adr, long count, int praddr, dotted = 0; last_inst = inst; if (praddr) - printf(REG" %.8x", adr, inst); + printf(REG" %.8lx", adr, inst); printf("\t"); dump_func(inst, adr); printf("\n"); @@ -2920,13 +2920,13 @@ memzcan(void) if (ok && !ook) { printf("%.8x .. ", a); } else if (!ok && ook) - printf("%.8x\n", a - mskip); + printf("%.8lx\n", a - mskip); ook = ok; if (a + mskip < a) break; } if (ook) - printf("%.8x\n", a - mskip); + printf("%.8lx\n", a - mskip); } static void show_task(struct task_struct *tsk) From patchwork Fri Mar 16 11:02:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886728 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402jVl5Ftmz9sQn for ; Fri, 16 Mar 2018 22:13:03 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sblYMfc7"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402jVl3q5NzDqh0 for ; Fri, 16 Mar 2018 22:13:03 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sblYMfc7"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c0c::243; helo=mail-wr0-x243.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sblYMfc7"; dkim-atps=neutral Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jH00HBhzF07D for ; Fri, 16 Mar 2018 22:02:51 +1100 (AEDT) Received: by mail-wr0-x243.google.com with SMTP id o8so11327799wra.1 for ; Fri, 16 Mar 2018 04:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HLnRsT7xe9GxHmJ8FVu5bnteoE+VZui3Z2cuYv5pDgc=; b=sblYMfc7Pk9/zzK5qqP7nYfwsWYetGQyasVGf3Xhuut413o0Oj1iObLujY7rEcHjWm sZYvt3/P3fYtj5i64S0Op9uC4zMrr2LyTvSEGWe4kSYY+oI2k28spWIvJaeugpBNdnS7 43LiTCYXFMlWVjaCFI1fJBzkqaF2fPiEhZw1FLAvsK9/Gi5Ex1znqLNm1R5/myrPqqGa BfGNGK8QKsiIBtTJA89FWN+VbrVrw/42n4c1Ar7DcWgxAPBPk4X8gxACxZyIRRKZxFXR uu8q4qxtoPFY4RnE0C3vUhUTCYMiowd3fGYgAzLWteDayaiUQD+tkGbD5YmBtx5Z3g2z pd5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=HLnRsT7xe9GxHmJ8FVu5bnteoE+VZui3Z2cuYv5pDgc=; b=jIuEc552iv6zuLdyTjGRdJ0sbX1ZYDoO92+xc7Mp7xLb+WnwQGaJxnu2D8nnDb2R4/ zLEaKV5o1FmH2XIuqs1gJ+EXznd1hkiemW5hAYwNFI2b3rq4UPucuaHCD0TUCByJFJRx J66bsvcTMbbSNTeL5gWc7FCjEwnJkogvIXQlT8dnJx0xfT8iVcsjFiKIN2gOs4xlrzOi ZSeC7HLY0VupfKfQt2dtkfb1cTqyaXIucxJAn+4s45KlIc/X/ylquFtdMVQlPGdIjRr/ cQ5KkaWMmRh3LyUFQEsHzInU4w9pQWG4bDLLgae1WzMHfZ3lHDJJ/Kj63ECf6cwyUGnW mkkw== X-Gm-Message-State: AElRT7HSFIx+ptQn6zGKm7oVmzGXJckJ5Nld+G4uWLl6QTXBKc53mTQ+ Ta/omsxgBgTXZslO/Xm3dMQ= X-Google-Smtp-Source: AG47ELu7hei/jwRvwOju5WMj7Vq6YUSadLvA0GAWABR8zecvzZR1uw1TCWceCfSbeZMkWbLa5wbVQw== X-Received: by 10.223.152.142 with SMTP id w14mr1339628wrb.210.1521198168462; Fri, 16 Mar 2018 04:02:48 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id 11sm4340575wmd.1.2018.03.16.04.02.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:46 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id C19A310C04CB; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 03/19] ppc32: Change %.16x into %p Date: Fri, 16 Mar 2018 12:02:08 +0100 Message-Id: <20180316110224.12260-4-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o arch/powerpc/xmon/xmon.c: In function ‘memdiffs’: arch/powerpc/xmon/xmon.c:2863:17: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘unsigned char *’ [-Werror=format=] printf("%.16x %.2x # %.16x %.2x\n", p1 - 1, ^ arch/powerpc/xmon/xmon.c:2863:30: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘unsigned char *’ [-Werror=format=] printf("%.16x %.2x # %.16x %.2x\n", p1 - 1, ^ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index ee7a8c9a042b..f155f030550f 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -2860,7 +2860,7 @@ memdiffs(unsigned char *p1, unsigned char *p2, unsigned nb, unsigned maxpr) for( n = nb; n > 0; --n ) if( *p1++ != *p2++ ) if( ++prt <= maxpr ) - printf("%.16x %.2x # %.16x %.2x\n", p1 - 1, + printf("%p %.2x # %p %.2x\n", p1 - 1, p1[-1], p2 - 1, p2[-1]); if( prt > maxpr ) printf("Total of %d differences\n", prt); From patchwork Fri Mar 16 11:02:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886733 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402jdj2dxbz9sPk for ; Fri, 16 Mar 2018 22:19:05 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="CYaA/xEi"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402jdj0lnCzDqj7 for ; Fri, 16 Mar 2018 22:19:05 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="CYaA/xEi"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c0c::241; helo=mail-wr0-x241.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="CYaA/xEi"; dkim-atps=neutral Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jH10m14zF07D for ; Fri, 16 Mar 2018 22:02:52 +1100 (AEDT) Received: by mail-wr0-x241.google.com with SMTP id o1so11246215wro.10 for ; Fri, 16 Mar 2018 04:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vrNSsN6ZDoAys70mq6BNfVNNh1y6BVgdjYpXArX+Z6A=; b=CYaA/xEi13KBoc5PCXJaAo1PDVbzOOBbdc3F2RIX15Tjs1c3ka0tuSEDKZOdHwGnFV DCKxDPpQOzF2fWHIyauAAI/+WvnredG9DD8NsTpto5GQvdICXNK57Epv5VP1pp05Md9P hQre7Ou5eqfNJlyfBnUM+jRKkV5LwERjGdfmi5hfdp506sYSvFIpmZnTXHliXW03fXD4 TgjGePeuq8SiHUvcFXm7H41HBfUQPZba9O860Wf5QwLKsBIRqgXXVotpJgQKpUCPGzP6 px8njXQcBoYnZ5hu9l5XNDwwzT9PFYxy+cqTpqr8rb78Q8idxPhJXFJYFmokB+Wv6RH/ ncmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=vrNSsN6ZDoAys70mq6BNfVNNh1y6BVgdjYpXArX+Z6A=; b=bPCRN2lElsjp5EYwTXSqLkedX6iWEAnaZorv9QTSL/NojQzCN1d7BDBik8Ed2aiyDQ 1mzRp08Yku5R3Q1TenEBY8oL5DD805blK/z2NjhHykhHRAsOz098EA5lDf4uxDENn+hk zN445gg/QqgT6z+NOJwRUqhnWgmWaxI5MBS5QpDIwG3tTc++lrwJAYkaxg+rDA5tHc5x F5sr4xUKW4m8vrELbUE+jPS+e9NX7sOsqbs+jOsXb80oH4gxrhIxAnT1rTz7YTW55NEo x58kq1Xe3ElL2ddLw0vXnUwDTaRE4GcqHfBxntVGvEAz3dYhSNenSt18AXyMYdNpq9Nz ISOA== X-Gm-Message-State: AElRT7FUU7cipwTfHDkKE9bzJj14s3F1mmEQvS4oVVxA+HudXjMSatBI 3SxdJ96A14uOuuYawB1ttMw= X-Google-Smtp-Source: AG47ELulls4b8TZEZzubfB3cXM6onIS5vPuHB5lXWSPvJF5hBSCNt8WyDbxGM4egdaURmnQDFkJXJA== X-Received: by 10.223.129.80 with SMTP id 74mr1159770wrm.190.1521198169792; Fri, 16 Mar 2018 04:02:49 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id w19sm8156557wrg.52.2018.03.16.04.02.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:46 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id C4BEB10C04CC; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 04/19] ppc32: change %lx into %p Date: Fri, 16 Mar 2018 12:02:09 +0100 Message-Id: <20180316110224.12260-5-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" also remove extra fp->link since no formatter associated. CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘excprint’: ../arch/powerpc/xmon/xmon.c:1607:31: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘struct pt_regs *’ [-Werror=format=] printf("Vector: %lx %s at [%lx]\n", fp->trap, getvecname(trap), fp); ^ ../arch/powerpc/xmon/xmon.c:1611:9: error: too many arguments for format [-Werror=format-extra-args] printf(" lr: ", fp->link); ^~~~~~~~~~ ../arch/powerpc/xmon/xmon.c:1623:26: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘struct task_struct *’ [-Werror=format=] printf(" current = 0x%lx\n", current); ^ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index f155f030550f..15011be7a051 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -1604,11 +1604,11 @@ static void excprint(struct pt_regs *fp) #endif /* CONFIG_SMP */ trap = TRAP(fp); - printf("Vector: %lx %s at [%lx]\n", fp->trap, getvecname(trap), fp); + printf("Vector: %lx %s at [%p]\n", fp->trap, getvecname(trap), fp); printf(" pc: "); xmon_print_symbol(fp->nip, ": ", "\n"); - printf(" lr: ", fp->link); + printf(" lr: "); xmon_print_symbol(fp->link, ": ", "\n"); printf(" sp: %lx\n", fp->gpr[1]); @@ -1620,7 +1620,7 @@ static void excprint(struct pt_regs *fp) printf(" dsisr: %lx\n", fp->dsisr); } - printf(" current = 0x%lx\n", current); + printf(" current = 0x%p\n", current); #ifdef CONFIG_PPC64 printf(" paca = 0x%lx\t softe: %d\t irq_happened: 0x%02x\n", local_paca, local_paca->irq_soft_mask, local_paca->irq_happened); From patchwork Fri Mar 16 11:02:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886734 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402jlw6sxFz9s4Z for ; Fri, 16 Mar 2018 22:24:28 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="BrD/gcQB"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402jlw557tzDqph for ; Fri, 16 Mar 2018 22:24:28 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="BrD/gcQB"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c09::243; helo=mail-wm0-x243.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="BrD/gcQB"; dkim-atps=neutral Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jH15qdXzF08D for ; Fri, 16 Mar 2018 22:02:53 +1100 (AEDT) Received: by mail-wm0-x243.google.com with SMTP id h21so2267288wmd.1 for ; Fri, 16 Mar 2018 04:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/PpBLJ/dF2dX1DXWBy3OAL6hmt1o3+G5xvrPqUMS7S4=; b=BrD/gcQBLBTORsJ/92SV/isqUcADCTA3M+1De2fDAMgcuzNyMN/9gJsAMEbqGv9J/c wfk/seRIISfBpVQmbrGKIDixYo1tlq5RwP8qnnI6cIbES5OHdLylroME40tTsPDCCf27 X8N75CGk6JECzt7CY3dXncmZWnTmbPDCBWFZDHEwfLloXGJZ0fAw+3oApp78t3Kct7bC lQbt6RXn2xJjJR8OC/9hvuEiKd8aWXzCtT6IGzmFTFWnZoLY15uUHVsKv+c6+THRfpGp kr7iEUYMeIinQfxphzZ8lvD+alxbSf3Icfgh7Pa72zkZ0ksdwbgp4bcL0uiyieL+At4I W91A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=/PpBLJ/dF2dX1DXWBy3OAL6hmt1o3+G5xvrPqUMS7S4=; b=hBoewH+xL6ZMBZ08ZYrXiXkFOymcfKkiFep3FKpdcZhg7wABrM/OxbP5h6J+g5w/Yj qN5fy6Ef9fT1xEqQH4KERW0H9oYwpAGqZu00airqlo7Jtuy2QZZcgFSoBaOrvCBodJxW ciTcp+zUK7acv/USi3Kp25f2pGTpRPLVGRgBMaYobBhEoDRUOX+asHibYxszkCTwvZPZ CH6rTKDl4hXVjK5VEzZBC734P6qVYPa9Z/N4yea3RtXpQhsax5oK/QjibkvT8/y4ZA94 SvuZsyev2xDaix+JLdX+nexWO1rqD0RgRiMeupUMi6Elv0xGSKkc77Mv2AT9Zmrdwvb/ wwTQ== X-Gm-Message-State: AElRT7EPXjJc9hTFZt9mk+ifEmFW7zBOrb+bgXLbGxFkuNuvWkZvMzhU 8ItthFoJsNH6Eb1tN9giTK0= X-Google-Smtp-Source: AG47ELvOVjMABfrhup7gylLo+66PFKzAVJah6AtO3ti1r3ZJsmzLZmjpr/m3/Ra9nnZtz6R3tsd9pg== X-Received: by 10.28.149.71 with SMTP id x68mr1525634wmd.78.1521198170838; Fri, 16 Mar 2018 04:02:50 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id e10sm7106833wrh.38.2018.03.16.04.02.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:49 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id C7C0810C04D4; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 05/19] ppc32: change %lx into %tx (ptrdiff_t) Date: Fri, 16 Mar 2018 12:02:10 +0100 Message-Id: <20180316110224.12260-6-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o arch/powerpc/xmon/xmon.c: In function ‘xmon_core’: arch/powerpc/xmon/xmon.c:630:36: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Werror=format=] printf("Stopped at breakpoint %lx (", BP_NUM(bp)); ^ arch/powerpc/xmon/xmon.c: In function ‘bpt_cmds’: arch/powerpc/xmon/xmon.c:1365:32: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Werror=format=] printf("Cleared breakpoint %lx (", BP_NUM(bp)); ^ cc1: all warnings being treated as errors and CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘bpt_cmds’: ../arch/powerpc/xmon/xmon.c:1392:15: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Werror=format=] printf("%2x %s ", BP_NUM(bp), ^ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 15011be7a051..0d74c0d1a0bf 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -627,7 +627,7 @@ static int xmon_core(struct pt_regs *regs, int fromipi) excprint(regs); bp = at_breakpoint(regs->nip); if (bp) { - printf("Stopped at breakpoint %lx (", BP_NUM(bp)); + printf("Stopped at breakpoint %tx (", BP_NUM(bp)); xmon_print_symbol(regs->nip, " ", ")\n"); } if (unrecoverable_excp(regs)) @@ -1362,7 +1362,7 @@ bpt_cmds(void) } } - printf("Cleared breakpoint %lx (", BP_NUM(bp)); + printf("Cleared breakpoint %tx (", BP_NUM(bp)); xmon_print_symbol(bp->address, " ", ")\n"); bp->enabled = 0; break; @@ -1389,7 +1389,7 @@ bpt_cmds(void) for (bp = bpts; bp < &bpts[NBPTS]; ++bp) { if (!bp->enabled) continue; - printf("%2x %s ", BP_NUM(bp), + printf("%tx %s ", BP_NUM(bp), (bp->enabled & BP_CIABR) ? "inst": "trap"); xmon_print_symbol(bp->address, " ", "\n"); } From patchwork Fri Mar 16 11:02:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886735 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402jsZ5tFdz9s7C for ; Fri, 16 Mar 2018 22:29:22 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="X0RrbrMA"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402jsZ41BrzDr2W for ; Fri, 16 Mar 2018 22:29:22 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="X0RrbrMA"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c0c::242; helo=mail-wr0-x242.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="X0RrbrMA"; dkim-atps=neutral Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jH22KZXzDrJK for ; Fri, 16 Mar 2018 22:02:54 +1100 (AEDT) Received: by mail-wr0-x242.google.com with SMTP id k3so11262951wrg.6 for ; Fri, 16 Mar 2018 04:02:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Jb9+l7qgJgFwg7P/3Z4Ikf0g/FdNQLn878TjMfKMkY4=; b=X0RrbrMAM77CyCB/VwHOVYT6qw/9JDwz7HWWoFlt7bC59QDfKmr92gN+YrCNJlc33P +VOoMpuEzLoc6zm2A5SpcMGeYY1dyJKqduQns3rl61rPGEZU4Ak5/pB2AU7cEDnQlYfW zt2W4Zi6rdc30FYbZXrD2UbdlyJad78fJ4J8E6K5UUH0Ed+vRDi1WNIuSngAUY3LdeDA Ot5VrYCT2zlKux8Y6j9V7gB3+qeW2aO+rQb95SBIWWvURGERFunWM23Tf5jyDj3TnrvD aAYb3gypK8g+5MjzOBjm+IB5t+WOCjRmoaU1+LkLzjwIcVcMGyFC5IgoOD+33s+3Z+qQ cltA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Jb9+l7qgJgFwg7P/3Z4Ikf0g/FdNQLn878TjMfKMkY4=; b=TtdAVAlUh1Mx+v3fZSZT4aO2vZ5/zb7P4SrZL+R4UJOISUzAWqwhBsvVVrtPMKpoms TN9/yk0Uj2eMWBphEN3PWA0PCHn9/iXS17SQoL0y8sR79/l4xg8xY2Hsjat5uSJGd/Nc GOsuwbIGylcqaw8YGrVoS7i58ztL6Td44ujFqMPSx63XwqyH/QWRqBphoWhSD2uf4zlx Ii14VP20Ji0DckjD7RmVJBzjWdkhNlNrwlV+zCGiu4dd7c+aMj8oo4XWNa0bICpDLnW9 KvzbxiLfEFxCCx45vsrgIbnQkzSOjqMdAdCmKD/wZnd+1B9LaXFEb+xZMOql/P7uhIsa IQOg== X-Gm-Message-State: AElRT7E1XA3UtFxi5gwXHBgPiufyFWFvQQCi2+zMcPZCbqwcgnRdUJDV hI1Dlo9MIk0vlZmOOun5NZo= X-Google-Smtp-Source: AG47ELurKRyBXMTFa54HLaWeIbgy56ftJggJbHX9LJgsGJckrvC0FWqMgeZ52WRIFODQ2D+MDAiMbA== X-Received: by 10.223.154.100 with SMTP id z91mr1271330wrb.120.1521198171267; Fri, 16 Mar 2018 04:02:51 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id u62sm7070480wma.15.2018.03.16.04.02.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:49 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id CACB110C04DE; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 06/19] ppc64: change %lx into %llx Date: Fri, 16 Mar 2018 12:02:11 +0100 Message-Id: <20180316110224.12260-7-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘dump_by_size’: ../arch/powerpc/xmon/xmon.c:2570:16: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘u64 {aka long long unsigned int}’ [-Werror=format=] printf("%0*lx", size * 2, val); ^ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 0d74c0d1a0bf..738888e6a927 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -2564,7 +2564,7 @@ static void dump_by_size(unsigned long addr, long count, int size) default: val = 0; } - printf("%0*lx", size * 2, val); + printf("%0*llx", size * 2, val); } printf("\n"); } From patchwork Fri Mar 16 11:02:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886736 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402jyp58G6z9s7C for ; Fri, 16 Mar 2018 22:33:54 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LuFjvJFr"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402jyp2DPfzDqph for ; Fri, 16 Mar 2018 22:33:54 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LuFjvJFr"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c09::243; helo=mail-wm0-x243.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LuFjvJFr"; dkim-atps=neutral Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jH30GJDzF08D for ; Fri, 16 Mar 2018 22:02:55 +1100 (AEDT) Received: by mail-wm0-x243.google.com with SMTP id t6so2264575wmt.5 for ; Fri, 16 Mar 2018 04:02:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8fZUO4ZxJX62CGJklJ2+1pq/zxkHojBVTFhsY15NXSc=; b=LuFjvJFrcM8CkRG9fd6yfcdn3E4rh4dDjHfgnAKNWE4Z12TF3iHbGI/PvXj4cOaqzi C1FgKAQdmzvo6ebuIQj2KL1t3RNLXRiKtqtqlIiK0QOh2eG8eS7tuqselRkjhhXYWPzA XqZg6R02xYPenprtp0/9m2tXD3nnb8UpSqiValrtAeYZ/iS+/P9l2G3nym68YRftyITI 7CnevTHl/Vjz+e00SKmqLpg2Nd7qFRe5b5RHwIK3bco8cx8scwRjeUiY8UOyawGTOnKU FMG3W/3OtsGGW2P1jlN3swSRYcR4/VbVtEAUfIgKtbTBa8hif534vRxFgbRMg9fphgIX LlDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=8fZUO4ZxJX62CGJklJ2+1pq/zxkHojBVTFhsY15NXSc=; b=q8SZuVhBYt1WJPX/TCa1OsWiqgmfVpEYs5PWwLgBX+O+vLxL5RLDCAoXHUQkfathci hxRmA2UjC+S4MDwglHsvDhOFhR926kWdjUwMoFaoS8rEgk5ot9pWQHiHGZAV5AHYnzV1 onm/A+n94weAxH1VYRxy5LFZmPsAAcHz1+AQ1WOcrfp3WiF1DODGtv53W3QFNFXvrrMY 0wFwq+5+0ftEY0bVlDW0ywXmXZK4v06dG3+Onm3MelY/F9BqlNoWqPyph8EBGffGLi6f ddTLtH7hmx9Y4DD2jTfJCcLDvvgIt8JtpH1UH/y1VeOBSJtE10934k6IsZ7AHcVH+OHD UhGw== X-Gm-Message-State: AElRT7EZWihhwyX+kda9WCgToLYbLbGnnPKsDW7DDIlLfxol04IuuVWN JSM1zWIaABrZgXh/hMpaSds= X-Google-Smtp-Source: AG47ELu/GpaaiWm8RkwXp+H4Gz0/5T3ho4islx4gP8dYT3Yzmi7RYJYIWZtygVzEjIqLpocXeZ3clw== X-Received: by 10.28.130.9 with SMTP id e9mr1318664wmd.161.1521198172313; Fri, 16 Mar 2018 04:02:52 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id 96sm7590005wrk.54.2018.03.16.04.02.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:50 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id CED2610C04E7; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 07/19] ppc64: change %ld into %d Date: Fri, 16 Mar 2018 12:02:12 +0100 Message-Id: <20180316110224.12260-8-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘excprint’: ../arch/powerpc/xmon/xmon.c:1629:25: error: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘pid_t {aka int}’ [-Werror=format=] printf(" pid = %ld, comm = %s\n", ^ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 738888e6a927..6117164cb5ba 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -1626,7 +1626,7 @@ static void excprint(struct pt_regs *fp) local_paca, local_paca->irq_soft_mask, local_paca->irq_happened); #endif if (current) { - printf(" pid = %ld, comm = %s\n", + printf(" pid = %d, comm = %s\n", current->pid, current->comm); } From patchwork Fri Mar 16 11:02:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886740 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402kCL5nxVz9sPk for ; Fri, 16 Mar 2018 22:44:46 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sE9CMKoc"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402kCL31LvzDr4x for ; Fri, 16 Mar 2018 22:44:46 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sE9CMKoc"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c0c::241; helo=mail-wr0-x241.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sE9CMKoc"; dkim-atps=neutral Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jH44pp0zF0Qs for ; Fri, 16 Mar 2018 22:02:56 +1100 (AEDT) Received: by mail-wr0-x241.google.com with SMTP id s18so11222398wrg.9 for ; Fri, 16 Mar 2018 04:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K/PttxVrADVAK6F4Fvjt5y7eeZFaObEwepNk80swwy0=; b=sE9CMKoc6ZVfzgjQ5c0pOuIIqwCCVUG8MabvhBVOF5WgmO04hFbBU4dnmsaeEFSpZV 1YSoVW2MHDjlGz2MDs/uXRxILkdLMpZMfNU9z7H5SRtxc+QXGzxjLAYM+6trFKvBqaHG g4xdFc3BI9fdpbvSz/6aencWSfpq+URKDRKbNlQCVBySXYclF2yr7xFbO31vPxkjtVu3 XNWDjXP190o8ybgnXsRjw+TCltV1Vh0iKLMFbvuDWfwFX+BPdnWb9gai/PC9aFVe3UTc ABtAh0NsUqoV6JZpNwgRiZPo2tENCTXE1OZHgZMEYEpD+v8RPWKU5R9gmWcmZ78bxYuA dXuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=K/PttxVrADVAK6F4Fvjt5y7eeZFaObEwepNk80swwy0=; b=RrfZz+GIbCscSiENaj755CIHETQPtrx1g+wLcEdlDtCFBWb8SFDEbxYZ0hZ9EIu+dH oypn+vf9SZHihcWQgbc+PLkl9QK1FRsEtgGCUaXUmcUkQWzF1JClSSkX4ocAujbpSuq3 fGoRU99rVUU5EsniqFZgXTJCrlOOJrltwM3Hrpk9D7qRe2K+hM5D57NLs3lTPMUd2lDR njvrhOtELRvVFWMbe5cFF3JZMx6AWQFEq5lIz/Pv4M9PwxYy88qhgqRQQyli7b6Sjlhi nxsNu2gJE0yhdkRNgDRXeQnRqwOFxgKJmkQS/mBX13fRcrrAC2QIcqKydzP3bHO5pm1t 2hYQ== X-Gm-Message-State: AElRT7FOcjiRScZQRWElOUREeFVXYWDpmzcwyoShMyMxZ1IPRVoc7c1n IgRL0Pzxd1rEhpyNFilMYdY= X-Google-Smtp-Source: AG47ELuYNEee1LaiqoFD5SgAbMXxMN62B0/ALZ/sg4frIn89WrdWFwabiyB7j846kHDMR8aulCOoCg== X-Received: by 10.223.179.94 with SMTP id k30mr1182199wrd.276.1521198173945; Fri, 16 Mar 2018 04:02:53 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id g84sm5098987wmf.38.2018.03.16.04.02.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:50 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id D11C510C04F8; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 08/19] ppc64: change %x into %lx Date: Fri, 16 Mar 2018 12:02:13 +0100 Message-Id: <20180316110224.12260-9-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘cpu_cmd’: ../arch/powerpc/xmon/xmon.c:1168:18: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] printf("cpu 0x%x isn't in xmon\n", cpu); ^ ../arch/powerpc/xmon/xmon.c:1182:19: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] printf("cpu 0x%x didn't take control\n", cpu); ^ ../arch/powerpc/xmon/xmon.c: In function ‘dump_206_sprs’: ../arch/powerpc/xmon/xmon.c:1778:54: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Werror=format=] printf("srr0 = %.16lx srr1 = %.16lx dsisr = %.8x\n", ^ ../arch/powerpc/xmon/xmon.c:1780:54: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Werror=format=] printf("dscr = %.16lx ppr = %.16lx pir = %.8x\n", ^ ../arch/powerpc/xmon/xmon.c:1788:54: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Werror=format=] printf("sdr1 = %.16lx hdar = %.16lx hdsisr = %.8x\n", ^ ../arch/powerpc/xmon/xmon.c:1792:54: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Werror=format=] printf("lpcr = %.16lx pcr = %.16lx lpidr = %.8x\n", ^ ../arch/powerpc/xmon/xmon.c: In function ‘dump_207_sprs’: ../arch/powerpc/xmon/xmon.c:1809:54: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Werror=format=] printf("dpdes = %.16lx tir = %.16lx cir = %.8x\n", ^ ../arch/powerpc/xmon/xmon.c:1812:54: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Werror=format=] printf("fscr = %.16lx tar = %.16lx pspb = %.8x\n", ^ ../arch/powerpc/xmon/xmon.c:1825:22: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] printf("pmc1 = %.8x pmc2 = %.8x pmc3 = %.8x pmc4 = %.8x\n", ^ ../arch/powerpc/xmon/xmon.c:1825:34: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Werror=format=] printf("pmc1 = %.8x pmc2 = %.8x pmc3 = %.8x pmc4 = %.8x\n", ^ ../arch/powerpc/xmon/xmon.c:1825:47: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Werror=format=] printf("pmc1 = %.8x pmc2 = %.8x pmc3 = %.8x pmc4 = %.8x\n", ^ ../arch/powerpc/xmon/xmon.c:1825:62: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Werror=format=] printf("pmc1 = %.8x pmc2 = %.8x pmc3 = %.8x pmc4 = %.8x\n", ^ ../arch/powerpc/xmon/xmon.c:1828:54: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Werror=format=] printf("mmcra = %.16lx siar = %.16lx pmc5 = %.8x\n", ^ ../arch/powerpc/xmon/xmon.c:1830:54: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Werror=format=] printf("sdar = %.16lx sier = %.16lx pmc6 = %.8x\n", ^ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/spu-dis.c | 2 +- arch/powerpc/xmon/xmon.c | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/xmon/spu-dis.c b/arch/powerpc/xmon/spu-dis.c index e5f89837c82e..6b83b680b9f6 100644 --- a/arch/powerpc/xmon/spu-dis.c +++ b/arch/powerpc/xmon/spu-dis.c @@ -102,7 +102,7 @@ print_insn_spu (unsigned long insn, unsigned long memaddr) if (index == 0) { - printf(".long 0x%x", insn); + printf(".long 0x%lx", insn); } else { diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 6117164cb5ba..0e4dcdf12f9e 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -1165,7 +1165,7 @@ static int cpu_cmd(void) } /* try to switch to cpu specified */ if (!cpumask_test_cpu(cpu, &cpus_in_xmon)) { - printf("cpu 0x%x isn't in xmon\n", cpu); + printf("cpu 0x%lx isn't in xmon\n", cpu); return 0; } xmon_taken = 0; @@ -1179,7 +1179,7 @@ static int cpu_cmd(void) /* take control back */ mb(); xmon_owner = smp_processor_id(); - printf("cpu 0x%x didn't take control\n", cpu); + printf("cpu 0x%lx didn't take control\n", cpu); return 0; } barrier(); @@ -1775,9 +1775,9 @@ static void dump_206_sprs(void) /* Actually some of these pre-date 2.06, but whatevs */ - printf("srr0 = %.16lx srr1 = %.16lx dsisr = %.8x\n", + printf("srr0 = %.16lx srr1 = %.16lx dsisr = %.8lx\n", mfspr(SPRN_SRR0), mfspr(SPRN_SRR1), mfspr(SPRN_DSISR)); - printf("dscr = %.16lx ppr = %.16lx pir = %.8x\n", + printf("dscr = %.16lx ppr = %.16lx pir = %.8lx\n", mfspr(SPRN_DSCR), mfspr(SPRN_PPR), mfspr(SPRN_PIR)); printf("amr = %.16lx uamor = %.16lx\n", mfspr(SPRN_AMR), mfspr(SPRN_UAMOR)); @@ -1785,11 +1785,11 @@ static void dump_206_sprs(void) if (!(mfmsr() & MSR_HV)) return; - printf("sdr1 = %.16lx hdar = %.16lx hdsisr = %.8x\n", + printf("sdr1 = %.16lx hdar = %.16lx hdsisr = %.8lx\n", mfspr(SPRN_SDR1), mfspr(SPRN_HDAR), mfspr(SPRN_HDSISR)); printf("hsrr0 = %.16lx hsrr1 = %.16lx hdec = %.16lx\n", mfspr(SPRN_HSRR0), mfspr(SPRN_HSRR1), mfspr(SPRN_HDEC)); - printf("lpcr = %.16lx pcr = %.16lx lpidr = %.8x\n", + printf("lpcr = %.16lx pcr = %.16lx lpidr = %.8lx\n", mfspr(SPRN_LPCR), mfspr(SPRN_PCR), mfspr(SPRN_LPID)); printf("hsprg0 = %.16lx hsprg1 = %.16lx amor = %.16lx\n", mfspr(SPRN_HSPRG0), mfspr(SPRN_HSPRG1), mfspr(SPRN_AMOR)); @@ -1806,10 +1806,10 @@ static void dump_207_sprs(void) if (!cpu_has_feature(CPU_FTR_ARCH_207S)) return; - printf("dpdes = %.16lx tir = %.16lx cir = %.8x\n", + printf("dpdes = %.16lx tir = %.16lx cir = %.8lx\n", mfspr(SPRN_DPDES), mfspr(SPRN_TIR), mfspr(SPRN_CIR)); - printf("fscr = %.16lx tar = %.16lx pspb = %.8x\n", + printf("fscr = %.16lx tar = %.16lx pspb = %.8lx\n", mfspr(SPRN_FSCR), mfspr(SPRN_TAR), mfspr(SPRN_PSPB)); msr = mfmsr(); @@ -1822,12 +1822,12 @@ static void dump_207_sprs(void) printf("mmcr0 = %.16lx mmcr1 = %.16lx mmcr2 = %.16lx\n", mfspr(SPRN_MMCR0), mfspr(SPRN_MMCR1), mfspr(SPRN_MMCR2)); - printf("pmc1 = %.8x pmc2 = %.8x pmc3 = %.8x pmc4 = %.8x\n", + printf("pmc1 = %.8lx pmc2 = %.8lx pmc3 = %.8lx pmc4 = %.8lx\n", mfspr(SPRN_PMC1), mfspr(SPRN_PMC2), mfspr(SPRN_PMC3), mfspr(SPRN_PMC4)); - printf("mmcra = %.16lx siar = %.16lx pmc5 = %.8x\n", + printf("mmcra = %.16lx siar = %.16lx pmc5 = %.8lx\n", mfspr(SPRN_MMCRA), mfspr(SPRN_SIAR), mfspr(SPRN_PMC5)); - printf("sdar = %.16lx sier = %.16lx pmc6 = %.8x\n", + printf("sdar = %.16lx sier = %.16lx pmc6 = %.8lx\n", mfspr(SPRN_SDAR), mfspr(SPRN_SIER), mfspr(SPRN_PMC6)); printf("ebbhr = %.16lx ebbrr = %.16lx bescr = %.16lx\n", mfspr(SPRN_EBBHR), mfspr(SPRN_EBBRR), mfspr(SPRN_BESCR)); From patchwork Fri Mar 16 11:02:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886737 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402k3Q345Kz9sML for ; Fri, 16 Mar 2018 22:37:54 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="d9CMBEX6"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402k3Q1JkxzDqgc for ; Fri, 16 Mar 2018 22:37:54 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="d9CMBEX6"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c09::244; helo=mail-wm0-x244.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="d9CMBEX6"; dkim-atps=neutral Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jH33DrwzDrJK for ; Fri, 16 Mar 2018 22:02:55 +1100 (AEDT) Received: by mail-wm0-x244.google.com with SMTP id a20so2234372wmd.1 for ; Fri, 16 Mar 2018 04:02:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nV7DuEty42IJLqBOlEMwIonen57b1rq59AeMkIhBD0g=; b=d9CMBEX6jL8xwyb0tLvON8aoIzWzPRA7L08lULo8bBpzkwGAbgO0qWj+iol6fAVa3k dL5LQmRGMKXr/ELDe5pgHWLZXF7RBXAKtSG47lQncwiq09u22MXbC/Sf6Tx1CWnTtqfO ihEWX4lIsqek/48kqIoVnKFPqF7mfNMLTagXdeOIjFMSONTfXppb4gQxyZ1wbzV6mUEZ G9ubIwBX78N/5/R3dYnBZDj+iI2PCL8jvJ2WcNd0+/NKxkDkmoaeyjAncJPt05BKKYbz rXF/wBMUmRXtYfFgNJLU0BlUUfB4trYym+NxlnfGO+1kenqKAEE04xKYpsGatN4+3if1 BNnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=nV7DuEty42IJLqBOlEMwIonen57b1rq59AeMkIhBD0g=; b=J/P6V00lDQLOPyuZQrAeyQuPeiCgLH9ddndI87hC20GNw4RgWt9iC9WfOrUzFlyHO5 aaN+50hqU1a7Ts8pk6iUarVx0ltJU2bR7NGSmwXLr/a8UdkYjebjSPzPPOtd3YmzpaMF qaT71jb4vqrKgzBW65JhYOAcirMsihpJnF72xgvtat6CRBo8JjjQjTC8frrY1+8fUnll +2/CFX5JQnn+kjFY9KVTYPI9iS/npnQ/W7I8oSt1g7Eibwzgn0RaITfvXvWvx+A9Mj3Q QJFoCK1qqYLt3KKAoJxMyCuNOgpHoBkwR2Q5pSvfrtqMgYxij8xX9q32yDH3VEW7hADm LtSA== X-Gm-Message-State: AElRT7FxZu3fmUvHNmGh7qu5ypONtqGXydsH8zi1vl0zQeX2jPBGA97j xoshTRjSXlap+m2Ha4KESKol/orK X-Google-Smtp-Source: AG47ELtXY2U2S29Ti9787+76gMWtYbJnUrJLN6G4h6t2wtcMSGmYJcAQiftpKdqdQPdFMAjtLcN+Dg== X-Received: by 10.28.196.143 with SMTP id u137mr1287917wmf.74.1521198172737; Fri, 16 Mar 2018 04:02:52 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id b8sm6447900wrf.29.2018.03.16.04.02.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:50 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id D431A10C059F; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 09/19] ppc64: change %016lx into %p Date: Fri, 16 Mar 2018 12:02:14 +0100 Message-Id: <20180316110224.12260-10-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘show_pte’: ../arch/powerpc/xmon/xmon.c:3016:24: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘pgd_t * {aka struct *}’ [-Werror=format=] printf("pgd @ 0x%016lx\n", pgdir); ^ ../arch/powerpc/xmon/xmon.c:3022:24: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘pgd_t * {aka struct *}’ [-Werror=format=] printf("pgdp @ 0x%016lx = 0x%016lx\n", pgdp, pgd_val(*pgdp)); ^ ../arch/powerpc/xmon/xmon.c:3036:24: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘pud_t * {aka struct *}’ [-Werror=format=] printf("pudp @ 0x%016lx = 0x%016lx\n", pudp, pud_val(*pudp)); ^ ../arch/powerpc/xmon/xmon.c:3049:24: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘pmd_t * {aka struct *}’ [-Werror=format=] printf("pmdp @ 0x%016lx = 0x%016lx\n", pmdp, pmd_val(*pmdp)); ^ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 0e4dcdf12f9e..69152f00d3fc 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -3010,13 +3010,13 @@ static void show_pte(unsigned long addr) return; } - printf("pgd @ 0x%016lx\n", pgdir); + printf("pgd @ 0x%p\n", pgdir); if (pgd_huge(*pgdp)) { format_pte(pgdp, pgd_val(*pgdp)); return; } - printf("pgdp @ 0x%016lx = 0x%016lx\n", pgdp, pgd_val(*pgdp)); + printf("pgdp @ 0x%p = 0x%016lx\n", pgdp, pgd_val(*pgdp)); pudp = pud_offset(pgdp, addr); @@ -3030,7 +3030,7 @@ static void show_pte(unsigned long addr) return; } - printf("pudp @ 0x%016lx = 0x%016lx\n", pudp, pud_val(*pudp)); + printf("pudp @ 0x%p = 0x%016lx\n", pudp, pud_val(*pudp)); pmdp = pmd_offset(pudp, addr); @@ -3043,7 +3043,7 @@ static void show_pte(unsigned long addr) format_pte(pmdp, pmd_val(*pmdp)); return; } - printf("pmdp @ 0x%016lx = 0x%016lx\n", pmdp, pmd_val(*pmdp)); + printf("pmdp @ 0x%p = 0x%016lx\n", pmdp, pmd_val(*pmdp)); ptep = pte_offset_map(pmdp, addr); if (pte_none(*ptep)) { From patchwork Fri Mar 16 11:02:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886738 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402k7F1RNmz9sBL for ; Fri, 16 Mar 2018 22:41:13 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="oqJnGvRA"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402k7D6Q2NzDqqH for ; Fri, 16 Mar 2018 22:41:12 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="oqJnGvRA"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c0c::243; helo=mail-wr0-x243.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="oqJnGvRA"; dkim-atps=neutral Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jH41KXyzF07s for ; Fri, 16 Mar 2018 22:02:56 +1100 (AEDT) Received: by mail-wr0-x243.google.com with SMTP id z8so1558609wrh.7 for ; Fri, 16 Mar 2018 04:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e2UVNYfxKpTMbbOSRiCEoPWIJB14AyFSWtfJ80fAWFk=; b=oqJnGvRA2wPapqoTHW7nMhhQff8nj9bstB6zHgHs8FNQuAGIc8T7mOQnzywwFViPKv a6Sq0kBSe9j2EdWyktWVrthO2qKntUktg7dA2NSmLEY9U0tuQsEqLdT88AZslx2fW0BM Q8L3YWWTgSGho/coGiCuVegaKjOKpNoGxqJ6Wm0GaGWLuInltGWjjBifi+/jx4qSPQmT hxh6qIYLBuiHqW2TJyFwGqd1C/XSLCnXTpsxlm8MRzUJlE1/8h6jW7o5JV2qBnFPs/Ya BP4CFs34Eshu0SO0VvZIhjt1IcVG2KKnB5sbcW5t1FwD61hDMvm+sxNwiGy5R2V07G+9 QO6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=e2UVNYfxKpTMbbOSRiCEoPWIJB14AyFSWtfJ80fAWFk=; b=mkpXZz6EAtOCW2x/9Omep017vO3q+GFzsOeQTxzzjdfXxrQX7RxpPkBDbP67VkO1UX QsjATSAM85vDIP9DCxWJ2wkiQ4QiwaYa2bThCG49+USMxKxa+EHYPzq7ji0R8/OW06n2 TQ23Lghk+4gCnPY+Hn8YGRn1GgR2iApUlJA6iwOGwGNTcQ2uGr1KGiihkADFbe1sHUAG RAEOTW87RGriaIVEtkxFQlSDGWs8dt4TmU3V2wPWVNEWmSb7sgnr8L4CDmUsGk68bccN srzuNgsoVTAoJY2UU7SYqXJUIRPwIeysbmo6CkNYolzTUn71Y0Sze4RmkozeYV4bRhjC xI4A== X-Gm-Message-State: AElRT7EJSXXaCFunI5NkCfP5Z4PtFlhw/sApjOjAmMAWHfKp30H8fpAZ 1RXNKJpLYd3Zl6UCwNRUSlU= X-Google-Smtp-Source: AG47ELuFRFv9DiLfpFgQK32Q7FWz59v4T89VIfdrOuIp2tb1d+saFeJR4kSRLYQ3VAA5hZ91uVLd+A== X-Received: by 10.223.196.212 with SMTP id o20mr1233638wrf.144.1521198173510; Fri, 16 Mar 2018 04:02:53 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id 4sm6824710wra.4.2018.03.16.04.02.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:50 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id D75FA10C0681; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 10/19] ppc64: change %lx into %p Date: Fri, 16 Mar 2018 12:02:15 +0100 Message-Id: <20180316110224.12260-11-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘excprint’: ../arch/powerpc/xmon/xmon.c:1625:26: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘struct paca_struct *’ [-Werror=format=] printf(" paca = 0x%lx\t softe: %d\t irq_happened: 0x%02x\n", ^ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 69152f00d3fc..e706139030ad 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -1622,7 +1622,7 @@ static void excprint(struct pt_regs *fp) printf(" current = 0x%p\n", current); #ifdef CONFIG_PPC64 - printf(" paca = 0x%lx\t softe: %d\t irq_happened: 0x%02x\n", + printf(" paca = 0x%p\t softe: %d\t irq_happened: 0x%02x\n", local_paca, local_paca->irq_soft_mask, local_paca->irq_happened); #endif if (current) { From patchwork Fri Mar 16 11:02:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886741 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402kHb67mBz9sBk for ; Fri, 16 Mar 2018 22:48:27 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mlKuo6dk"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402kHb4fCNzDqqN for ; Fri, 16 Mar 2018 22:48:27 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mlKuo6dk"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c0c::242; helo=mail-wr0-x242.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mlKuo6dk"; dkim-atps=neutral Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jH556njzF07s for ; Fri, 16 Mar 2018 22:02:57 +1100 (AEDT) Received: by mail-wr0-x242.google.com with SMTP id s18so11222450wrg.9 for ; Fri, 16 Mar 2018 04:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IxndPE3nCPg8qTjKGkyRCsYRQXW6hEZQ4qDL+6DDCCE=; b=mlKuo6dkhWqASh4o+1/i01Nrg2S9Qs4zRT94ti2k39AqEKoL3IW788NFxrh+r7o2OV RJTkUmdfi4KjPueIt4Mv2MXZ6la4PNlM/n4HNNfPcEFHkUy++pMtproRJ3GokzZ4wXCW xhi3JNpYEVtoQl5aDHTCkQw7UuW/ZGherIXasicj5DJJYntvwM9NrvSY3YA3XzXCcwtp EcuFN2uIIYeAlnRKeU8zgT65SxdxJVazazqlCw3wjXApIMvv3yj3ha/3oPoa29jYhzYW nL+GGn87aUwf4mKjMZ652AdH3fpGU+L0T2fcK29rBU1Qc6nUklasEQkIZz1vzLP+ZexH 5how== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=IxndPE3nCPg8qTjKGkyRCsYRQXW6hEZQ4qDL+6DDCCE=; b=EJteranKhMc2fZ0wMV7w16jZh4R7wd9tqd6zsqGd3+N8Rej6jabxLdBAnW/WwaxW2t hgYlUrGc5OEcT8hGKIp5pEz/jtF4ZaGjVHmstcYncVAzR1NzLt/O/vhuxoD/GGMGMeuR ZZorGcrYpZ6sW0nlLOPoX5erC9bwNvU4llEbYQzCLuTGo1vB3VnS6MMDRePTtrixeVmv oZU1Sih200tc2mWi/kFKpJy5u6M7Z1WfwC6eN1oJ3MkwWd0nnbBDBVO54u79hSHK1hUL LM1zIN1En2GfF/BLfduoqm2CVIXcYKuYG1f7gG7iM93aM/d8TUpJ18YctCtaF4Ko7//9 b6iw== X-Gm-Message-State: AElRT7ECU/mnsPrSzv3TW2oZayfo5OLcppei1Lp9GGmxtcX5iefSLQPs vhSNgHe/e9pw9u/xOkokHv0= X-Google-Smtp-Source: AG47ELuNqWuItVRHna9zM0JLefBlpQ8FMZgsB3Sw/dJ3nXbXLrptjvBUiurXMQfc3fkn/yy2HMAjZw== X-Received: by 10.223.135.103 with SMTP id 36mr1341115wrz.240.1521198175048; Fri, 16 Mar 2018 04:02:55 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id d17sm7976970wrc.69.2018.03.16.04.02.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:52 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id DA59510C0682; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 11/19] ppc64: change %lx into %x Date: Fri, 16 Mar 2018 12:02:16 +0100 Message-Id: <20180316110224.12260-12-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘dump_one_paca’: ../arch/powerpc/xmon/xmon.c:2380:43: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘u32 {aka unsigned int}’ [-Werror=format=] printf(" slb_cache[%d]: = 0x%016lx\n", i, p->slb_cache[i]); ^ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index e706139030ad..7eb656274ea7 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -2374,7 +2374,7 @@ static void dump_one_paca(int cpu) DUMP(p, vmalloc_sllp, "x"); DUMP(p, slb_cache_ptr, "x"); for (i = 0; i < SLB_CACHE_ENTRIES; i++) - printf(" slb_cache[%d]: = 0x%016lx\n", i, p->slb_cache[i]); + printf(" slb_cache[%d]: = 0x%016x\n", i, p->slb_cache[i]); DUMP(p, rfi_flush_fallback_area, "px"); #endif @@ -3851,9 +3851,9 @@ static void dump_spu_fields(struct spu *spu) DUMP_FIELD(spu, "0x%lx", class_0_dar); DUMP_FIELD(spu, "0x%lx", class_1_dar); DUMP_FIELD(spu, "0x%lx", class_1_dsisr); - DUMP_FIELD(spu, "0x%lx", irqs[0]); - DUMP_FIELD(spu, "0x%lx", irqs[1]); - DUMP_FIELD(spu, "0x%lx", irqs[2]); + DUMP_FIELD(spu, "0x%x", irqs[0]); + DUMP_FIELD(spu, "0x%x", irqs[1]); + DUMP_FIELD(spu, "0x%x", irqs[2]); DUMP_FIELD(spu, "0x%x", slb_replace); DUMP_FIELD(spu, "%d", pid); DUMP_FIELD(spu, "0x%p", mm); From patchwork Fri Mar 16 11:02:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886743 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402kRB53FJz9sC1 for ; Fri, 16 Mar 2018 22:55:02 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Zar8/9WV"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402kRB2N6lzDqGZ for ; Fri, 16 Mar 2018 22:55:02 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Zar8/9WV"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c0c::241; helo=mail-wr0-x241.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Zar8/9WV"; dkim-atps=neutral Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jH856s6zDrJK for ; Fri, 16 Mar 2018 22:03:00 +1100 (AEDT) Received: by mail-wr0-x241.google.com with SMTP id m12so11203817wrm.13 for ; Fri, 16 Mar 2018 04:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cVwyAiwLWaW7kWgAfF9W0dywfAxijNNtwqeBb7VGyD4=; b=Zar8/9WVy5lX3BJy7BtbALNIXbRNyDU4k0FC+zbwEkS9yNsgiYEtY5zF7Nk3sVfn+Z 9mVbrhKvRJTmP2q7xurRtfrKi5PchB5EYk5Y7sGkWOr2uFoUB1vBbR6brkVvYhXJ8HLB 9voAtMcAORJomug6QBYZ9hyVQp+qQSW4y7zkWjmkOvb8VjrCmDBMGqtzOBfajorGpZz+ 3z3VnWZrJ+lYRgY53TBp4dJ+GdxZRdZucCX2ghc8b16d6BTTRHAX5tUCIQkyNuUaxSiL iq/IxIP7vVy5jMVm6eF0PaSvDErav20mPfMDmWIBloRVjK2wm4G+noRg29xJ7+2RKgs2 luzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=cVwyAiwLWaW7kWgAfF9W0dywfAxijNNtwqeBb7VGyD4=; b=BPEb6rrTITx/j8p4loySRDr3zdpgktrJSvtJJZ+9xV9WAnYoU2QRLQLh0pAGh8drqn ZYKlJif0zbpFA3m0QDHFGcn/nOdHezs5Rjc289d6YaLifjUmzzOFNRDhS+WDrFlZxBL+ dLkejpmchNWuuxRH8LT+bKfq46t+R9DC2fg8Xd2Pz1djV6UpEUwbm5tWJe556ehqDg+/ oPjC53Gai5ZAoEySPNaYJFodHE+F11yxXMv/jNj/LPtcpFHVcJAXIl0ijHkPPiOOKW4M roj1DcFiBWz/3i6oyVEweUZ0cdY2xCqDWUkIhBUlkoKVOLLCNVgoHgV42SHiOCBhrioi JR6Q== X-Gm-Message-State: AElRT7F8uTBVycmKOIthTaKhTqHhip4N8NTHlhoRG3HrDprC1VrZTcHo p1n0NyU/DH9ILYC5WaBF37k= X-Google-Smtp-Source: AG47ELsXHDJ5Srn3PwmUHECtAoKxUI9fI40KdSH/qJhexXAbfbeXv//YcV3ofAcyg/sfLfdF/RAKlw== X-Received: by 10.223.175.201 with SMTP id y9mr1218009wrd.107.1521198177209; Fri, 16 Mar 2018 04:02:57 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id n190sm2027460wmb.15.2018.03.16.04.02.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:53 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id DD36C10C0690; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 12/19] ppc64: change %lx into %llx Date: Fri, 16 Mar 2018 12:02:17 +0100 Message-Id: <20180316110224.12260-13-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘dump_one_paca’: ../arch/powerpc/xmon/xmon.c:2339:9: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘u64 {aka long long unsigned int}’ [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ ../arch/powerpc/xmon/xmon.c:2347:2: note: in expansion of macro ‘DUMP’ DUMP(p, kernel_toc, "lx"); ^~~~ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 7eb656274ea7..96247ac91a86 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -2341,9 +2341,9 @@ static void dump_one_paca(int cpu) DUMP(p, lock_token, "x"); DUMP(p, paca_index, "x"); - DUMP(p, kernel_toc, "lx"); - DUMP(p, kernelbase, "lx"); - DUMP(p, kernel_msr, "lx"); + DUMP(p, kernel_toc, "llx"); + DUMP(p, kernelbase, "llx"); + DUMP(p, kernel_msr, "llx"); DUMP(p, emergency_sp, "px"); #ifdef CONFIG_PPC_BOOK3S_64 DUMP(p, nmi_emergency_sp, "px"); @@ -2352,7 +2352,7 @@ static void dump_one_paca(int cpu) DUMP(p, in_mce, "x"); DUMP(p, hmi_event_available, "x"); #endif - DUMP(p, data_offset, "lx"); + DUMP(p, data_offset, "llx"); DUMP(p, hw_cpu_id, "x"); DUMP(p, cpu_start, "x"); DUMP(p, kexec_state, "x"); @@ -2367,7 +2367,7 @@ static void dump_one_paca(int cpu) vsid = be64_to_cpu(p->slb_shadow_ptr->save_area[i].vsid); if (esid || vsid) { - printf(" slb_shadow[%d]: = 0x%016lx 0x%016lx\n", + printf(" slb_shadow[%d]: = 0x%016llx 0x%016llx\n", i, esid, vsid); } } @@ -2388,10 +2388,10 @@ static void dump_one_paca(int cpu) DUMP(p, dbg_kstack, "px"); #endif DUMP(p, __current, "px"); - DUMP(p, kstack, "lx"); - printf(" kstack_base = 0x%016lx\n", p->kstack & ~(THREAD_SIZE - 1)); - DUMP(p, stab_rr, "lx"); - DUMP(p, saved_r1, "lx"); + DUMP(p, kstack, "llx"); + printf(" kstack_base = 0x%016llx\n", p->kstack & ~(THREAD_SIZE - 1)); + DUMP(p, stab_rr, "llx"); + DUMP(p, saved_r1, "llx"); DUMP(p, trap_save, "x"); DUMP(p, irq_soft_mask, "x"); DUMP(p, irq_happened, "x"); @@ -3848,9 +3848,9 @@ static void dump_spu_fields(struct spu *spu) DUMP_FIELD(spu, "0x%x", node); DUMP_FIELD(spu, "0x%lx", flags); DUMP_FIELD(spu, "%d", class_0_pending); - DUMP_FIELD(spu, "0x%lx", class_0_dar); - DUMP_FIELD(spu, "0x%lx", class_1_dar); - DUMP_FIELD(spu, "0x%lx", class_1_dsisr); + DUMP_FIELD(spu, "0x%llx", class_0_dar); + DUMP_FIELD(spu, "0x%llx", class_1_dar); + DUMP_FIELD(spu, "0x%llx", class_1_dsisr); DUMP_FIELD(spu, "0x%x", irqs[0]); DUMP_FIELD(spu, "0x%x", irqs[1]); DUMP_FIELD(spu, "0x%x", irqs[2]); From patchwork Fri Mar 16 11:02:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886758 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402kc86Vs0z9s3C for ; Fri, 16 Mar 2018 23:02:48 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="G+XsmNXC"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402kc8540XzDqmB for ; Fri, 16 Mar 2018 23:02:48 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="G+XsmNXC"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c09::244; helo=mail-wm0-x244.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="G+XsmNXC"; dkim-atps=neutral Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jH95Q4QzDqxx for ; Fri, 16 Mar 2018 22:03:01 +1100 (AEDT) Received: by mail-wm0-x244.google.com with SMTP id a20so2234880wmd.1 for ; Fri, 16 Mar 2018 04:03:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=X0xT552wcCurOVTI7IbFpIWwbrW0bmFXmtdw+DhT8lI=; b=G+XsmNXCqMm8zPOPS6dpEajSyC6C9MN5O28HNEZDkbjjoYX5nRy7fj3HJ4hcaYP7e6 WJIXd6P6Jbp7S0KTHEefLi6EVLNK9JLt5fKYJR/1TyB3xXKLg0KOrPyfpv/d/Eot2ppL Za6f5np/F1nDX1ETmbvAVC0CsKwX6xFUyCIKCj9eii2C/guie8WPCX3wOtO4z2DEJLoq Qw6l5QJGPa6AR5iDbuj3RSmqsuu8h63T/Y/W3g86HRm8EEzR5C/6Y3lAM1eTkihgy0XA /6SdwDLMrBGF1ap0qe8Q+Ll7VsvrX6DlW2MIg2HUt9DGyqd5mcbOJg4CtazbPyIR59t4 Ty9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=X0xT552wcCurOVTI7IbFpIWwbrW0bmFXmtdw+DhT8lI=; b=kY1aHgQ04xnbAFsD733aUTShk9t0m4VpZ7Odn0GkkspFtZJf6O7wyeQnrxCxSdBla/ Csw8ofYqziRMATuZJH7ZP3BLtWH5Yxbo5elwWq3BQuWGaoDQQQec0qLIGj5AkNY3Shlr YQ+1pEGIR/+QMI4BHK1OYzNpLJA7hG+SJIYgZyqts2rUSJ4aQBqWpJm0H9wWMkPF0V1+ VszPUVlL4h17rwmcwJYOS4fflNBATjpmtS/a6+Ce7ywcRMwx+3z/5mf5OrStVXWtihYn rI/pPEkSwSWz4Ob2VNv4d4dBDeZJckKG6HJimE/ohJvL4hXUqEX1I/4oEZ+J97+X1ZdG gFog== X-Gm-Message-State: AElRT7EISv9SW4FgNo7DoCfxz0T2N6vQkw5xVPZcfx0hQvys9ZaXX+YF Um/5GAj/5BEzlLvf04O2Mbc= X-Google-Smtp-Source: AG47ELtfmN7mblDfZCWU7oe/oraVHkQsqzWU0r8V/0Mq+OBjRPZyMkGZDn0x5Tl6Y2dkembEbmFjfA== X-Received: by 10.28.184.8 with SMTP id i8mr1532156wmf.52.1521198179017; Fri, 16 Mar 2018 04:02:59 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id w21sm1288148wrb.95.2018.03.16.04.02.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:54 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id E08DD10C0693; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 13/19] ppc64: change %llx into %lx Date: Fri, 16 Mar 2018 12:02:18 +0100 Message-Id: <20180316110224.12260-14-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘dump_one_paca’: ../arch/powerpc/xmon/xmon.c:2339:9: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ ../arch/powerpc/xmon/xmon.c:2417:2: note: in expansion of macro ‘DUMP’ DUMP(p, accounting.utime, "llx"); ^~~~ ../arch/powerpc/xmon/xmon.c:2339:9: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ ../arch/powerpc/xmon/xmon.c:2418:2: note: in expansion of macro ‘DUMP’ DUMP(p, accounting.stime, "llx"); ^~~~ ../arch/powerpc/xmon/xmon.c:2339:9: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ ../arch/powerpc/xmon/xmon.c:2419:2: note: in expansion of macro ‘DUMP’ DUMP(p, accounting.utime_scaled, "llx"); ^~~~ ../arch/powerpc/xmon/xmon.c:2339:9: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ ../arch/powerpc/xmon/xmon.c:2420:2: note: in expansion of macro ‘DUMP’ DUMP(p, accounting.starttime, "llx"); ^~~~ ../arch/powerpc/xmon/xmon.c:2339:9: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ ../arch/powerpc/xmon/xmon.c:2421:2: note: in expansion of macro ‘DUMP’ DUMP(p, accounting.starttime_user, "llx"); ^~~~ ../arch/powerpc/xmon/xmon.c:2339:9: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ ../arch/powerpc/xmon/xmon.c:2422:2: note: in expansion of macro ‘DUMP’ DUMP(p, accounting.startspurr, "llx"); ^~~~ ../arch/powerpc/xmon/xmon.c:2339:9: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ ../arch/powerpc/xmon/xmon.c:2423:2: note: in expansion of macro ‘DUMP’ DUMP(p, accounting.utime_sspurr, "llx"); ^~~~ ../arch/powerpc/xmon/xmon.c:2339:9: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ ../arch/powerpc/xmon/xmon.c:2424:2: note: in expansion of macro ‘DUMP’ DUMP(p, accounting.steal_time, "llx"); ^~~~ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 96247ac91a86..61f5e09367d0 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -2411,14 +2411,14 @@ static void dump_one_paca(int cpu) DUMP(p, subcore_sibling_mask, "x"); #endif - DUMP(p, accounting.utime, "llx"); - DUMP(p, accounting.stime, "llx"); - DUMP(p, accounting.utime_scaled, "llx"); - DUMP(p, accounting.starttime, "llx"); - DUMP(p, accounting.starttime_user, "llx"); - DUMP(p, accounting.startspurr, "llx"); - DUMP(p, accounting.utime_sspurr, "llx"); - DUMP(p, accounting.steal_time, "llx"); + DUMP(p, accounting.utime, "lx"); + DUMP(p, accounting.stime, "lx"); + DUMP(p, accounting.utime_scaled, "lx"); + DUMP(p, accounting.starttime, "lx"); + DUMP(p, accounting.starttime_user, "lx"); + DUMP(p, accounting.startspurr, "lx"); + DUMP(p, accounting.utime_sspurr, "lx"); + DUMP(p, accounting.steal_time, "lx"); #undef DUMP catch_memory_errors = 0; From patchwork Fri Mar 16 11:02:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886742 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402kMX697Rz9sC1 for ; Fri, 16 Mar 2018 22:51:52 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MTrivX8y"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402kMX3sJXzDqxx for ; Fri, 16 Mar 2018 22:51:52 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MTrivX8y"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c0c::244; helo=mail-wr0-x244.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MTrivX8y"; dkim-atps=neutral Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jH84s4QzDr5S for ; Fri, 16 Mar 2018 22:03:00 +1100 (AEDT) Received: by mail-wr0-x244.google.com with SMTP id v65so11223842wrc.11 for ; Fri, 16 Mar 2018 04:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PLBIu35CCiUPUvGPWPdPPOJiwVjvRJAT+to76oqs4t8=; b=MTrivX8y45UwcTGNhql86r7yCMtzO3SpxCJ0QzN2PsUT07/1AqsR1g0EIyYlkFkcLe GwOHnfyvSpVOrPeapOAzT96NUWToFMi5Eo3HCcC4NP8PqKEGaU3OPwcJUQGGNv4D0G17 MxCtQYPHap3io1RizZh/D4v/tYdicoAeRlPw2rOemBWQkYLYQJyzsBYJmDYL2zzcNuF9 +ze9I4IEru9EEPcDU0OXO5692FEvXuVzyA4Y4zzJBsrTwMUJNkwpOkz3/gMqLrfZE0rV tssQ/iSOEumCHA0baq4exzJMLrzhpUnlXKaGMBowL9mJ2pj+9DIQd49Jz460vnkIEMej n/lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=PLBIu35CCiUPUvGPWPdPPOJiwVjvRJAT+to76oqs4t8=; b=DV0ZuZ1tLJTBG79StkhRElvjq9ctWf1tcQVWfjA5Pj84rzRQ5D0Zrfru7q6VPL/eId AKANu0/25+pB/cGQMrOQALDqPNFodgAOfOL4wE7GhlONBoHeNZ1KK6W7ieSmZWLop+9j KWLCtsTq2HXoZ75SmCSoxiFL4ctt8oOGGHYeNZzl2wf3iP+LswwL9vHlaSs0is0jd1Cz qKDYnATcetmmRwiN7ojGIwW9MlPxb7beQ0UYi4B3cYtyqYDqXRtV0UWbq88suqtFLsFj FJ48fmc3kM0lC8x9Y1lwBIEm/5Wr0SAHoKT0+LAiyO2bpYHeFwzqByvZPAes9l6IiYVN 0c0g== X-Gm-Message-State: AElRT7HC6wV/bdAjkhmI90RwStKxsgNEqFFJWFg9tmRjYzT5UWfdpywy 1RIBJq1PPYnaV76FzRD74qPNr+xu X-Google-Smtp-Source: AG47ELtWKj0oEw1t1Kt7HoAs2X4DmIBzKnb7Z93yTSPsO7e6ZbsjrZHQbBEvo/UISGy+B8sEXI245Q== X-Received: by 10.223.144.2 with SMTP id h2mr1220455wrh.114.1521198177940; Fri, 16 Mar 2018 04:02:57 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id 59sm7155434wro.57.2018.03.16.04.02.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:54 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id E3D6810C0697; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 14/19] ppc64: change %p into %llx Date: Fri, 16 Mar 2018 12:02:19 +0100 Message-Id: <20180316110224.12260-15-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘dump_spu_fields’: ../arch/powerpc/xmon/xmon.c:3827:10: error: format ‘%p’ expects argument of type ‘void *’, but argument 4 has type ‘long long unsigned int’ [-Werror=format=] printf(" %-*s = "format"\n", DUMP_WIDTH, \ ^ ../arch/powerpc/xmon/xmon.c:3840:2: note: in expansion of macro ‘DUMP_VALUE’ DUMP_VALUE(format, field, obj->field) ^~~~~~~~~~ ../arch/powerpc/xmon/xmon.c:3865:2: note: in expansion of macro ‘DUMP_FIELD’ DUMP_FIELD(spu, "0x%p", timestamp); ^~~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 61f5e09367d0..6b5b5318099d 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -3859,7 +3859,7 @@ static void dump_spu_fields(struct spu *spu) DUMP_FIELD(spu, "0x%p", mm); DUMP_FIELD(spu, "0x%p", ctx); DUMP_FIELD(spu, "0x%p", rq); - DUMP_FIELD(spu, "0x%p", timestamp); + DUMP_FIELD(spu, "0x%llx", timestamp); DUMP_FIELD(spu, "0x%lx", problem_phys); DUMP_FIELD(spu, "0x%p", problem); DUMP_VALUE("0x%x", problem->spu_runcntl_RW, From patchwork Fri Mar 16 11:02:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886753 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402kWJ4XlNz9sC7 for ; Fri, 16 Mar 2018 22:58:36 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TrXa8ee/"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402kWJ0stBzDqnq for ; Fri, 16 Mar 2018 22:58:36 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TrXa8ee/"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c09::242; helo=mail-wm0-x242.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TrXa8ee/"; dkim-atps=neutral Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jH917nrzF0Xw for ; Fri, 16 Mar 2018 22:03:01 +1100 (AEDT) Received: by mail-wm0-x242.google.com with SMTP id t3so2265758wmc.2 for ; Fri, 16 Mar 2018 04:03:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yMHMhVlH9vmSBu6gz9rRmuUMV1uxsMWLZHwdkcD+bxI=; b=TrXa8ee/Yg1WGsqOzyG/gMFimEWx5c2VRNTSjQjxBo2QbUOVfhBf3ydv/fOtoqmZcs 173zMPxSMEsiAawuQ9vBB0jQHfEx0qbwb35RcJWp7yoH9OEdfRWudPRrg9qRILTxnGl0 j3rDZmaFA4tIi8fAZLD9aTzT4+hrJNC5TbeLljOxLFFcHXPQZ46IBBTzV5JiexFl5RzR kkBc23resAyiLy1j8RfOBeOXN4VckaFZWNPlyDYlYsbsJ5A0XjvfdPksbabipnv4/HNl BXfZ8ol673HoNjJfDlIfHGtvHhHNIlzoHeUmvQ3fcK2/FXUUY6SulUn4pPyiY5SnekhY vWjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=yMHMhVlH9vmSBu6gz9rRmuUMV1uxsMWLZHwdkcD+bxI=; b=IFPynIpX+i1dktMMNt3iRua2PxCVt9/ASRViNstItC4sk9NhbCo6LI+migYJD+RlyB 0MekdUSLRT/EBrlZ22UKUlJRAwD+Y0Lfhlf90jr9tDd5eJWaSTv7S7YKGYBmiFwaPFHI f3J6HeaLRB6wOPwcGQGdC4akjrgKDDkJfHOT+lhKMasydFkv5eiKy6u8r5ofHLGBynLc S7dtwR2tiLaJX7qsirjVRdNGRiE+ObAltZThs+ZnOGlN05Qj3xW3zQP+X+3kS4HE83Ml e5fX7lfa/2tZV2BAv6/4Tu37gAZMs4Qw4Q/Z6D7ieKDojtNd13zzEV1ZWlmn6KFH4lo6 NAeQ== X-Gm-Message-State: AElRT7HNQVhwNT5VnImDE4cPZXQs+FVeM8xME4MJIohET9QxKuYTzICR oQnyLrN7bvzzw6KFBi04V7g= X-Google-Smtp-Source: AG47ELsJjn3tR+351jzCAvfwGLiL626EI5oJZLm46EPYMHl9AoAxrlN/OfoyongvT4iUh/8z6UeJ8w== X-Received: by 10.28.230.68 with SMTP id d65mr1507691wmh.13.1521198178475; Fri, 16 Mar 2018 04:02:58 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id f3sm5424695wre.72.2018.03.16.04.02.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:54 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id E78A910C0698; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 15/19] ppc64: change %d into %ld Date: Fri, 16 Mar 2018 12:02:20 +0100 Message-Id: <20180316110224.12260-16-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘dump_spu_ls’: ../arch/powerpc/xmon/xmon.c:3896:50: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] printf("*** Error: accessing spu info for spu %d\n", num); ^ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 6b5b5318099d..c9a44962d3c9 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -3890,7 +3890,7 @@ static void dump_spu_ls(unsigned long num, int subcmd) __delay(200); } else { catch_memory_errors = 0; - printf("*** Error: accessing spu info for spu %d\n", num); + printf("*** Error: accessing spu info for spu %ld\n", num); return; } catch_memory_errors = 0; From patchwork Fri Mar 16 11:02:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886768 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402kwY0nRvz9sCc for ; Fri, 16 Mar 2018 23:17:01 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Sy6FaE7h"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402kwX6RJczDqBf for ; Fri, 16 Mar 2018 23:17:00 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Sy6FaE7h"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c09::241; helo=mail-wm0-x241.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Sy6FaE7h"; dkim-atps=neutral Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jTG5PgJzDrNC for ; Fri, 16 Mar 2018 22:11:46 +1100 (AEDT) Received: by mail-wm0-x241.google.com with SMTP id u10so2317941wmu.4 for ; Fri, 16 Mar 2018 04:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wWKl/+I6mU1v61bpCZRDHy2oxAoc6zJr8BtAe+SxSqc=; b=Sy6FaE7hI/TJA5eH4xFIhPnnnTlv8+V7tLKrppT6D81JF4lqhxjPTFESouqeOzox90 fWM7no9ZLqLNvond2JSw7DRtd+bMeUDuIvfNDkPlCEziU9LzWPP+ul6V/aQ0szOrOT5t 5azYi7D13iWFcLEDdd2hZ8pA4IRr6hT9SVbFoDu/1VbJ5FcCHQunUgGtT9jtEXR105US GnkjOR1hKoTRUSqbTPdNtmDhNe/u0ohYsNo1DyO4ZbO801bp6oe5NPyJEX+xvcIinsLr K9VY4fCjvJ7MAkwzbaWPoDXTmp+MDgOP//963GZNLgvV6haXVDUuzaIv9kLa+eWpXnmR o7LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=wWKl/+I6mU1v61bpCZRDHy2oxAoc6zJr8BtAe+SxSqc=; b=WhZiTa4TS5x1TYVhIn2md2aWHwICMr3/wPxXG2907Kj5kWGIl6yRfF1R59wYuTrbqw ZSyXNNyjS3b5r7D/6ELYjTTOcZcj7bxlR+K5fnsrX7JYklMdDY4scjWMaDDPqCdPWjkI diEHf6iHvYocU2nplLtPrg+Iw7DmSLg1bxDHMMp3xCK3MZqWLH2EDcH9m4oJaAYA+R9e 6XVp15nvRjvLrBJ2Xe4d16NrwKEProgyGufl8r3Ctd59VtcyZRj9dZEgnltSvFnG8v/d EYJNscNrh2cAkRksfV/y+9LuJAlf5VTDPKTN9WKMzDTURKQIoClI/YyZ7FZvTWUrBkXr hk4w== X-Gm-Message-State: AElRT7HvYzUBhyxVLFU8vn3AbtVkcN2T06Ai+YVjyiQA6c3AEjvCyHXt JXCjKeZdXnuBRfhglLEwh78= X-Google-Smtp-Source: AG47ELuCUMXvt/HAALzmWCU+Zw/QHifls4zu0WvsX/aUoghXYgqBwn0Tw5jDkDNiOaYfHLIPY5BUSQ== X-Received: by 10.28.26.202 with SMTP id a193mr1496246wma.138.1521198703301; Fri, 16 Mar 2018 04:11:43 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id l41sm9856166wrl.2.2018.03.16.04.11.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:11:42 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id EBCE510C069A; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 16/19] ppc64: Change %d into %lu Date: Fri, 16 Mar 2018 12:02:21 +0100 Message-Id: <20180316110224.12260-17-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/spu-dis.o ../arch/powerpc/xmon/spu-dis.c: In function ‘print_insn_spu’: ../arch/powerpc/xmon/spu-dis.c:137:18: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] printf("$%d", ^ ../arch/powerpc/xmon/spu-dis.c:141:18: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] printf("$%d", ^ ../arch/powerpc/xmon/spu-dis.c:145:18: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] printf("$%d", ^ ../arch/powerpc/xmon/spu-dis.c:149:18: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] printf("$%d", ^ ../arch/powerpc/xmon/spu-dis.c:153:20: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] printf("$sp%d", ^ ../arch/powerpc/xmon/spu-dis.c:157:20: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] printf("$ch%d", ^ ../arch/powerpc/xmon/spu-dis.c:165:17: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] printf("%d", ^ ../arch/powerpc/xmon/spu-dis.c:169:17: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=] printf("%d", ^ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/spu-dis.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/xmon/spu-dis.c b/arch/powerpc/xmon/spu-dis.c index 6b83b680b9f6..4cbc7da88524 100644 --- a/arch/powerpc/xmon/spu-dis.c +++ b/arch/powerpc/xmon/spu-dis.c @@ -134,27 +134,27 @@ print_insn_spu (unsigned long insn, unsigned long memaddr) switch (arg) { case A_T: - printf("$%d", + printf("$%lu", DECODE_INSN_RT (insn)); break; case A_A: - printf("$%d", + printf("$%lu", DECODE_INSN_RA (insn)); break; case A_B: - printf("$%d", + printf("$%lu", DECODE_INSN_RB (insn)); break; case A_C: - printf("$%d", + printf("$%lu", DECODE_INSN_RC (insn)); break; case A_S: - printf("$sp%d", + printf("$sp%lu", DECODE_INSN_RA (insn)); break; case A_H: - printf("$ch%d", + printf("$ch%lu", DECODE_INSN_RA (insn)); break; case A_P: @@ -162,11 +162,11 @@ print_insn_spu (unsigned long insn, unsigned long memaddr) printf("("); break; case A_U7A: - printf("%d", + printf("%lu", 173 - DECODE_INSN_U8 (insn)); break; case A_U7B: - printf("%d", + printf("%lu", 155 - DECODE_INSN_U8 (insn)); break; case A_S3: From patchwork Fri Mar 16 11:02:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886761 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402kgL3Y3Hz9s3C for ; Fri, 16 Mar 2018 23:05:34 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="j6INRM5G"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402kgL1y7XzDqpc for ; Fri, 16 Mar 2018 23:05:34 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="j6INRM5G"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c0c::244; helo=mail-wr0-x244.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="j6INRM5G"; dkim-atps=neutral Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jHB141czDr5S for ; Fri, 16 Mar 2018 22:03:02 +1100 (AEDT) Received: by mail-wr0-x244.google.com with SMTP id o1so11246675wro.10 for ; Fri, 16 Mar 2018 04:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1by/9IjNbmtnTcX4kPE3vpLsNGAgHfLEmhFkyqsRzFo=; b=j6INRM5Glj41VA5IhtmolFRVyhL76EyYVbRciErIGW1hOZdzkxaIlQoeUfphsgZeSC wrcVYwBE6l3dgz1P4Wjl1F7YwgmmojrQUCvkjOiyzrl8qtnRclq4NGZJAxSKlqHnEjpj huqkJjYtbKhZCC3ISPp3wByJKMhTLZgE2Z9c0dFLM1r0JwqcC7QBxbLtjNgl0OkSJme0 Yn8GYFwHJDYXNMItAryG9Q4XxBwF8i5+Ism7BHFLPrQti3N0A0YE0hfmJfbQ7nGaUn53 KBRcyHmyjaw5+j14pkYF/C+jjhf/82JWCNfr4dM078K7AdmlCHIhc85/Vbip5u0k4yeB /nCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=1by/9IjNbmtnTcX4kPE3vpLsNGAgHfLEmhFkyqsRzFo=; b=Z+98usTowb4MTyczHkxNOPz2ylsf/d4T1Je2BJIYaVDQL60cvaZV8tRYq28Y0T3KSR P09JsWIw3TiqKSxlsQ/bBssLCv867Sfzb6IdeO4xextSu8lV9SY1mx9Kl3PYP5eyLzKS dRUHOfL/mSeH8c/BqPGXqZX/T/jWe2UEqNO5JhFYZs4z0QXlH43OZs29AeJPFpUDXPE0 cdjJQtUIvfdVZ8I07JsUXuMzWrA0Znhne2OJ38n4PVFqvMtCZfX3+KPXjZ2CeS08Cphh qeZWOWg6j8U3hLL8/AIulU9sNMOmvk/9h3vGh00+aIWyC7rOQYvhBa8muDVwy1/0RhdC XhkQ== X-Gm-Message-State: AElRT7Fx2BpeX1JwjL6N1cqxdahqjKHAKsnLpIeNpUgyTdSlf+rBoiWc gbqoNwL6PysvUFeXH4LmNL8= X-Google-Smtp-Source: AG47ELv6j8PhF3ZmyKwiiYlI6W4jFHNiI+3DzIo+8dsCwklXXFoiToMkdHu6UPKBkFZ7tt++ebHqAA== X-Received: by 10.223.130.107 with SMTP id 98mr1192322wrb.16.1521198179472; Fri, 16 Mar 2018 04:02:59 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id 59sm7155534wro.57.2018.03.16.04.02.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:54 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id EF76D10C06A4; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 17/19] ppc64: change %d into %llu Date: Fri, 16 Mar 2018 12:02:22 +0100 Message-Id: <20180316110224.12260-18-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘dump_spu_fields’: ../arch/powerpc/xmon/xmon.c:3827:10: error: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘u64 {aka long long unsigned int}’ [-Werror=format=] printf(" %-*s = "format"\n", DUMP_WIDTH, \ ^ ../arch/powerpc/xmon/xmon.c:3840:2: note: in expansion of macro ‘DUMP_VALUE’ DUMP_VALUE(format, field, obj->field) ^~~~~~~~~~ ../arch/powerpc/xmon/xmon.c:3853:2: note: in expansion of macro ‘DUMP_FIELD’ DUMP_FIELD(spu, "%d", class_0_pending); ^~~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index c9a44962d3c9..4479245c6361 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -3847,7 +3847,7 @@ static void dump_spu_fields(struct spu *spu) DUMP_FIELD(spu, "0x%lx", ls_size); DUMP_FIELD(spu, "0x%x", node); DUMP_FIELD(spu, "0x%lx", flags); - DUMP_FIELD(spu, "%d", class_0_pending); + DUMP_FIELD(spu, "%llu", class_0_pending); DUMP_FIELD(spu, "0x%llx", class_0_dar); DUMP_FIELD(spu, "0x%llx", class_1_dar); DUMP_FIELD(spu, "0x%llx", class_1_dsisr); From patchwork Fri Mar 16 11:02:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886767 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402krN1k9Dz9sNq for ; Fri, 16 Mar 2018 23:13:24 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GR2QnWjV"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402krM6FWMzDqh1 for ; Fri, 16 Mar 2018 23:13:23 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GR2QnWjV"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c0c::242; helo=mail-wr0-x242.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GR2QnWjV"; dkim-atps=neutral Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jTF743RzDqj7 for ; Fri, 16 Mar 2018 22:11:45 +1100 (AEDT) Received: by mail-wr0-x242.google.com with SMTP id v65so11252310wrc.11 for ; Fri, 16 Mar 2018 04:11:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z2+aHfU6oX5Cs+UlA2qqgB/qMVOfOYgvfSlmKW31Paw=; b=GR2QnWjVmcZOPn8qUPPlCU/ZsZAYgcV0pPoo6XIF7ChM0NNieN324gH0LsMUmjPZ4i EQle9m6sdH+wtBLe5+/e1kmVBEOvQEzsYUEFc+ldbpBN0yL4BiwbHg7LcoA0TiAkqJjd dyXsuY5EuIIs+qmphMnO4yT58y6fjhQqQzEqQBuLiIs0jc5A8bXWAaZuz5tJmgViVjvu Pw4mLOBPsr6lxdB+87vy4Nux/UtYt2KejJfxx5oOFoyzNbDzcPWB/XUZC54NDRCb4vG0 t7hz08sBX/Tjk8jqhK4B7+klmpWahNODWCfeCCaseDji+Qf4pMaqpIMW0NotpOghdSMX p+XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=z2+aHfU6oX5Cs+UlA2qqgB/qMVOfOYgvfSlmKW31Paw=; b=MS3XkOGtmg07lv5CkBSuY7gnum4VfLVaYOy40hQ1lFaeuPnKWF90tyEtKurHkz2GU4 E3HudZEccVgCQLXhUOHCmtRbP2KpRR6YU+qkBNDgCWEWeEYnyUJJU1Wf3G/HGQW++ZS+ /LHbM4cdrHVyx5oyhm2+9B52XclzrUJgn+RKtcrHMgfk3xOPCzU93zcyow9B9eaD4Gnv FKL+K6DXoIOWkCwU6AzGWsYFKKrzglECaTzGbP6JC1/z/PjdWof1gTNep8O9x4qmwBje YTHFCU0huODHBHkksVzMXe/cq3VuAhik8ss0u/zuTWgq2yBLSWBOvBiJfGklCdMpKX0W +g0g== X-Gm-Message-State: AElRT7HjycRV4KrWL7by2rfn0K4lIKhk9zmTvvb7jOxpKcMcM6DAeCkR MRHs8iJ0WxxEvKF2zfJJw0M= X-Google-Smtp-Source: AG47ELuFY26YxKdZPJapQN4tDiuoFv+H0BQONaexlSetcK25o6vfWFGlLtFwJR8lQ+Fx0MYevpRpEQ== X-Received: by 10.223.209.72 with SMTP id b8mr919965wri.122.1521198702812; Fri, 16 Mar 2018 04:11:42 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id r6sm7993742wrg.63.2018.03.16.04.11.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:11:42 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id F3B1010C06A8; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 18/19] ppc64: change %ld into %d Date: Fri, 16 Mar 2018 12:02:23 +0100 Message-Id: <20180316110224.12260-19-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘prregs’: ../arch/powerpc/xmon/xmon.c:1665:17: error: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Werror=format=] printf("R%.2ld = "REG" R%.2ld = "REG"\n", ^ ../arch/powerpc/xmon/xmon.c:1665:11: error: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Werror=format=] printf("R%.2ld = "REG" R%.2ld = "REG"\n", ^~~~~~~~~~~ ../arch/powerpc/xmon/xmon.c:1669:17: error: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Werror=format=] printf("R%.2ld = "REG" R%.2ld = "REG"\n", ^ ../arch/powerpc/xmon/xmon.c:1669:11: error: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Werror=format=] printf("R%.2ld = "REG" R%.2ld = "REG"\n", ^~~~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 4479245c6361..a87f14a24849 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -1662,11 +1662,11 @@ static void prregs(struct pt_regs *fp) #ifdef CONFIG_PPC64 if (FULL_REGS(fp)) { for (n = 0; n < 16; ++n) - printf("R%.2ld = "REG" R%.2ld = "REG"\n", + printf("R%.2d = "REG" R%.2d = "REG"\n", n, fp->gpr[n], n+16, fp->gpr[n+16]); } else { for (n = 0; n < 7; ++n) - printf("R%.2ld = "REG" R%.2ld = "REG"\n", + printf("R%.2d = "REG" R%.2d = "REG"\n", n, fp->gpr[n], n+7, fp->gpr[n+7]); } #else From patchwork Fri Mar 16 11:02:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 886765 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402kks3LkGz9sD3 for ; Fri, 16 Mar 2018 23:08:37 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UCIxQnsy"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402kks0pmRzDqk1 for ; Fri, 16 Mar 2018 23:08:37 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UCIxQnsy"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c09::241; helo=mail-wm0-x241.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UCIxQnsy"; dkim-atps=neutral Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jHB5h3mzF09b for ; Fri, 16 Mar 2018 22:03:02 +1100 (AEDT) Received: by mail-wm0-x241.google.com with SMTP id q83so2264666wme.5 for ; Fri, 16 Mar 2018 04:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=daMGAIekqEWFFYHSE9JAy/t6CX5SaJ+i0o6yl8QLSCE=; b=UCIxQnsy+SuSy20mGwRF+XPXUD7YVZBRTS2kk0zkkfjXyRZxAmubS4sm/AN4Rjyk/t RhidCmrpZ/A3LpzlqNy1czJo6cQz768WED3YtJtsQ2PJMEEuxfpolYHR7qI27i4f75W4 wXdXPhZNUtZUqMG3mlFyYvtPAQURPHdimUISyTKBi6bITg2/WRJPXj4TV8DhMSG+tyeq mSCkig30Z/dJyxLClMncIrm2tMGLJeNK1nfRUUBtz+ud2Ss+EOGb/oHNDUHHmm0hvrve TPcvCLH6p2ODErAokuC16TXRHCFIsdPB7V5WJ9tmKjRQlbCRvUFkz8+gdYAAshteDP1q s27A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=daMGAIekqEWFFYHSE9JAy/t6CX5SaJ+i0o6yl8QLSCE=; b=J7z1eRgkxUfr80xGrFN4tcHy03jOBmXAMu8lbNRlX6E7cjbOi2i0T+easJsbsB8L6d 3ub9QscD5wKpgnhPFb13nBegjzkKzwVzzR/G8L4UYwPQDQdgYEvKJe+7gNfsx7+YcRWc p+Oc4MLk4ywMLJqKpoqUluunDoSbPVtZVL2nub6KgyP8WahRbZJBreqvBpNrM/tFq7J7 nVRnjqHiXdunW2fNb0T7+ab1FI/zUFV+309mED+1ktecZcubJvdDDbHjZGdqfCWn9W6v K4qYzXvhlJwGFqkX/1NebHZd1hGPeo+CD5LJp/yCjYPcQiL7JfLTdo6BkBpvV+ZgVzpx TpFw== X-Gm-Message-State: AElRT7HYc2CXs50oCPotdUeW47v8rBlRYeDeSGGdyaS+0bdy9OyjY66L VHyeNBJuYLvCJ1tRGDEHVN8= X-Google-Smtp-Source: AG47ELvLzMnJlYj1nxGexikwluVb2td022Nyv6khC1+8OUPlhDB/d7PKLCBh/SVZ+3877c0SHSUPkQ== X-Received: by 10.28.193.134 with SMTP id r128mr1350915wmf.85.1521198180017; Fri, 16 Mar 2018 04:03:00 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id 55sm10958633wrw.87.2018.03.16.04.02.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:57 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 0304810C06AC; Fri, 16 Mar 2018 12:02:46 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 19/19] ppc64: Handle %p format in DUMPPTR() function-like macro Date: Fri, 16 Mar 2018 12:02:24 +0100 Message-Id: <20180316110224.12260-20-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘dump_one_paca’: ../arch/powerpc/xmon/xmon.c:2339:9: error: '#' flag used with ‘%p’ gnu_printf format [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ ../arch/powerpc/xmon/xmon.c:2347:2: note: in expansion of macro ‘DUMP’ DUMP(p, emergency_sp, "px"); while at it fix warning reported by checkpatch: WARNING: macros should not use a trailing semicolon Signed-off-by: Mathieu Malaterre --- arch/powerpc/xmon/xmon.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index a87f14a24849..edd7ea85272f 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -2337,17 +2337,20 @@ static void dump_one_paca(int cpu) #define DUMP(paca, name, format) \ printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ - offsetof(struct paca_struct, name)); + offsetof(struct paca_struct, name)) +#define DUMPPTR(paca, name, format) \ + printf(" %-*s = %-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ + offsetof(struct paca_struct, name)) DUMP(p, lock_token, "x"); DUMP(p, paca_index, "x"); DUMP(p, kernel_toc, "llx"); DUMP(p, kernelbase, "llx"); DUMP(p, kernel_msr, "llx"); - DUMP(p, emergency_sp, "px"); + DUMPPTR(p, emergency_sp, "p"); #ifdef CONFIG_PPC_BOOK3S_64 - DUMP(p, nmi_emergency_sp, "px"); - DUMP(p, mc_emergency_sp, "px"); + DUMPPTR(p, nmi_emergency_sp, "p"); + DUMPPTR(p, mc_emergency_sp, "p"); DUMP(p, in_nmi, "x"); DUMP(p, in_mce, "x"); DUMP(p, hmi_event_available, "x"); @@ -2376,7 +2379,7 @@ static void dump_one_paca(int cpu) for (i = 0; i < SLB_CACHE_ENTRIES; i++) printf(" slb_cache[%d]: = 0x%016x\n", i, p->slb_cache[i]); - DUMP(p, rfi_flush_fallback_area, "px"); + DUMPPTR(p, rfi_flush_fallback_area, "p"); #endif DUMP(p, dscr_default, "llx"); #ifdef CONFIG_PPC_BOOK3E @@ -2387,7 +2390,7 @@ static void dump_one_paca(int cpu) DUMP(p, crit_kstack, "px"); DUMP(p, dbg_kstack, "px"); #endif - DUMP(p, __current, "px"); + DUMPPTR(p, __current, "p"); DUMP(p, kstack, "llx"); printf(" kstack_base = 0x%016llx\n", p->kstack & ~(THREAD_SIZE - 1)); DUMP(p, stab_rr, "llx"); @@ -2405,7 +2408,7 @@ static void dump_one_paca(int cpu) #endif #ifdef CONFIG_PPC_POWERNV - DUMP(p, core_idle_state_ptr, "px"); + DUMPPTR(p, core_idle_state_ptr, "p"); DUMP(p, thread_idle_state, "x"); DUMP(p, thread_mask, "x"); DUMP(p, subcore_sibling_mask, "x");