Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3930316pxu; Sun, 20 Dec 2020 22:35:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGxdmkb54ublpa2JXF0+lCvGkUyTRbLEZSaF3W36SJTFZxzbiZgJsAIgczrbnBpjW7+a7P X-Received: by 2002:a17:906:d8dc:: with SMTP id re28mr14173110ejb.168.1608532517269; Sun, 20 Dec 2020 22:35:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608532517; cv=none; d=google.com; s=arc-20160816; b=Zk2noZVNuTV5ed5MhLS5CcIsdLHOkYHhFPl4Ve3hvx2EtnJc2yq2eM7tUe3gdVRU2j 6l1S0RQFPfdvtMgYvazoPzFeBhhepHXV5EZcNx7pEry4ckERWTYg0JRxntoa5A0LRk/m L4I6e3WPKDR+rjyS0fEGtC1UgFgAo6FIIq3Kbd+QgsJjUeFzOmrLcEb98zPI8L/R4VcV FVoCu5NYrKGqHyD1i1BBEra3v0pxeBVEvRp40HvDvtHvlGZGhsTSgZzp5FXddKDhWj58 1ASdJbGbsMrApiDfxGPG6htDfa5stiC3sgi9l6rh5fc/CXEUhXbiL8yt7Wn7R76d93FC o13w== 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=rOg4QxSAfTkT+BcR9P4hFXzodLlmtw/3pK0eFUW1oi8=; b=bWjIELMx9DdXqoe7ryqCf9OZ84qRLnQ1hLyT7YkniL6KIgEH+qhJkLmtQex7UrpooC EJTUaCSnXqKclySvuPaPp9UhdgxN5YWmPyaiSNd0dCfgQZ+IksjrZS/U+Nft4cw3pL0O N19Vst1SqEsjKTk2RFI8eDfYEtXCqu5BrEKN0u9jEFaXeuwQwju2PcYmAyrdH177/pR/ nIaPYipwxEdXuXCYTxxPYZA7YqqMXEm02RXa0pcWhonRIGgEYwtPO7vR1IKRBC/ocBLm ja9gqOX1AhQELcw5KdIb+C/T+HSxc02e1DPls7WEr1dkQbsNDtc2BJrJsR4Yzhiv34iG aZ5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=U+xdLu6Q; 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 gq18si8326767ejb.693.2020.12.20.22.34.55; Sun, 20 Dec 2020 22:35:17 -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=U+xdLu6Q; 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 S1728444AbgLUGc6 (ORCPT + 99 others); Mon, 21 Dec 2020 01:32:58 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:42495 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727211AbgLUGc6 (ORCPT ); Mon, 21 Dec 2020 01:32:58 -0500 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 0BL6VgSF002651; Mon, 21 Dec 2020 15:31:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 0BL6VgSF002651 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1608532303; bh=rOg4QxSAfTkT+BcR9P4hFXzodLlmtw/3pK0eFUW1oi8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=U+xdLu6Qt9wfzw4FdCIV5/yqI7WuNuBB6j1enVCchT7nE2Fll10ylSDWzedhJ+504 wzKlJBKmIfbJkdTefNMrVCeU7xa1hwOULUkJFaGaGaRFm4+jSUYNyaIMNpqNkE19O+ D3dhz+7IGChs++F8vl6mXJDvwnFKxptM3l9DstrJikytWoaB3wIwGE0q9bvQV/anwF nvd1zLbGNv5WsRvYu//BGwcnjtNpq7mikOs1DURniVuzbbRMD9MCF6cnoOdWGFVOuv BNALUeQ+M/U9LsoBbZHNm7yzMYd2Mo+NegMlAFQR4pCyGAE+z25Vr6BZsq8nRAC3kA RwYlyICLHRgkQ== X-Nifty-SrcIP: [209.85.216.47] Received: by mail-pj1-f47.google.com with SMTP id f14so5575002pju.4; Sun, 20 Dec 2020 22:31:43 -0800 (PST) X-Gm-Message-State: AOAM533VbTxG9emYptq+coAxlfB5fxgbCrkFX2OuHK+s3C3QpVoXggEq Hjs7+S1YtMU07LMWXar3J0sM7qGkvMhzfdrVjF8= X-Received: by 2002:a17:902:9b91:b029:db:f003:c5eb with SMTP id y17-20020a1709029b91b02900dbf003c5ebmr14921530plp.1.1608532302351; Sun, 20 Dec 2020 22:31:42 -0800 (PST) MIME-Version: 1.0 References: <20201117104736.24997-1-olaf@aepfle.de> In-Reply-To: From: Masahiro Yamada Date: Mon, 21 Dec 2020 15:31:05 +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, Dec 1, 2020 at 7:42 PM Masahiro Yamada wrote: > > 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. I will postpone this by the next MW. Some instances of __must_check violation are still remaining, which end up with build breakages. > > > --- > > 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 -- Best Regards Masahiro Yamada