lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 9 Sep 2019 19:51:24 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Talel Shenhar <talel@...zon.com>
Cc:     kbuild-all@...org, robh+dt@...nel.org, mark.rutland@....com,
        mchehab+samsung@...nel.org, davem@...emloft.net,
        gregkh@...uxfoundation.org, nicolas.ferre@...rochip.com,
        tglx@...utronix.de, arnd@...db.de, venture@...gle.com,
        linus.walleij@...aro.org, olof@...om.net, mripard@...nel.org,
        ssantosh@...nel.org, paul.kocialkowski@...tlin.com,
        mjourdan@...libre.com, catalin.marinas@....com, will@...nel.org,
        talel@...zon.com, devicetree@...r.kernel.org,
        linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
        dwmw@...zon.co.uk, benh@...nel.crashing.org, hhhawa@...zon.com,
        ronenk@...zon.com, jonnyc@...zon.com, hanochu@...zon.com,
        barakw@...zon.com
Subject: Re: [PATCH 2/3] soc: amazon: al-pos: Introduce Amazon's Annapurna
 Labs POS driver

Hi Talel,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc8 next-20190904]
[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/Talel-Shenhar/Amazon-s-Annapurna-Labs-POS-Driver/20190909-180243
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   drivers/soc/amazon/al_pos.c: In function 'al_pos_irq_handler':
>> drivers/soc/amazon/al_pos.c:56:57: warning: left shift count >= width of type [-Wshift-count-overflow]
     addr |= (FIELD_GET(AL_POS_ERROR_LOG_1_ADDR_HIGH, log1) << 32);
                                                            ^~

vim +56 drivers/soc/amazon/al_pos.c

    37	
    38	static irqreturn_t al_pos_irq_handler(int irq, void *info)
    39	{
    40		struct platform_device *pdev = info;
    41		struct al_pos *pos = platform_get_drvdata(pdev);
    42		u32 log1;
    43		u32 log0;
    44		u64 addr;
    45		u16 request_id;
    46		u8 bresp;
    47	
    48		log1 = readl_relaxed(pos->mmio_base + AL_POS_ERROR_LOG_1);
    49		if (!FIELD_GET(AL_POS_ERROR_LOG_1_VALID, log1))
    50			return IRQ_NONE;
    51	
    52		log0 = readl_relaxed(pos->mmio_base + AL_POS_ERROR_LOG_0);
    53		writel_relaxed(0, pos->mmio_base + AL_POS_ERROR_LOG_1);
    54	
    55		addr = FIELD_GET(AL_POS_ERROR_LOG_0_ADDR_LOW, log0);
  > 56		addr |= (FIELD_GET(AL_POS_ERROR_LOG_1_ADDR_HIGH, log1) << 32);
    57		request_id = FIELD_GET(AL_POS_ERROR_LOG_1_REQUEST_ID, log1);
    58		bresp = FIELD_GET(AL_POS_ERROR_LOG_1_BRESP, log1);
    59	
    60		dev_err(&pdev->dev, "addr=0x%llx request_id=0x%x bresp=0x%x\n",
    61			addr, request_id, bresp);
    62	
    63		if (al_pos_panic)
    64			panic("POS");
    65	
    66		return IRQ_HANDLED;
    67	}
    68	

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

Download attachment ".config.gz" of type "application/gzip" (50923 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ