kgdb: fix gcc-11 warning on indentation
Arnd Bergmann authored
commit 40cc3a80 upstream.

gcc-11 starts warning about misleading indentation inside of macros:

drivers/misc/kgdbts.c: In function ‘kgdbts_break_test’:
drivers/misc/kgdbts.c:103:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
  103 |         if (verbose > 1) \
      |         ^~
drivers/misc/kgdbts.c:200:9: note: in expansion of macro ‘v2printk’
  200 |         v2printk("kgdbts: breakpoint complete\n");
      |         ^~~~~~~~
drivers/misc/kgdbts.c:105:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  105 |                 touch_nmi_watchdog();   \
      |                 ^~~~~~~~~~~~~~~~~~

The code looks correct to me, so just reindent it for readability.

Fixes: e8d31c20

 ("kgdb: add kgdb internal test suite")
Acked-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Link: https://lore....
eabb93e3
Name Last commit Last update
Documentation ARM: 9012/1: move device tree mapping out of linear region
LICENSES LICENSES: Rename other to deprecated
arch x86/msr: Fix wr/rdmsr_safe_regs_on_cpu() prototypes
block blk-mq: Swap two calls in blk_mq_exit_queue()
certs certs: Fix blacklist flag type confusion
crypto crypto: rng - fix crypto_rng_reset() refcounting when !CRYPTO_STATS
drivers kgdb: fix gcc-11 warning on indentation
fs f2fs: fix error handling in f2fs_end_enable_verity()
include mm: fix struct page layout on 32-bit systems
init init/Kconfig: make COMPILE_TEST depend on HAS_IOMEM
ipc ipc/util.c: sysvipc_find_ipc() incorrectly updates position index
kernel kernel: kexec_file: fix error return code of kexec_calculate_store_digests()
lib kobject_uevent: remove warning in init_uevent_argv()
mm mm/hugetlb: fix F_SEAL_FUTURE_WRITE
net netfilter: conntrack: Make global sysctls readonly in non-init netns
samples samples/bpf: Fix broken tracex1 due to kprobe argument change
scripts kconfig: nconf: stop endless search loops
security security: commoncap: fix -Wstringop-overread warning
sound ASoC: rsnd: check all BUSIF status when error
tools selftests: Set CC to clang in lib.mk if LLVM is set
usr initramfs: restore default compression behavior
virt KVM: Stop looking for coalesced MMIO zones if the bus is destroyed
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.