Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2009385imw; Sat, 16 Jul 2022 22:04:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vjj4kl/g6tJIIHnZ2u4BgnDDBPBTP0rBeDOrcfPMCe5gc8vDrl+9xH3Zz7OcHWxyIoyZmP X-Received: by 2002:a63:5b45:0:b0:416:7867:4298 with SMTP id l5-20020a635b45000000b0041678674298mr20066972pgm.58.1658034242241; Sat, 16 Jul 2022 22:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658034242; cv=none; d=google.com; s=arc-20160816; b=b488B2POxwRXhDZz7anvqKHiX9yloIexb7YGSU93LxyPJUy8R100f2MzHiAeA6KxSb HlIcOxjmR1hytQxx87EdG2NR/1J0noNFI/3gt5I9htq82I6NyIizw+oX+QKMvri7fma4 ZQIoLDttzGA0rCfszR1ZCR4zL9eqjduwpNECLKCVigfqqwKryqQ3c3roFwydef6KBlqe /4UmwMihLr+mQ+n2RaoXZiviTTt9c4u02RUXr8Ie1yUONUoArsfnJJkoe7wj8NOOCH5U QSxwuKD95dQcObK9SLn8N2x+zPF60EIIg/zUApUpaXeXrfvIPMlnr9CukV3Oy0ZDsFpI lUow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=3XnU8csOWY50dIYCzVDFbi7z6PI+dS+XZxKqJdwbbGA=; b=t/eoDJ45B/qLbsIahS8jVXHHGHd2DBXXy1NSZtvXPfeBJHSi9bEtfItsXeCw7vBc96 yFVWe6q1hNpuuJ0GiTENImMYAiviSkk8jwBUK38rOL7j8KE/Dgn46bG74EbGDBNJOQCF ftO41TsxkG2Yi5m6v7JB0HT29ZAX1Cz/JHeUM/sX2dv5V7TRcGFR+/+6Fe884H/yrW6r bJMnfNnjJSZmg96OWkCgLAAHhxFUVvH1oiBwDbj5tmJPDxQ/CO1yEVSsOq5r2TgL/iK8 IjXcW93z/xPOKchTx6ylAdRzV0TsN6CUEfhpjxmaMFlEg8S2tre7jkFbnogVQKlLQF2N oSyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hlJLEP7H; 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 26-20020a17090a035a00b001f02e6deefbsi11036696pjf.106.2022.07.16.22.03.47; Sat, 16 Jul 2022 22:04:02 -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=hlJLEP7H; 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 S231588AbiGQFBS (ORCPT + 99 others); Sun, 17 Jul 2022 01:01:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbiGQFBQ (ORCPT ); Sun, 17 Jul 2022 01:01:16 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8FE718B08 for ; Sat, 16 Jul 2022 22:01:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658034074; x=1689570074; h=date:from:to:cc:subject:message-id:mime-version; bh=aCFaP1ChrorGjEhT0VbZyOYbOVNQ1FOc/aTmJsGfp/Y=; b=hlJLEP7HUcz0xs5D8K2AioEmp12qdKSt3kKpSeczBNnL+XxSCED1rGK+ Zm3XnGJL9Bnv4M9nxI105xCW43Q1Gp8V0W9SuxSdMWQMFgLcg+cNvZ2Kg cbTFIRfqOPj2hApZNkrp4p0q5RyqTeeNWKlXHlWv5c7MRhdUUoGBaHqPs XJtPBHjR8DMHsSwb5aK0Db4c/C5uiNI6h8ofE0Th+PAfO948w7+yYdJ/7 YW5fH1/Ha+bLoZq7hKmbIwjH73wBPn94zQQn82mR0/CspER57gm/9KlFC IQYOUbO5TeaZ6aYhjAl7WYQtToJ+DzzKbY20HxRbFxw9brOork8u8SVKu w==; X-IronPort-AV: E=McAfee;i="6400,9594,10410"; a="266436382" X-IronPort-AV: E=Sophos;i="5.92,278,1650956400"; d="scan'208";a="266436382" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2022 22:01:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,278,1650956400"; d="scan'208";a="739094855" Received: from lkp-server02.sh.intel.com (HELO ff137eb26ff1) ([10.239.97.151]) by fmsmga001.fm.intel.com with ESMTP; 16 Jul 2022 22:01:13 -0700 Received: from kbuild by ff137eb26ff1 with local (Exim 4.95) (envelope-from ) id 1oCwP2-0002kJ-Lc; Sun, 17 Jul 2022 05:01:12 +0000 Date: Sun, 17 Jul 2022 13:00:57 +0800 From: kernel test robot To: Chris Down Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Petr Mladek Subject: arch/parisc/math-emu/driver.c:88:17: sparse: sparse: Using plain integer as NULL pointer Message-ID: <202207171242.NdWlnOID-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-5.0 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 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 tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 972a278fe60c361eb8f37619f562f092e8786d7c commit: 337015573718b161891a3473d25f59273f2e626b printk: Userspace format indexing support date: 12 months ago config: parisc-randconfig-s042-20220717 (https://download.01.org/0day-ci/archive/20220717/202207171242.NdWlnOID-lkp@intel.com/config) compiler: hppa64-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=337015573718b161891a3473d25f59273f2e626b git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 337015573718b161891a3473d25f59273f2e626b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=parisc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> arch/parisc/math-emu/driver.c:88:17: sparse: sparse: Using plain integer as NULL pointer >> arch/parisc/math-emu/driver.c:88:17: sparse: sparse: Using plain integer as NULL pointer >> arch/parisc/math-emu/driver.c:88:17: sparse: sparse: Using plain integer as NULL pointer arch/parisc/math-emu/driver.c:90:17: sparse: sparse: Using plain integer as NULL pointer arch/parisc/math-emu/driver.c:90:17: sparse: sparse: Using plain integer as NULL pointer arch/parisc/math-emu/driver.c:90:17: sparse: sparse: Using plain integer as NULL pointer arch/parisc/math-emu/driver.c:93:22: sparse: sparse: undefined identifier 'decode_fpu' vim +88 arch/parisc/math-emu/driver.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 64 ^1da177e4c3f41 Linus Torvalds 2005-04-16 65 /* Handle a floating point exception. Return zero if the faulting ^1da177e4c3f41 Linus Torvalds 2005-04-16 66 instruction can be completed successfully. */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 67 int ^1da177e4c3f41 Linus Torvalds 2005-04-16 68 handle_fpe(struct pt_regs *regs) ^1da177e4c3f41 Linus Torvalds 2005-04-16 69 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 70 extern void printbinary(unsigned long x, int nbits); ^1da177e4c3f41 Linus Torvalds 2005-04-16 71 unsigned int orig_sw, sw; ^1da177e4c3f41 Linus Torvalds 2005-04-16 72 int signalcode; ^1da177e4c3f41 Linus Torvalds 2005-04-16 73 /* need an intermediate copy of float regs because FPU emulation ^1da177e4c3f41 Linus Torvalds 2005-04-16 74 * code expects an artificial last entry which contains zero ^1da177e4c3f41 Linus Torvalds 2005-04-16 75 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 76 * also, the passed in fr registers contain one word that defines ^1da177e4c3f41 Linus Torvalds 2005-04-16 77 * the fpu type. the fpu type information is constructed ^1da177e4c3f41 Linus Torvalds 2005-04-16 78 * inside the emulation code ^1da177e4c3f41 Linus Torvalds 2005-04-16 79 */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 80 __u64 frcopy[36]; ^1da177e4c3f41 Linus Torvalds 2005-04-16 81 ^1da177e4c3f41 Linus Torvalds 2005-04-16 82 memcpy(frcopy, regs->fr, sizeof regs->fr); ^1da177e4c3f41 Linus Torvalds 2005-04-16 83 frcopy[32] = 0; ^1da177e4c3f41 Linus Torvalds 2005-04-16 84 ^1da177e4c3f41 Linus Torvalds 2005-04-16 85 memcpy(&orig_sw, frcopy, sizeof(orig_sw)); ^1da177e4c3f41 Linus Torvalds 2005-04-16 86 ^1da177e4c3f41 Linus Torvalds 2005-04-16 87 if (FPUDEBUG) { ^1da177e4c3f41 Linus Torvalds 2005-04-16 @88 printk(KERN_DEBUG "FP VZOUICxxxxCQCQCQCQCQCRMxxTDVZOUI ->\n "); :::::: The code at line 88 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://01.org/lkp