Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp411008pxu; Tue, 1 Dec 2020 14:36:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2EnqDxL2bjA2LSzzlzIKEAfOxA3I+ccc9Dm+TdyCwWWvpGf4ea+oAzGjxMt6OEIKnVUYL X-Received: by 2002:a17:906:edca:: with SMTP id sb10mr5273339ejb.284.1606862179656; Tue, 01 Dec 2020 14:36:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606862179; cv=none; d=google.com; s=arc-20160816; b=HFs0aHz40p0RL2oK4LYehy3IlNljIEcz31Vkqyt2hr16xs3AFryyi64pqFkDpCdMdy m8jQ0DgmHtyiCVhmxHN0QdHJWdLFrl0shuPSME1gygXqIHn5Fzgyu96tlRNET1WFlieg AY6n3CZZxMyBSNGfZDI+YqbQedDur/116eGN2kc7MmDMMZ/UwzJa+aW3HpG3MDivM0qo GqFqt6Xd/NxAuZcOd3HfL/CP2dtmSCbyMptusTs4mR7kvzDYrJJLbtY80AgAarTlhBmj 5jVfzBl7IIS9hvcBVSNHrc49pb2BxyhYnFH7BLXvFEUBMDJWtLYAuXZ4avtNvuKW5xa+ j4MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=pMIMQvJ5hrz3FqswIIZKhGNQpY6MFXLxRQkeQgLnDqM=; b=roh4ov86JxxD59meTEw4ApDuNZbh4I/bCX3nmZz3629+gV+pVf/cb9XrqJLxuzQNMW csD/Ym0px8Ip0ybRbaYd/iEmMWe3ZNS+OWeLUgwXLLb+bZn47W9iv5+aTvRnxx3dAjAU x65ds7SfZ07NuMyi1L7aBvrrYX26oAADW+Aot0xP9OMnr7Je792K7pu7CMk1NFdGRCcu 9OW7Oy3CMfnGyNuDBbbbpEa0W+dDIdpY9+z8ZqDzz4clhTZFIvX37qI13WbKH7EGXmbD 0Tu0Ccr3wP8/Rky/5yUcf6cYi4ht9RG4KlvztP+LA/bL59/LvgsBNk1vLRq6re2pzSBm 7MpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=sh82VYY8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si843310edy.150.2020.12.01.14.35.57; Tue, 01 Dec 2020 14:36:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=sh82VYY8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730002AbgLAKoU (ORCPT + 99 others); Tue, 1 Dec 2020 05:44:20 -0500 Received: from conssluserg-05.nifty.com ([210.131.2.90]:58145 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729324AbgLAKoU (ORCPT ); Tue, 1 Dec 2020 05:44:20 -0500 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 0B1AhFxh002630; Tue, 1 Dec 2020 19:43:15 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 0B1AhFxh002630 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1606819395; bh=pMIMQvJ5hrz3FqswIIZKhGNQpY6MFXLxRQkeQgLnDqM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sh82VYY8qV3Oq9A/eOqKCgG43FzFvvLteHZj++uNT+v7RlJSHMr/UNkFu9fL1udVp DTTMjQWokwZWEmQ/Fn4mEMcZN7itGNa6bmkjbow8XJMZ6JswNadXPducC5M3SfnS6+ sc/knl0Hq0E/BNOhoEoLPDMjFeSw+hEaKhUu0mD/Q7WPZPm45YNmOeVIOhGqZNwN3j 0BeGHCGX0e4dKym4mGUqvjbHbYQw/usKptdBAyHcFLJ7nEqqMtEvmoE+wPMq4sYsn1 LxdYUbqr/3xhtOg76JNG3Jqew/HgP4F+fBpmWApq2P7mJ9WElYN0V7gqxRTIdaYpaQ HZbhDPCfbS2SA== X-Nifty-SrcIP: [209.85.214.182] Received: by mail-pl1-f182.google.com with SMTP id bj5so929983plb.4; Tue, 01 Dec 2020 02:43:15 -0800 (PST) X-Gm-Message-State: AOAM533X64oSETEM5iw5zxNpnqNlUdEQ9yfuC0YUTRoHbiZZjRKjFkEB jT0cTqcJqQ1h1dnqUibMZrYVd/9Oy01KwPW3Rnw= X-Received: by 2002:a17:90a:5304:: with SMTP id x4mr2048220pjh.153.1606819394577; Tue, 01 Dec 2020 02:43:14 -0800 (PST) MIME-Version: 1.0 References: <20201117104736.24997-1-olaf@aepfle.de> In-Reply-To: <20201117104736.24997-1-olaf@aepfle.de> From: Masahiro Yamada Date: Tue, 1 Dec 2020 19:42:37 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1] kbuild: enforce -Werror=unused-result To: Olaf Hering Cc: Linux Kbuild mailing list , Linux Kernel Mailing List , Michal Marek Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 17, 2020 at 7:47 PM Olaf Hering wrote: > > It is a hard error if a return value is ignored. > In case the return value has no meaning, remove the attribute. > > Signed-off-by: Olaf Hering Applied to linux-kbuild. Thanks. > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index e2c3f65c4721..c7f9acffad42 100644 > --- a/Makefile > +++ b/Makefile > @@ -497,7 +497,7 @@ KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE > KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \ > -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \ > -Werror=implicit-function-declaration -Werror=implicit-int \ > - -Werror=return-type -Wno-format-security \ > + -Werror=return-type -Werror=unused-result -Wno-format-security \ > -std=gnu89 > KBUILD_CPPFLAGS := -D__KERNEL__ > KBUILD_AFLAGS_KERNEL := -- Best Regards Masahiro Yamada