Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1631706rwa; Sun, 21 Aug 2022 13:01:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR6AjN4uNWI1iEtqeMgdiec38cQ44VMaD6um+YH9JBz73DJGTMDFlNb4coLfUXycXaObebpQ X-Received: by 2002:a17:907:7f22:b0:73d:6e2e:5bb8 with SMTP id qf34-20020a1709077f2200b0073d6e2e5bb8mr3280046ejc.642.1661112084966; Sun, 21 Aug 2022 13:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661112084; cv=none; d=google.com; s=arc-20160816; b=basc3dmLfeKcPxX6XxiRoOo8L5los3OmjEEsEPqRSWAOvvOCb1sYidp/WOz3wbfZDO nTmmH7gFOLmC2D/w4pP2267Dxf0IvruCrZrnX6wUCAutnaVm/N1YIuaAql3uqEyKT7WG 7lIIl4RUZZKZSxszJuphYB6+zJ49vLVn9fTMhqKLHJ59imJwuIPFFmWZVJXyF8H+XHJK TUDQ00kR2i4HSc4vQiYlb6Rm1Trf05hemNtMMMhO7cLdOnYi6Snt8gkI+RjenbVY8aUc xPqjSCXrV0sUOWNcFxn5NsvYJipis3x0ftYOWNL+C/0sKw03acpIwtpfQRCki+XmXB1K gOrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mvt0rSaSMk9M+kzM4bLQuUPj9iB6oqBHFzFhPx+/HuU=; b=qe9z5mTQZzTTjSWGDUyhquCr2tfKycw2YMnl263Njz29sWrOPBNVW2c2B+IXeQPL4g kXDmR722AsyKZ9OEfVsujGuodz4j/GAC4MTI0gF4LEjLEdKxrX1/vHlIaze3Ej7ouuMB VsIQs7NBtKgyJzotA0ZF/dgvs63u1xNGOpZPDa8Zy+OokKt2SilZqARbNvgkHbFAqTH3 ftOSltKcXdoCuH1V7AdyTod1GC3Suhdg1pDubNPnMdPOjlEIb2po6nSWBr538oE4N2y5 kkb1hcrkZyLMZMH1yGROBBgVznvVsqwNE1r7cwuINuG6l15anFcwmaI0GV0z7WGkjQK8 QrtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=e6XN0fWy; 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 l25-20020aa7d959000000b0043e72fe84bdsi7756086eds.44.2022.08.21.13.00.58; Sun, 21 Aug 2022 13:01:24 -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=e6XN0fWy; 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 S231453AbiHUTrH (ORCPT + 99 others); Sun, 21 Aug 2022 15:47:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbiHUTrG (ORCPT ); Sun, 21 Aug 2022 15:47:06 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15A6F1408C for ; Sun, 21 Aug 2022 12:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661111225; x=1692647225; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Xgq5pV8NmzafHjaVV82jPIGbVdCuhC2gTgsrPRjWnRk=; b=e6XN0fWyNtJrl5l1AHDb0YHgxbRrGnauiom5N+9TD31ud/Sz3SV0SOI5 riKXNoa86qc6io27J3tdUI8fo/pSfgJAcynKgs6n74BlpL7Cj3aDyC0z5 ZaqyFxNwI94K8uqLVgO44l9mguZBWizFA8ubjGEt2crJJAeHXfvKkQFBd wCulTZ4YCPoYVlYUnb/uuJ4muwmKPtObKjrDr9tQwSqLO0XFAOzSpDlR5 xRrKFMuYMgWwaPYd3eSdGwGmgeMV/xGJEFEIfAJ5W97T835mk1OFYy+5Z h7S7DoA1dypJDCScRTONTPxHO3QeGwY3ota76DG8EQvmjG+GpY/5xFMjC A==; X-IronPort-AV: E=McAfee;i="6500,9779,10446"; a="292017462" X-IronPort-AV: E=Sophos;i="5.93,253,1654585200"; d="scan'208";a="292017462" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2022 12:47:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,253,1654585200"; d="scan'208";a="559496311" Received: from lkp-server01.sh.intel.com (HELO 44b6dac04a33) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 21 Aug 2022 12:47:01 -0700 Received: from kbuild by 44b6dac04a33 with local (Exim 4.96) (envelope-from ) id 1oPquS-0004QP-2M; Sun, 21 Aug 2022 19:47:00 +0000 Date: Mon, 22 Aug 2022 03:46:33 +0800 From: kernel test robot To: Igor Kononenko , Corey Minyard , Joel Stanley , Andrew Jeffery Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, openbmc@lists.ozlabs.org, Igor Kononenko , openipmi-developer@lists.sourceforge.net, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] ipmi:kcs_bmc: Add cleanup regmap(interrupt-regs) on a shutdown. Message-ID: <202208220317.cROZCTcB-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Igor, Thank you for the patch! Yet something to improve: [auto build test ERROR on cminyard-ipmi/for-next] [also build test ERROR on soc/for-next linus/master v6.0-rc1 next-20220819] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Igor-Kononenko/aspeed-lpc-Fix-lpc-snoop-probe-exception/20220822-000836 base: https://github.com/cminyard/linux-ipmi for-next config: riscv-randconfig-r042-20220821 (https://download.01.org/0day-ci/archive/20220822/202208220317.cROZCTcB-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 01ffe31cbb54bfd8e38e71b3cf804a1d67ebf9c1) 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 riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/9c523bc00c11d0e9499bf6e3d3c5cc2fcf3fff8f git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Igor-Kononenko/aspeed-lpc-Fix-lpc-snoop-probe-exception/20220822-000836 git checkout 9c523bc00c11d0e9499bf6e3d3c5cc2fcf3fff8f # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from drivers/char/ipmi/kcs_bmc_aspeed.c:10: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: 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/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from drivers/char/ipmi/kcs_bmc_aspeed.c:10: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: 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/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from drivers/char/ipmi/kcs_bmc_aspeed.c:10: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: 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:1024:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ >> drivers/char/ipmi/kcs_bmc_aspeed.c:643:29: error: incompatible pointer types passing 'struct kcs_bmc *' to parameter of type 'struct kcs_bmc_device *' [-Werror,-Wincompatible-pointer-types] aspeed_kcs_irq_mask_update(kcs_bmc, (KCS_BMC_EVENT_TYPE_IBF), 0); ^~~~~~~ drivers/char/ipmi/kcs_bmc_aspeed.c:399:63: note: passing argument to parameter 'kcs_bmc' here static void aspeed_kcs_irq_mask_update(struct kcs_bmc_device *kcs_bmc, u8 mask, u8 state) ^ 7 warnings and 1 error generated. vim +643 drivers/char/ipmi/kcs_bmc_aspeed.c 638 639 static void aspeed_kcs_shutdown(struct platform_device *pdev) 640 { 641 struct kcs_bmc *kcs_bmc = dev_get_drvdata(&pdev->dev); 642 > 643 aspeed_kcs_irq_mask_update(kcs_bmc, (KCS_BMC_EVENT_TYPE_IBF), 0); 644 } 645 -- 0-DAY CI Kernel Test Service https://01.org/lkp