From patchwork Thu Jan 25 15:37:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve French X-Patchwork-Id: 865928 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-cifs-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="r3FCGfgg"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zS5lf1LJzz9sNV for ; Fri, 26 Jan 2018 02:38:06 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751138AbeAYPiF (ORCPT ); Thu, 25 Jan 2018 10:38:05 -0500 Received: from mail-pf0-f174.google.com ([209.85.192.174]:35417 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750851AbeAYPiE (ORCPT ); Thu, 25 Jan 2018 10:38:04 -0500 Received: by mail-pf0-f174.google.com with SMTP id t12so6015201pfg.2 for ; Thu, 25 Jan 2018 07:38:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=kuHAJ3WHGCrjdJjMfidA0nPhyNtYAV3Ngu9rgMF/2Z0=; b=r3FCGfggMcF5G/VwigszgG92LT/LGMX74vEuKAbZgUhUmssAWsHzpMqK/+v+G5iOnv rMnTI684GoAWQPq0/z7k3A5WBbn88Q3Wq29v15XuBXrDakfmU4NDEezOAKUsaKsYBfSd 9O88ChBzfIr41J8Ha7V5BNqH5jw7HhA731dnU4OrKgdZcLGUfJ6qK+TI20Iudk3Cjaiw x8KSZuhykfSkklhUSjGM3EfQjtBPzWnqzZryanmiuMURqJr4U3hiEWpatH3XNwb0QyPN fwNvPuBhKrsu1USazTJXFN8gpXzWW8yn+keNUsPdd80X9gxhukU9g7Vr1CPvWU/UzeJU qN3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=kuHAJ3WHGCrjdJjMfidA0nPhyNtYAV3Ngu9rgMF/2Z0=; b=JoI6GLpcdtDO5+UOi9WjgfQZZAPkyiWoB//YRd0aKv9l9l46cINqeeLPVvP/qwfk9r CnX9W0NKQre3aRYCclkg0SNC95Gglqt/UXTA+RB5osoL38WKPZRSOcwODJeZa6AEAJ2d D7KPTZHmhP3LwpEMEDnGNVHfCIWX+zaaWJzkdaCC7nPgVHnrk54z3QsvwTf2E9ATixnX 8H+pAhDz2iU5m6a1CYdt8kUn55hvmsTXSmk11UaFXC40oblrvTcAXEPFVT4keMsQ0rzd FcfO7Z5tsxztVXI8sQnzU4FR74ueH9a0760KPRnqqqA3oeM+5BXC8NnMUoSg0C5jul+B K6mw== X-Gm-Message-State: AKwxytcqzMukAe7N77TxvLiux+1S+f8E8+VRhCFTmH6EPyTkG1avzgFS ckU21+LCF08cB0N8FJQq9GMZkcMEbON+dRzsvp8mjQ== X-Google-Smtp-Source: AH8x226ckLu77KHtsiYOE/MmWctyrRDI+ZPC4DiIZMQEnS+vHEqQWPaiEHL+pTBI6pq7A5rkcfxYyZxaFkHTAL0irwI= X-Received: by 2002:a17:902:6a89:: with SMTP id n9-v6mr11496900plk.212.1516894683553; Thu, 25 Jan 2018 07:38:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.172.15 with HTTP; Thu, 25 Jan 2018 07:37:42 -0800 (PST) From: Steve French Date: Thu, 25 Jan 2018 09:37:42 -0600 Message-ID: Subject: [PATCH][SMB3] quiet 'symbol was not declared' warnings in SMB3 RDMA series To: CIFS Cc: Long Li Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org Minor fixup - moved these eight defines to smbdirect.h to quiet sparse Reviewed-by: Ronnie Sahlberg From 75aa044e4e932d02654b2507527d4008d51fc87f Mon Sep 17 00:00:00 2001 From: Steve French Date: Thu, 25 Jan 2018 09:28:25 -0600 Subject: [PATCH] [SMB3] move a few externs to smbdirect.h to eliminate warning Quiet minor sparse warnings in new SMB3 rdma patch series ("symbol was not declared ...") by moving these externs to smbdirect.h Signed-off-by: Steve French --- fs/cifs/cifs_debug.c | 9 --------- fs/cifs/smbdirect.h | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index f491340f32ad..c7a863219fa3 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -483,15 +483,6 @@ static const struct file_operations cifs_##name##_proc_fops = { \ .write = name##_write, \ } -extern int rdma_readwrite_threshold; -extern int smbd_max_frmr_depth; -extern int smbd_keep_alive_interval; -extern int smbd_max_receive_size; -extern int smbd_max_fragmented_recv_size; -extern int smbd_max_send_size; -extern int smbd_send_credit_target; -extern int smbd_receive_credit_max; - PROC_FILE_DEFINE(rdma_readwrite_threshold); PROC_FILE_DEFINE(smbd_max_frmr_depth); PROC_FILE_DEFINE(smbd_keep_alive_interval); diff --git a/fs/cifs/smbdirect.h b/fs/cifs/smbdirect.h index fdb8df84fa1f..f9038daea194 100644 --- a/fs/cifs/smbdirect.h +++ b/fs/cifs/smbdirect.h @@ -24,6 +24,15 @@ #include #include +extern int rdma_readwrite_threshold; +extern int smbd_max_frmr_depth; +extern int smbd_keep_alive_interval; +extern int smbd_max_receive_size; +extern int smbd_max_fragmented_recv_size; +extern int smbd_max_send_size; +extern int smbd_send_credit_target; +extern int smbd_receive_credit_max; + enum keep_alive_status { KEEP_ALIVE_NONE, KEEP_ALIVE_PENDING, -- 2.14.3