Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3393893lqp; Tue, 26 Mar 2024 08:04:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIN+DJEm8BmNEJjIVvDFA2D6BAbkf9mW63ZHd++iJ9r+oil0bzwlLZrzqK+ZX3fyhjUb5PFNnX+xWFZygdKDbSR0qu501vobPwN5LZQA== X-Google-Smtp-Source: AGHT+IFshZ4ZDWwlnVcc83r8K5MwD5sXwdH3GuJAcX4ZIwfMWUnT9xjKaTESTc06fB2K0MOMMXjb X-Received: by 2002:a05:620a:4086:b0:788:7cef:d0d8 with SMTP id f6-20020a05620a408600b007887cefd0d8mr2029977qko.7.1711465498938; Tue, 26 Mar 2024 08:04:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711465498; cv=pass; d=google.com; s=arc-20160816; b=m80BicLQh+GcHSG0BlB0UIXOWuwQpfNuoAn3aIfdXo6Jd3LvA/YIpJBuFd1S7oT2cm AoLUI0yqzbV1RcxnKy7AOYw+fs/NzSWHdjUSPVl2eVYQUOTQaqkpa9v88cEUezLRFn0A 6gQRrxrfFRnp6b9iIFNeL1Abh3jVUtTjwsXZERZxRAQQoYic7+XXEKdF3wJYbDboQ7ew 8bWLGZggncZo0jpRsgihHspD9Z+/us7BEsftHSwfsOHpDO8XWXii8p5nbsEBFbfz+yPi VMV87Tn9JaY0d96/HdpBhQm/QNrk54WIpltplx4Qu1EHKoPJHeAmNRB4i0JRYad9X4io hG2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=V1zNkfdAU3qUgCwcxfj4VabJJyNcRFkzin6wPBbJzKE=; fh=Nyew/h7v5TQjkq8FQ4xznOaoQ0ssQE6qFpB17sc1BII=; b=QDBcg2PBy+LUukd1ADOQBVnVliOk5UBq16sde3z55AIts6LUBYtR1JHovaUXvG4hRe pujYZw3QuFiuxhybDXVpKB7vVUztBjHRxGSeAM/Kr3f5zaVxIPPGcvQI5lavyvSW2tYU y2p1DQu6MDHNDp5M4U9anUv0ajCJElz8Njfuku1oMMMsrEpHbDHKHl26Oy2guDFM93ho SzzzWybktUIaHDgzZ2fh3oBJjxcUdF7tzDsyFfNcS1Aq4QMHrNRaGi1EsB8GrIlK28qV JGO8ijQzuD+8ZQd1Y4sSwU7lq+n+zmkfErlnmHLziz6DpWvfYTTGg0p5YJqkm2zN+5YL 2afg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R4Oj9Y1b; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-119235-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pi21-20020a05620a379500b0078a33ccec17si7794178qkn.577.2024.03.26.08.04.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 08:04:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119235-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R4Oj9Y1b; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-119235-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E85BE1C64E8D for ; Tue, 26 Mar 2024 14:55:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAA2113C815; Tue, 26 Mar 2024 14:55:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R4Oj9Y1b" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F21BC13C680; Tue, 26 Mar 2024 14:55:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711464915; cv=none; b=A8G+A8vVl3CVNdfpuX/mSL6RLryHUR/AZGJN6K+PzYRHAXY2S6oSLw8l3Et6tB9If4ot83Cx7LLwYOzrJ+pu9RlZ4LM1sbmcs39D3oO3aHcos2AUAmQg1CsiEYcMEc0fauDb4ADFQebGRR2MTjvrgDFNWaINW+M38AjipQolU6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711464915; c=relaxed/simple; bh=VJ9rGUlw+RSatuE+PgmaM3OFygViCBRY76yapwirB44=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AetTJllu52oUw24wDBjcfJ92A2shcqmMf6T0WcVb8UFeAxKL/fZo8XZ5600AnIU3XJziT+DZJ1OKpjghGPeR8C0a1XQYWGU0n853xb312Ux2nrl2K15v4EUwshCy2SCfe61/ObTFVkEYKv+UVqrgD2a1sM+63ptqxE0l3gyTI64= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R4Oj9Y1b; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7C98C433F1; Tue, 26 Mar 2024 14:55:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711464914; bh=VJ9rGUlw+RSatuE+PgmaM3OFygViCBRY76yapwirB44=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R4Oj9Y1bCPd/7/gJyu6AYomZjL3Yh9r3yrLZsUaazLkkmej815mdnhGumZDHgu4vs ic3a9GFnsDiQ3wbIRPi3aHN0lrVpt/0p4PcQpraOwtiDOTwLxEBx5lK5fPBaup1raq jMUEPjqX9ILwuJltK4omR1LYwBLt484Qwo+2pv9/XthyiMnQsRN0V+2YzV2o6nk8D8 JPR4WjM3L1xUgvFUnCYfeZSeX42nT9+JaCYv9E55ERC6FNMB0uabdRSXgK14lD/Yd3 hQ3pZtk0jjvFw1GmyhX/z9LaeS5lr3m+D5j+C6EcSmXJ4e+uHN1Sp4uhHXmM/klIzJ VjdINIgm7/Gqg== From: Arnd Bergmann To: linux-kbuild@vger.kernel.org, Masahiro Yamada Cc: Nicolas Schier , Nathan Chancellor , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 12/12] kbuild: turn on -Wrestrict by default Date: Tue, 26 Mar 2024 15:53:39 +0100 Message-Id: <20240326145348.3318887-3-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240326144741.3094687-1-arnd@kernel.org> References: <20240326144741.3094687-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann All known -Wrestrict warnings are addressed now, so don't disable the warning any more. Signed-off-by: Arnd Bergmann --- scripts/Makefile.extrawarn | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 889c0593a0c3..bff6c686df7c 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -97,7 +97,6 @@ else # Suppress them by using -Wno... except for W=1. KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable) KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable) -KBUILD_CFLAGS += $(call cc-disable-warning, restrict) KBUILD_CFLAGS += $(call cc-disable-warning, packed-not-aligned) KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow) KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation) -- 2.39.2