mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-06 07:55:28 -04:00
Pull nolibc updates from Thomas Weißschuh:
- Preparations to the use of nolibc in UML:
- Cleanup of sparse warnings
- Library mode without _start()
- More consistency when disabling errno
- Unconditional installation of all architecture support files
- Always 64-bit wide ino_t and off_t
- Various cleanups and bug fixes
* tag 'nolibc-20251130-for-6.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/nolibc/linux-nolibc: (25 commits)
selftests/nolibc: error out on linker warnings
selftests/nolibc: use lld to link loongarch binaries
tools/nolibc: remove more __nolibc_enosys() fallbacks
tools/nolibc: remove now superfluous overflow check in llseek
tools/nolibc: use 64-bit off_t
tools/nolibc: prefer the llseek syscall
tools/nolibc: handle 64-bit off_t for llseek
tools/nolibc: use 64-bit ino_t
tools/nolibc: avoid using plain integer as NULL pointer
tools/nolibc: add support for fchdir()
tools/nolibc: clean up outdated comments in generic arch.h
tools/nolibc: make the "headers" target install all supported archs
tools/nolibc: add the more portable inttypes.h
tools/nolibc: provide the portable sys/select.h
tools/nolibc: add missing memchr() to string.h
tools/nolibc: fix misleading help message regarding installation path
tools/nolibc: add uio.h with readv and writev
tools/nolibc: add option to disable runtime
tools/nolibc: use __fallthrough__ rather than fallthrough
tools/nolibc: implement %m if errno is not defined
...
36 lines
850 B
C
36 lines
850 B
C
/* SPDX-License-Identifier: LGPL-2.1 OR MIT */
|
|
/*
|
|
* Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu>
|
|
*/
|
|
|
|
#ifndef _NOLIBC_ARCH_H
|
|
#define _NOLIBC_ARCH_H
|
|
|
|
#if defined(__x86_64__) || defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__)
|
|
#include "arch-x86.h"
|
|
#elif defined(__ARM_EABI__)
|
|
#include "arch-arm.h"
|
|
#elif defined(__aarch64__)
|
|
#include "arch-arm64.h"
|
|
#elif defined(__mips__)
|
|
#include "arch-mips.h"
|
|
#elif defined(__powerpc__)
|
|
#include "arch-powerpc.h"
|
|
#elif defined(__riscv)
|
|
#include "arch-riscv.h"
|
|
#elif defined(__s390x__)
|
|
#include "arch-s390.h"
|
|
#elif defined(__loongarch__)
|
|
#include "arch-loongarch.h"
|
|
#elif defined(__sparc__)
|
|
#include "arch-sparc.h"
|
|
#elif defined(__m68k__)
|
|
#include "arch-m68k.h"
|
|
#elif defined(__sh__)
|
|
#include "arch-sh.h"
|
|
#else
|
|
#error Unsupported Architecture
|
|
#endif
|
|
|
|
#endif /* _NOLIBC_ARCH_H */
|