Re: [PATCH v2] regmap: provide dummy regmap_exit()

From: Olof Johansson
Date: Tue Nov 25 2014 - 16:27:52 EST


On Tue, Nov 25, 2014 at 1:14 PM, Mark Brown <broonie@xxxxxxxxxx> wrote:
> On Tue, Nov 25, 2014 at 01:03:19PM -0800, Olof Johansson wrote:
>> Fixes build error:
>>
>> sound/soc/soc-core.c: In function 'snd_soc_component_exit_regmap':
>> sound/soc/soc-core.c:2644:2: error: implicit declaration of function 'regmap_exit' [-Werror=implicit-function-declaration]
>> regmap_exit(component->regmap);
>
> In which configuration?

eseries_pxa_defconfig

>> Due to the other regmap functions providing appropriate stubs when
>> !CONFIG_REGMAP, but this one is missing. Add it.
>
> Be careful on this one, you'll notice that the matching creation
> functions *aren't* stubbed since there is no way to reference them
> without an active dependency on regmap and indeed this use is a bit
> dodgy since the core ends up freeing something that a driver allocated
> which isn't ideal but probably is OK due to the general horrificness of
> the AC'97 device model integration. We only stub functions that generic
> code might have a sensible reason to use in order to make it less faff
> to provide generic helpers for things.
>
> I'll tweak the commit message when applying.

Based on the other reply, you went with ifdefs in the audio code
instead, which is ok with me.


-Olof
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/