Skip to content

Commit bbb55cd

Browse files
nathanchancemchehab
authored andcommitted
media: ddbridge: Move asm includes after linux ones
Without this, cpumask_t and bool are not defined: In file included from drivers/media/pci/ddbridge/ddbridge-ci.c:19: In file included from drivers/media/pci/ddbridge/ddbridge.h:22: ./arch/arm/include/asm/irq.h:35:50: error: unknown type name 'cpumask_t' extern void arch_trigger_cpumask_backtrace(const cpumask_t *mask, ^ ./arch/arm/include/asm/irq.h:36:9: error: unknown type name 'bool' bool exclude_self); ^ Doing a survey of the kernel tree, this appears to be expected because '#include <asm/irq.h>' is always after the linux includes. This also fixes warnings of this variety (with Clang): In file included from drivers/media/pci/ddbridge/ddbridge-ci.c:19: In file included from drivers/media/pci/ddbridge/ddbridge.h:56: In file included from ./include/media/dvb_net.h:22: In file included from ./include/linux/netdevice.h:50: In file included from ./include/uapi/linux/neighbour.h:6: In file included from ./include/linux/netlink.h:9: In file included from ./include/net/scm.h:11: In file included from ./include/linux/sched/signal.h:6: ./include/linux/signal.h:87:11: warning: array index 3 is past the end of the array (which contains 2 elements) [-Warray-bounds] return (set->sig[3] | set->sig[2] | ^ ~ ./arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ Fixes: b697363 ("media: ddbridge: remove another duplicate of io.h and sort includes") Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1 parent daad52c commit bbb55cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/media/pci/ddbridge/ddbridge.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
#ifndef _DDBRIDGE_H_
1919
#define _DDBRIDGE_H_
2020

21-
#include <asm/dma.h>
22-
#include <asm/irq.h>
23-
2421
#include <linux/clk.h>
2522
#include <linux/completion.h>
2623
#include <linux/delay.h>
@@ -48,6 +45,9 @@
4845
#include <linux/vmalloc.h>
4946
#include <linux/workqueue.h>
5047

48+
#include <asm/dma.h>
49+
#include <asm/irq.h>
50+
5151
#include <media/dmxdev.h>
5252
#include <media/dvb_ca_en50221.h>
5353
#include <media/dvb_demux.h>

0 commit comments

Comments
 (0)