From patchwork Wed Mar 27 23:50:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10874353 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DDE0913B5 for ; Wed, 27 Mar 2019 23:51:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA93128DD1 for ; Wed, 27 Mar 2019 23:51:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE6CB28C49; Wed, 27 Mar 2019 23:51:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38B3F28C49 for ; Wed, 27 Mar 2019 23:51:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726102AbfC0XvE (ORCPT ); Wed, 27 Mar 2019 19:51:04 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:41033 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbfC0XvE (ORCPT ); Wed, 27 Mar 2019 19:51:04 -0400 Received: by mail-pf1-f193.google.com with SMTP id 188so5006330pfd.8 for ; Wed, 27 Mar 2019 16:51:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FB+uc3grFH8MQrUUCG01Lzw7TIl8dEY9gMc1otJUz0Y=; b=ex03QZCL14DEEsehkg3YqSbcwmn5DUtyMPwcStZgHeWTMO3urPnrv3GRdGNv6IQs68 w1Wce5DMeJz5IkNveeuCZgfQR6EUGVnvUH6qMwA7cSW5XZpX/hPuJkfauBLokYGmfUko 7fw2z7RmHbhpAQ+D3bo1pkXLTbGJP3yr0rkc0eXICBDL9qu/klzAhS2arRJarJVQ7VYI cbimonmWUq3zaOm95+XKf7ejF1dXT4w2mhO/NJy2HwrkR8h3cgB9Ck85EOurOnsTu/1C o6hmoczFALlKXg4VLdentU87n2G+3RWLGmRwlajG6Y7UtRjG2uV+qazNKw9EiVc7f0ac fF+A== X-Gm-Message-State: APjAAAU4tKFjWYU7kn5DM+HsosDWaNZeyWVormQ0hRZ9k82r4OVjs6na x1Q5i/W95nuBGbiprZNv7sE= X-Google-Smtp-Source: APXvYqxWfxZqPHq8Gt203p2FGSOp0/Tf7hX/+fOqbQgNPC2ExBUW2ijXzR07pv9tPbUDf2lbrG+DfQ== X-Received: by 2002:a63:f212:: with SMTP id v18mr16057440pgh.231.1553730663590; Wed, 27 Mar 2019 16:51:03 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:203:5cdc:422c:7b28:ebb5]) by smtp.gmail.com with ESMTPSA id a3sm16493115pfn.182.2019.03.27.16.51.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Mar 2019 16:51:02 -0700 (PDT) From: Bart Van Assche To: Jason Gunthorpe Cc: Leon Romanovsky , Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche Subject: [PATCH v2 0/7] Multiple fixes for issues reported by static checkers Date: Wed, 27 Mar 2019 16:50:44 -0700 Message-Id: <20190327235051.67361-1-bvanassche@acm.org> X-Mailer: git-send-email 2.20.GIT MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Jason, This patch series addresses several warnings reported by gcc + W=1, sparse and smatch. Please consider these patches for kernel v5.2. Thanks, Bart. Changes compared to v1: - As requested by Leon, left out patch "IB/mlx5: Only define uplink_rep_profile if CONFIG_MLX5_ESWITCH is enabled". Bart Van Assche (7): RDMA/uverbs: Add a __user annotation to a pointer RDMA/uverbs: Annotate uverbs_request_next_ptr() return value as a __user pointer RDMA/uverbs: Allow the compiler to verify declaration and definition consistency IB/mlx5: Declare devx_async_cmd_event_fops static IB/hfi1: Remove set-but-not-used variables IB/hfi1: Fix two format strings IB/qib: Remove a set-but-not-used variable drivers/infiniband/core/uverbs_cmd.c | 2 +- drivers/infiniband/core/uverbs_main.c | 2 +- .../infiniband/core/uverbs_std_types_counters.c | 1 + drivers/infiniband/core/uverbs_std_types_dm.c | 1 + .../core/uverbs_std_types_flow_action.c | 1 + drivers/infiniband/core/uverbs_std_types_mr.c | 1 + drivers/infiniband/hw/hfi1/init.c | 4 ++-- drivers/infiniband/hw/hfi1/tid_rdma.c | 15 +++++---------- drivers/infiniband/hw/hfi1/trace_dbg.h | 4 ++-- drivers/infiniband/hw/mlx5/devx.c | 2 +- drivers/infiniband/hw/qib/qib_user_sdma.c | 5 +---- 11 files changed, 17 insertions(+), 21 deletions(-)