History

[media] media.h: don't use legacy entity macros at Kernel

Put the legacy MEDIA_ENT_* macros under a #ifndef __KERNEL__, in order to be sure that none of those old symbols are used inside the Kernel.

Mauro Carvalho Chehab committed 11 years ago

Commit 43766791 parent 687b4201 file · +2 −0Browse files

Unified · Split

include/uapi/linux/media.h+2−0
@@ -105,6 +105,7 @@ struct media_device_info { · 104 unmodified lines
105105 #define MEDIA_ENT_T_DVB_CA (MEDIA_ENT_T_DVB_BASE + 4)
106106 #define MEDIA_ENT_T_DVB_NET_DECAP (MEDIA_ENT_T_DVB_BASE + 5)
107107
108+#ifndef __KERNEL__
108109 /* Legacy symbols used to avoid userspace compilation breakages */
109110 #define MEDIA_ENT_TYPE_SHIFT 16
110111 #define MEDIA_ENT_TYPE_MASK 0x00ff0000
@@ -118,6 +119,7 @@ struct media_device_info { · 7 unmodified lines
118119 #define MEDIA_ENT_T_DEVNODE_FB (MEDIA_ENT_T_DEVNODE + 2)
119120 #define MEDIA_ENT_T_DEVNODE_ALSA (MEDIA_ENT_T_DEVNODE + 3)
120121 #define MEDIA_ENT_T_DEVNODE_DVB (MEDIA_ENT_T_DEVNODE + 4)
122+#endif
121123
122124 /* Entity types */
123125

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t