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>] [thread-next>] [day] [month] [year] [list]
Date:	Thu,  8 Aug 2013 21:06:58 +0000
From:	Rasmus Villemoes <linux@...musvillemoes.dk>
To:	Arnd Bergmann <arnd@...db.de>, Roland McGrath <roland@...hat.com>,
	Oleg Nesterov <oleg@...hat.com>
Cc:	linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org,
	Rasmus Villemoes <linux@...musvillemoes.dk>
Subject: [PATCH 0/4] asm-generic: fix minor include guard issues

I wrote a script to help find (potential) problems with include
guards, such as the same macro being used in different header
files. These patches are the result of applying that to
include/asm-generic. They are mostly trivial, but [1/4] fixes two
almost-problems.

I didn't touch include/asm-generic/rwsem.h, although it might need
some attention. It was introduced in dd472da38, seemingly a copy of
arch/powerpc/include/asm/rwsem.h, which was removed in 0766387bc. It
is not #included from anywhere, but is used in
arch/{hexagon,powerpc}/include/asm/Kbuild. Since it is no longer
powerpc-specific, the _ASM_POWERPC_RWSEM_H and #ifdef CONFIG_PPC64
seem malplaced.


Rasmus Villemoes (4):
  asm-generic: Make sure include guards contain the substring
    ASM_GENERIC
  asm-generic: Use different include guards
  asm-generic: Add missing include guards
  asm-generic: Fix typo in comment after #endif

 include/asm-generic/bitops/arch_hweight.h   |    2 +-
 include/asm-generic/bitops/atomic.h         |    2 +-
 include/asm-generic/cacheflush.h            |    6 +++---
 include/asm-generic/clkdev.h                |    4 ++--
 include/asm-generic/dma-coherent.h          |    4 ++--
 include/asm-generic/dma-contiguous.h        |    4 ++--
 include/asm-generic/dma-mapping-broken.h    |    6 +++---
 include/asm-generic/dma-mapping-common.h    |    4 ++--
 include/asm-generic/ide_iops.h              |    4 ++++
 include/asm-generic/io-64-nonatomic-hi-lo.h |    6 +++---
 include/asm-generic/io-64-nonatomic-lo-hi.h |    6 +++---
 include/asm-generic/iomap.h                 |    4 ++--
 include/asm-generic/memory_model.h          |    4 ++--
 include/asm-generic/pci_iomap.h             |    2 +-
 include/asm-generic/rtc.h                   |    6 +++---
 include/asm-generic/signal.h                |    2 +-
 include/asm-generic/statfs.h                |    4 ++--
 include/asm-generic/syscall.h               |    6 +++---
 include/asm-generic/unistd.h                |    5 +++++
 include/asm-generic/vga.h                   |    2 +-
 include/asm-generic/word-at-a-time.h        |    6 +++---
 include/asm-generic/xor.h                   |    4 ++++
 22 files changed, 53 insertions(+), 40 deletions(-)

-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ