| Summary: | sys-kernel/gentoo-sources-5.18.3 : kernel build failure in fs/cifs | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Phil Stracchino (Unix Ronin) <phils> |
| Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
*** This bug has been marked as a duplicate of bug 850763 *** I'd consider not building with Werror, fwiw. |
AR drivers/clk/x86/built-in.a AR drivers/clk/xilinx/built-in.a CC drivers/clk/clk-devres.o fs/cifs/connect.c: In function ‘is_path_remote’: fs/cifs/connect.c:3422:14: error: unused variable ‘nodfs’ [-Werror=unused-variable] 3422 | bool nodfs = cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_DFS; | ^~~~~ CC drivers/clk/clk-bulk.o CC drivers/acpi/acpica/nsalloc.o CC drivers/clk/clkdev.o static int is_path_remote(struct mount_ctx *mnt_ctx) { int rc; struct cifs_sb_info *cifs_sb = mnt_ctx->cifs_sb; struct TCP_Server_Info *server = mnt_ctx->server; unsigned int xid = mnt_ctx->xid; struct cifs_tcon *tcon = mnt_ctx->tcon; struct smb3_fs_context *ctx = mnt_ctx->fs_ctx; char *full_path; bool nodfs = cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_DFS; Commenting out this declaration of nodfs appears to fully resolve the problem. Reproducible: Always