From patchwork Fri Aug 25 14:21:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9922151 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EA00F602BD for ; Fri, 25 Aug 2017 14:25:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD01928249 for ; Fri, 25 Aug 2017 14:25:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D14A52837E; Fri, 25 Aug 2017 14:25:09 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable 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 99199283FF for ; Fri, 25 Aug 2017 14:25:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933307AbdHYOZG (ORCPT ); Fri, 25 Aug 2017 10:25:06 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:38114 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932562AbdHYOX7 (ORCPT ); Fri, 25 Aug 2017 10:23:59 -0400 Received: by mail-pg0-f68.google.com with SMTP id t3so4067326pgt.5; Fri, 25 Aug 2017 07:23:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4EcOVHEH1/KZdVqt8qbisQWBZPll0UHZn159PLCKP4k=; b=oghlhpIg9u6Oy9XxtVOR2KGdsyg+Uf2muf5DTCt/yTVJDYPv8Zoh2Qb+v26XlVjG38 u0D4uxjGPZIVdQR1DcVs+zp8NBp1o5gfOJ+/CA07afdikJhK41Rp32/4o3Y8Rv/Ezx8B JP9QXhZlkHPBuUfVGgowU2TNXKUkZOXCHGTRbT4Bl9EV0kGzxwO73JQSjNflysyQqKah KSrVrvzwtn+I5x7QYJlvq4RwvbuFS0QTYrZHIzdIKbih32BLRaPFUgb51Q/bjCuukm1x AA2BnhVNywQVsjSUsysJF/IMHXdrhCloE9MldBs0vmTcbqPKpLzjRfVFBJ834y1WsOI2 4FTw== 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:in-reply-to :references; bh=4EcOVHEH1/KZdVqt8qbisQWBZPll0UHZn159PLCKP4k=; b=kD6QlrLhOGVyr7v/YM6dGxrLc7fe7cwIFbp68KbE6SaLaJTYDQGWTuWvFS6CHCEu/E gIwbygbU11fIPyiVRRMIj8Iift1C1h2g6fUOQxypoqtbeWR/N3bwWFQ2VRy3YmYPQrbX wLK6Iyi4h5MVq1trLKCz5bHwapf9eWuLtQI/enXhvL8kLGYyRANAMNAPlfFlytmhJliH iE1G6rk8eEBkctkSoHp5cF2JdA45bOhKfdTStIat0Uzn2kRG1l40JlwxlLKI9DovGRwS goSoyZ/x6zxvYep6xH30+bcMcgeCS3v1Dcc2yE0pcKY8eukuyZwiTBWsE+ykhX2schMj qkqQ== X-Gm-Message-State: AHYfb5gtsmdmOmmB9JY+VNWUxEE5YW/48wHKDfVMSeKVUnS4v5rQDtQj xs53Snf3iBbqRA== X-Received: by 10.99.96.77 with SMTP id u74mr10098792pgb.120.1503671038571; Fri, 25 Aug 2017 07:23:58 -0700 (PDT) Received: from gmail.com ([117.196.97.99]) by smtp.gmail.com with ESMTPSA id z8sm11697959pgc.93.2017.08.25.07.23.48 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 Aug 2017 07:23:58 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Fri, 25 Aug 2017 19:53:45 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, marcel@holtmann.org, gustavo@padovan.org, johan.hedberg@gmail.com, davem@davemloft.net, pablo@netfilter.org, kadlec@blackhole.kfki.hu, fw@strlen.de, stephen@networkplumber.org, alex.aring@gmail.com, stefan@osg.samsung.com, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, santosh.shilimkar@oracle.com, trond.myklebust@primarydata.com, anna.schumaker@netapp.com, bfields@fieldses.org, jlayton@poochiereds.net, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, bridge@lists.linux-foundation.org, linux-wpan@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, linux-nfs@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH 7/7] SUNRPC: make kvec const Date: Fri, 25 Aug 2017 19:51:47 +0530 Message-Id: <1503670907-23221-8-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503670907-23221-1-git-send-email-bhumirks@gmail.com> References: <1503670907-23221-1-git-send-email-bhumirks@gmail.com> Sender: linux-wpan-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wpan@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make this const as it is only used during a copy operation. Signed-off-by: Bhumika Goyal Reviewed-by: Jeff Layton --- net/sunrpc/xdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c index e34f4ee..a096025 100644 --- a/net/sunrpc/xdr.c +++ b/net/sunrpc/xdr.c @@ -998,7 +998,7 @@ void xdr_enter_page(struct xdr_stream *xdr, unsigned int len) } EXPORT_SYMBOL_GPL(xdr_enter_page); -static struct kvec empty_iov = {.iov_base = NULL, .iov_len = 0}; +static const struct kvec empty_iov = {.iov_base = NULL, .iov_len = 0}; void xdr_buf_from_iov(struct kvec *iov, struct xdr_buf *buf)