Skip to content

ARM: samsung-time: Prepare for multiplatform support

Arnd Bergmann linux-arm-kernel linux-devicetree linux-samsung-soc 2 versions New

Get series with b4
b4 am 7765249.PbghLduf67@wuerfel

Versions newest first · linked by author and title

  1. v5 Latest posting 2/20 of 14 patches 0 repliesNew
  2. v5 posting 1/22 of 14 patches 0 repliesSuperseded

Patches in v5 posting 2/2 No applies recorded yet

None of the 14 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 00/14] ARM: samsung-time: Prepare for multiplatform support
Quoted 7 lines · On Saturday 13 April 2013 00:22:48 Heiko St?bner wrote:

Without dt support, you get this:

CC drivers/clocksource/samsung_pwm.o
drivers/clocksource/samsung_pwm.c:620: warning: ?samsung_pwm_clocksource_init_of? defined but not used

So, something like the following might be necessary

That patch should not be required any more with the definition

#ifdef CONFIG_CLKSRC_OF
extern void clocksource_of_init(void);

#define CLOCKSOURCE_OF_DECLARE(name, compat, fn)                        \
        static const struct of_device_id __clksrc_of_table_##name       \
                __used __section(__clksrc_of_table)                     \
                 = { .compatible = compat,                              \
                     .data = (fn == (clocksource_of_init_fn)NULL) ? fn : fn }
#else
static inline void clocksource_of_init(void) {}
#define CLOCKSOURCE_OF_DECLARE(name, compat, fn)                        \
        static const struct of_device_id __clksrc_of_table_##name       \
                __attribute__((unused))                                 \
                 = { .compatible = compat,                              \
                     .data = (fn == (clocksource_of_init_fn)NULL) ? fn : fn }

#endif

which turns the ?samsung_pwm_clocksource_init_of? function into an unused symbol that gets silently dropped by gcc, at least in theory. Are you using the latest clksrc/cleanup branch as a base?

Arnd