u-boot/arch/sandbox/include/asm
Neil Armstrong d0a9b82b75 regmap: fix regmap_read_poll_timeout warning about sandbox_timer_add_offset
When fixing sandbox test for regmap_read_poll_timeout(), the
sandbox_timer_add_offset was introduced but only defined in sandbox code
thus generating warnings when used out of sandbox :

include/regmap.h:289:2: note: in expansion of macro 'regmap_read_poll_timeout_test'
regmap_read_poll_timeout_test(map, addr, val, cond, sleep_us, \
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/spi/meson_spifc.c:169:8: note: in expansion of macro 'regmap_read_poll_timeout'
ret = regmap_read_poll_timeout(spifc->regmap, REG_SLAVE, data,
        ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/spi/meson_spifc.c: In function 'meson_spifc_txrx':
include/regmap.h:277:4: warning: implicit declaration of function 'sandbox_timer_add_offset' [-Wimplicit-function-declaration]

This fix adds a timer_test_add_offset() only defined in sandbox, and
renames the previous sandbox_timer_add_offset() to it.

Cc: Simon Glass <sjg@chromium.org>
Reported-by: Tom Rini <trini@konsulko.com>
Fixes: df9cf1cc08 ("test: dm: regmap: Fix the long test delay")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2019-04-23 11:17:15 +02:00
..
axi.h axi: Add AXI sandbox driver and simple emulator 2018-08-11 08:09:39 +02:00
bitops.h sandbox: Use the generic bitops headers 2015-11-05 10:52:14 -05:00
byteorder.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cache.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
clk.h clk: add clk_valid() 2018-08-03 19:53:10 -04:00
config.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
eth-raw-os.h sandbox: eth-raw: Add a SIMPLE_BUS to enumerate host interfaces 2018-07-26 14:08:19 -05:00
eth.h test: eth: Add a test for the target being pinged 2018-10-10 12:29:00 -05:00
getopt.h sandbox: Rename sb_cmdline_option to sandbox_cmdline_option 2013-12-09 12:22:02 -07:00
global_data.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gpio.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
handoff.h spl: Add support for passing handoff info to U-Boot proper 2018-11-26 08:25:37 -05:00
io.h sandbox: add memset_io(..), memcpy_fromio(..) and memcpy_toio(..) 2019-01-14 17:47:13 -07:00
linkage.h efi: Use asmlinkage for EFIAPI 2016-10-19 09:01:53 +02:00
mbox.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
posix_types.h sandbox: Add architecture header files 2011-10-17 22:45:50 +02:00
power-domain.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
processor.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ptrace.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
reset.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rtc.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sdl.h dm: sandbox: Allow selection of sample rate and channels 2018-12-13 16:37:09 -07:00
sections.h sandbox: Rename sb_cmdline_option to sandbox_cmdline_option 2013-12-09 12:22:02 -07:00
setjmp.h sandbox: Fix setjmp/longjmp 2018-09-23 21:55:30 +02:00
spi.h dm: sf: sandbox: Convert SPI flash driver to driver model 2014-10-22 10:36:51 -06:00
spl.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
state.h sandbox: Add a note about the growing state_info struct 2019-02-20 15:25:29 +08:00
string.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
system.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
test.h regmap: fix regmap_read_poll_timeout warning about sandbox_timer_add_offset 2019-04-23 11:17:15 +02:00
types.h arch: types.h: factor out fixed width typedefs to int-ll64.h 2018-09-10 20:48:16 -04:00
u-boot-sandbox.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u-boot.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
unaligned.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00