[wsa:renesas/sdhi-uniphier 2/22] drivers/mmc/host/tmio_mmc.h:249:2: error: implicit declaration of function 'readsw'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/sdhi-uniphier
head:   f870c81320d3fd97c0a49eb2b304a100a09cf2bc
commit: de4f5406eab6319fdafc5fa9da840824baef7f8d [2/22] mmc: renesas_sdhi: remove wrong depends on to enable compile test
config: m32r-allyesconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout de4f5406eab6319fdafc5fa9da840824baef7f8d
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   In file included from arch/m32r/include/uapi/asm/byteorder.h:8:0,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/delay.h:22,
                    from drivers/mmc/host/tmio_mmc_core.c:30:
   include/linux/byteorder/big_endian.h:8:2: warning: #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN [-Wcpp]
    #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN
     ^~~~~~~
   In file included from drivers/mmc/host/tmio_mmc_core.c:53:0:
   drivers/mmc/host/tmio_mmc.h: In function 'sd_ctrl_read16_rep':
>> drivers/mmc/host/tmio_mmc.h:249:2: error: implicit declaration of function 'readsw' [-Werror=implicit-function-declaration]
     readsw(host->ctl + (addr << host->bus_shift), buf, count);
     ^~~~~~
   drivers/mmc/host/tmio_mmc.h: In function 'sd_ctrl_read32_rep':
>> drivers/mmc/host/tmio_mmc.h:262:2: error: implicit declaration of function 'readsl' [-Werror=implicit-function-declaration]
     readsl(host->ctl + (addr << host->bus_shift), buf, count);
     ^~~~~~
   drivers/mmc/host/tmio_mmc.h: In function 'sd_ctrl_write16_rep':
>> drivers/mmc/host/tmio_mmc.h:279:2: error: implicit declaration of function 'writesw' [-Werror=implicit-function-declaration]
     writesw(host->ctl + (addr << host->bus_shift), buf, count);
     ^~~~~~~
   drivers/mmc/host/tmio_mmc.h: In function 'sd_ctrl_write32_rep':
>> drivers/mmc/host/tmio_mmc.h:292:2: error: implicit declaration of function 'writesl' [-Werror=implicit-function-declaration]
     writesl(host->ctl + (addr << host->bus_shift), buf, count);
     ^~~~~~~
   cc1: some warnings being treated as errors

vim +/readsw +249 drivers/mmc/host/tmio_mmc.h

a11862d3 Simon Horman      2011-06-21  245  
a11862d3 Simon Horman      2011-06-21  246  static inline void sd_ctrl_read16_rep(struct tmio_mmc_host *host, int addr,
a11862d3 Simon Horman      2011-06-21  247  				      u16 *buf, int count)
a11862d3 Simon Horman      2011-06-21  248  {
7445bf9e Kuninori Morimoto 2015-01-13 @249  	readsw(host->ctl + (addr << host->bus_shift), buf, count);
a11862d3 Simon Horman      2011-06-21  250  }
a11862d3 Simon Horman      2011-06-21  251  
f2218db8 Simon Horman      2017-06-16  252  static inline u32 sd_ctrl_read16_and_16_as_32(struct tmio_mmc_host *host,
f2218db8 Simon Horman      2017-06-16  253  					      int addr)
a11862d3 Simon Horman      2011-06-21  254  {
7445bf9e Kuninori Morimoto 2015-01-13  255  	return readw(host->ctl + (addr << host->bus_shift)) |
7445bf9e Kuninori Morimoto 2015-01-13  256  	       readw(host->ctl + ((addr + 2) << host->bus_shift)) << 16;
a11862d3 Simon Horman      2011-06-21  257  }
a11862d3 Simon Horman      2011-06-21  258  
8185e51f Chris Brandt      2016-09-12  259  static inline void sd_ctrl_read32_rep(struct tmio_mmc_host *host, int addr,
8185e51f Chris Brandt      2016-09-12  260  				      u32 *buf, int count)
8185e51f Chris Brandt      2016-09-12  261  {
8185e51f Chris Brandt      2016-09-12 @262  	readsl(host->ctl + (addr << host->bus_shift), buf, count);
8185e51f Chris Brandt      2016-09-12  263  }
8185e51f Chris Brandt      2016-09-12  264  
f2218db8 Simon Horman      2017-06-16  265  static inline void sd_ctrl_write16(struct tmio_mmc_host *host, int addr,
f2218db8 Simon Horman      2017-06-16  266  				   u16 val)
a11862d3 Simon Horman      2011-06-21  267  {
973ed3af Simon Horman      2011-06-21  268  	/* If there is a hook and it returns non-zero then there
973ed3af Simon Horman      2011-06-21  269  	 * is an error and the write should be skipped
973ed3af Simon Horman      2011-06-21  270  	 */
dfe9a229 Kuninori Morimoto 2015-01-13  271  	if (host->write16_hook && host->write16_hook(host, addr))
973ed3af Simon Horman      2011-06-21  272  		return;
7445bf9e Kuninori Morimoto 2015-01-13  273  	writew(val, host->ctl + (addr << host->bus_shift));
a11862d3 Simon Horman      2011-06-21  274  }
a11862d3 Simon Horman      2011-06-21  275  
a11862d3 Simon Horman      2011-06-21  276  static inline void sd_ctrl_write16_rep(struct tmio_mmc_host *host, int addr,
a11862d3 Simon Horman      2011-06-21  277  				       u16 *buf, int count)
a11862d3 Simon Horman      2011-06-21  278  {
7445bf9e Kuninori Morimoto 2015-01-13 @279  	writesw(host->ctl + (addr << host->bus_shift), buf, count);
a11862d3 Simon Horman      2011-06-21  280  }
a11862d3 Simon Horman      2011-06-21  281  
f2218db8 Simon Horman      2017-06-16  282  static inline void sd_ctrl_write32_as_16_and_16(struct tmio_mmc_host *host,
f2218db8 Simon Horman      2017-06-16  283  						int addr, u32 val)
a11862d3 Simon Horman      2011-06-21  284  {
7c42dbf3 Wolfram Sang      2016-05-27  285  	writew(val & 0xffff, host->ctl + (addr << host->bus_shift));
7445bf9e Kuninori Morimoto 2015-01-13  286  	writew(val >> 16, host->ctl + ((addr + 2) << host->bus_shift));
a11862d3 Simon Horman      2011-06-21  287  }
a11862d3 Simon Horman      2011-06-21  288  
8185e51f Chris Brandt      2016-09-12  289  static inline void sd_ctrl_write32_rep(struct tmio_mmc_host *host, int addr,
8185e51f Chris Brandt      2016-09-12  290  				       const u32 *buf, int count)
8185e51f Chris Brandt      2016-09-12  291  {
8185e51f Chris Brandt      2016-09-12 @292  	writesl(host->ctl + (addr << host->bus_shift), buf, count);
8185e51f Chris Brandt      2016-09-12  293  }
8185e51f Chris Brandt      2016-09-12  294  

:::::: The code at line 249 was first introduced by commit
:::::: 7445bf9e6f4e5d7755e22c7c9b06f4ae0d6160c6 mmc: tmio: tmio_mmc_host has .bus_shift

:::::: TO: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
:::::: CC: Ulf Hansson <ulf.hansson@xxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux