Skip to content

Commit

Permalink
iio: adc: talise-api: ignore ISO C90 vla warnings
Browse files Browse the repository at this point in the history
On newer kernels warning/error is:
```
drivers/iio/adc/talise/talise_gpio.c:2032:5: error: ISO C90 forbids array 'gpioStatus' whose size can't be evaluated [-Werror=vla]
 2032 |     uint8_t gpioStatus[GPIO_STATUS_CMD_SIZE_BYTES];
```

It's probable that upstream kernel decided to enforce some C90 stuff [vs
C99]. We won't fix this code, but we will ignore it so that it builds on
the adi-iio branch.

Signed-off-by: Alexandru Ardelean <[email protected]>
  • Loading branch information
commodo committed Oct 30, 2019
1 parent 305ca5a commit 5591919
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/iio/adc/talise/adi_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#ifndef _ADI_HAL_H_
#define _ADI_HAL_H_

#pragma GCC diagnostic ignored "-Wvla"

/* include standard types and definitions */
#include <linux/kernel.h>
#include <linux/math64.h>
Expand Down

0 comments on commit 5591919

Please sign in to comment.