Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2441569imm; Mon, 28 May 2018 08:09:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqaMqtph4hVBS4ci+m19CodkUysGPfJJ6NPLpyhTppcHAZIxaYFgHn0BJ5UfvlLlWlDj4Lj X-Received: by 2002:a65:4487:: with SMTP id l7-v6mr10688922pgq.194.1527520152915; Mon, 28 May 2018 08:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527520152; cv=none; d=google.com; s=arc-20160816; b=0ehQQ6NJWiHM0PuN0sXA0V7wNT2N3z2vyrgJm+Pe9ZLjyXKEBjDQG4s1wOxbl3kwku jaQw5kig9K7kQpI2Kf2kr6qIJoHSgN3IUAu0FLTAOYLIYgtVynP/yoVZzHpQ66DqW3Np pyYbqhxPSqft4wx2JBJ4Dw3qR+rsRjAxE/OZ03kWdUdGT3jZsT1PY/l6964CRkbiFjpL mDHGn0G58Fw0W+XrgqlGCaIzfd7dUW1xWyrzynkAWrU1fed7dZ4IIHCNJEGYplRmCt3V 2/iATgBcLncSzTQ5PurZhCrru3C8JiAHIj+ZFtf376WVeHOhYF/q396XeI0ONZGKCFLn 89/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=A1/pZHP/9Hsc5KwgdnITgIOBnLGsj4dWTkTYE4tiucE=; b=be/AOQbknlZtp3IIJWziYQAQtwM5biUC7F7eiWqau81Q2u1QAluLZMdRCmX3trZGxy XEVK2Ri6GIPw2VJDGBEBaV2ps0OO6fEdJ0BT75iT7JkXd1iyr8cLnALYlotKP1Dqkmi9 4opHZ2qlCx/SRKqZPd6usWaOwz+eWre5QBL62DOvnUuAriWZNG3NhrH+cHl58gI372rj DFOvxW/RXxgQT9/k3l0RmuKV1W28zxd1V6PeM7JOvMLaKCGM0jqrYp7LdqCyM4Q3IbdE M14joleu1SkbJeXLnDGvLZbGc93Nht0d9bwnl1dHDGNdCa07yHW5HjTYCXmxnYzUuuMM CZww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10-v6si24816953pge.596.2018.05.28.08.08.58; Mon, 28 May 2018 08:09:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S939679AbeE1PIV (ORCPT + 99 others); Mon, 28 May 2018 11:08:21 -0400 Received: from gate.crashing.org ([63.228.1.57]:46035 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937287AbeE1PIR (ORCPT ); Mon, 28 May 2018 11:08:17 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id w4SF7SDh007084; Mon, 28 May 2018 10:07:38 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id w4SF7RoK007079; Mon, 28 May 2018 10:07:27 -0500 Date: Mon, 28 May 2018 10:07:26 -0500 From: Segher Boessenkool To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc/Makefile: fix build failure by disabling attribute-alias warning Message-ID: <20180528150726.GC17342@gate.crashing.org> References: <0adce33cf1c70ac7203f8ebd987a912451aabd45.1527517001.git.christophe.leroy@c-s.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 28, 2018 at 02:39:37PM +0000, Christophe Leroy wrote: > In file included from arch/powerpc/kernel/syscalls.c:24: > ./include/linux/syscalls.h:233:18: warning: 'sys_mmap2' alias between > functions of incompatible types 'long int(long unsigned int, size_t, > long unsigned int, long unsigned int, long unsigned int, long > unsigned int)' {aka 'long int(long unsigned int, unsigned int, long > unsigned int, long unsigned int, long unsigned int, long unsigned > int)'} and 'long int(long int, long int, long int, long int, long > int, long int)' [-Wattribute-alias] So yes, these are actually different (int vs. long). > In file included from arch/powerpc/kernel/signal_32.c:29: > ./include/linux/syscalls.h:233:18: warning: 'sys_swapcontext' alias > between functions of incompatible types 'long int(struct ucontext *, > struct ucontext *, long int)' and 'long int(long int, long int, long > int)' [-Wattribute-alias] And this one is quite spectacularly different. Try putting this before the wacko aliases: #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wattribute-alias" and this after: #pragma GCC diagnostic pop so that you will get this quite useful warning for all other code. Segher