public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Rob Gardner <rob.gardner@oracle.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: arch/sparc/kernel/traps_64.c:268:6: error: no previous declaration for 'is_no_fault_exception'
Date: Sun, 21 Aug 2022 13:28:59 +0800	[thread overview]
Message-ID: <202208211303.SUJk39Cv-lkp@intel.com> (raw)

Hi Rob,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   15b3f48a4339e3c16acf18624e2b7f60bc5e9a2c
commit: b6fe1089667a7afcc2cf92cdaec590c7b8381715 sparc64: Handle additional cases of no fault loads
date:   4 years, 11 months ago
config: sparc64-randconfig-c033-20220821 (https://download.01.org/0day-ci/archive/20220821/202208211303.SUJk39Cv-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 7.5.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b6fe1089667a7afcc2cf92cdaec590c7b8381715
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout b6fe1089667a7afcc2cf92cdaec590c7b8381715
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross W=1 O=build_dir ARCH=sparc64 SHELL=/bin/bash arch/sparc/kernel/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> arch/sparc/kernel/traps_64.c:268:6: error: no previous declaration for 'is_no_fault_exception' [-Werror=missing-declarations]
    bool is_no_fault_exception(struct pt_regs *regs)
         ^~~~~~~~~~~~~~~~~~~~~
   arch/sparc/kernel/traps_64.c:2117:6: error: no previous declaration for 'sun4v_nonresum_error_user_handled' [-Werror=missing-declarations]
    bool sun4v_nonresum_error_user_handled(struct pt_regs *regs,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/is_no_fault_exception +268 arch/sparc/kernel/traps_64.c

   267	
 > 268	bool is_no_fault_exception(struct pt_regs *regs)
   269	{
   270		unsigned char asi;
   271		u32 insn;
   272	
   273		if (get_user(insn, (u32 __user *)regs->tpc) == -EFAULT)
   274			return false;
   275	
   276		/*
   277		 * Must do a little instruction decoding here in order to
   278		 * decide on a course of action. The bits of interest are:
   279		 *  insn[31:30] = op, where 3 indicates the load/store group
   280		 *  insn[24:19] = op3, which identifies individual opcodes
   281		 *  insn[13] indicates an immediate offset
   282		 *  op3[4]=1 identifies alternate space instructions
   283		 *  op3[5:4]=3 identifies floating point instructions
   284		 *  op3[2]=1 identifies stores
   285		 * See "Opcode Maps" in the appendix of any Sparc V9
   286		 * architecture spec for full details.
   287		 */
   288		if ((insn & 0xc0800000) == 0xc0800000) {    /* op=3, op3[4]=1   */
   289			if (insn & 0x2000)		    /* immediate offset */
   290				asi = (regs->tstate >> 24); /* saved %asi       */
   291			else
   292				asi = (insn >> 5);	    /* immediate asi    */
   293			if ((asi & 0xf2) == ASI_PNF) {
   294				if (insn & 0x1000000) {     /* op3[5:4]=3       */
   295					handle_ldf_stq(insn, regs);
   296					return true;
   297				} else if (insn & 0x200000) { /* op3[2], stores */
   298					return false;
   299				}
   300				handle_ld_nf(insn, regs);
   301				return true;
   302			}
   303		}
   304		return false;
   305	}
   306	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

             reply	other threads:[~2022-08-21  5:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-21  5:28 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-10-12  0:17 arch/sparc/kernel/traps_64.c:268:6: error: no previous declaration for 'is_no_fault_exception' kernel test robot
2022-12-20  0:39 kernel test robot
2022-12-31 23:59 kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202208211303.SUJk39Cv-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rob.gardner@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox