From patchwork Wed Aug 2 17:57:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9877337 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 E56C7602BC for ; Wed, 2 Aug 2017 17:58:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E768A28815 for ; Wed, 2 Aug 2017 17:58:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC16B28813; Wed, 2 Aug 2017 17:58:14 +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 A201228813 for ; Wed, 2 Aug 2017 17:58:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752740AbdHBR5m (ORCPT ); Wed, 2 Aug 2017 13:57:42 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33986 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752703AbdHBR5j (ORCPT ); Wed, 2 Aug 2017 13:57:39 -0400 Received: by mail-pf0-f194.google.com with SMTP id t86so6684447pfe.1; Wed, 02 Aug 2017 10:57:39 -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=zvd0Br3X6sPbQGCz5ZZHxjkFgfEqhuOJwmRLqdcICRU=; b=S1/NTWhkxIJrk3YWpgtC2lpie5DH01a5j/d4xr70gtJ7+GcydUOKssEg8/dnOtz+Z0 6Mk7IpXlvuEye2KvKZ3EB0exWS2vykpkydApZLGThNWqGrAxQTJXlNKIjln8z3+WO5pJ Eujl+OAi9z/ooypvoq6sYd4PtXFVlcvXQPRYgzBZQbvZb51MbZkEG5wOUV/+uIdS17vL gZZUxzbGWbypYWERM3LMHZjlUxQrygSvufUG5VTsDVXOZ44w9KC6Q+nBKgMfjGyJLWRJ bEK9Y4VW/noqj+bWjPDcuY83SfrY2bC5k0PJyt4R2zIoZm4F1G0jn7aFOBTl9uuJZClC jMVQ== 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=zvd0Br3X6sPbQGCz5ZZHxjkFgfEqhuOJwmRLqdcICRU=; b=lfSLYeO/hmDsQAvjG/zPiBgoWN7lKih4w56aN5mEcXuEQhxXm9koIhqfsAWrHNwdqe gCYbxlNztPyMN4AGbsJesHf4vZQQg9xmt6PzAPMuxhzURv+GwCn2Jee5thNeFcL3XECs po33SnpcEc+ZNyyLpz8xuhAOYaOnlm5Z1MvYDQVSr26rNAXGq3EEroWZIwGPZD2NvLnV BeVkW0MXm752ZbpKxcTr9MrN7B4zGsfzVFM/rmwxep3YhdV4T+FkBNibuBEXxBIAs7ZC JuAbUeviMMr9xK1+LBfCaPkOx5TF3UiO24q2ajFDHcIufLdKiqH/9jxr47vkgLJse1lH AhUA== X-Gm-Message-State: AIVw112QD2vaXOwWNhkF6z+hE4Oi9jpEflrBXq3+bJSRNOOtaj55+90+ ZCZZBsvyO3Fxdg== X-Received: by 10.101.73.205 with SMTP id t13mr6390317pgs.301.1501696658933; Wed, 02 Aug 2017 10:57:38 -0700 (PDT) Received: from gmail.com ([117.196.96.230]) by smtp.gmail.com with ESMTPSA id e64sm63172137pfb.129.2017.08.02.10.57.34 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 02 Aug 2017 10:57:38 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 02 Aug 2017 23:27:31 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, kvalo@codeaurora.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, harish.patil@cavium.com, manish.chopra@cavium.com, Dept-GELinuxNICDev@cavium.com Cc: Bhumika Goyal Subject: [PATCH 2/2] qlcnic: add const to bin_attribute structure Date: Wed, 2 Aug 2017 23:27:14 +0530 Message-Id: <1501696634-15765-3-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501696634-15765-1-git-send-email-bhumirks@gmail.com> References: <1501696634-15765-1-git-send-email-bhumirks@gmail.com> 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 Add const to bin_attribute structure as it is only passed to the functions sysfs_{remove/create}_bin_file. The corresponding arguments are of type const, so declare the structure to be const. Signed-off-by: Bhumika Goyal --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c index 73027a6..82fcb83 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c @@ -1248,7 +1248,7 @@ static ssize_t qlcnic_83xx_sysfs_flash_write_handler(struct file *filp, .write = qlcnic_sysfs_write_pm_config, }; -static struct bin_attribute bin_attr_flash = { +static const struct bin_attribute bin_attr_flash = { .attr = {.name = "flash", .mode = (S_IRUGO | S_IWUSR)}, .size = 0, .read = qlcnic_83xx_sysfs_flash_read_handler,