Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 851117

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 packagesAssignee: 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: ---

Description Phil Stracchino (Unix Ronin) 2022-06-11 02:36:30 UTC
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
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-11 02:38:38 UTC

*** This bug has been marked as a duplicate of bug 850763 ***
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-11 02:38:53 UTC
I'd consider not building with Werror, fwiw.