Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2504613imm; Mon, 28 May 2018 09:19:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo+RAoBTnSJQSH/LOPci6E6As3CZNUThNAFSfy5SsYHgDsN0jheJJcP6e1hX0ZKj5r8uvg/ X-Received: by 2002:a17:902:10c:: with SMTP id 12-v6mr14281605plb.252.1527524376528; Mon, 28 May 2018 09:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527524376; cv=none; d=google.com; s=arc-20160816; b=CgI3tQBxJBom0kxB9y/GCVYeLwQYrWrqR9Wwfa0DpgFIG5ZC7v5CyLOtvHqaZ0EPQA q3GIFsr5C8d2/RfTwqXbTRC0mAvq+N6iYw3SjQR1WlsfusX4nYzn3uUkjqovDpKKHM3k /+bwtUPdnwNl83x9EId40J/Upkb+iAUgfeUsNMTPkI9hNryRockzymslQ/ZxxR3CPvVo 6zaW6JJpY+fq2btMMeojmjH3I7+miSrfvuZmawP7sW0hmVLUPAANpiz9RK/Taowmj447 E8VzpOVcWwKif6PbNu/CmaL/4dUJZRbCFDeUA6fLMyKXJi2TORtBPNgPjnMMtGlVSFbE /Ulg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=gl5NTb6IAkCx5xprl0YwRkvdssoQGhLUobdw6xmdEU4=; b=Me3U3sC8fLf0WOxLybBJ2vU3bDN8/jB8SAOJfy5r1LtPT0fNzzXHiupLA4gpNiLBq7 XDs7y3C+nee4ZyKFWbbuKIBMYXRlDRRKuNLP+sb5X0IU6RvHqd1pnCdg2osfhAt+gQtZ uOsE7rvl+5/iw3fIcOj36BMKcVpH77CU0Tj47gO/f0pSArcTkZc+EvhZZjvx7iIpf8M+ srTW6hxUmOe8lc37gD3mjTRRb+tvaBj/UUBzY3ueRK5RCAXVwrscgdXVBZBoc0ZDPFF7 bS0XJSumrk6bLxwS+ERYYZGVrrvc9XcE16jk+P1EOgNSZYWHtusWXJfbFvpqQgRD3HXU 5sKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=e/VnmpUz; 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 b97-v6si30978779plb.135.2018.05.28.09.19.21; Mon, 28 May 2018 09:19:36 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=e/VnmpUz; 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 S939989AbeE1QSg (ORCPT + 99 others); Mon, 28 May 2018 12:18:36 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:39636 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936740AbeE1QSa (ORCPT ); Mon, 28 May 2018 12:18:30 -0400 Received: by mail-oi0-f66.google.com with SMTP id t22-v6so7317659oih.6 for ; Mon, 28 May 2018 09:18:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=gl5NTb6IAkCx5xprl0YwRkvdssoQGhLUobdw6xmdEU4=; b=e/VnmpUzOPfjb/GqePlnqy2wlMSgTxw3JzH7p6OGieWvYxUAKQPhJVijuiMm18TXVN 6M4mfQxj065ATx84eb4NKSTNRsKSG1N098XPx8fQPdQKDzRtQ9JjwEndwGMcg3R+84Ou iv4GfYtiymEkTAe89Dl/4cvg38VwXLmJiclkSvFBKJSod25FvGXENXpNP+3IDsK0ayxE waQFKovGooOG4cUaPUCdVZXlWrQVsRt5hhzAswMKwWsrC5fxRauEFld8aLvQYAo1QyaU UR+rSUTlcQ9AshzkKwPW2/oo20L6FXi+QKzia/H/zx2WUUFI6Pwgqu6iArG9XBXGERGa OJgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=gl5NTb6IAkCx5xprl0YwRkvdssoQGhLUobdw6xmdEU4=; b=jCjRjCHXpvHiVoVDap7F4BoH76rtyQ1P7nKZmm4KthJ07b8oJyahXxnTrgrs2hkIH0 qeZlZ8PnuO8UPoABgrdpoOOtv/GPVgGk39a20HgT9v19JiLtV9Wjt88RoklXjXzoq0VE 6/1NLXjA55uXa+PaPF452SzEb7eZ4IBKrkUnKN+ZLBYJCuLcvn2OzS6IncLK9m+SYEJ/ eQTzWi2NUL9rVm1jMgqRhcnpwteP146Y8SalBaFcHR1aCx+GG3XkpUfWMiRLB0qU66Fb hEUwFSAVzs8iDielmxMnq+npKXhk8fiKUsZETx2Qwfpec5viJKEmsARwTH0KXO3G+5Rv xRag== X-Gm-Message-State: ALKqPweiBIXFg8O9oFfxPGUlb8bTThP8gFUw/rH1q4tMoQEHh8dYVlb7 Dkk/M/XkWZBqkBVUBI5Qahe3hMDQWtxl8K3f05M= X-Received: by 2002:aca:4f0d:: with SMTP id d13-v6mr7324115oib.138.1527524309989; Mon, 28 May 2018 09:18:29 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a8a:305:0:0:0:0:0 with HTTP; Mon, 28 May 2018 09:18:09 -0700 (PDT) In-Reply-To: <20180528150726.GC17342@gate.crashing.org> References: <0adce33cf1c70ac7203f8ebd987a912451aabd45.1527517001.git.christophe.leroy@c-s.fr> <20180528150726.GC17342@gate.crashing.org> From: Mathieu Malaterre Date: Mon, 28 May 2018 18:18:09 +0200 X-Google-Sender-Auth: MGXyDGWil2aVP3i0gpWZFyfOrgY Message-ID: Subject: Re: [PATCH] powerpc/Makefile: fix build failure by disabling attribute-alias warning To: Segher Boessenkool Cc: Christophe Leroy , Paul Mackerras , linuxppc-dev , LKML Content-Type: text/plain; charset="UTF-8" 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 5:07 PM, Segher Boessenkool wrote: > 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. https://patchwork.kernel.org/patch/10375607/ > > 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