Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3759275pxb; Tue, 17 Nov 2020 02:50:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhHrldujSTMDwU2OqyZwjwga3kOMqM48sFJ7P3DtNiV/G5djv1K+18A7v2huzyl8MunniL X-Received: by 2002:aa7:d408:: with SMTP id z8mr19981872edq.166.1605610203031; Tue, 17 Nov 2020 02:50:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605610203; cv=none; d=google.com; s=arc-20160816; b=Jw5QBJ5lsh320bgigm5BGv7lOH7McWCFAgGofBYhiHEwt6f76zkTCEFrU08HtB947I bTg42nkdLvtDAvRzSCKPgh7tfiazdJ4by/qZ1zE5kA5Q6dgJhWElf2Nj70Tl6wGdgAZw 0sIcdYdJah3qXEKTHTpLptwJAWqv0KrfooAeoIhOnCh7IlIk0mpXETf3U0vBlLmhF47s t9P/ISKwxkp/H3YO5/KwEZe0PAfOYAW9RDXG8kW96w4qMd8UrLiqPOenLfIzCHUzw9zj Wx6j5BYRcUdatG9q01UxxCEZWM+hBkwIA6H/V7pnPKsFPO77v4EcN6Hdjz4IL1y6kY1a fWCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Hy8/WHGPlWpK/qYWNrXSgIdTBb+Qpp2vuw7CzzqM770=; b=rRauaL0d44f4rjuCCA/2azhED1CYHpB4FBql6pGmlS/VMFqP/9k+N/XCRuBQ8cl0TF QusHR2w7WiqKwv7/0voxrw+FiKyk2EdSi3QifCLQEpn1cU1So4tFRjIDB8pO5te+FbbG JpJ3hd9xoEFwFv2NFEzi9jZZZ26rOy/GJKNkFJNTC0exbzZu8jpXrTaMJSmhch2eAD+G uRmVYyPUg7ectdm95uAfumKKQuwO1lsEQThgIdbo0d2w8sD9okghQwxFuwFfOFcnS5Sl uvtiRlX3gDgbnZOlk2/fzR5d1WbDK5p18Z/bLTsMS3zbWEpk2h24I4QNwwmRCfmByFvk c1fQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x37si14839123ede.385.2020.11.17.02.49.40; Tue, 17 Nov 2020 02:50:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727667AbgKQKry (ORCPT + 99 others); Tue, 17 Nov 2020 05:47:54 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.161]:33295 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbgKQKry (ORCPT ); Tue, 17 Nov 2020 05:47:54 -0500 X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QXkBR9MXjAuzBW/OdlBZQ4AHSS32xIjw==" X-RZG-CLASS-ID: mo00 Received: from sender by smtp.strato.de (RZmta 47.3.4 DYNA|AUTH) with ESMTPSA id V0b6ccwAHAlfTEF (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)) (Client did not present a certificate); Tue, 17 Nov 2020 11:47:41 +0100 (CET) From: Olaf Hering To: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Olaf Hering , Masahiro Yamada , Michal Marek Subject: [PATCH v1] kbuild: enforce -Werror=unused-result Date: Tue, 17 Nov 2020 11:47:35 +0100 Message-Id: <20201117104736.24997-1-olaf@aepfle.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 :=