Re: [PATCH] iio: magnetometer: Only declare ACPI table when ACPI is enable

2017-07-06 Thread Matthias Kaehlcke
El Sat, Jul 01, 2017 at 01:11:12PM +0100 Jonathan Cameron ha dit: > On Thu, 29 Jun 2017 14:51:56 +0200 > Linus Walleij wrote: > > > On Tue, Jun 27, 2017 at 2:25 AM, Matthias Kaehlcke > > wrote: > > > > > Don't inflate the kernel size with data that isn't used. The conditional > > > declaratio

Re: [PATCH] iio: magnetometer: Only declare ACPI table when ACPI is enable

2017-07-01 Thread Jonathan Cameron
On Thu, 29 Jun 2017 14:51:56 +0200 Linus Walleij wrote: > On Tue, Jun 27, 2017 at 2:25 AM, Matthias Kaehlcke wrote: > > > Don't inflate the kernel size with data that isn't used. The conditional > > declaration also fixes the following warning when building with clang: > > > > drivers/iio/magne

Re: [PATCH] iio: magnetometer: Only declare ACPI table when ACPI is enable

2017-06-29 Thread Linus Walleij
On Tue, Jun 27, 2017 at 2:25 AM, Matthias Kaehlcke wrote: > Don't inflate the kernel size with data that isn't used. The conditional > declaration also fixes the following warning when building with clang: > > drivers/iio/magnetometer/ak8975.c:704:36: error: variable 'ak_acpi_match' > is not ne

[PATCH] iio: magnetometer: Only declare ACPI table when ACPI is enable

2017-06-26 Thread Matthias Kaehlcke
Don't inflate the kernel size with data that isn't used. The conditional declaration also fixes the following warning when building with clang: drivers/iio/magnetometer/ak8975.c:704:36: error: variable 'ak_acpi_match' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declarati