diff mbox

staging: fsl-dpaa2/eth: fix a couple of implicit includes

Message ID 20170622125210.27269-1-laurentiu.tudor@nxp.com (mailing list archive)
State New, archived
Headers show

Commit Message

Laurentiu Tudor June 22, 2017, 12:52 p.m. UTC
From: Laurentiu Tudor <laurentiu.tudor@nxp.com>

dpni.c is using byte order macros and error codes but does
not explicitly include the required kernel header, so add it.

Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
---
 drivers/staging/fsl-dpaa2/ethernet/dpni.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ioana Ciocoi Radulescu June 22, 2017, 3:50 p.m. UTC | #1
> -----Original Message-----
> From: laurentiu.tudor@nxp.com [mailto:laurentiu.tudor@nxp.com]
> Sent: Thursday, June 22, 2017 3:52 PM
> To: gregkh@linuxfoundation.org; Ruxandra Ioana Radulescu
> <ruxandra.radulescu@nxp.com>
> Cc: devel@driverdev.osuosl.org; linux-kernel@vger.kernel.org; Bogdan
> Purcareata <bogdan.purcareata@nxp.com>; Leo Li <leoyang.li@nxp.com>;
> stuyoder@gmail.com; Roy Pledge <roy.pledge@nxp.com>; linux-arm-
> kernel@lists.infradead.org; Laurentiu Tudor <laurentiu.tudor@nxp.com>
> Subject: [PATCH] staging: fsl-dpaa2/eth: fix a couple of implicit includes
> 
> From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
> 
> dpni.c is using byte order macros and error codes but does
> not explicitly include the required kernel header, so add it.
> 
> Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
 
Acked-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
diff mbox

Patch

diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpni.c b/drivers/staging/fsl-dpaa2/ethernet/dpni.c
index cea46ed..2c4b1a8 100644
--- a/drivers/staging/fsl-dpaa2/ethernet/dpni.c
+++ b/drivers/staging/fsl-dpaa2/ethernet/dpni.c
@@ -30,6 +30,8 @@ 
  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  */
+#include <linux/kernel.h>
+#include <linux/errno.h>
 #include "../../fsl-mc/include/mc-sys.h"
 #include "../../fsl-mc/include/mc-cmd.h"
 #include "dpni.h"