From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 464BDC07EBF for ; Fri, 18 Jan 2019 18:45:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 210DD2087E for ; Fri, 18 Jan 2019 18:45:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728948AbfARSpU (ORCPT ); Fri, 18 Jan 2019 13:45:20 -0500 Received: from charlotte.tuxdriver.com ([70.61.120.58]:43948 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728717AbfARSpT (ORCPT ); Fri, 18 Jan 2019 13:45:19 -0500 Received: from uucp by smtp.tuxdriver.com with local-rmail (Exim 4.63) (envelope-from ) id 1gkZ8k-0008T9-1V; Fri, 18 Jan 2019 13:45:14 -0500 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.15.2/8.14.6) with ESMTP id x0IIeNWI011115; Fri, 18 Jan 2019 13:40:23 -0500 Received: (from linville@localhost) by localhost.localdomain (8.15.2/8.15.2/Submit) id x0IIeNg5011114; Fri, 18 Jan 2019 13:40:23 -0500 Date: Fri, 18 Jan 2019 13:40:23 -0500 From: "John W. Linville" To: Maciej =?utf-8?Q?=C5=BBenczykowski?= Cc: Maciej =?utf-8?Q?=C5=BBenczykowski?= , Jeff Garzik , Ben Hutchings , "David S . Miller" , David Decotigny , netdev@vger.kernel.org Subject: Re: [PATCH] ethtool: change to new sane powerpc64 kernel headers Message-ID: <20190118184022.GD30266@tuxdriver.com> References: <20181215011936.246249-1-zenczykowski@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181215011936.246249-1-zenczykowski@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Dec 14, 2018 at 05:19:36PM -0800, Maciej Żenczykowski wrote: > From: Maciej Żenczykowski > > This fixes: > In file included from ethtool-copy.h:22:0, > from internal.h:32, > from ethtool.c:29: > .../include/linux/types.h:32:25: error: conflicting types for '__be64' > typedef __u64 __bitwise __be64; > ^ > In file included from ethtool.c:29:0: > internal.h:23:28: note: previous declaration of '__be64' was here > typedef unsigned long long __be64; > ^ > ethtool.c: In function 'do_gstats': > ethtool.c:3166:4: error: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type '__u64' [-Werror=format=] > stats->data[i]); > ^ > ethtool.c: In function 'print_indir_table': > ethtool.c:3293:9: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' [-Werror=format=] > ctx->devname, ring_count->data); > ^ > > $ gcc -dM -E - <<< "" | egrep -i 'power|ppc|arm|aarch|x86|86|amd' > > .#define __x86_64 1 > .#define __amd64 1 > .#define __x86_64__ 1 > .#define __amd64__ 1 > > .#define _ARCH_PPCGR 1 > .#define __PPC64__ 1 > .#define _ARCH_PPC 1 > .#define __powerpc64__ 1 > .#define __PPC__ 1 > .#define __powerpc__ 1 > .#define _ARCH_PPC64 1 > > .#define __AARCH64_CMODEL_SMALL__ 1 > .#define __aarch64__ 1 > .#define __AARCH64EL__ 1 > .#define __ARM_NEON 1 > > Signed-off-by: Maciej Żenczykowski Queued for next release. -- John W. Linville Someday the world will need a hero, and you linville@tuxdriver.com might be all we have. Be ready.