Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp4840431pxb; Mon, 28 Mar 2022 04:24:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCKO4MWLBzWkFtJKoLDvrhkNKKlMsJQo8zty6ifQ86U8SkDMavheGrSbZRxG0iNoYdirme X-Received: by 2002:a05:6214:29c7:b0:441:3f11:9315 with SMTP id gh7-20020a05621429c700b004413f119315mr20020786qvb.87.1648466647874; Mon, 28 Mar 2022 04:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648466647; cv=none; d=google.com; s=arc-20160816; b=NWULuj6r5jkDduNSWSfZFweihXtNi/j/KZFWZ82TxHX+3IKRBMopr1a80+t9LD6Wul ddGiFmKWgQpwxet9ICAZzgarvnh1mkRG8aV5X74uSwbcwnsQtpOhCZEcNLfrMCVJoQpt 08LpPYutLsUXRmndoJNItzQUU/HVrp4r7VmFgl6IiN+pP3pQXQXW0L9okPeWAxs26Xei aF2z2mz6kgtjER2XhZXVbEyiCQEq0uk5szN3+bCV6IgXZo7+bgRBJzOLI7UShZa7xQNw Hzo4koz/cr16ze6vivvW9XGD120d8Qv05nM0qtgBSiYJ7kuyeBsGR7RMmbQ2j41QjFIn /LkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9qKkfWpdVT1mspubpfPTuQyhyk1AavU0q/DB3DLI3nc=; b=0eIgV86W/UeuBW4SWaogoxqzitUT4CmkJjiuDltcipJZqg/J3mJN4sDFH2OpwCNVC/ iNNo2NYj58FucjKkjs6JZHVDtZp2kKIWpRPSFOKMGJHXJbWy5KvEX0I++sUOSXKZxdDU v9Gttfh5sqkNXHAmLmsSZRmZRMCTDDHaIxNjECdYqey2NIsnKpQFZd78mq8isadDJSui 7ACwjpCkTfbFcYQBZXAlfH86MEGePMrrpBg4iVaH1RYPxQBHhDIbomg7apl4QDKSGaU9 P0ZeST53xnXwdDqEB0IWdxleuS6Pg19QpjUiZOijFfndqF5D5gV95YdhO+y+YDtnF/q/ M5nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TQ9Xom5B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g4-20020a05620a40c400b0067e4be2382bsi7513362qko.112.2022.03.28.04.23.37; Mon, 28 Mar 2022 04:24:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TQ9Xom5B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238142AbiC1FkO (ORCPT + 99 others); Mon, 28 Mar 2022 01:40:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234075AbiC1FkL (ORCPT ); Mon, 28 Mar 2022 01:40:11 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B7B713D6E; Sun, 27 Mar 2022 22:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648445910; x=1679981910; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=yNGqs5UQKpnEQwK+7b2EzmfdzXgeEkQtJEt+djm9eTA=; b=TQ9Xom5BNtcpeK3/PUjkQz2ejVVzxz1+PiIbVwl/ReX8BZ418T5VqvDq 2v3GgAy0g2IsfLN4ImrGxzj5qcU3LtAFbJFnVe5RdddmEmt79tUrGf6v7 Hjz38CUAtijAnuZWHbbZwm0UAjv0btfbcoNRQxHdu3Hk8swbobXu5LVBb Kfod6N+UFV1N9spoeId5f8ZCYaaD7nU9inKEmgrLhQ+O85bvcj6fJ7PYH W3YN4ByFAFd2henmmvdaWi70hY6OkzJ0rzNbaPIE2vbGEcI3EnBi6ItRk wAIJ9zFt0rVqKBJaLB2gdm15WdLUkEguwZ4S9kmRPoGfq6lUKTw4CAZSV g==; X-IronPort-AV: E=McAfee;i="6200,9189,10299"; a="322102473" X-IronPort-AV: E=Sophos;i="5.90,216,1643702400"; d="scan'208";a="322102473" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2022 22:38:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,216,1643702400"; d="scan'208";a="520876292" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 27 Mar 2022 22:38:26 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nYi5B-0001kg-LY; Mon, 28 Mar 2022 05:38:25 +0000 Date: Mon, 28 Mar 2022 13:37:23 +0800 From: kernel test robot To: Haowen Bai , hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Haowen Bai Subject: Re: [PATCH] s390: Simplify the calculation of variables Message-ID: <202203281319.E0AKjDcq-lkp@intel.com> References: <1648434982-28862-1-git-send-email-baihaowen@meizu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1648434982-28862-1-git-send-email-baihaowen@meizu.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Haowen, Thank you for the patch! Yet something to improve: [auto build test ERROR on s390/features] [also build test ERROR on v5.17 next-20220325] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Haowen-Bai/s390-Simplify-the-calculation-of-variables/20220328-103807 base: https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git features config: s390-randconfig-r044-20220328 (https://download.01.org/0day-ci/archive/20220328/202203281319.E0AKjDcq-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0f6d9501cf49ce02937099350d08f20c4af86f3d) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/7356660d5a4a5dc70f5e18b63125c43d218885f3 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Haowen-Bai/s390-Simplify-the-calculation-of-variables/20220328-103807 git checkout 7356660d5a4a5dc70f5e18b63125c43d218885f3 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from drivers/nfc/nfcmrvl/main.c:9: In file included from include/linux/gpio.h:62: In file included from include/asm-generic/gpio.h:11: In file included from include/linux/gpio/driver.h:7: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:37:59: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x)) ^ include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16' #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x)) ^ In file included from drivers/nfc/nfcmrvl/main.c:9: In file included from include/linux/gpio.h:62: In file included from include/asm-generic/gpio.h:11: In file included from include/linux/gpio/driver.h:7: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32' #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) ^ In file included from drivers/nfc/nfcmrvl/main.c:9: In file included from include/linux/gpio.h:62: In file included from include/asm-generic/gpio.h:11: In file included from include/linux/gpio/driver.h:7: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ In file included from drivers/nfc/nfcmrvl/main.c:9: In file included from include/linux/gpio.h:62: In file included from include/asm-generic/gpio.h:11: In file included from include/linux/gpio/driver.h:7: In file included from include/linux/irq.h:592: In file included from arch/s390/include/asm/hw_irq.h:6: In file included from include/linux/pci.h:1901: In file included from arch/s390/include/asm/pci.h:12: In file included from arch/s390/include/asm/sclp.h:20: In file included from arch/s390/include/asm/chpid.h:10: In file included from arch/s390/include/asm/cio.h:18: >> arch/s390/include/asm/scsw.h:695:47: error: expected ';' after return statement (scsw->tm.actl & SCSW_ACTL_SUSPENDED)) ^ ; 12 warnings and 1 error generated. vim +695 arch/s390/include/asm/scsw.h 682 683 /** 684 * scsw_tm_is_valid_pno - check pno field validity 685 * @scsw: pointer to scsw 686 * 687 * Return non-zero if the pno field of the specified transport mode scsw is 688 * valid, zero otherwise. 689 */ 690 static inline int scsw_tm_is_valid_pno(union scsw *scsw) 691 { 692 return (scsw->tm.fctl != 0) && 693 (scsw->tm.stctl & SCSW_STCTL_STATUS_PEND) && 694 (!(scsw->tm.stctl & SCSW_STCTL_INTER_STATUS) || > 695 (scsw->tm.actl & SCSW_ACTL_SUSPENDED)) 696 } 697 -- 0-DAY CI Kernel Test Service https://01.org/lkp