a pile of randconfig fixes
Subsystems (13)
cover a pile of randconfig fixes
Hi!
I've been doing randconfig build tests for quite a while, here's a pile of fixes. I'm not sure what's the best way to submit these: do you folks prefer a series like this, or a number of individual submissions?
With these applied, it seems that archs I run (64-bit x86 arm riscv) are clean now -- at least for the values of "haven't failed build in a while".
My restrictions were:
[amd64]CONFIG_64BIT=yCONFIG_COMPILE_TEST=yCONFIG_AIC79XX_BUILD_FIRMWARE=n CONFIG_AIC7XXX_BUILD_FIRMWARE=n
[arm64]CONFIG_AIC79XX_BUILD_FIRMWARE=n CONFIG_AIC7XXX_BUILD_FIRMWARE=n
[riscv64]
!CONFIG_ARCH_RV32I=y #yay "selects" CONFIG_CMODEL_MEDANY=yCONFIG_BPF_PRELOAD_UMD=nCONFIG_AIC79XX_BUILD_FIRMWARE=n CONFIG_AIC7XXX_BUILD_FIRMWARE=n
and applied fixes for dwc3-qcom riscv_cbom_block_size dump_emit_page riscv:jump_label.
All builds were done with gcc-12 on Debian unstable.
[apologies for the broken first attempt to send, mbox is too new technology for me I guess]
Meow!
Signature · 4 lines
⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ ⢿⡄⠘⠷⠚⠋⠀ Quis trollabit ipsos trollos? ⠈⠳⣄⠀⠀⠀⠀
PATCH 1/6 ASoC: mediatek: mt8186: fix an "unused" warning
This, and a whole bunch of referenced functions are not needed without CONFIG_OF. The warning makes the build fail under CONFIG_WERROR.
--- sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c | 2 +- sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c +1 -1
@@ -1000,7 +1000,7 @@ mt8186_mt6366_da7219_max98357_controls[] = { SOC_DAPM_PIN_SWITCH("HDMI1"), }; -static struct snd_soc_card mt8186_mt6366_da7219_max98357_soc_card = { +static __maybe_unused struct snd_soc_card mt8186_mt6366_da7219_max98357_soc_card = { .name ="mt8186_da7219_max98357" , .owner =THIS_MODULE , .dai_link = mt8186_mt6366_da7219_max98357_dai_links,
sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c +1 -1
@@ -976,7 +976,7 @@ mt8186_mt6366_rt1019_rt5682s_controls[] = { SOC_DAPM_PIN_SWITCH("HDMI1"), }; -static struct snd_soc_card mt8186_mt6366_rt1019_rt5682s_soc_card = { +static __maybe_unused struct snd_soc_card mt8186_mt6366_rt1019_rt5682s_soc_card = { .name ="mt8186_rt1019_rt5682s" , .owner =THIS_MODULE , .dai_link = mt8186_mt6366_rt1019_rt5682s_dai_links,
Signature · 1 line
2.37.2.609.g9ff673ca1a
PATCH 1/6 ASoC: mediatek: mt8186: fix an "unused" warning
In reply to Adam BorowskiThis, and a whole bunch of referenced functions are not needed without CONFIG_OF. The warning makes the build fail under CONFIG_WERROR.
--- sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c | 2 +- sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c +1 -1
@@ -1000,7 +1000,7 @@ mt8186_mt6366_da7219_max98357_controls[] = { SOC_DAPM_PIN_SWITCH("HDMI1"), }; -static struct snd_soc_card mt8186_mt6366_da7219_max98357_soc_card = { +static __maybe_unused struct snd_soc_card mt8186_mt6366_da7219_max98357_soc_card = { .name ="mt8186_da7219_max98357" , .owner =THIS_MODULE , .dai_link = mt8186_mt6366_da7219_max98357_dai_links,
sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c +1 -1
@@ -976,7 +976,7 @@ mt8186_mt6366_rt1019_rt5682s_controls[] = { SOC_DAPM_PIN_SWITCH("HDMI1"), }; -static struct snd_soc_card mt8186_mt6366_rt1019_rt5682s_soc_card = { +static __maybe_unused struct snd_soc_card mt8186_mt6366_rt1019_rt5682s_soc_card = { .name ="mt8186_rt1019_rt5682s" , .owner =THIS_MODULE , .dai_link = mt8186_mt6366_rt1019_rt5682s_dai_links,
Signature · 1 line
2.37.2.609.g9ff673ca1a
PATCH 1/6 ASoC: mediatek: mt8186: fix an "unused" warning
In reply to Adam BorowskiThis, and a whole bunch of referenced functions are not needed without CONFIG_OF. The warning makes the build fail under CONFIG_WERROR.
--- sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c | 2 +- sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c +1 -1
@@ -1000,7 +1000,7 @@ mt8186_mt6366_da7219_max98357_controls[] = { SOC_DAPM_PIN_SWITCH("HDMI1"), }; -static struct snd_soc_card mt8186_mt6366_da7219_max98357_soc_card = { +static __maybe_unused struct snd_soc_card mt8186_mt6366_da7219_max98357_soc_card = { .name ="mt8186_da7219_max98357" , .owner =THIS_MODULE , .dai_link = mt8186_mt6366_da7219_max98357_dai_links,
sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c +1 -1
@@ -976,7 +976,7 @@ mt8186_mt6366_rt1019_rt5682s_controls[] = { SOC_DAPM_PIN_SWITCH("HDMI1"), }; -static struct snd_soc_card mt8186_mt6366_rt1019_rt5682s_soc_card = { +static __maybe_unused struct snd_soc_card mt8186_mt6366_rt1019_rt5682s_soc_card = { .name ="mt8186_rt1019_rt5682s" , .owner =THIS_MODULE , .dai_link = mt8186_mt6366_rt1019_rt5682s_dai_links,
Signature · 1 line
2.37.2.609.g9ff673ca1a
PATCH 2/6 certs: fips test: fix build failure with PKCS7_MESSAGE_PARSER=m
In reply to Adam Borowskild: crypto/asymmetric_keys/selftest.o: in function `fips_signature_selftest':
selftest.c:(.init.text+0xcd): undefined reference to `pkcs7_parse_message'
ld: selftest.c:(.init.text+0x103): undefined reference to `pkcs7_supply_detached_data'
ld: selftest.c:(.init.text+0x10d): undefined reference to `pkcs7_verify'
ld: selftest.c:(.init.text+0x135): undefined reference to `pkcs7_validate_trust'
ld: selftest.c:(.init.text+0x157): undefined reference to `pkcs7_free_message'
--- crypto/asymmetric_keys/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/asymmetric_keys/Kconfig +1 -1
@@ -83,6 +83,6 @@ config FIPS_SIGNATURE_SELFTEST for FIPS. depends on KEYS depends on ASYMMETRIC_KEY_TYPE - depends on PKCS7_MESSAGE_PARSER + depends on PKCS7_MESSAGE_PARSER=y endif # ASYMMETRIC_KEY_TYPE
Signature · 1 line
2.37.2.609.g9ff673ca1a
PATCH 2/6 certs: fips test: fix build failure with PKCS7_MESSAGE_PARSER=m
In reply to Adam Borowskild: crypto/asymmetric_keys/selftest.o: in function `fips_signature_selftest':
selftest.c:(.init.text+0xcd): undefined reference to `pkcs7_parse_message'
ld: selftest.c:(.init.text+0x103): undefined reference to `pkcs7_supply_detached_data'
ld: selftest.c:(.init.text+0x10d): undefined reference to `pkcs7_verify'
ld: selftest.c:(.init.text+0x135): undefined reference to `pkcs7_validate_trust'
ld: selftest.c:(.init.text+0x157): undefined reference to `pkcs7_free_message'
--- crypto/asymmetric_keys/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/asymmetric_keys/Kconfig +1 -1
@@ -83,6 +83,6 @@ config FIPS_SIGNATURE_SELFTEST for FIPS. depends on KEYS depends on ASYMMETRIC_KEY_TYPE - depends on PKCS7_MESSAGE_PARSER + depends on PKCS7_MESSAGE_PARSER=y endif # ASYMMETRIC_KEY_TYPE
Signature · 1 line
2.37.2.609.g9ff673ca1a
PATCH 2/6 certs: fips test: fix build failure with PKCS7_MESSAGE_PARSER=m
In reply to Adam Borowskild: crypto/asymmetric_keys/selftest.o: in function `fips_signature_selftest':
selftest.c:(.init.text+0xcd): undefined reference to `pkcs7_parse_message'
ld: selftest.c:(.init.text+0x103): undefined reference to `pkcs7_supply_detached_data'
ld: selftest.c:(.init.text+0x10d): undefined reference to `pkcs7_verify'
ld: selftest.c:(.init.text+0x135): undefined reference to `pkcs7_validate_trust'
ld: selftest.c:(.init.text+0x157): undefined reference to `pkcs7_free_message'
--- crypto/asymmetric_keys/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/asymmetric_keys/Kconfig +1 -1
@@ -83,6 +83,6 @@ config FIPS_SIGNATURE_SELFTEST for FIPS. depends on KEYS depends on ASYMMETRIC_KEY_TYPE - depends on PKCS7_MESSAGE_PARSER + depends on PKCS7_MESSAGE_PARSER=y endif # ASYMMETRIC_KEY_TYPE
Signature · 1 line
2.37.2.609.g9ff673ca1a
PATCH 3/6 mtd: eject cfi_interleave code to its own header
In reply to Adam BorowskiThis fixes build failures for stuff that doesn't care about that, such as:
In file included from ./include/linux/mtd/spi-nor.h:10,
from drivers/spi/spi-intel.c:13:./include/linux/mtd/cfi.h:62:2: error: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support
62 | #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
| ^~~~~~~
--- drivers/mtd/chips/cfi_cmdset_0001.c | 1 + drivers/mtd/chips/cfi_cmdset_0002.c | 1 + drivers/mtd/chips/cfi_cmdset_0020.c | 1 + drivers/mtd/chips/cfi_util.c | 1 + drivers/mtd/chips/gen_probe.c | 1 + drivers/mtd/chips/jedec_probe.c | 1 + include/linux/mtd/cfi.h | 75 -------------------------- include/linux/mtd/cfi_interleave.h | 83 +++++++++++++++++++++++++++++ 8 files changed, 89 insertions(+), 75 deletions(-) create mode 100644 include/linux/mtd/cfi_interleave.h
drivers/mtd/chips/cfi_cmdset_0001.c +1 -0
@@ -34,6 +34,7 @@#include <linux/mtd/map.h> #include <linux/mtd/mtd.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> /* #define CMDSET0001_DISABLE_ERASE_SUSPEND_ON_WRITE */ /* #define CMDSET0001_DISABLE_WRITE_SUSPEND */
drivers/mtd/chips/cfi_cmdset_0002.c +1 -0
@@ -37,6 +37,7 @@#include <linux/mtd/map.h> #include <linux/mtd/mtd.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> #include <linux/mtd/xip.h> #define AMD_BOOTLOC_BUG
drivers/mtd/chips/cfi_cmdset_0020.c +1 -0
@@ -31,6 +31,7 @@#include <linux/interrupt.h> #include <linux/mtd/map.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> #include <linux/mtd/mtd.h>
drivers/mtd/chips/cfi_util.c +1 -0
@@ -22,6 +22,7 @@#include <linux/mtd/mtd.h> #include <linux/mtd/map.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> void cfi_udelay (int us) {
drivers/mtd/chips/gen_probe.c +1 -0
@@ -10,6 +10,7 @@#include <linux/mtd/mtd.h> #include <linux/mtd/map.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> #include <linux/mtd/gen_probe.h> static struct mtd_info *check_cmd_set (struct map_info *,int );
drivers/mtd/chips/jedec_probe.c +1 -0
@@ -20,6 +20,7 @@#include <linux/mtd/mtd.h> #include <linux/mtd/map.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> #include <linux/mtd/gen_probe.h> /* AMD */
include/linux/mtd/cfi.h +0 -75
87 lines not on this page · raw message
include/linux/mtd/cfi_interleave.h new file +83 -0
83 lines not on this page · raw message
Signature · 1 line
2.37.2.609.g9ff673ca1a
PATCH 3/6 mtd: eject cfi_interleave code to its own header
In reply to Adam BorowskiThis fixes build failures for stuff that doesn't care about that, such as:
In file included from ./include/linux/mtd/spi-nor.h:10,
from drivers/spi/spi-intel.c:13:./include/linux/mtd/cfi.h:62:2: error: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support
62 | #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
| ^~~~~~~
--- drivers/mtd/chips/cfi_cmdset_0001.c | 1 + drivers/mtd/chips/cfi_cmdset_0002.c | 1 + drivers/mtd/chips/cfi_cmdset_0020.c | 1 + drivers/mtd/chips/cfi_util.c | 1 + drivers/mtd/chips/gen_probe.c | 1 + drivers/mtd/chips/jedec_probe.c | 1 + include/linux/mtd/cfi.h | 75 -------------------------- include/linux/mtd/cfi_interleave.h | 83 +++++++++++++++++++++++++++++ 8 files changed, 89 insertions(+), 75 deletions(-) create mode 100644 include/linux/mtd/cfi_interleave.h
drivers/mtd/chips/cfi_cmdset_0001.c +1 -0
@@ -34,6 +34,7 @@#include <linux/mtd/map.h> #include <linux/mtd/mtd.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> /* #define CMDSET0001_DISABLE_ERASE_SUSPEND_ON_WRITE */ /* #define CMDSET0001_DISABLE_WRITE_SUSPEND */
drivers/mtd/chips/cfi_cmdset_0002.c +1 -0
@@ -37,6 +37,7 @@#include <linux/mtd/map.h> #include <linux/mtd/mtd.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> #include <linux/mtd/xip.h> #define AMD_BOOTLOC_BUG
drivers/mtd/chips/cfi_cmdset_0020.c +1 -0
@@ -31,6 +31,7 @@#include <linux/interrupt.h> #include <linux/mtd/map.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> #include <linux/mtd/mtd.h>
drivers/mtd/chips/cfi_util.c +1 -0
@@ -22,6 +22,7 @@#include <linux/mtd/mtd.h> #include <linux/mtd/map.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> void cfi_udelay (int us) {
drivers/mtd/chips/gen_probe.c +1 -0
@@ -10,6 +10,7 @@#include <linux/mtd/mtd.h> #include <linux/mtd/map.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> #include <linux/mtd/gen_probe.h> static struct mtd_info *check_cmd_set (struct map_info *,int );
drivers/mtd/chips/jedec_probe.c +1 -0
@@ -20,6 +20,7 @@#include <linux/mtd/mtd.h> #include <linux/mtd/map.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> #include <linux/mtd/gen_probe.h> /* AMD */
include/linux/mtd/cfi.h +0 -75
87 lines not on this page · raw message
include/linux/mtd/cfi_interleave.h new file +83 -0
83 lines not on this page · raw message
Signature · 1 line
2.37.2.609.g9ff673ca1a
PATCH 3/6 mtd: eject cfi_interleave code to its own header
In reply to Adam BorowskiThis fixes build failures for stuff that doesn't care about that, such as:
In file included from ./include/linux/mtd/spi-nor.h:10,
from drivers/spi/spi-intel.c:13:./include/linux/mtd/cfi.h:62:2: error: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support
62 | #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
| ^~~~~~~
--- drivers/mtd/chips/cfi_cmdset_0001.c | 1 + drivers/mtd/chips/cfi_cmdset_0002.c | 1 + drivers/mtd/chips/cfi_cmdset_0020.c | 1 + drivers/mtd/chips/cfi_util.c | 1 + drivers/mtd/chips/gen_probe.c | 1 + drivers/mtd/chips/jedec_probe.c | 1 + include/linux/mtd/cfi.h | 75 -------------------------- include/linux/mtd/cfi_interleave.h | 83 +++++++++++++++++++++++++++++ 8 files changed, 89 insertions(+), 75 deletions(-) create mode 100644 include/linux/mtd/cfi_interleave.h
drivers/mtd/chips/cfi_cmdset_0001.c +1 -0
@@ -34,6 +34,7 @@#include <linux/mtd/map.h> #include <linux/mtd/mtd.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> /* #define CMDSET0001_DISABLE_ERASE_SUSPEND_ON_WRITE */ /* #define CMDSET0001_DISABLE_WRITE_SUSPEND */
drivers/mtd/chips/cfi_cmdset_0002.c +1 -0
@@ -37,6 +37,7 @@#include <linux/mtd/map.h> #include <linux/mtd/mtd.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> #include <linux/mtd/xip.h> #define AMD_BOOTLOC_BUG
drivers/mtd/chips/cfi_cmdset_0020.c +1 -0
@@ -31,6 +31,7 @@#include <linux/interrupt.h> #include <linux/mtd/map.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> #include <linux/mtd/mtd.h>
drivers/mtd/chips/cfi_util.c +1 -0
@@ -22,6 +22,7 @@#include <linux/mtd/mtd.h> #include <linux/mtd/map.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> void cfi_udelay (int us) {
drivers/mtd/chips/gen_probe.c +1 -0
@@ -10,6 +10,7 @@#include <linux/mtd/mtd.h> #include <linux/mtd/map.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> #include <linux/mtd/gen_probe.h> static struct mtd_info *check_cmd_set (struct map_info *,int );
drivers/mtd/chips/jedec_probe.c +1 -0
@@ -20,6 +20,7 @@#include <linux/mtd/mtd.h> #include <linux/mtd/map.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/cfi_interleave.h> #include <linux/mtd/gen_probe.h> /* AMD */
include/linux/mtd/cfi.h +0 -75
87 lines not on this page · raw message
include/linux/mtd/cfi_interleave.h new file +83 -0
83 lines not on this page · raw message
Signature · 6 lines
2.37.2.609.g9ff673ca1a ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
PATCH 4/6 media: ipu3-cio2: make the bridge depend on i2c
In reply to Adam Borowskidrivers/media/pci/intel/ipu3/cio2-bridge.c: In function ‘cio2_bridge_unregister_sensors’:drivers/media/pci/intel/ipu3/cio2-bridge.c:258:17: error: implicit declaration of function ‘i2c_unregister_device’; did you mean ‘spi_unregister_device’? [-Werror=implicit-function-declaration]
258 | i2c_unregister_device(sensor->vcm_i2c_client);
| ^~~~~~~~~~~~~~~~~~~~~
| spi_unregister_device--- drivers/media/pci/intel/ipu3/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/media/pci/intel/ipu3/Kconfig +1 -0
@@ -21,6 +21,7 @@ config VIDEO_IPU3_CIO2 config CIO2_BRIDGE bool "IPU3 CIO2 Sensors Bridge" depends on VIDEO_IPU3_CIO2 && ACPI + depends on I2C help This extension provides an API for the ipu3-cio2 driver to create connections to cameras that are hidden in the SSDB buffer in ACPI.
Signature · 1 line
2.37.2.609.g9ff673ca1a
PATCH 4/6 media: ipu3-cio2: make the bridge depend on i2c
In reply to Adam Borowskidrivers/media/pci/intel/ipu3/cio2-bridge.c: In function ‘cio2_bridge_unregister_sensors’:drivers/media/pci/intel/ipu3/cio2-bridge.c:258:17: error: implicit declaration of function ‘i2c_unregister_device’; did you mean ‘spi_unregister_device’? [-Werror=implicit-function-declaration]
258 | i2c_unregister_device(sensor->vcm_i2c_client);
| ^~~~~~~~~~~~~~~~~~~~~
| spi_unregister_device--- drivers/media/pci/intel/ipu3/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/media/pci/intel/ipu3/Kconfig +1 -0
@@ -21,6 +21,7 @@ config VIDEO_IPU3_CIO2 config CIO2_BRIDGE bool "IPU3 CIO2 Sensors Bridge" depends on VIDEO_IPU3_CIO2 && ACPI + depends on I2C help This extension provides an API for the ipu3-cio2 driver to create connections to cameras that are hidden in the SSDB buffer in ACPI.
Signature · 1 line
2.37.2.609.g9ff673ca1a
PATCH 5/6 i2c: mlxbf: depend on ACPI; clean away ifdeffage
In reply to Adam BorowskiThis fixes maybe_unused warnings/errors.
According to a comment during device tree removal, only ACPI is supported, thus let's actually require it.
--- drivers/i2c/busses/Kconfig | 1 + drivers/i2c/busses/i2c-mlxbf.c | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-)
drivers/i2c/busses/Kconfig +1 -0
@@ -764,6 +764,7 @@ config I2C_LPC2K config I2C_MLXBF tristate "Mellanox BlueField I2C controller" depends on MELLANOX_PLATFORM && ARM64 + depends on ACPI select I2C_SLAVE help Enabling this option will add I2C SMBus support for Mellanox BlueField
drivers/i2c/busses/i2c-mlxbf.c +0 -9
@@ -2247,7 +2247,6 @@ static struct i2c_adapter_quirks mlxbf_i2c_quirks = { .max_write_len = MLXBF_I2C_MASTER_DATA_W_LENGTH, }; -#ifdef CONFIG_ACPI static const struct acpi_device_id mlxbf_i2c_acpi_ids[] = { {"MLNXBF03" , (kernel_ulong_t)&mlxbf_i2c_chip[MLXBF_I2C_CHIP_TYPE_1 ] }, {"MLNXBF23" , (kernel_ulong_t)&mlxbf_i2c_chip[MLXBF_I2C_CHIP_TYPE_2 ] },
@@ -2282,12 +2281,6 @@ static int mlxbf_i2c_acpi_probe(struct device *dev, struct mlxbf_i2c_priv *priv)return 0 ; } -#else -static int mlxbf_i2c_acpi_probe (struct device *dev,struct mlxbf_i2c_priv *priv) -{ -return -ENOENT ; -} -#endif /* CONFIG_ACPI */ static int mlxbf_i2c_probe (struct platform_device *pdev) {
@@ -2490,9 +2483,7 @@ static struct platform_driver mlxbf_i2c_driver = { .remove = mlxbf_i2c_remove, .driver = { .name = "i2c-mlxbf", -#ifdef CONFIG_ACPI .acpi_match_table = ACPI_PTR(mlxbf_i2c_acpi_ids), -#endif /* CONFIG_ACPI */ }, };
Signature · 1 line
2.37.2.609.g9ff673ca1a
Wolfram Sang
AppliedRe: [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage
Quoted 7 lines · Adam Borowski
This fixes
maybe_unusedwarnings/errors.According to a comment during device tree removal, only ACPI is supported, thus let's actually require it.
Fixes be18c5ede25da39a0eda541f6de3620a30cf731fSigned-off-by Adam Borowski <[email protected]>
Applied to for-current, thanks!
@Asmaa, @Khalil: normally, I will not skip the driver maintainer's ack but wait for it. I'd like to make an exception this time because I don't want to get another dozen of patches fixing this build warning. Since Asmaa already acked a similar patch, I hope this is okay with you.
Re: [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage
Quoted 2 lines
Quoted 2 lines
Fixes be18c5ede25da39a0eda541f6de3620a30cf731f
BTW this has to look like:
checkpatch will warn you about it. This time, I fixed it for you.
RE: [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage
In reply to Wolfram SangLGTM. Thanks Wolfram!
-----Original Message-----
From: Wolfram Sang <[email protected]>
Sent: Friday, October 21, 2022 2:43 AM
To: Adam Borowski <[email protected]>
Cc: Khalil Blaiech <[email protected]>; Asmaa Mnebhi <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage
Quoted 7 lines · Adam Borowski
This fixes
maybe_unusedwarnings/errors.According to a comment during device tree removal, only ACPI is supported, thus let's actually require it.
Fixes be18c5ede25da39a0eda541f6de3620a30cf731fSigned-off-by Adam Borowski <[email protected]>
Applied to for-current, thanks!
@Asmaa, @Khalil: normally, I will not skip the driver maintainer's ack but wait for it. I'd like to make an exception this time because I don't want to get another dozen of patches fixing this build warning. Since Asmaa already acked a similar patch, I hope this is okay with you.
RE: [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage
In reply to Wolfram SangFine with me. Thanks Wolfram.
Thanks,
-Khalil
-----Original Message-----
From: Wolfram Sang <[email protected]>
Sent: Friday, October 21, 2022 2:43 AM
To: Adam Borowski <[email protected]>
Cc: Khalil Blaiech <[email protected]>; Asmaa Mnebhi <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage
Quoted 7 lines · Adam Borowski
This fixes
maybe_unusedwarnings/errors.According to a comment during device tree removal, only ACPI is supported, thus let's actually require it.
Fixes be18c5ede25da39a0eda541f6de3620a30cf731fSigned-off-by Adam Borowski <[email protected]>
Applied to for-current, thanks!
@Asmaa, @Khalil: normally, I will not skip the driver maintainer's ack but wait for it. I'd like to make an exception this time because I don't want to get another dozen of patches fixing this build warning. Since Asmaa already acked a similar patch, I hope this is okay with you.
PATCH 5/6 i2c: mlxbf: depend on ACPI; clean away ifdeffage
In reply to Adam BorowskiThis fixes maybe_unused warnings/errors.
According to a comment during device tree removal, only ACPI is supported, thus let's actually require it.
--- drivers/i2c/busses/Kconfig | 1 + drivers/i2c/busses/i2c-mlxbf.c | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-)
drivers/i2c/busses/Kconfig +1 -0
@@ -764,6 +764,7 @@ config I2C_LPC2K config I2C_MLXBF tristate "Mellanox BlueField I2C controller" depends on MELLANOX_PLATFORM && ARM64 + depends on ACPI select I2C_SLAVE help Enabling this option will add I2C SMBus support for Mellanox BlueField
drivers/i2c/busses/i2c-mlxbf.c +0 -9
@@ -2247,7 +2247,6 @@ static struct i2c_adapter_quirks mlxbf_i2c_quirks = { .max_write_len = MLXBF_I2C_MASTER_DATA_W_LENGTH, }; -#ifdef CONFIG_ACPI static const struct acpi_device_id mlxbf_i2c_acpi_ids[] = { {"MLNXBF03" , (kernel_ulong_t)&mlxbf_i2c_chip[MLXBF_I2C_CHIP_TYPE_1 ] }, {"MLNXBF23" , (kernel_ulong_t)&mlxbf_i2c_chip[MLXBF_I2C_CHIP_TYPE_2 ] },
@@ -2282,12 +2281,6 @@ static int mlxbf_i2c_acpi_probe(struct device *dev, struct mlxbf_i2c_priv *priv)return 0 ; } -#else -static int mlxbf_i2c_acpi_probe (struct device *dev,struct mlxbf_i2c_priv *priv) -{ -return -ENOENT ; -} -#endif /* CONFIG_ACPI */ static int mlxbf_i2c_probe (struct platform_device *pdev) {
@@ -2490,9 +2483,7 @@ static struct platform_driver mlxbf_i2c_driver = { .remove = mlxbf_i2c_remove, .driver = { .name = "i2c-mlxbf", -#ifdef CONFIG_ACPI .acpi_match_table = ACPI_PTR(mlxbf_i2c_acpi_ids), -#endif /* CONFIG_ACPI */ }, };
Signature · 1 line
2.37.2.609.g9ff673ca1a
PATCH 6/6 ASoC: Intel: boards: add missing dependency from realtek-common
In reply to Adam BorowskiThese boards use code from sound/soc/sof/sof-audio.c
--- sound/soc/intel/boards/Kconfig | 1 + 1 file changed, 1 insertion(+)
sound/soc/intel/boards/Kconfig +1 -0
@@ -34,6 +34,7 @@ config SND_SOC_INTEL_SOF_MAXIM_COMMON config SND_SOC_INTEL_SOF_REALTEK_COMMON tristate + depends on SND_SOC_SOF config SND_SOC_INTEL_SOF_CIRRUS_COMMON tristate
Signature · 1 line
2.37.2.609.g9ff673ca1a
PATCH 6/6 ASoC: Intel: boards: add missing dependency from realtek-common
In reply to Adam BorowskiThese boards use code from sound/soc/sof/sof-audio.c
--- sound/soc/intel/boards/Kconfig | 1 + 1 file changed, 1 insertion(+)
sound/soc/intel/boards/Kconfig +1 -0
@@ -34,6 +34,7 @@ config SND_SOC_INTEL_SOF_MAXIM_COMMON config SND_SOC_INTEL_SOF_REALTEK_COMMON tristate + depends on SND_SOC_SOF config SND_SOC_INTEL_SOF_CIRRUS_COMMON tristate
Signature · 1 line
2.37.2.609.g9ff673ca1a
Mark Brown
maintainerRe: [PATCH 6/6] ASoC: Intel: boards: add missing dependency from realtek-common
In reply to Adam BorowskiQuoted 4 lines · Adam Borowski
These boards use code from
sound/soc/sof/sof-audio.cFixes e1d5e13324020c4b405e63cae34560c7992bec2eSigned-off-by Adam Borowski <[email protected]>
Please include human readable descriptions of things like commits and issues being discussed in e-mail in your mails, this makes them much easier for humans to read especially when they have no internet access. I do frequently catch up on my mail on flights or while otherwise travelling so this is even more pressing for me than just being about making things a bit easier to read.
You've not incldued a cover letter for this and only copied me on some patches, are there any dependency issues?