Message ID | 20240326144741.3094687-1-arnd@kernel.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47797CD11DD for <linux-mm@archiver.kernel.org>; Tue, 26 Mar 2024 14:48:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C78F56B0098; Tue, 26 Mar 2024 10:47:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C4FCE6B0099; Tue, 26 Mar 2024 10:47:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B19796B009A; Tue, 26 Mar 2024 10:47:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 9FB6E6B0098 for <linux-mm@kvack.org>; Tue, 26 Mar 2024 10:47:59 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 66DB64095E for <linux-mm@kvack.org>; Tue, 26 Mar 2024 14:47:59 +0000 (UTC) X-FDA: 81939469878.15.2CD1D23 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf17.hostedemail.com (Postfix) with ESMTP id C72D840003 for <linux-mm@kvack.org>; Tue, 26 Mar 2024 14:47:56 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=E4BQDDTk; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf17.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1711464476; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=y0DRDyDOR+x/1pGdA1OygKWxSahvGFODjIdj+Slq7eA=; b=7oeGLs3AA/ilo5YrEWpCmlSzVPfTF+izjt/may+NVzyfH5wDsxEs/Dl1zynm2AwrT/CA58 PyrPp6pBQZBRk1Y5CmvQYpd3Q6lECqSssKC731FuGsFvT8qk3xX2yRJV0lQYZCP8ah7HCS d9Qqw/HZV/ZK2Ge1QJoKwwpWztIX6rU= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=E4BQDDTk; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf17.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711464476; a=rsa-sha256; cv=none; b=43vuNYwlEKxsqtSU2HAGA2tDDylVbiw7WyfIuwkoaSF0G9gLVM2RY59AUEiaBN6zL5DLia oyja7CwHgMkbRQ+vr30hrWn23r/kZmIKJ2THA+DJ9Lf5xFEK5wlFiNnqJnS/uRsTzs5t0h Ga23uGw0v+sXunaUT4Z38HfMlmjmm2o= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 9ACA36124E; Tue, 26 Mar 2024 14:47:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C54DC433F1; Tue, 26 Mar 2024 14:47:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711464475; bh=2VRodtLYji0E2iO14KF37hDwen2VjVMAvwAcrcgPpT4=; h=From:To:Cc:Subject:Date:From; b=E4BQDDTkgrdwdIkmMvielkRpTAsqHIEG3dNSrY21fnxwoLYvLOoCje+XGKi0Q6+lb vXFNIViLU9NTXcLVTR3XwdRIIouf6xWYpzwnmHI2t5ZxiCoyK5CtJGLAMaMQhP4GqM LFJItP61E8WSzWQOgV3iidHNLT5C63yxLkS/wCtha2CzziKBhSzJgJ8mdUJnDc4MsM mHMWnrCmz0M9BMr26mXQL/Ot8TdiiiLpbc7Z6ykNI9wEj4r4WuyvPMGjqE0R7U0B4a JYlh8463XR1dZ+1yi/iNsx2NnACkLOIgc70LBf5p2SbJ28JbOOieq3jHp29R//i1VX XyBZZot1G0W0w== From: Arnd Bergmann <arnd@kernel.org> To: linux-kbuild@vger.kernel.org, Masahiro Yamada <masahiroy@kernel.org>, Nathan Chancellor <nathan@kernel.org> Cc: Nicolas Schier <nicolas@fjasle.eu>, Arnd Bergmann <arnd@arndb.de>, Bill Metzenthen <billm@melbpc.org.au>, Thomas Gleixner <tglx@linutronix.de>, x86@kernel.org, Damien Le Moal <dlemoal@kernel.org>, Jean Delvare <jdelvare@suse.com>, Harry Wentland <harry.wentland@amd.com>, Jani Nikula <jani.nikula@linux.intel.com>, Sergey Shtylyov <s.shtylyov@omp.ru>, Jakub Kicinski <kuba@kernel.org>, Sudip Mukherjee <sudipm.mukherjee@gmail.com>, Andrew Jeffery <andrew@codeconstruct.com.au>, "Manoj N. Kumar" <manoj@linux.ibm.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, Alexei Starovoitov <ast@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Luis Chamberlain <mcgrof@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, Greg Kroah-Hartman <gregkh@suse.de>, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org, intel-xe@lists.freedesktop.org, netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-scsi@vger.kernel.org, bpf@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-modules@vger.kernel.org, linux-mm@kvack.org, llvm@lists.linux.dev Subject: [PATCH 00/12] kbuild: enable some -Wextra warnings by default Date: Tue, 26 Mar 2024 15:47:15 +0100 Message-Id: <20240326144741.3094687-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Stat-Signature: 16guhszg9bz7r1toz3meey1zsw7i6bnz X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: C72D840003 X-HE-Tag: 1711464476-428489 X-HE-Meta: U2FsdGVkX18Q9tG8jFUq2KrnJnZEx0JUh/Jsj0AQArcGoUlPzAh+ad/hAzcGJpJe3RsGRxlvr4P6zJxTV+Se4ZcY49UYLruzroq52euyL4Aeg/9i7IU+mdGEaUi2EAmwV4IvdjKgNo35QpdLNM1fVE0rjiaIteH3LoUxcinDZBtCHF5+h4ZsDuV3Nm0d16vPjGmk28EVS40OWDGF07xuFPW1UzotG1u8iAxr+5UVhUu/kqm7EPyOtz2q0G+si1uCzgFvZeZAFWTydOXU5bjUEqmPQ1VO/z4agz9XJ+MNcbOI8gO9zRtJm2RSVNqGfH2swTnLFV+3wr/jKEkDoE8xY4RwCCDOX8ctZVixiAb45zYh0dvr4dWPvJxBnxP08MUF/BMX9AtUOftuP0wJg9Uqr1CFus49u0Fyq2XzfI0krfE0BzGobbdQoQijPprMVX/RQxH7tAU8ZSp1ry94cLUt5GXThqJ1kgPZaMpGv5Iqfn/Z8RvNb+iqIBBqofC6NOV3t4VVkzXPQPD34lJEmqXFyvzFxpv+TlpOrhVeAMWALuBwBmv4jwAqHPWi9I9x7mkUveru5xVt61WFrpuUX41V0sERFKzEXD0OGH9naClVItlLTfLQDFZGZ6sprHSJ2I7qhQjou9EqaqRWXiABVFDvoFVtWlD6VJgQpUmO/+tWYfzXjnrYtpdfHaqhOqKdO5T6OL0panBc13l00YitcxwSCFhwIFvvRDZ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D8XutmiAi5YHPsbI6dDsc9+2xDFA1j03XQhcwMdWJOHzWKoh0OtWFoli7JLy1HQj+gIEC4S5hT1KVN2f8nVe1gi5k5OnXfx+Np14QJBASKMYc39EyeGPk6GFSlbL4wAvFbOQxM7g9dIXME7V74G+pkLsqELWzor ySHLXtwM dpXTj/mFAYk5wSaN5muxEqH7ih5fMeriO4z7CeE2d9Y= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
kbuild: enable some -Wextra warnings by default
|
expand
|
From: Arnd Bergmann <arnd@arndb.de> This is a follow-up on a couple of patch series I sent in the past, enabling -Wextra (aside from stuff that is explicitly disabled), -Wcast-function-pointer-strict and -Wrestrict. I have tested these on 'defconfig' and 'allmodconfig' builds across all architectures, as well as many 'randconfig' builds on x86, arm and arm64. It would be nice to have all the Makefile.extrawarn changes in v6.10, hopefully with the driver fixes going in before that through the respective subsystem trees. Arnd Arnd Bergmann (12): kbuild: make -Woverride-init warnings more consistent [v3] parport: mfc3: avoid empty-body warning kbuild: turn on -Wextra by default kbuild: remove redundant extra warning flags firmware: dmi-id: add a release callback function nouveau: fix function cast warning cxlflash: fix function pointer cast warnings x86: math-emu: fix function cast warnings kbuild: enable -Wcast-function-type-strict unconditionally sata: sx4: fix pdc20621_get_from_dimm() on 64-bit [v4] kallsyms: rework symbol lookup return codes kbuild: turn on -Wrestrict by default arch/x86/math-emu/fpu_etc.c | 9 +++-- arch/x86/math-emu/fpu_trig.c | 6 ++-- arch/x86/math-emu/reg_constant.c | 7 +++- drivers/ata/sata_sx4.c | 6 ++-- drivers/firmware/dmi-id.c | 7 +++- .../gpu/drm/amd/display/dc/dce110/Makefile | 2 +- .../gpu/drm/amd/display/dc/dce112/Makefile | 2 +- .../gpu/drm/amd/display/dc/dce120/Makefile | 2 +- drivers/gpu/drm/amd/display/dc/dce60/Makefile | 2 +- drivers/gpu/drm/amd/display/dc/dce80/Makefile | 2 +- drivers/gpu/drm/i915/Makefile | 6 ++-- .../drm/nouveau/nvkm/subdev/bios/shadowof.c | 7 +++- drivers/gpu/drm/xe/Makefile | 4 +-- drivers/net/ethernet/renesas/sh_eth.c | 2 +- drivers/parport/parport_mfc3.c | 3 +- drivers/pinctrl/aspeed/Makefile | 2 +- drivers/scsi/cxlflash/lunmgt.c | 4 +-- drivers/scsi/cxlflash/main.c | 14 ++++---- drivers/scsi/cxlflash/superpipe.c | 34 +++++++++---------- drivers/scsi/cxlflash/superpipe.h | 11 +++--- drivers/scsi/cxlflash/vlun.c | 7 ++-- fs/proc/Makefile | 2 +- include/linux/filter.h | 14 ++++---- include/linux/ftrace.h | 6 ++-- include/linux/module.h | 14 ++++---- kernel/bpf/Makefile | 2 +- kernel/bpf/core.c | 7 ++-- kernel/kallsyms.c | 23 +++++++------ kernel/module/kallsyms.c | 26 +++++++------- kernel/trace/ftrace.c | 13 +++---- mm/Makefile | 3 +- scripts/Makefile.extrawarn | 33 ++++-------------- 32 files changed, 134 insertions(+), 148 deletions(-)