Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2809907imm; Sun, 17 Jun 2018 04:57:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJxgQoIeBM8IlkQFAz5zm1z/M369/VGAPJtztN4U3JB12TXJqlheBby3F/HfMgVnpHKD+yR X-Received: by 2002:a62:5991:: with SMTP id k17-v6mr9454613pfj.94.1529236633778; Sun, 17 Jun 2018 04:57:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529236633; cv=none; d=google.com; s=arc-20160816; b=SsIn1MLjxvqjgPt5TsrUb1g6KjnF+rGUhC2bIB2Ag4TMcOs9iDWpXaoZGv2FCsGVPD qi4axr78jrN3+RubutceiJh9HgOhkHPA+zjC3ohdd+Aw3BD0x6BJZYX3L6sRo4xNK1a+ a2VehU4tXBDItn9IWKt0mp2jX/KXBiG2WbsFJQN3JlpUSEHJs+obanthYkobplGd5P8Y zILg/nzMIl5j+VaRpE5NorofgEkIzgVPtBxTFuEfavyGE7E0wVX9SeJUcGElyhuGDoud O3ElzdTo+AVSFh/0MruBDD1KQSI+o7a/UMNgdZRNyC6mZpDTlKMhTsfgYku+xX68xLx6 TigA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=YTOWlLaqwmxcdsjEiLOkCraXlrSwCeQy9HmOjrs7KPg=; b=xZQ4GTjOGVFQ/FPLQ5Nse6jzEBgw5/IUFRab3gLPChYdDaUvZ3neMiwSWgsG1KMID0 9w9q7ew1848sODNk1nMnxRKHQpKgflWmoMBMXc3sqzRHbfjjFf5gi5jGm+Y8Wo5iWUQ4 y56+54GiTj1cttAD7UJGUkfPIxedDPzcLQ4u2lJ2EwIc9F891w03sOPXAjzthU52pUdc b6A9k0ZUT4thsaFEPJ1puyHbtrXosYTr+yTutHkeVCO3ssbo8h8FPEt0eUSHnK+G/D/S hgeu+4YvQk2Ma48zQZ1Wfycxfa5feJrB435KNiyZccbiFZL2VztbuEKOmgISo2Jt+Xg5 SwYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TiSDW07k; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x69-v6si12000584pfa.108.2018.06.17.04.56.47; Sun, 17 Jun 2018 04:57:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TiSDW07k; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936756AbeFQL4N (ORCPT + 99 others); Sun, 17 Jun 2018 07:56:13 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:51450 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936744AbeFQL4M (ORCPT ); Sun, 17 Jun 2018 07:56:12 -0400 Received: by mail-wm0-f66.google.com with SMTP id r15-v6so9814776wmc.1 for ; Sun, 17 Jun 2018 04:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=YTOWlLaqwmxcdsjEiLOkCraXlrSwCeQy9HmOjrs7KPg=; b=TiSDW07kEwv1tHgpceKeH8igCh7Z8MR4HSwZX1Pqaq8VLbMDNgwI0otXOXLRNH83r9 Hk2qY9MJbHJWq6YZJSRyKz4WyrNvS44TE69X7XTV+vn4plzrNdgjJUBXR+1ucVMLWgun KSsYsE6t2Nc4K2QNrkMGAOYB2UqQOgMzUd7wjTlUC05zMNFQS3a3iJsARGFPVyVYtj+z e2kkXbO00cHwM9cHIPYbtZkLt721sKDodTZ9qBBylbAWXbRC/O/eum2KGuPEZW5vMYC+ m+V1syBVTy9Qh2Cg4/W5p140B86Njlhp2XMMkJHBhZqdhrVZTjurK7B26rV1tWwZ7cZ2 BY1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YTOWlLaqwmxcdsjEiLOkCraXlrSwCeQy9HmOjrs7KPg=; b=Kw5p6AcyUKzDOVeTagIYfaNNoUiWo8o3x0B88lr8tXjdBaLKknETyJJULqJD+tRd8p SZCsLpaBB0UuRBIk1gbqp+CPHrbTFGJVHPsDya7ym+Tf8y5zRC2LvLHBoRuWqwMzeWvf bIYLuTRHJUW3giKgvOqxcdyxOomybJJWJOgVQ7DzbVxsEFiQ2oCENF0zwxifGC8193y8 UTPswIow3MLwUC2RUSoRMcjcKcMTCIrIZfYL9evdP74u89YcX+edNrcw9YzqW34r1HPB vbfMkr7qMZEXV5b3jxoVRTK44VE427jYyERW2yvir2PZxOyA1Le8YdShZNEwDI81l/t7 UewA== X-Gm-Message-State: APt69E0JdgtWiUBbD1SafmE57M9pnKqFDu1pPPQ7k4c/TJFgBwRHC3o0 UQrD57/GctgOc+H52Z/lXqDXFbb2 X-Received: by 2002:a50:9e01:: with SMTP id z1-v6mr7876130ede.246.1529236570617; Sun, 17 Jun 2018 04:56:10 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40a0:d000:ed72:69cf:6b29:5003]) by smtp.gmail.com with ESMTPSA id j7-v6sm5489147edh.76.2018.06.17.04.56.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Jun 2018 04:56:10 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Dominik Brodowski , Al Viro , Kees Cook , Andrew Morton , Luc Van Oostenryck Subject: [PATCH] sparse: remove uneffective sparse disabling Date: Sun, 17 Jun 2018 13:53:55 +0200 Message-Id: <20180617115355.53799-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse checking used to be disabled on init/do_mounts.c and a few related files because "Many of the syscalls used in this file expect some of the arguments to be __user pointers not __kernel pointers". However since commit 28128c61e ("kconfig.h: Include compiler types to avoid missed struct attributes") the checks are, in fact, not disabled anymore because of the more early include of "linux/compiler_types.h" So remove the now uneffective #undefery that was done to disable these warnings, as well as the associated comment. Signed-off-by: Luc Van Oostenryck --- init/do_mounts.c | 10 ---------- init/do_mounts_initrd.c | 10 ---------- init/do_mounts_md.c | 10 ---------- init/do_mounts_rd.c | 10 ---------- init/initramfs.c | 10 ---------- 5 files changed, 50 deletions(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index 913910e38..0d0c620d0 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -1,13 +1,3 @@ -/* - * Many of the syscalls used in this file expect some of the arguments - * to be __user pointers not __kernel pointers. To limit the sparse - * noise, turn off sparse checking for this file. - */ -#ifdef __CHECKER__ -#undef __CHECKER__ -#warning "Sparse checking disabled for this file" -#endif - #include #include #include diff --git a/init/do_mounts_initrd.c b/init/do_mounts_initrd.c index 5a91aefa7..d1a5d885c 100644 --- a/init/do_mounts_initrd.c +++ b/init/do_mounts_initrd.c @@ -1,14 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -/* - * Many of the syscalls used in this file expect some of the arguments - * to be __user pointers not __kernel pointers. To limit the sparse - * noise, turn off sparse checking for this file. - */ -#ifdef __CHECKER__ -#undef __CHECKER__ -#warning "Sparse checking disabled for this file" -#endif - #include #include #include diff --git a/init/do_mounts_md.c b/init/do_mounts_md.c index 7b18c2b3d..ebee03f83 100644 --- a/init/do_mounts_md.c +++ b/init/do_mounts_md.c @@ -1,14 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -/* - * Many of the syscalls used in this file expect some of the arguments - * to be __user pointers not __kernel pointers. To limit the sparse - * noise, turn off sparse checking for this file. - */ -#ifdef __CHECKER__ -#undef __CHECKER__ -#warning "Sparse checking disabled for this file" -#endif - #include #include #include diff --git a/init/do_mounts_rd.c b/init/do_mounts_rd.c index 811f22311..115407a3c 100644 --- a/init/do_mounts_rd.c +++ b/init/do_mounts_rd.c @@ -1,14 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -/* - * Many of the syscalls used in this file expect some of the arguments - * to be __user pointers not __kernel pointers. To limit the sparse - * noise, turn off sparse checking for this file. - */ -#ifdef __CHECKER__ -#undef __CHECKER__ -#warning "Sparse checking disabled for this file" -#endif - #include #include #include diff --git a/init/initramfs.c b/init/initramfs.c index 4a1a27dba..3942b3a09 100644 --- a/init/initramfs.c +++ b/init/initramfs.c @@ -1,14 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -/* - * Many of the syscalls used in this file expect some of the arguments - * to be __user pointers not __kernel pointers. To limit the sparse - * noise, turn off sparse checking for this file. - */ -#ifdef __CHECKER__ -#undef __CHECKER__ -#warning "Sparse checking disabled for this file" -#endif - #include #include #include -- 2.17.1