From patchwork Mon Aug 7 05:00:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9884393 X-Patchwork-Delegate: kvalo@adurom.com 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 87B6B60364 for ; Mon, 7 Aug 2017 05:01:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 855D228555 for ; Mon, 7 Aug 2017 05:01:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A13F28558; Mon, 7 Aug 2017 05:01:46 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 D36DA28564 for ; Mon, 7 Aug 2017 05:01:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751476AbdHGFBQ (ORCPT ); Mon, 7 Aug 2017 01:01:16 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36837 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751516AbdHGFBP (ORCPT ); Mon, 7 Aug 2017 01:01:15 -0400 Received: by mail-pf0-f196.google.com with SMTP id t83so7961313pfj.3; Sun, 06 Aug 2017 22:01:15 -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; bh=5WwRLpKOnr9gXwtEch9wNynil3SMP6KZqzybXVQMr20=; b=E6rqGW1+QxXF1vln9dGDh1AvYUyh0KBBNef9mD0HlZp6w656QaYO2o+vOvIzhNnQ/p ms+LuKG4EK14dQmBM2dr4Fe4IoTGbTdHPcZbYAhNhAk3IaO4PYercpXq372sJElmZ5Zo JwXGDuD5YHf0MU1tm40bMxTRg6jArSgluFLeJSRbLYG57yP19FNJBJt1Yx2mtEVwRF5q g5Ou1y+bzOgRPno7lGmhelAYnePM3dn+VNDl2MeFjPAj8yB7dPJPP/p82I5mRVvEXRUU 9OLFZNWZOZz9YQo9DJgtHoaci8o0GsyYGadrOmYh63DtRpjeiW1QUOweLoRl/6jW62UI EaNQ== 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; bh=5WwRLpKOnr9gXwtEch9wNynil3SMP6KZqzybXVQMr20=; b=ijNukxD4jQ+iGF2bvW7R4AqZGkw6c2drs/a81YXgOqKLDIvRSy6Z/9zRe9hrS0AJB+ pbdkDf4ZvKLING52M6+If5nT9OIQ1DZ+6RDygBLOS3zwNxAbg+wYGddpgwPiFH4pSa2u 3fXGQbEEK13uoAZFCQHSDKsyhy28AMUjucluqqBhSRgAoyRPOCRCox+/MgO+PO/LHR2n GVg+/UF6PMXgVp3eYssACbeycMdk6VH4pjIBYl3FDMxxGqTSngy17vMZErAMxnK3KC5V PlLIEiR/uGvsqWJelL4gCarX1Q+sosNQZI0HXPSwKIAcwk/IKujsNRLMy0wXenyB/SxN jwuw== X-Gm-Message-State: AIVw1139ixWrSQOB+JNE6I+Y+Ar/9iQrv/RF69xKW0QYqCDmK/6wsYte BP6WnRUzvkbDlg== X-Received: by 10.84.218.66 with SMTP id f2mr12458412plm.206.1502082075025; Sun, 06 Aug 2017 22:01:15 -0700 (PDT) Received: from gmail.com ([117.196.205.59]) by smtp.gmail.com with ESMTPSA id p67sm12146117pga.79.2017.08.06.22.01.09 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 06 Aug 2017 22:01:13 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Mon, 07 Aug 2017 10:31:07 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, Larry.Finger@lwfinger.net, chaoming_li@realsil.com.cn, kvalo@codeaurora.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH v2] rtlwifi: constify rate_control_ops structure Date: Mon, 7 Aug 2017 10:30:51 +0530 Message-Id: <1502082051-4904-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP rate_control_ops structure is only passed as an argument to the function ieee80211_rate_control_{register/unregister}. This argument is of type const, so declare the structure as const. Signed-off-by: Bhumika Goyal --- Changes in v2: * Change subject line. drivers/net/wireless/realtek/rtlwifi/rc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rc.c b/drivers/net/wireless/realtek/rtlwifi/rc.c index 951d257..02811ed 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rc.c +++ b/drivers/net/wireless/realtek/rtlwifi/rc.c @@ -283,7 +283,7 @@ static void rtl_rate_free_sta(void *rtlpriv, kfree(rate_priv); } -static struct rate_control_ops rtl_rate_ops = { +static const struct rate_control_ops rtl_rate_ops = { .name = "rtl_rc", .alloc = rtl_rate_alloc, .free = rtl_rate_free,