Skip to contentSkip to conversation

clk dereference in drivers/net/ethernet/ti/cpts.c

DISCUSSION Julia Lawall 2 participants 2 messages Jan 3, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

There has been a discussion recently about how the result of get_clk should be an opaque handle, not a value that can be dereferenced:

https://lkml.org/lkml/2012/12/20/105

There is such a dereference in drivers/net/ethernet/ti/cpts.c, in the function cpts_clk_init:

cpts->freq = cpts->refclk->recalc(cpts->refclk);

It was not obvious to me, however, what API function should be used instead, so I am just reporting the (potential) problem.

thanks,
julia

#1 lore raw
Quoted 5 lines · Julia Lawall

There has been a discussion recently about how the result of get_clk should be an opaque handle, not a value that can be dereferenced:

https://lkml.org/lkml/2012/12/20/105

Quoted 7 lines

There is such a dereference in drivers/net/ethernet/ti/cpts.c, in the function cpts_clk_init:

cpts->freq = cpts->refclk->recalc(cpts->refclk);

It was not obvious to me, however, what API function should be used instead, so I am just reporting the (potential) problem.

This issue has been fixed in v3.8-rc2.

Thanks,
Richard