Skip to content

Commit

Permalink
Enable CONFIG_WERROR for TrueNAS kernels
Browse files Browse the repository at this point in the history
Enable CONFIG_ERROR option that treats all warnings as error during
kernel build.

Signed-off-by: Umer Saleem <[email protected]>
  • Loading branch information
usaleem-ix committed Jul 16, 2024
1 parent 55b9be1 commit 5cf84c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/ntb/hw/intel/ntb_hw_gen1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1778,7 +1778,6 @@ static int intel_ntb_init_pci(struct intel_ntb_dev *ndev, struct pci_dev *pdev)
return 0;

err_mmio:
err_dma_mask:
pci_release_regions(pdev);
err_pci_regions:
pci_disable_device(pdev);
Expand Down
5 changes: 5 additions & 0 deletions scripts/package/truenas/truenas.config
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,8 @@ CONFIG_LRU_GEN_ENABLED=n
# Disable Multiple Device (md) driver. TrueNAS does not utilize this
# driver and we don't support this in the field either.
CONFIG_MD=n

#
# Compile Linux kernel with warnings as errors
#
CONFIG_WERROR=y

0 comments on commit 5cf84c8

Please sign in to comment.