Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1389598lqp; Mon, 15 Apr 2024 05:22:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUGQZ3P4pxyiET4tqICNMNL/qmMls2D5gjhKcSiLvZdnxJJfFMzaZ5HlL/r+DLCGUMHMXKurCzRHmRMqrn4u7gqt3nR8f1Jw2mxrCzIbQ== X-Google-Smtp-Source: AGHT+IH6U5U6IhOHNGfp6vnrYWQKbYAJOYd5SueAOUXn04j3XJenfQemeL5VIPhRtlkbEGPEbZ23 X-Received: by 2002:a17:907:2da8:b0:a51:895c:6820 with SMTP id gt40-20020a1709072da800b00a51895c6820mr6696818ejc.44.1713183728027; Mon, 15 Apr 2024 05:22:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713183728; cv=pass; d=google.com; s=arc-20160816; b=Q3VCzUhuCD9YqhOSEI1EY6Uvfam1RFnDn9XMbtGKlmGCoq0cLNoXv7A0nbstfTmAFt uUXJ784076Czr7Wkqmo+Su+oBIo4/cBsomGacx2Hq5NU6pYCrkLg/T015wzYCNVpoPIa MDDRNNhNQb2uLZoDrHGNAvhWg2mAswyQa60knlFXqk3tHgvo3meI6zEkTIv94Y1kQCWK Ph24+VAQ0HON9fJDA4tVLwYDV2d6ZphviL0xtv7IPFyZAULl6jrRKyN4Yyd1/b4z7ODJ F8pskvTo/6jHfTNZdf5+BzUpcLcokUwZrmb4HyauaYLSteyGbPpLwsYIstkqO80T8FBv M9+w== 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=eDdPol5CBJ1fSg/3GDl8AU69QAj/w+cWRPsYONsLE10=; fh=8mZP3M6PAgp/PjjZstGz5vfdgfC3/JFy0A6tayPaJ0U=; b=QaOMswUdPgXLH/4zGREYamFKOviQGwQ2tCaV425u2NXcn9oIUJ2+7P9yIRdlMZ5tdY +r794UXJL3bkGtrUv5yQsb+TVuRtH5CnFKT68kRcqQSLNspbFdbOGsG8J/tom/J2w0g7 Mz6emnhFb2xrzlg13NcnKGBPKHmLzFIGbsP1OOCnzfUyHUxGCqirQoBrbNN2u54IQvUU vu3h7cIbUdGguGqAxVH3g7cbry0l+8c12g8FU0wo6b5G7U6I1KZBet5GrPQ7khrZYHJu fnWjQ2egQNfqS+WKWur5o/+lTLe/Wh2V7DBteRKgw2GDNCcdxRTPIUyEn7Gr055BKWF4 ZdpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FHaHYBEZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-145057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k5-20020a1709063fc500b00a526cb28b80si792772ejj.680.2024.04.15.05.22.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 05:22:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FHaHYBEZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-145057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145057-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A7C391F21097 for ; Mon, 15 Apr 2024 12:22:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B48EC6F06D; Mon, 15 Apr 2024 12:20:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FHaHYBEZ" 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 D72D96EB65; Mon, 15 Apr 2024 12:20:52 +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=1713183652; cv=none; b=ZpqXawLhpNBnP1y6yA0669NQpL2J/WXE34Em0fEqzQHndfIaunP9pHikDoD6FsiZXTszy6dne6BMxINizy4rI7GiyBZerkGpPLppTX7OcF/C10eBzAJ7spimA4N8Qc6ags6QGJyebJU4bWn8ky25v+sEBI1KO5lJI3DAD/KqjJ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713183652; c=relaxed/simple; bh=mTgeIYCmciNqI0jeKacsXjlw+DjiDCIlmChxzf0Df80=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HhRRCIO2lpCkG1VWMQxBkmGg8SeQD+S9EFQgL+Kw7qDqe3ApOoORhEs+Vhj1iRiOSKq/1UeKZNzchnZ9hlWaZg0DBVyYUkxbY+fh6z/yJf2jeWVKlBbuEXv4uCGIRGdaviOVeLDbYcWYSjfB/SHYWpQdMLzSi3v6gw7yMhml30A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FHaHYBEZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF78FC4AF08; Mon, 15 Apr 2024 12:20:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713183652; bh=mTgeIYCmciNqI0jeKacsXjlw+DjiDCIlmChxzf0Df80=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FHaHYBEZ7SwFPB2Y0v2tECQAWnBsG4DlLTyyZQnL0MJNEHRZsBSTk9W0dV5QkLC6U cak7Eq3NKoczjdsX0hYxKg3iegMBZOjhFp6/jcpCe+PxlgHqaRAf4k70LS09vPPjm9 okaPj6Wsar6jC0iNTh3GVWeQCnKKvZMjSEh+J+444WkbUhwHPE4HaEBrVSsGwE+hKH n7Q6KbyFhjuKgFLXscf2NPtabfl0RuonGzelISpB4ZQgL99/yy/4vogkC4mSg9zH57 ux+0ImSsTfOZH48BJR+CRCyKKaa3rVIbwafFkDvAl5k4qtRv7jVLnahYD0NpEVnoSR EGu5WEwGDkMrA== From: Arnd Bergmann To: Andrew Morton Cc: Arnd Bergmann , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Kees Cook , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] [v3] kbuild: turn on -Wrestrict by default Date: Mon, 15 Apr 2024 14:20:34 +0200 Message-Id: <20240415122037.1983124-4-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240415122037.1983124-1-arnd@kernel.org> References: <20240415122037.1983124-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 8b3f5b62b837..95466a04d51b 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -98,7 +98,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