lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20d09d5e3e540fda4108ec7358c598bf8d4dcb3c.1636907727.git.christophe.jaillet@wanadoo.fr>
Date:   Sun, 14 Nov 2021 17:35:34 +0100
From:   Christophe JAILLET <christophe.jaillet@...adoo.fr>
To:     arnd@...db.de
Cc:     linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org,
        kernel-janitors@...r.kernel.org,
        Christophe JAILLET <christophe.jaillet@...adoo.fr>
Subject: [PATCH] sched: Remove a useless #include

unlikely() is not used anymore since commit ff80a77f20f8 ("sched: simplify
sched_find_first_bit()") in 2007.

So this include can be removed.

Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
---
Compile tested only on my x86_64 Ubuntu like environment.

It also looks to me that the only needed include is <linux/bitops.h> and
that <asm/types.h> is of no use.
---
 include/asm-generic/bitops/sched.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/asm-generic/bitops/sched.h b/include/asm-generic/bitops/sched.h
index 86470cfcef60..c3b7d50d6711 100644
--- a/include/asm-generic/bitops/sched.h
+++ b/include/asm-generic/bitops/sched.h
@@ -2,7 +2,6 @@
 #ifndef _ASM_GENERIC_BITOPS_SCHED_H_
 #define _ASM_GENERIC_BITOPS_SCHED_H_
 
-#include <linux/compiler.h>	/* unlikely() */
 #include <asm/types.h>
 
 /*
-- 
2.30.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ