Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3537547imu; Mon, 28 Jan 2019 06:38:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN4ghR8VdzGn+lz500jlS5sMgvWecow6/KzTymZEhGtnkgaCpwOB/Tr5uQyxUwUNaIxcSwI1 X-Received: by 2002:a63:1766:: with SMTP id 38mr19703111pgx.299.1548686297389; Mon, 28 Jan 2019 06:38:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548686297; cv=none; d=google.com; s=arc-20160816; b=Ux1zAYy7PgY3KwQmH0EOuP+TLYasgioIY5g30KKggRUtj2kDkMW/48beYdrY5sngWy n19ZmNgWc5LTyBzY6MJY78xMWMvGp4h7JfY7unMszYFwbEx3e9inB3ZEqqqHmjQT8s0q /Trgbj6cKTf/mzVkxnrufzYUiRgDqgNnBwPbjQIkQUbxABexWK8grHtP5bZWBhn113kp xoaUtXpIuiRPW/1HJ3zWwPZq8CMxGPqRGFiZAAW77k8jn/lgbirIN5+xQhcF/IfCz0f4 +naky6j2tICfxVu7Vgh/QMpgX/jC9EB1U7TT3L49z3SlQ29R+YkftePOvWA39YLHjATj jfyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=rv77hy44p2sg3gTb2aSW49HJj4gb22gH1G7PbZ/cG/A=; b=gnUJ8rd/FyQkrjreVSpDWezBrCvghKBQlVryEalufDjf5jNSTdDOB481Ed3PyzsMPv XewJegYzLndY8EwmoKzWHinePRVwcgLoghYhphL7LqP/BwJ58viWBH6bEYXNFSUffaCT zd//OQTEUu7D3QtVaeDEKhmDeyBNoqY16nWdHd7qMFmmUcf8Y4N5ZN8t5szDtgvkv7UR OYnBCofpFtPM76PO7ZFJBwf2Dk/1kqwmTNh54cXyCI7W0xDHmC7CMzRg0Sj2cOTHeBk9 grJueIKPiAIKiHUeq6Z7lBGzHjEizAmUZQ8kQAx7y2SRfGciVJeEvQIims/QURZ2ZAU8 ZOQQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b36si32368880pgl.596.2019.01.28.06.38.01; Mon, 28 Jan 2019 06:38:17 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726775AbfA1Of3 (ORCPT + 99 others); Mon, 28 Jan 2019 09:35:29 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:50916 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726266AbfA1Of3 (ORCPT ); Mon, 28 Jan 2019 09:35:29 -0500 Received: by mail-wm1-f66.google.com with SMTP id n190so14261407wmd.0 for ; Mon, 28 Jan 2019 06:35:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rv77hy44p2sg3gTb2aSW49HJj4gb22gH1G7PbZ/cG/A=; b=VqPfA0NuXpFPchfzn1fAfD1CiyM8whMKwFjzCYIEMXUhEtSZCKPjBbDR9+FBEnmcw7 wQVuX3IgEJDh63SFuJUWzk7zmjFaMeHXLizIoKtPJD6pLIdpGTozcPLMjhffrrTpIsSi 6si5Ww3pxPlLpj8k9WO9ltX59sW4nQnfDyzYEpLMjG6vF8I+MqH9g4H4LjvBnjnt3+bF gwUck0i6qGOnu2BhWr/ea0wKYyDtfF3blqrbBZYbrKixwus9lIF7wAj8HnK6FA1Teo8G Qpfoh/A493DXsS5JnvIGTvh6iI8PxZIHee/PA5s8hyIxmqBsmhHWLjes9Y/NxCAZorfH q78g== X-Gm-Message-State: AJcUukc6tfx0ParqawRasXzTNGDUkv2Qfgn1wALi/HGRq24eCT174KWT sZYGNiUYQLJtOYGPB+kQk7tF+Q== X-Received: by 2002:a1c:c1c9:: with SMTP id r192mr6444912wmf.146.1548686126410; Mon, 28 Jan 2019 06:35:26 -0800 (PST) Received: from [10.200.137.150] (ovpn-brq.redhat.com. [213.175.37.11]) by smtp.gmail.com with ESMTPSA id n15sm88633065wrt.21.2019.01.28.06.35.25 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 06:35:25 -0800 (PST) Subject: Re: [RFC][PATCH] Update -Wattribute-alias for gcc9 To: Bernd Edlinger , Miguel Ojeda , Arnd Bergmann Cc: Masahiro Yamada , Linux Kernel Mailing List , Martin Sebor References: <20190125104353.2791-1-labbott@redhat.com> From: Laura Abbott Message-ID: <2ffaeb04-3d51-fe9b-84b7-e009cb1dffeb@redhat.com> Date: Mon, 28 Jan 2019 15:35:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/28/19 5:28 AM, Bernd Edlinger wrote: > On 1/25/19 1:24 PM, Bernd Edlinger wrote: >> On 1/25/19 12:39 PM, Miguel Ojeda wrote: >>> On Fri, Jan 25, 2019 at 11:58 AM Arnd Bergmann wrote: >>>> >>>> On Fri, Jan 25, 2019 at 11:43 AM Laura Abbott wrote: >>>>> >>>>> Commit bee20031772a ("disable -Wattribute-alias warning for >>>>> SYSCALL_DEFINEx()") disabled -Wattribute-alias with gcc8. >>>>> gcc9 changed the format of -Wattribute-alias to take a parameter. >>>>> This doesn't quite match with the existing disabling mechanism >>>>> so update for gcc9 to match with the default (-Wattribute-alias=1). >>>>> >>>>> Signed-off-by: Laura Abbott >>>>> --- >>>>> This is RFC because it feels ugly. I went ahead and did the obvious fixup >>>>> but it's worth discussing if we're going to end up with an explosion or >>>>> if there's a better way to handle this in one macro. >>>> >>>> Bernd Edlinger has sent a patch to gcc for this: >>>> https://gcc.gnu.org/ml/gcc-patches/2019-01/msg01120.html >>>> >>>> and Miguel Ojeda said he wanted to send a patch for it to the >>>> kernel as well, not sure if he wanted to take a different >>>> approach there, so adding both to Cc here. >>> >>> Thanks Arnd (I was working with Martin on the expanded >>> -Wmissing-attribute warnings, not on this, but thanks nevertheless :). >>> >>> Martin/Bernd: from the GCC mailing list I am not sure if we should >>> expect the old behavior to be maintained or not. >>> >> >> I believe it is not intentional to break the old syntax of the >> pragma. There will be new -Wattribute-alias=1 and -Wattribute-alias=2 >> and -Wattribute-alias is easy to retain as an alias for -Wattribute-alias=1. >> That is what my patch will do. >> > > Okay, I committed the -Wattribute-alias patch to gcc trunk, now > as https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=268336 . > So there will be no need for a workaround on your side. > > Also fixed a few false positive -Waddress-of-packed-member warnings with > https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=268118 and > https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=268337 . > > However there remain a lot of warnings from -Waddress-of-packed-member, > that look more or less valid, has anybody an idea how to handle > these? > > > Bernd. > Thanks, I'll keep an eye out when this lands in Fedora gcc. I think once everything lands it will be easier to work on the remaining -Waddress-of-packed-member. Laura