[bug report] selftests/x86: Add a basic selftest for ioperm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Andy Lutomirski,

The patch 0eb1d0fa6a68: "selftests/x86: Add a basic selftest for
ioperm" from Feb 22, 2017, leads to the following static checker
warning:

	tools/testing/selftests/x86/ioperm.c:64 try_outb()
	info: ignoring unreachable code.

tools/testing/selftests/x86/ioperm.c
    54  static bool try_outb(unsigned short port)
    55  {
    56          sethandler(SIGSEGV, sigsegv, SA_RESETHAND);
    57          if (sigsetjmp(jmpbuf, 1) != 0) {
    58                  return false;
    59          } else {
    60                  asm volatile ("outb %%al, %w[port]"
    61                                : : [port] "Nd" (port), "a" (0));
    62                  return true;
    63          }
    64          clearhandler(SIGSEGV);
                ^^^^^^^^^^^^^^^^^^^^^
Not reachable.

    65  }

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux