linux_dsm_epyc7002/arch/mips
Josh Boyer 8ded2bbc18 posix_types.h: Cleanup stale __NFDBITS and related definitions
Recently, glibc made a change to suppress sign-conversion warnings in
FD_SET (glibc commit ceb9e56b3d1).  This uncovered an issue with the
kernel's definition of __NFDBITS if applications #include
<linux/types.h> after including <sys/select.h>.  A build failure would
be seen when passing the -Werror=sign-compare and -D_FORTIFY_SOURCE=2
flags to gcc.

It was suggested that the kernel should either match the glibc
definition of __NFDBITS or remove that entirely.  The current in-kernel
uses of __NFDBITS can be replaced with BITS_PER_LONG, and there are no
uses of the related __FDELT and __FDMASK defines.  Given that, we'll
continue the cleanup that was started with commit 8b3d1cda4f
("posix_types: Remove fd_set macros") and drop the remaining unused
macros.

Additionally, linux/time.h has similar macros defined that expand to
nothing so we'll remove those at the same time.

Reported-by: Jeff Law <law@redhat.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
CC: <stable@vger.kernel.org>
Signed-off-by: Josh Boyer <jwboyer@redhat.com>
[ .. and fix up whitespace as per akpm ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-07-26 13:36:43 -07:00
..
alchemy - More robust parsing especially of xattr data in JFFS2 2012-06-01 16:55:42 -07:00
ar7 arch: Use eth_random_addr 2012-07-16 22:39:25 -07:00
ath79
bcm47xx MIPS: BCM47xx: Fix BCMA_DRIVER_PCI_HOSTMODE config dependencies 2012-07-19 11:23:43 +02:00
bcm63xx mips: mark const init data with __initconst instead of __initdata 2012-07-19 11:23:43 +02:00
boot
cavium-octeon MIPS: Octeon: delay enable irq to ->smp_finish() 2012-07-19 11:23:44 +02:00
cobalt
configs
dec
emma
fw
include/asm MIPS: Fix bug.h MIPS build regression 2012-07-19 11:27:17 +02:00
jazz
jz4740
kernel posix_types.h: Cleanup stale __NFDBITS and related definitions 2012-07-26 13:36:43 -07:00
lantiq Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2012-05-29 18:27:19 -07:00
lasat
lib
loongson
math-emu
mipssim
mm MIPS: Fix decoding of c0_config1 for MIPSxx caches with 32 ways per set. 2012-07-19 11:23:43 +02:00
mti-malta MIPS: PCI: Move fixups from __init to __devinit. 2012-07-19 11:27:23 +02:00
netlogic MIPS: Netlogic: Fix TLB size of boot CPU. 2012-07-03 19:04:02 +02:00
oprofile MIPS: Add support for the M14Kc core. 2012-07-06 23:56:00 +02:00
pci PCI changes for the 3.6 merge window: 2012-07-24 16:17:07 -07:00
pmc-sierra PCI changes for the 3.6 merge window: 2012-07-24 16:17:07 -07:00
pnx833x
pnx8550
power
powertv Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2012-07-24 10:01:50 -07:00
rb532 - More robust parsing especially of xattr data in JFFS2 2012-06-01 16:55:42 -07:00
sgi-ip22
sgi-ip27
sgi-ip32
sibyte
sni Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2012-05-29 18:27:19 -07:00
txx9 MIPS: PCI: Move fixups from __init to __devinit. 2012-07-19 11:27:23 +02:00
vr41xx
wrppmc
Kbuild
Kbuild.platforms
Kconfig MIPS: Malta may also be equipped with MIPS64 R2 processors. 2012-07-19 11:23:43 +02:00
Kconfig.debug
Makefile Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2012-05-28 10:32:28 -07:00