mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 10:46:25 +00:00
dde_linux: reduce compiler warnings
This commit is contained in:
parent
ba7e832c5d
commit
4bbbf5d2e3
@ -17,7 +17,7 @@ CC_OPT += -DCONFIG_INET -DCONFIG_BASE_SMALL=0 -DCONFIG_DEBUG_LOCK_ALLOC \
|
||||
|
||||
CC_WARN = -Wall -Wno-unused-variable -Wno-uninitialized \
|
||||
-Wno-unused-function -Wno-overflow -Wno-pointer-arith \
|
||||
-Wno-sign-compare
|
||||
-Wno-sign-compare -Wno-builtin-declaration-mismatch
|
||||
|
||||
CC_C_OPT += -std=gnu89
|
||||
CC_C_OPT += -Wno-unused-but-set-variable -Wno-pointer-sign
|
||||
|
@ -31,6 +31,7 @@ CC_C_OPT += -std=gnu89
|
||||
CC_C_OPT += -include $(LIB_INC_DIR)/lx_emul.h
|
||||
CC_C_OPT += -Wall -Wno-unused-variable -Wno-unused-function -Wno-uninitialized
|
||||
CC_C_OPT += -Wno-unused-but-set-variable -Wno-pointer-sign -Wno-cast-qual
|
||||
CC_C_OPT += -Wno-stringop-truncation
|
||||
CC_CXX_OPT += -Wall -fpermissive
|
||||
|
||||
CC_OPT += -U__linux__ -D __KERNEL__ -DCONFIG_PCI
|
||||
|
10
repos/dde_linux/patches/lxip_log2.patch
Normal file
10
repos/dde_linux/patches/lxip_log2.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- a/include/linux/log2.h 2016-02-25 21:01:36.000000000 +0100
|
||||
+++ b/include/linux/log2.h 2020-01-03 14:59:54.572400301 +0100
|
||||
@@ -18,7 +18,6 @@
|
||||
/*
|
||||
* deal with unrepresentable constant logarithms
|
||||
*/
|
||||
-extern __attribute__((const, noreturn))
|
||||
int ____ilog2_NaN(void);
|
||||
|
||||
/*
|
@ -1 +1 @@
|
||||
234e76f366dc583176c0695d33886fb6576765c2
|
||||
8d086553e63be398b2e00ffa093fb4d44d6e746d
|
||||
|
@ -156,6 +156,7 @@ PATCHES += $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/usb_hid*.
|
||||
LXIP_OPT = -p1 -d$(SRC_DIR_LXIP)
|
||||
PATCH_OPT(patches/lxip_icmp.patch) := $(LXIP_OPT)
|
||||
PATCH_OPT(patches/lxip_ip_config.patch) := $(LXIP_OPT)
|
||||
PATCH_OPT(patches/lxip_log2.patch) := $(LXIP_OPT)
|
||||
PATCH_OPT(patches/lxip_netlink.patch) := $(LXIP_OPT)
|
||||
PATCH_OPT(patches/lxip_request_sock.patch) := $(LXIP_OPT)
|
||||
PATCH_OPT(patches/lxip_sk_wq.patch) := $(LXIP_OPT)
|
||||
|
@ -1262,12 +1262,9 @@ enum {
|
||||
MEMREMAP_WB = 1 << 0,
|
||||
};
|
||||
|
||||
#define writel(value, addr) (*(volatile uint32_t *)(addr) = (value))
|
||||
#define readl(addr) (*(volatile uint32_t *)(addr))
|
||||
|
||||
#define writel_relaxed(v, a) writel(v, a)
|
||||
#define iowrite32(v, addr) writel((v), (addr))
|
||||
#define ioread32(addr) readl(addr)
|
||||
#define iowrite32(v, addr) writel((v), (addr))
|
||||
#define ioread32(addr) readl(addr)
|
||||
|
||||
void outb(u8 value, u32 port);
|
||||
void outw(u16 value, u32 port);
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#define WARN_ON(condition) ({ \
|
||||
int ret = !!(condition); \
|
||||
if (ret) lx_printf("[%s] WARN_ON(" #condition ") \n", __func__); \
|
||||
if (ret) lx_printf("[%s] WARN_ON(%s) \n", __func__, #condition); \
|
||||
ret; })
|
||||
|
||||
#define WARN(condition, fmt, arg...) ({ \
|
||||
|
@ -3056,10 +3056,10 @@ struct inet_diag_handler
|
||||
|
||||
|
||||
void inet_diag_dump_icsk(struct inet_hashinfo *, struct sk_buff *,
|
||||
struct netlink_callback *, struct inet_diag_req_v2 *,
|
||||
struct netlink_callback *, const struct inet_diag_req_v2 *,
|
||||
struct nlattr *);
|
||||
int inet_diag_dump_one_icsk(struct inet_hashinfo *, struct sk_buff *,
|
||||
const struct nlmsghdr *, struct inet_diag_req_v2 *);
|
||||
const struct nlmsghdr *, const struct inet_diag_req_v2 *);
|
||||
|
||||
int inet_diag_register(const struct inet_diag_handler *);
|
||||
void inet_diag_unregister(const struct inet_diag_handler *);
|
||||
@ -3424,9 +3424,9 @@ void trace_netif_rx_ni_entry(struct sk_buff*);
|
||||
void trace_netif_receive_skb_entry(struct sk_buff*);
|
||||
void trace_napi_gro_receive_entry(struct sk_buff*);
|
||||
void trace_napi_gro_frags_entry(struct sk_buff*);
|
||||
void trace_fib_validate_source(struct net_device *, struct flowi4*);
|
||||
void trace_fib_table_lookup(void*, void*);
|
||||
void trace_fib_table_lookup_nh(void*);
|
||||
void trace_fib_validate_source(const struct net_device *, const struct flowi4 *);
|
||||
void trace_fib_table_lookup(const void *, const void *);
|
||||
void trace_fib_table_lookup_nh(const void *);
|
||||
|
||||
|
||||
/******************
|
||||
|
Loading…
Reference in New Issue
Block a user