As we defined the new hwtstamp_config flag HWTSTAMP_FLAG_BONDED_PHC_INDEX as enum, it's not easy for userspace program to check if the flag is supported when build. Let's define the new flag so user space could build it on old kernel with ifdef check.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -87,6 +87,7 @@ enum hwtstamp_flags { · 86 unmodified lines | ||
| 87 | 87 | * will be the PHC index. |
| 88 | 88 | */ |
| 89 | 89 | HWTSTAMP_FLAG_BONDED_PHC_INDEX = (1<<0), |
| 90 | +#define HWTSTAMP_FLAG_BONDED_PHC_INDEX HWTSTAMP_FLAG_BONDED_PHC_INDEX | |
| 90 | 91 | |
| 91 | 92 | HWTSTAMP_FLAG_LAST = HWTSTAMP_FLAG_BONDED_PHC_INDEX, |
| 92 | 93 | HWTSTAMP_FLAG_MASK = (HWTSTAMP_FLAG_LAST - 1) | HWTSTAMP_FLAG_LAST |