u-boot/drivers
Heinrich Schuchardt a6cfc34e36 sandbox: spi: sandbox_sf_state_name() is required
Compiling drivers/mtd/spi/sandbox.c fails when compiled with
CONFIG_LOG=n:

In file included from include/common.h:20,
                 from drivers/mtd/spi/sandbox.c:13:
drivers/mtd/spi/sandbox.c:295:15: error: format ‘%s’ expects argument of
type ‘char *’, but argument 7 has type ‘int’ [-Werror=format=]
  295 |   log_content(" cmd: transition to %s state\n",
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:37:21: note: in definition of macro ‘pr_fmt’
   37 | #define pr_fmt(fmt) fmt
      |                     ^~~
include/log.h:128:30: note: in expansion of macro ‘log_nop’
  128 | #define log_content(_fmt...) log_nop(LOG_CATEGORY, \
      |                              ^~~~~~~
drivers/mtd/spi/sandbox.c:295:3: note: in expansion of macro
‘log_content’
  295 |   log_content(" cmd: transition to %s state\n",
      |   ^~~~~~~~~~~
drivers/mtd/spi/sandbox.c:295:37: note: format string is defined here
  295 |   log_content(" cmd: transition to %s state\n",
      |                                    ~^
      |                                     |
      |                                     char *
      |                                    %d

Supply function sandbox_sf_state_name() independent of CONFIG_LOG.

Fixes: c3aed5db59 ("sandbox: spi: Add more logging")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-07-09 18:57:21 -06:00
..
adc common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ata sata_sil: Enable DM_PCI operation 2020-07-07 18:23:48 -04:00
axi common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
bios_emulator common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
block common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
board common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
bootcount bootcount_ext: Add Ext4 build dependency 2020-06-02 17:27:04 -04:00
cache common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk clk: actions: Add Ethernet clocks 2020-07-07 16:09:22 -04:00
core cmd: dm: Fixed/Added DM driver listing subcommands 2020-07-07 15:37:13 -04:00
cpu riscv: cpu: check and append L1 cache to cpu features 2020-07-01 15:01:27 +08:00
crypto drivers: crypto: mod_exp_sw: Re-add DM_FLAG_PRE_RELOC 2020-05-19 14:01:47 -04:00
ddr mv_ddr: ddr3: Update {min,max}_read_sample calculation 2020-07-09 06:49:44 +02:00
demo common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
dfu common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
dma common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
fastboot common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
firmware firmware: zynqmp: Change panic logic in zynqmp_pmufw_load_config_object() 2020-06-24 13:07:57 +02:00
fpga arm64: xilinx: Print fpga error value in hex 2020-06-24 13:11:08 +02:00
gpio gpio: search for gpio label if gpio is not found through bank name 2020-07-07 18:23:37 -04:00
hwspinlock common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
i2c i2c: stm32f7: SYSCFG Fast Mode Plus support for I2C STM32F7 2020-07-09 06:02:45 +02:00
input kconfig: mark SPL/TPL options for DM_KEYBOARD 2020-06-02 17:27:04 -04:00
led common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mailbox common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
memory SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
misc misc: add driver for the SiFive otp controller 2020-06-04 09:44:08 +08:00
mmc - net: pcnet: cleanup and add DM support 2020-06-30 11:43:18 -04:00
mtd sandbox: spi: sandbox_sf_state_name() is required 2020-07-09 18:57:21 -06:00
net net: mvpp2: fix second cp110 initialization 2020-07-09 06:52:20 +02:00
nvme nvme: Invalidate dcache before submitting admin cmd 2020-06-23 14:43:23 -04:00
pch common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci video: pci: Set up the copy framebuffer 2020-07-09 12:33:24 +08:00
pci_endpoint common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
phy phy: omap-usb2-phy: disable phy charger detect 2020-06-16 17:00:02 +05:30
pinctrl pinctrl: stm32: add information on pin configuration 2020-07-07 16:01:23 +02:00
power power: regulator: stm32: vrefbuf: fix a possible overshoot when re-enabling 2020-07-07 16:01:23 +02:00
pwm pwm: Add PWM driver for SiFive SoC 2020-07-09 06:03:12 +02:00
qe drivers: net: qe: deselect QE when DM_ETH is enabled 2020-06-03 12:14:27 +05:30
ram ram: stm32mp1: add size and addr parameter to test all 2020-07-07 16:01:23 +02:00
remoteproc common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
reset reset: Add generic reset driver 2020-07-01 15:01:21 +08:00
rng common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
rtc rtc: i2c_rtc_emul: catch any write to the "reset" register 2020-07-09 06:02:45 +02:00
scsi common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
serial serial: Add missing Kconfig dependencies for debug consoles 2020-06-04 15:05:45 -04:00
smem common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
soc common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sound common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
spi Convert CONFIG_CADENCE_QSPI to Kconfig 2020-06-29 13:34:43 -04:00
spmi dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
sysreset common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tee common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
thermal thermal: imx_scu_thermal: prevent boot hang with zero pdata 2020-05-22 13:29:25 +02:00
timer common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tpm tpm: add #ifndef to fix redeclaration build errors 2020-07-08 17:21:46 -04:00
ufs common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
usb Merge https://gitlab.denx.de/u-boot/custodians/u-boot-spi into next 2020-06-19 16:25:50 -04:00
video minnowmax: Enable the copy framebuffer 2020-07-09 12:33:24 +08:00
virtio virtio: VIRTIO_RNG depends on DM_RNG 2020-06-05 04:04:41 +02:00
w1 common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
w1-eeprom common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
watchdog common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
Kconfig dm: rng: Add random number generator(rng) uclass 2020-01-07 18:08:21 +01:00
Makefile phy: rockchip: Add Rockchip USB2PHY driver 2020-05-29 18:13:19 +08:00