Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp982313rwd; Thu, 1 Jun 2023 08:59:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6TPY+G558ygCQ0F8Br9akhvKwvpvj/daTJo03F7w+G/AvABofe4ps+u7Oi7YbqckcWOSbn X-Received: by 2002:a05:6a20:5498:b0:10c:b441:5bd0 with SMTP id i24-20020a056a20549800b0010cb4415bd0mr11004558pzk.18.1685635183599; Thu, 01 Jun 2023 08:59:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685635183; cv=none; d=google.com; s=arc-20160816; b=Do0imwqMv22yIXTJdVJArEEy5kOUWSKtjr+MG+FGkY57YYbKUwcueoBgtJYM6C2hRb BAMmZq/ebCtLvnDRJwEKPyjZ3pmPnfEDCkm4xeJ0XvX8RT1OZORcawF+oXHqnpZzF5FR EwjIEbgVthvcirIPRSqG7zxWBzDiqe6Yv9km1H3WEfa1iGwZIs1bwzHlzhSLFkiLq66p CdM8ZjnTKldxKzYgV/S5MjrP1hES0sGlIDtRANQbZXzBqcYIoN9SqEEEVgEEDIT6ofHh P+4DzpwMZ6S0lWTfe4jEue5xkQFH2c/KNejI8RNP/zsNmx94KTI2IAY0KhJLLIoUWpHu QUUA== 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=uuL+/aUAsrW7g5IX1a2ixrQh6gWcNBHmt7OaqotFS3w=; b=F+AYzZE6f6S17aJVsMd1+4ZvBae77a80oPHF6EvpCezneT9ZVDryA95y1Ee/3SGqWg AReaYQEvKyGHWE5BVvmQkVB6lQcvhFBkXLWE34zw9mEGdNMF18ITNJAw88hL5/ViwXPY jCPqkg3BbWuSfr2iXGx5yKh3WV9dpIOtKoAJKbItRYRGPKPFcc1Ti42fRCoA+azXxO14 FQnMlkMD5LaC/NnvJRYmBLAn9r61g96wU/RaNxvK4zj2XjXPBQmC8KIz1yQO7qX+my8S VZ8dlHiRVd3PToJKSW/S+ZFflRhwWlh/FF5OGvKzIMoexI8L7QrkKp53V3+WnbxaTLMM heFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CjLi5IF3; 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 q21-20020aa78435000000b006501b3c200bsi2250298pfn.57.2023.06.01.08.59.31; Thu, 01 Jun 2023 08:59:43 -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=CjLi5IF3; 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 S234728AbjFAPde (ORCPT + 99 others); Thu, 1 Jun 2023 11:33:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233546AbjFAPdd (ORCPT ); Thu, 1 Jun 2023 11:33:33 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2A73E2; Thu, 1 Jun 2023 08:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685633611; x=1717169611; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=s+Y19gC8Hjb03qGTU291+6b1qsc+Qr5QoRUVeyRcaMg=; b=CjLi5IF3F620MbvwWQLsg1ROO/uz5tgtptdXVy2mnIm0zwH0LaFdx3y2 E8IH138o4HMBsUJlgeE/6nLUH7W50Fp9ujMOoNSwviTjyzWaGAs14p/FE d8CQgfIeh4WbQSW0wDZ7mVh+ytOVaE/nLPfalAsAyOcqBMDHAPh002SUa k1WZkmQonW1fheV22Wg/bs1tjv5ecDXp4Bc3HCKN2PX6UlHDwQ12uvI5Y MYXmy6aN1/8MdYF5Rz78pQcSAEcO2E/FUx3/hGefM7CDYYrqq16OHIVe2 6LVzteQihdGPaX0UCOmqexcixPMCWslz/lEWByIAdXKYY74IxL21M6krG w==; X-IronPort-AV: E=McAfee;i="6600,9927,10728"; a="421402504" X-IronPort-AV: E=Sophos;i="6.00,210,1681196400"; d="scan'208";a="421402504" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2023 08:32:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10728"; a="740400916" X-IronPort-AV: E=Sophos;i="6.00,210,1681196400"; d="scan'208";a="740400916" Received: from lkp-server01.sh.intel.com (HELO fb1ced2c09fb) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 01 Jun 2023 08:32:27 -0700 Received: from kbuild by fb1ced2c09fb with local (Exim 4.96) (envelope-from ) id 1q4kHq-0002Q6-2u; Thu, 01 Jun 2023 15:32:26 +0000 Date: Thu, 1 Jun 2023 23:31:50 +0800 From: kernel test robot To: Nikita Shubin , Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Dmitry Torokhov , Andy Shevchenko , Jonathan Cameron Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Michael Peters , Kris Bahnsen , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 28/43] input: keypad: ep93xx: add DT support for Cirrus EP93xx Message-ID: <202306012327.f8AIwhqv-lkp@intel.com> References: <20230601054549.10843-10-nikita.shubin@maquefel.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230601054549.10843-10-nikita.shubin@maquefel.me> X-Spam-Status: No, score=-4.6 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 Nikita, kernel test robot noticed the following build errors: [auto build test ERROR on clk/clk-next] [also build test ERROR on linusw-pinctrl/devel linusw-pinctrl/for-next linus/master v6.4-rc4 next-20230601] [cannot apply to soc/for-next robh/for-next] [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/Nikita-Shubin/dt-bindings-soc-Add-Cirrus-EP93xx/20230601-143415 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next patch link: https://lore.kernel.org/r/20230601054549.10843-10-nikita.shubin%40maquefel.me patch subject: [PATCH v1 28/43] input: keypad: ep93xx: add DT support for Cirrus EP93xx config: hexagon-randconfig-r045-20230531 (https://download.01.org/0day-ci/archive/20230601/202306012327.f8AIwhqv-lkp@intel.com/config) compiler: clang version 15.0.4 (https://github.com/llvm/llvm-project 5c68a1cb123161b54b72ce90e7975d95a8eaf2a4) reproduce (this is a W=1 build): mkdir -p ~/bin wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/79136093fef692a2db3c48c2d30e37310599131f git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Nikita-Shubin/dt-bindings-soc-Add-Cirrus-EP93xx/20230601-143415 git checkout 79136093fef692a2db3c48c2d30e37310599131f # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=hexagon olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/input/keyboard/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202306012327.f8AIwhqv-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/input/keyboard/ep93xx_keypad.c:24: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/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/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547: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:560: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/input/keyboard/ep93xx_keypad.c:24: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/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/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573: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/input/keyboard/ep93xx_keypad.c:24: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/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/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584: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:594: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:604: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); ~~~~~~~~~~ ^ >> drivers/input/keyboard/ep93xx_keypad.c:262:2: error: call to undeclared function 'of_property_read_u32'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] of_property_read_u32(np, "cirrus,debounce-delay-ms", &keypad->debounce); ^ 6 warnings and 1 error generated. vim +/of_property_read_u32 +262 drivers/input/keyboard/ep93xx_keypad.c 233 234 static DEFINE_SIMPLE_DEV_PM_OPS(ep93xx_keypad_pm_ops, 235 ep93xx_keypad_suspend, ep93xx_keypad_resume); 236 237 static int ep93xx_keypad_probe(struct platform_device *pdev) 238 { 239 struct device_node *np = pdev->dev.of_node; 240 struct ep93xx_keypad *keypad; 241 struct input_dev *input_dev; 242 int err; 243 244 keypad = devm_kzalloc(&pdev->dev, sizeof(*keypad), GFP_KERNEL); 245 if (!keypad) 246 return -ENOMEM; 247 248 keypad->irq = platform_get_irq(pdev, 0); 249 if (keypad->irq < 0) 250 return keypad->irq; 251 252 keypad->mmio_base = devm_platform_ioremap_resource(pdev, 0); 253 if (IS_ERR(keypad->mmio_base)) 254 return PTR_ERR(keypad->mmio_base); 255 256 keypad->clk = devm_clk_get(&pdev->dev, NULL); 257 if (IS_ERR(keypad->clk)) 258 return PTR_ERR(keypad->clk); 259 260 keypad->flags = ep93xx_keypad_flags; 261 > 262 of_property_read_u32(np, "cirrus,debounce-delay-ms", &keypad->debounce); 263 of_property_read_u32(np, "cirrus,prescale", &keypad->prescale); 264 265 input_dev = devm_input_allocate_device(&pdev->dev); 266 if (!input_dev) 267 return -ENOMEM; 268 269 keypad->input_dev = input_dev; 270 271 input_dev->name = pdev->name; 272 input_dev->id.bustype = BUS_HOST; 273 input_dev->open = ep93xx_keypad_open; 274 input_dev->close = ep93xx_keypad_close; 275 276 err = matrix_keypad_build_keymap(NULL, NULL, 277 EP93XX_MATRIX_ROWS, EP93XX_MATRIX_COLS, 278 keypad->keycodes, input_dev); 279 if (err) 280 return err; 281 282 if (keypad->flags & EP93XX_KEYPAD_AUTOREPEAT) 283 __set_bit(EV_REP, input_dev->evbit); 284 input_set_drvdata(input_dev, keypad); 285 286 err = devm_request_irq(&pdev->dev, keypad->irq, 287 ep93xx_keypad_irq_handler, 288 0, pdev->name, keypad); 289 if (err) 290 return err; 291 292 err = input_register_device(input_dev); 293 if (err) 294 return err; 295 296 platform_set_drvdata(pdev, keypad); 297 298 device_init_wakeup(&pdev->dev, 1); 299 err = dev_pm_set_wake_irq(&pdev->dev, keypad->irq); 300 if (err) 301 dev_warn(&pdev->dev, "failed to set up wakeup irq: %d\n", err); 302 303 return 0; 304 } 305 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki