From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3AF9FC433EF for ; Sun, 17 Jul 2022 05:01:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231787AbiGQFBT (ORCPT ); Sun, 17 Jul 2022 01:01:19 -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 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