Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp989280imj; Sat, 9 Feb 2019 12:37:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IayZlW00lWYZYONHxqTKF7YEhgDcNSLPvo8kI3F2ly9sy9NIa3kyz/dbDQ52FAG7yAEVGVI X-Received: by 2002:a63:2109:: with SMTP id h9mr10926870pgh.277.1549744673838; Sat, 09 Feb 2019 12:37:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549744673; cv=none; d=google.com; s=arc-20160816; b=Bv4xRauQ2GAmrNCUxUhRgNhJCLF8KuWSFF6D8pxBIKR5vBQ3y+krAVbc3rEc/2NuIM Dn9niylqNuFVTiNbKz29aB8XIumsX1qbpLm/aFoVW0Vb2ON5vgh/P+4ks8xNSMbOr7lK Fza68QjevgDlXdi7PZjv474dvqZ3sxcM0Hpo48yCKdYnlOBLgadajOIpwY0SNajPyPFU CHTq3IKHcEhI5W2fUh9XAIu8uX0pKoLuLpTETw/7Mta/OTXuAae3Zi+Ve3H0ex5OgCpC mxu3G/7ejTlvKgiwBo3lznMS0l1eLYmXhA678jVI51PsNGOsmyEPEVVRBvNXEAVTOTgq K2CA== 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=LcEhbmW4esuYcKmgqtoxJglf/oWP1iVnRh7PgmMNpfg=; b=UAgZsXJ8B7J9pbbqCj5wIStplGddoIvkEW/gtiuHPyPE6gnTFAeypBM9RRkVHdFLKh Imt96CW+3HFRShnWQa6K4636TZCdm6d/kfWzmFZ4I3M7Pmx7uLeIkrFHNouocKxb9HdL 6qsMP4XiETSc9VIetPEALJ8JybQV1V7v/CR6olIOcMZ+O8wwJ/y1NQTgW9dKrMYl280c SWhLXg92jX1MgUTXvEFW0aHzFDlnC60+vBYBei400mgDyuB1W0hziUb24MruhE0mx2XI vxFS5sD/U+eU5sZJWLN4oz+LBnMzhMqKbHG9JG2Ky1P2g8g8lwjltbsIQvTT5RhP0xSk VEkQ== 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 y9si5281446pgv.134.2019.02.09.12.37.08; Sat, 09 Feb 2019 12:37:53 -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 S1727012AbfBIUdC (ORCPT + 99 others); Sat, 9 Feb 2019 15:33:02 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:33905 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726907AbfBIUdC (ORCPT ); Sat, 9 Feb 2019 15:33:02 -0500 Received: by mail-qk1-f193.google.com with SMTP id a15so4262758qkc.1 for ; Sat, 09 Feb 2019 12:33:01 -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=LcEhbmW4esuYcKmgqtoxJglf/oWP1iVnRh7PgmMNpfg=; b=AA0HG0ecuN+9ACdsAoBputEtLJWftXZaMZwXiEaDDRqiHHQBURbj19U+ULldcIMWF+ gJyJFzFulQwbmDCpMq/PPOWnZJis0sMooMgoow3d4fU2X6pY0EKIV4RSFT1710rO1V21 8n4/oAX7USh94XigodW0guTZax6WYvbuqweSMm4AvalFnIe5JFZx974cJWkKiRG/3wQs keatihljnyswaI3vLZFwxp0ElpJCRNYKG/Ey9uU6kMOX/kX3oRuZ4ubg6+upEgXccdAW jk3sk7B4oqzT8Fx7Zzno8ZnzpDQmodF8W2EUGtRS+uElbw9Hh/9cDpPbq+nXBqkhsjhZ 6SxA== X-Gm-Message-State: AHQUAubiKfupVLCPOXZN0MVhnL/txDq3F/UCS5aKLSl9VgBo0ri6IsrN CpzodNz+xKpv4fcPXYfpu8Clcw== X-Received: by 2002:ae9:f113:: with SMTP id k19mr15239029qkg.72.1549744381242; Sat, 09 Feb 2019 12:33:01 -0800 (PST) Received: from ?IPv6:2601:602:9800:dae6::112f? ([2601:602:9800:dae6::112f]) by smtp.gmail.com with ESMTPSA id a185sm7000303qkb.1.2019.02.09.12.32.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Feb 2019 12:33:00 -0800 (PST) Subject: Re: [PATCH 0/3] Clean the new GCC 9 -Wmissing-attributes warnings To: Miguel Ojeda , linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Martin Sebor , Herbert Xu , Ard Biesheuvel , Krzysztof Kozlowski , Catalin Marinas , Nick Desaulniers , Luc Van Oostenryck , Andrey Konovalov , Kees Cook , Sean Christopherson , Jessica Yu , Masahiro Yamada , James Morris , Mathieu Desnoyers , Borislav Petkov , Matt Mullins , Vincent Whitchurch , WANG Chao References: <20190209000840.11018-1-miguel.ojeda.sandonis@gmail.com> From: Laura Abbott Message-ID: <45be0d68-8382-64bc-dcd0-0e86462e6e66@redhat.com> Date: Sat, 9 Feb 2019 12:32:56 -0800 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: <20190209000840.11018-1-miguel.ojeda.sandonis@gmail.com> 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 2/9/19 12:08 AM, Miguel Ojeda wrote: > The upcoming GCC 9 release extends the -Wmissing-attributes warnings > (enabled by -Wall) to C and aliases: it warns when particular function > attributes are missing in the aliases but not in their target, e.g.: > > void __cold f(void) {} > void __alias("f") g(void); > > diagnoses: > > warning: 'g' specifies less restrictive attribute than > its target 'f': 'cold' [-Wmissing-attributes] > > These patch series clean these new warnings. Most of them are caused > by the module_init/exit macros. > > The first patch has been in -next for a long time already, and an alternative > solution (only __cold) for module.h as well. However, since we decided > to go with the new __copy attribute, I will leave the series for a few days > again and send the PR for -rc7. > > Link: https://lore.kernel.org/lkml/20190125104353.2791-1-labbott@redhat.com/ > > Miguel Ojeda (3): > lib/crc32.c: mark crc32_le_base/__crc32c_le_base aliases as __pure > Compiler Attributes: add support for __copy (gcc >= 9) > include/linux/module.h: copy __init/__exit attrs to > init/cleanup_module > > include/linux/compiler_attributes.h | 14 ++++++++++++++ > include/linux/module.h | 4 ++-- > lib/crc32.c | 4 ++-- > 3 files changed, 18 insertions(+), 4 deletions(-) > For the entire series: Tested-by: Laura Abbott You can look at the full build logs at https://koji.fedoraproject.org/koji/taskinfo?taskID=326911 . Thanks, Laura