[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150112172537.GA19868@roeck-us.net>
Date: Mon, 12 Jan 2015 09:25:37 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Jim Davis <jim.epost@...il.com>
Cc: linux-next <linux-next@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>, jdelvare@...e.de,
Grant Likely <grant.likely@...aro.org>,
Rob Herring <robh+dt@...nel.org>, lm-sensors@...sensors.org,
devicetree <devicetree@...r.kernel.org>,
Nishanth Menon <nm@...com>,
Eduardo Valentin <edubezval@...il.com>
Subject: Re: randconfig build error with next-20150112, in
drivers/hwmon/gpio-fan.c
On Mon, Jan 12, 2015 at 09:53:05AM -0700, Jim Davis wrote:
> Building with the attached random configuration file,
>
> drivers/built-in.o: In function `gpio_fan_remove':
> gpio-fan.c:(.text+0x6efea): undefined reference to
> `thermal_cooling_device_unregister'
> drivers/built-in.o: In function `gpio_fan_probe':
> gpio-fan.c:(.text+0x6f376): undefined reference to
> `thermal_cooling_device_register'
> make: *** [vmlinux] Error 1
Hi Jim,
thanks for the note.
Hmm .. turns out those functions don't define dummies if CONFIG_THERMAL
is not configured. How annoying.
Nishant, please fix your gpio-fan patch. I am going to drop it for now.
Please keep in mind that there is a secondary dependency: The thermal
code can be built as module. In that case, the gpio-fan driver must
either also be built as module, or its thermal registration must be
disabled.
Guenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists