Hi Claudiu,

I love your patch! Perhaps something to improve:

[auto build test WARNING on net-next/master]

url:    
https://github.com/0day-ci/linux/commits/Claudiu-Manoil/Introduce-ENETC-ethernet-drivers/20181124-111823
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

>> drivers/net/ethernet/freescale/enetc/enetc_hw.h:310:16: warning: cast to 
>> restricted __le64

vim +310 drivers/net/ethernet/freescale/enetc/enetc_hw.h

58399e118 Claudiu Manoil 2018-11-23  292  
58399e118 Claudiu Manoil 2018-11-23  293  /* general register accessors */
58399e118 Claudiu Manoil 2018-11-23  294  #define enetc_rd_reg(reg)     
ioread32((reg))
58399e118 Claudiu Manoil 2018-11-23  295  #define enetc_wr_reg(reg, val)        
iowrite32((val), (reg))
7b02f2a09 Claudiu Manoil 2018-11-23  296  #ifdef ioread64
7b02f2a09 Claudiu Manoil 2018-11-23  297  #define enetc_rd_reg64(reg)   
ioread64((reg))
7b02f2a09 Claudiu Manoil 2018-11-23  298  #else
7b02f2a09 Claudiu Manoil 2018-11-23  299  /* using this to read out stats on 
32b systems */
7b02f2a09 Claudiu Manoil 2018-11-23  300  static inline u64 enetc_rd_reg64(void 
__iomem *reg)
7b02f2a09 Claudiu Manoil 2018-11-23  301  {
7b02f2a09 Claudiu Manoil 2018-11-23  302        u32 low, high, tmp;
7b02f2a09 Claudiu Manoil 2018-11-23  303  
7b02f2a09 Claudiu Manoil 2018-11-23  304        do {
7b02f2a09 Claudiu Manoil 2018-11-23  305                high = ioread32(reg + 
4);
7b02f2a09 Claudiu Manoil 2018-11-23  306                low = ioread32(reg);
7b02f2a09 Claudiu Manoil 2018-11-23  307                tmp = ioread32(reg + 4);
7b02f2a09 Claudiu Manoil 2018-11-23  308        } while (high != tmp);
7b02f2a09 Claudiu Manoil 2018-11-23  309  
7b02f2a09 Claudiu Manoil 2018-11-23 @310        return le64_to_cpu((u64)high << 
32 | low);
7b02f2a09 Claudiu Manoil 2018-11-23  311  }
7b02f2a09 Claudiu Manoil 2018-11-23  312  #endif
58399e118 Claudiu Manoil 2018-11-23  313  

:::::: The code at line 310 was first introduced by commit
:::::: 7b02f2a0900df6d70fa9ddc8f4cb9a438db6e115 enetc: Add ethtool statistics

:::::: TO: Claudiu Manoil <claudiu.man...@nxp.com>
:::::: CC: 0day robot <l...@intel.com>

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

Attachment: .config.gz
Description: application/gzip

Reply via email to