Hi Peter, [auto build test ERROR on linus/master] [also build test ERROR on v4.12-rc2] [cannot apply to next-20170524] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Peter-Robinson/mmc-host-tighten-some-of-the-dependencies-on-SoC-drivers/20170525-042816 config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): In file included from drivers/mmc/host/tmio_mmc_pio.c:53:0: drivers/mmc/host/tmio_mmc.h: In function 'sd_ctrl_read16_rep': >> drivers/mmc/host/tmio_mmc.h:264: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:276: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:292: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:304: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 +264 drivers/mmc/host/tmio_mmc.h 7445bf9e Kuninori Morimoto 2015-01-13 258 return readw(host->ctl + (addr << host->bus_shift)); a11862d3 Simon Horman 2011-06-21 259 } a11862d3 Simon Horman 2011-06-21 260 a11862d3 Simon Horman 2011-06-21 261 static inline void sd_ctrl_read16_rep(struct tmio_mmc_host *host, int addr, a11862d3 Simon Horman 2011-06-21 262 u16 *buf, int count) a11862d3 Simon Horman 2011-06-21 263 { 7445bf9e Kuninori Morimoto 2015-01-13 @264 readsw(host->ctl + (addr << host->bus_shift), buf, count); a11862d3 Simon Horman 2011-06-21 265 } a11862d3 Simon Horman 2011-06-21 266 2c54506b Wolfram Sang 2016-04-27 267 static inline u32 sd_ctrl_read16_and_16_as_32(struct tmio_mmc_host *host, int addr) a11862d3 Simon Horman 2011-06-21 268 { 7445bf9e Kuninori Morimoto 2015-01-13 269 return readw(host->ctl + (addr << host->bus_shift)) | 7445bf9e Kuninori Morimoto 2015-01-13 270 readw(host->ctl + ((addr + 2) << host->bus_shift)) << 16; a11862d3 Simon Horman 2011-06-21 271 } a11862d3 Simon Horman 2011-06-21 272 8185e51f Chris Brandt 2016-09-12 273 static inline void sd_ctrl_read32_rep(struct tmio_mmc_host *host, int addr, 8185e51f Chris Brandt 2016-09-12 274 u32 *buf, int count) 8185e51f Chris Brandt 2016-09-12 275 { 8185e51f Chris Brandt 2016-09-12 @276 readsl(host->ctl + (addr << host->bus_shift), buf, count); 8185e51f Chris Brandt 2016-09-12 277 } 8185e51f Chris Brandt 2016-09-12 278 a11862d3 Simon Horman 2011-06-21 279 static inline void sd_ctrl_write16(struct tmio_mmc_host *host, int addr, u16 val) a11862d3 Simon Horman 2011-06-21 280 { 973ed3af Simon Horman 2011-06-21 281 /* If there is a hook and it returns non-zero then there 973ed3af Simon Horman 2011-06-21 282 * is an error and the write should be skipped 973ed3af Simon Horman 2011-06-21 283 */ dfe9a229 Kuninori Morimoto 2015-01-13 284 if (host->write16_hook && host->write16_hook(host, addr)) 973ed3af Simon Horman 2011-06-21 285 return; 7445bf9e Kuninori Morimoto 2015-01-13 286 writew(val, host->ctl + (addr << host->bus_shift)); a11862d3 Simon Horman 2011-06-21 287 } a11862d3 Simon Horman 2011-06-21 288 a11862d3 Simon Horman 2011-06-21 289 static inline void sd_ctrl_write16_rep(struct tmio_mmc_host *host, int addr, a11862d3 Simon Horman 2011-06-21 290 u16 *buf, int count) a11862d3 Simon Horman 2011-06-21 291 { 7445bf9e Kuninori Morimoto 2015-01-13 @292 writesw(host->ctl + (addr << host->bus_shift), buf, count); a11862d3 Simon Horman 2011-06-21 293 } a11862d3 Simon Horman 2011-06-21 294 2c54506b Wolfram Sang 2016-04-27 295 static inline void sd_ctrl_write32_as_16_and_16(struct tmio_mmc_host *host, int addr, u32 val) a11862d3 Simon Horman 2011-06-21 296 { 7c42dbf3 Wolfram Sang 2016-05-27 297 writew(val & 0xffff, host->ctl + (addr << host->bus_shift)); 7445bf9e Kuninori Morimoto 2015-01-13 298 writew(val >> 16, host->ctl + ((addr + 2) << host->bus_shift)); a11862d3 Simon Horman 2011-06-21 299 } a11862d3 Simon Horman 2011-06-21 300 8185e51f Chris Brandt 2016-09-12 301 static inline void sd_ctrl_write32_rep(struct tmio_mmc_host *host, int addr, 8185e51f Chris Brandt 2016-09-12 302 const u32 *buf, int count) 8185e51f Chris Brandt 2016-09-12 303 { 8185e51f Chris Brandt 2016-09-12 @304 writesl(host->ctl + (addr << host->bus_shift), buf, count); 8185e51f Chris Brandt 2016-09-12 305 } 8185e51f Chris Brandt 2016-09-12 306 b6147490 Guennadi Liakhovetski 2011-03-23 307 #endif :::::: The code at line 264 was first introduced by commit :::::: 7445bf9e6f4e5d7755e22c7c9b06f4ae0d6160c6 mmc: tmio: tmio_mmc_host has .bus_shift :::::: TO: Kuninori Morimoto :::::: CC: Ulf Hansson --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation