search for: __kernel__

Displaying 20 results from an estimated 505 matches for "__kernel__".

2012 Sep 12
3
[RFC][PATCH] Btrfs-progs: Fix compiler warnings on PPC64.
From: Wade Cline <clinew@linux.vnet.ibm.com> The kernel uses unsigned long long for u64, but PPC64 uses unsigned long by default. This results in print warnings such as: print-tree.c:333: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 4 has type ‘u64’ Defining __KERNEL__ before the file <asm/types.h>, or any file that includes this file, will let PPC64 know to use unsigned long long for u64 instead. This patch adds the defines and fixes the print warnings on PPC64. Signed-off-by: Wade Cline <clinew@linux.vnet.ibm.com> --- cmds-receive.c | 1 + cmds...
2016 May 29
0
couple virtio header files refer to non-existent "__KERNEL__" test
just noticed that these header files contain comments referring to "the #ifdef __KERNEL__ part": include/uapi/linux/virtio_console.h: * This header, excluding the #ifdef __KERNEL__ part, is BSD licensed so include/uapi/linux/virtio_config.h:/* This header, excluding the #ifdef __KERNEL__ part, is BSD licensed so include/linux/virtio_console.h: * This header, excluding the #ifdef _...
2016 May 29
0
couple virtio header files refer to non-existent "__KERNEL__" test
just noticed that these header files contain comments referring to "the #ifdef __KERNEL__ part": include/uapi/linux/virtio_console.h: * This header, excluding the #ifdef __KERNEL__ part, is BSD licensed so include/uapi/linux/virtio_config.h:/* This header, excluding the #ifdef __KERNEL__ part, is BSD licensed so include/linux/virtio_console.h: * This header, excluding the #ifdef _...
2013 Mar 07
2
[PATCH] VSOCK: Split vm_sockets.h into kernel/uapi
Split the vSockets header into kernel and UAPI parts. The former gets the bits that used to be in __KERNEL__ guards, while the latter gets everything that is user-visible. Tested by compiling vsock (+transport) and a simple user-mode vSockets application. Reported-by: David Howells <dhowells at redhat.com> Acked-by: Dmitry Torokhov <dtor at vmware.com> Signed-off-by: Andy King <acking at...
2013 Mar 07
2
[PATCH] VSOCK: Split vm_sockets.h into kernel/uapi
Split the vSockets header into kernel and UAPI parts. The former gets the bits that used to be in __KERNEL__ guards, while the latter gets everything that is user-visible. Tested by compiling vsock (+transport) and a simple user-mode vSockets application. Reported-by: David Howells <dhowells at redhat.com> Acked-by: Dmitry Torokhov <dtor at vmware.com> Signed-off-by: Andy King <acking at...
2020 Apr 06
0
[PATCH v4 03/12] tools/virtio: define __KERNEL__
...o-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h +CFLAGS += -g -O2 -Werror -Wall -I. -I../include/ -I ../../usr/include/ -Wno-pointer-sign -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h -D__KERNEL__ vpath %.c ../../drivers/virtio ../../drivers/vhost mod: ${MAKE} -C `pwd`/../.. M=`pwd`/vhost_test V=${V} -- MST
2020 Apr 06
0
[PATCH v5 03/12] tools/virtio: define __KERNEL__
...o-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h +CFLAGS += -g -O2 -Werror -Wall -I. -I../include/ -I ../../usr/include/ -Wno-pointer-sign -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h -D__KERNEL__ vpath %.c ../../drivers/virtio ../../drivers/vhost mod: ${MAKE} -C `pwd`/../.. M=`pwd`/vhost_test V=${V} -- MST
2020 Apr 06
0
[PATCH v6 03/12] tools/virtio: define __KERNEL__
...o-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h +CFLAGS += -g -O2 -Werror -Wall -I. -I../include/ -I ../../usr/include/ -Wno-pointer-sign -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h -D__KERNEL__ vpath %.c ../../drivers/virtio ../../drivers/vhost mod: ${MAKE} -C `pwd`/../.. M=`pwd`/vhost_test V=${V} -- MST
2020 Apr 07
0
[PATCH v7 03/19] tools/virtio: define __KERNEL__
...o-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h +CFLAGS += -g -O2 -Werror -Wall -I. -I../include/ -I ../../usr/include/ -Wno-pointer-sign -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h -D__KERNEL__ vpath %.c ../../drivers/virtio ../../drivers/vhost mod: ${MAKE} -C `pwd`/../.. M=`pwd`/vhost_test V=${V} -- MST
2020 Apr 07
0
[PATCH v8 03/19] tools/virtio: define __KERNEL__
...o-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h +CFLAGS += -g -O2 -Werror -Wall -I. -I../include/ -I ../../usr/include/ -Wno-pointer-sign -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h -D__KERNEL__ vpath %.c ../../drivers/virtio ../../drivers/vhost mod: ${MAKE} -C `pwd`/../.. M=`pwd`/vhost_test V=${V} -- MST
2020 Apr 06
0
[PATCH v4 03/12] tools/virtio: define __KERNEL__
...o-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h +CFLAGS += -g -O2 -Werror -Wall -I. -I../include/ -I ../../usr/include/ -Wno-pointer-sign -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h -D__KERNEL__ vpath %.c ../../drivers/virtio ../../drivers/vhost mod: ${MAKE} -C `pwd`/../.. M=`pwd`/vhost_test V=${V} -- MST
2003 Apr 28
1
[PATCH] Fix the build for utils/fstype.h
...The cramfs header defines u8, so we must quiet it down. <b diff -Nru a/utils/fstype.c b/utils/fstype.c --- a/utils/fstype.c Mon Apr 28 15:10:56 2003 +++ b/utils/fstype.c Mon Apr 28 15:10:56 2003 @@ -19,7 +19,9 @@ #include <asm/byteorder.h> #include <linux/romfs_fs.h> +#define __KERNEL__ #include <linux/cramfs_fs.h> +#undef __KERNEL__ #include <linux/minix_fs.h> #include <linux/ext2_fs.h> #include "ext3_fs.h"
2015 Jul 05
2
[PATCH RESEND] virtio: Fix typecast of pointer in vring_init()
...pe for target 'Documentation/mic/mpssd' > failed > make[2]: *** [Documentation/mic/mpssd] Error 2 > scripts/Makefile.build:403: recipe for target 'Documentation/mic' failed > make[1]: *** [Documentation/mic] Error 2 > > > E.g. fuse.h has this code: > #ifdef __KERNEL__ > #include <linux/types.h> > #else > #include <stdint.h> > #endif > > Maybe we need something similar. The following seems to help. Does it help the windows build? --- include/uapi/linux/virtio_ring.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/...
2015 Jul 05
2
[PATCH RESEND] virtio: Fix typecast of pointer in vring_init()
...pe for target 'Documentation/mic/mpssd' > failed > make[2]: *** [Documentation/mic/mpssd] Error 2 > scripts/Makefile.build:403: recipe for target 'Documentation/mic' failed > make[1]: *** [Documentation/mic] Error 2 > > > E.g. fuse.h has this code: > #ifdef __KERNEL__ > #include <linux/types.h> > #else > #include <stdint.h> > #endif > > Maybe we need something similar. The following seems to help. Does it help the windows build? --- include/uapi/linux/virtio_ring.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/...
2020 Nov 03
0
[patch V3 15/37] powerpc/mm/highmem: Switch to generic kmap atomic
..._KMAP_END = FIX_KMAP_BEGIN+(KM_TYPE_NR*NR_CPUS)-1, + FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * NR_CPUS) - 1, #endif #ifdef CONFIG_PPC_8xx /* For IMMR we need an aligned 512K area */ --- a/arch/powerpc/include/asm/highmem.h +++ b/arch/powerpc/include/asm/highmem.h @@ -24,12 +24,10 @@ #ifdef __KERNEL__ #include <linux/interrupt.h> -#include <asm/kmap_types.h> #include <asm/cacheflush.h> #include <asm/page.h> #include <asm/fixmap.h> -extern pte_t *kmap_pte; extern pte_t *pkmap_page_table; /* @@ -60,6 +58,11 @@ extern pte_t *pkmap_page_table; #define flu...
2009 Nov 02
1
[PATCHv6 1/3] tun: export underlying socket
...it); module_exit(tun_cleanup); MODULE_DESCRIPTION(DRV_DESCRIPTION); diff --git a/include/linux/if_tun.h b/include/linux/if_tun.h index 3f5fd52..404abe0 100644 --- a/include/linux/if_tun.h +++ b/include/linux/if_tun.h @@ -86,4 +86,18 @@ struct tun_filter { __u8 addr[0][ETH_ALEN]; }; +#ifdef __KERNEL__ +#if defined(CONFIG_TUN) || defined(CONFIG_TUN_MODULE) +struct socket *tun_get_socket(struct file *); +#else +#include <linux/err.h> +#include <linux/errno.h> +struct file; +struct socket; +static inline struct socket *tun_get_socket(struct file *f) +{ + return ERR_PTR(-EINVAL); +} +#en...
2009 Nov 02
1
[PATCHv6 1/3] tun: export underlying socket
...it); module_exit(tun_cleanup); MODULE_DESCRIPTION(DRV_DESCRIPTION); diff --git a/include/linux/if_tun.h b/include/linux/if_tun.h index 3f5fd52..404abe0 100644 --- a/include/linux/if_tun.h +++ b/include/linux/if_tun.h @@ -86,4 +86,18 @@ struct tun_filter { __u8 addr[0][ETH_ALEN]; }; +#ifdef __KERNEL__ +#if defined(CONFIG_TUN) || defined(CONFIG_TUN_MODULE) +struct socket *tun_get_socket(struct file *); +#else +#include <linux/err.h> +#include <linux/errno.h> +struct file; +struct socket; +static inline struct socket *tun_get_socket(struct file *f) +{ + return ERR_PTR(-EINVAL); +} +#en...
2015 Jul 06
1
[PATCH RESEND] virtio: Fix typecast of pointer in vring_init()
...once for each function it appears in > > > scripts/Makefile.host:108: recipe for target > > D'oh, I only built the kernel for powerpc, that's why I did not notice > this breakage in the MIC code. Sorry! > > > > E.g. fuse.h has this code: > > > #ifdef __KERNEL__ > > > #include <linux/types.h> > > > #else > > > #include <stdint.h> > > > #endif > > > > > > Maybe we need something similar. > > > > The following seems to help. Does it help the windows build? > ... > > dif...
2015 Jul 06
1
[PATCH RESEND] virtio: Fix typecast of pointer in vring_init()
...once for each function it appears in > > > scripts/Makefile.host:108: recipe for target > > D'oh, I only built the kernel for powerpc, that's why I did not notice > this breakage in the MIC code. Sorry! > > > > E.g. fuse.h has this code: > > > #ifdef __KERNEL__ > > > #include <linux/types.h> > > > #else > > > #include <stdint.h> > > > #endif > > > > > > Maybe we need something similar. > > > > The following seems to help. Does it help the windows build? > ... > > dif...
2005 Mar 03
5
klibc 0.207 released
This changes the RPM spec file to have -devel and -utils packages; the klibc main package is now only the runtime (plus libc.so and interp.o to avoid version skew; someone who is better at RPM than I am might be able to do the right thing with Requires and Provides to make sure there is a 100% binary match between files, using the hash code.) I'd like to let this stew for a bit, to smoke