Commit 9120d5e7 authored by Federico Vaga's avatar Federico Vaga

kernel: define BIT() when undefined

The user-space may not have a definition for `BIT()`, so when
an application includes this header it will get error about
missing `BIT` definition.

This is a fix for this possible of issue.
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent ee3125b9
......@@ -8,6 +8,10 @@
#ifndef FMC_ADC_100M14B4C_H_
#define FMC_ADC_100M14B4C_H_
#ifndef BIT
#define BIT(nr) (1UL << (nr))
#endif
/*
* Trigger Extended Attribute Enumeration
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment