From patchwork Wed Nov 10 09:14:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve French X-Patchwork-Id: 1553327 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=SPTLRbOO; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-cifs-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4Hpzh00L5dz9sRK for ; Wed, 10 Nov 2021 20:14:40 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230037AbhKJJRZ (ORCPT ); Wed, 10 Nov 2021 04:17:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229781AbhKJJRY (ORCPT ); Wed, 10 Nov 2021 04:17:24 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41F70C061764 for ; Wed, 10 Nov 2021 01:14:37 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id f3so4347986lfu.12 for ; Wed, 10 Nov 2021 01:14:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=NALQny5Gc91lNAaNsPWqzKB2dJi+SoLff9+VUIRbOcA=; b=SPTLRbOO/C6r8GVSmu7VOgKSXWzpYFWCUl/6GdjPQBG/JXU6Y7CT/rdYW/D8jruLGG MQP81nSZAN73/X03OHNOgpWJT2dkFDk64jOgQMlvF/KGkMxPPfefxBEZWQyrndJ63om/ 15OPdIjcND2/FHbt26qEZgHUEjuh2xffHMB7d7sLCr6nKMs3YXRAFK6uTKRIg4pRnsPE mq/R2rLUZhaBzzmnRbFThc8QIIGH3o0kzn7osMVWOSPIWzkeZTzh5R31XtF6FTaalg43 swt3ioEoKNUmXg+hpbHQSTH06F27LvbEJTEwV6ayQjxM0g//G4BFhjawxotP17ilgm0s mksA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=NALQny5Gc91lNAaNsPWqzKB2dJi+SoLff9+VUIRbOcA=; b=1oh87k79+IS4U7sqryY24Lw4bTz+1eejDT1HNA9AUvfXe2vfMpYx83GKlYK1XVR7qv 3IeJbXALAlJtwI41JFii5vBLBLBfNp5NqhfFcTK5WiJ+n+OHZrTdFF+4P324OyaaVY/t 1y6hruoysiaaPwRIm7c4jPWOlXxVUpLq7cF8RFAfDNoQzNNy8umYridmF0GuWsY0vINK pj8NmHYItPA+sT8rY3M/E0NeJ9ro/GPV3TRyuvYjR9G3ujnCMJStiGYp+m+631Jzy6L6 Q8qcYOUMNgor9V6EUcEP24I8+M7FdqpF4nNjIoNdrlaRCKKqWzvk1mrX56kIwLu+rwam R3Dg== X-Gm-Message-State: AOAM530r+T2PMGGchJ/FB1/6GPMtATxkjC0AFMSmgpqsRfAFP8YYkdEf ySfTD+UkDz67b4131weZavF1jTSiNA6wdmJT6nk4Vwf9 X-Google-Smtp-Source: ABdhPJwtudKm0RwoEc6HGdRcaRY+fFaU09Xs97g8RFQ06BAA6YDnMuoPUs2s3ycSRGDs2/oRX6bZGjeT1ZZNEZ+IfFg= X-Received: by 2002:a05:6512:3763:: with SMTP id z3mr13213625lft.601.1636535675529; Wed, 10 Nov 2021 01:14:35 -0800 (PST) MIME-Version: 1.0 From: Steve French Date: Wed, 10 Nov 2021 03:14:24 -0600 Message-ID: Subject: patch to removing minor DFS compile warnings To: Paulo Alcantara , CIFS Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org CHECK /home/smfrench/cifs-2.6/fs/cifs/connect.c /home/smfrench/cifs-2.6/fs/cifs/connect.c:4137:5: warning: symbol '__tree_connect_dfs_target' was not declared. Should it be static? /home/smfrench/cifs-2.6/fs/cifs/connect.c:4236:5: warning: symbol 'tree_connect_dfs_target' was not declared. Should it be static? --- Thanks, Steve From c14a9424dc360a9125cb4e7558bafe9426bc05f1 Mon Sep 17 00:00:00 2001 From: Steve French Date: Wed, 10 Nov 2021 03:09:52 -0600 Subject: [PATCH] smb3: remove trivial dfs compile warning Fix warning caused by recent changes to the dfs code: symbol 'tree_connect_dfs_target' was not declared. Should it be static? Cc: Paulo Alcantara (SUSE) Signed-off-by: Steve French --- fs/cifs/connect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index c07d5915b9b0..f645f994a523 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -4134,7 +4134,7 @@ static int target_share_matches_server(struct TCP_Server_Info *server, const cha return rc; } -int __tree_connect_dfs_target(const unsigned int xid, struct cifs_tcon *tcon, +static int __tree_connect_dfs_target(const unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, char *tree, struct dfs_cache_tgt_list *tl, struct dfs_info3_param *ref) { @@ -4233,7 +4233,7 @@ int __tree_connect_dfs_target(const unsigned int xid, struct cifs_tcon *tcon, return rc; } -int tree_connect_dfs_target(const unsigned int xid, struct cifs_tcon *tcon, +static int tree_connect_dfs_target(const unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, char *tree, struct dfs_cache_tgt_list *tl, struct dfs_info3_param *ref) { -- 2.32.0