Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3382233lqp; Tue, 26 Mar 2024 07:48:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWIs+ZGqGPpos0sYz690+v4g86PsQ6SJoHZluKVwuIJtZKsjZcr1kTKw1JZCQBmYEQJUYFfvx7EkJroNRpaDt6l2RiUGpRGJcPOdRZTdA== X-Google-Smtp-Source: AGHT+IFX4s0pwIA8aZ3DyF7NwhOiqE9rf6ZXntSYCR8cy1tGXSBkvTUmnHubMLrlFAd/owqfRdXf X-Received: by 2002:a17:906:c111:b0:a47:4b96:7505 with SMTP id do17-20020a170906c11100b00a474b967505mr7798591ejc.26.1711464505526; Tue, 26 Mar 2024 07:48:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711464505; cv=pass; d=google.com; s=arc-20160816; b=xN1dJKk6+uO/lvqshm4QHOEWw3UWDyjgC2xFK6G75GzU032hGe9PL1GGMzI0hSQVq1 5ubO3J9ULcNwpufWCQjip4XNHN3aAeXms8VSFb/T6voLUYt6jbj3W4yO9PKDBJvkKOc/ Rk6x5SvULgkV3jDVqgmtInSEPCmTl1JKWzqRhQ9dlTkM4Nox7exGs9xuHWYr8U4yNvhr Qj5BcfzKfazxxAvJhJ8WXr3+m6JxaeCxnV2FZ6c+Tw29zg6QibqiPFl4NEv9FMFqFatR XOcVB9BAK9HIt5zOW1ie+hjjzrTHhTX4PYBUKjCWY/Yyblw5MwPW3BOBJK1IOp/DrFXF d+DA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=y0DRDyDOR+x/1pGdA1OygKWxSahvGFODjIdj+Slq7eA=; fh=iouaPELcJwMTfoMXxZdmaaX+CFrzweasJW7HzTy5PO8=; b=oYDUDroHT1FHUnSVJTL8Wk2H+WK1TfgAU0I9ljqRWaaBN4RgKiftZgatgT54RwMIYr O827Y5h7dHUCrDvk7Au2A5yGwob6Iy+4fhCeRflFloXGevEEpadTYvnv0hnQNJ2saV8O svIiCjMcJkQ//Q+vdr+n2ijwhzYTdevBwoh57+HJTls641FnKeqvwQfqk5WIzykdWB3u NBjF8tAJZDB7dwPP/lyoecjsVd57FjRIpe3lou521hPvW8vhjJewnXes13wSo6KuUmXJ NfszbJ344N5B0HKuc3gMnNqvlD4vjlyqSjGPls2eWE26RTEMX5+ZIYC1k4Fim0ZE5OML 7PyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E4BQDDTk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-119208-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119208-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m26-20020a1709066d1a00b00a4df5c637e4si610601ejr.516.2024.03.26.07.48.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 07:48:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119208-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E4BQDDTk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-119208-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119208-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 18B871F28DCF for ; Tue, 26 Mar 2024 14:48:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D17AC13C803; Tue, 26 Mar 2024 14:47:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="E4BQDDTk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC2EFED9; Tue, 26 Mar 2024 14:47:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711464475; cv=none; b=PAfCurn4xudZRybbuD85+d1vw6LsFdeT7zqCxPDo39QLV7XhXMOJGm1k1yxRKqyi/JSfoG5+YLF4ugZ6nQjqqvREPql0L07GKtHxjbtZpDu9b+lkaM+lIs+RJpyd7A7k6CQ1yWwUuidiIwpPiYFOs/JkpbbCUNCgv3waKKlOwc8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711464475; c=relaxed/simple; bh=2VRodtLYji0E2iO14KF37hDwen2VjVMAvwAcrcgPpT4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=RP8DQWyViGOgZmbG2QgzfPgzfywKA/8kNopgnvNdc4T6EGj7lUY4r7gXw1Opte+0uc+fUuisIXtCDlUPqjnQW03IOAW28kHepgtmA8eSrcorHK9W+3xOlMOLutz9UQHP5vIMjzlkvWulGnlVHp5NSC5gpQjGL6gYvjuJAQ743BE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E4BQDDTk; arc=none smtp.client-ip=10.30.226.201 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 To: linux-kbuild@vger.kernel.org, Masahiro Yamada , Nathan Chancellor Cc: Nicolas Schier , Arnd Bergmann , Bill Metzenthen , Thomas Gleixner , x86@kernel.org, Damien Le Moal , Jean Delvare , Harry Wentland , Jani Nikula , Sergey Shtylyov , Jakub Kicinski , Sudip Mukherjee , Andrew Jeffery , "Manoj N. Kumar" , "Martin K. Petersen" , Alexei Starovoitov , Steven Rostedt , Luis Chamberlain , Andrew Morton , Greg Kroah-Hartman , 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann 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(-) -- 2.39.2 Cc: Bill Metzenthen Cc: Thomas Gleixner Cc: x86@kernel.org Cc: Damien Le Moal Cc: Jean Delvare Cc: Harry Wentland Cc: Jani Nikula Cc: Sergey Shtylyov Cc: Jakub Kicinski Cc: Sudip Mukherjee Cc: Andrew Jeffery Cc: "Manoj N. Kumar" Cc: "Martin K. Petersen" Cc: Alexei Starovoitov Cc: Steven Rostedt Cc: Luis Chamberlain Cc: Andrew Morton Cc: Masahiro Yamada Cc: Nathan Chancellor Cc: Nicolas Schier Cc: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org Cc: linux-ide@vger.kernel.org Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: intel-gfx@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Cc: intel-xe@lists.freedesktop.org Cc: netdev@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-scsi@vger.kernel.org Cc: bpf@vger.kernel.org Cc: linux-trace-kernel@vger.kernel.org Cc: linux-modules@vger.kernel.org Cc: linux-mm@kvack.org Cc: linux-kbuild@vger.kernel.org Cc: llvm@lists.linux.dev