Re: [PATCH] semaphore: consolidate arch headers into a generic one

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/27/20 2:59 PM, Vineet Gupta via Libc-alpha wrote:
> This consolidates the copy-pasted arch specific semaphore header into
> single version (based on s390) which suffices 32-bit and and 64-bit
> arch/ABI based on the canonical WORDSIZE.
> 
> For now I've left out arches which use alternate defines to choose for
> 32 vs 64-bit builds (aarch64, mips) which in theory can also use the same
> header.
> 
> Passes build-many for
>   aarch64-linux-gnu arm-linux-gnueabi arm-linux-gnueabihf
>   riscv64-linux-gnu-rv64imac-lp64 riscv64-linux-gnu-rv64imafdc-lp64
>   x86_64-linux-gnu microblaze-linux-gnu nios2-linux-gnu
> 
> Suggested-by: Adhemerval Zanella <adhemerval.zanella@xxxxxxxxxx>
> ---
>  sysdeps/arm/nptl/bits/semaphore.h             | 34 ----------------
>  sysdeps/csky/nptl/bits/semaphore.h            | 35 ----------------
>  sysdeps/hppa/nptl/bits/semaphore.h            | 31 --------------
>  sysdeps/ia64/nptl/bits/semaphore.h            | 35 ----------------
>  sysdeps/microblaze/nptl/bits/semaphore.h      | 32 ---------------
>  sysdeps/nios2/nptl/bits/semaphore.h           | 32 ---------------
>  sysdeps/riscv/nptl/bits/semaphore.h           | 33 ---------------
>  sysdeps/sh/nptl/bits/semaphore.h              | 35 ----------------
>  sysdeps/sparc/nptl/bits/semaphore.h           | 40 -------------------
>  .../unix/sysv/linux/alpha/bits/semaphore.h    | 33 ---------------
>  .../nptl => unix/sysv/linux}/bits/semaphore.h |  0
>  .../unix/sysv/linux/powerpc/bits/semaphore.h  | 40 -------------------
>  sysdeps/x86/bits/semaphore.h                  | 40 -------------------
>  13 files changed, 420 deletions(-)
>  delete mode 100644 sysdeps/arm/nptl/bits/semaphore.h
>  delete mode 100644 sysdeps/csky/nptl/bits/semaphore.h
>  delete mode 100644 sysdeps/hppa/nptl/bits/semaphore.h
>  delete mode 100644 sysdeps/ia64/nptl/bits/semaphore.h
>  delete mode 100644 sysdeps/microblaze/nptl/bits/semaphore.h
>  delete mode 100644 sysdeps/nios2/nptl/bits/semaphore.h
>  delete mode 100644 sysdeps/riscv/nptl/bits/semaphore.h
>  delete mode 100644 sysdeps/sh/nptl/bits/semaphore.h
>  delete mode 100644 sysdeps/sparc/nptl/bits/semaphore.h
>  delete mode 100644 sysdeps/unix/sysv/linux/alpha/bits/semaphore.h
>  rename sysdeps/{s390/nptl => unix/sysv/linux}/bits/semaphore.h (100%)
>  delete mode 100644 sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h
>  delete mode 100644 sysdeps/x86/bits/semaphore.h

I just noticed that this also needs an entry in sysdep_headers in
sysdeps/unix/sysv/linux/Makefile

but the build still works for such arches ?
_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/linux-snps-arc



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux