From patchwork Thu Aug 17 13:22:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 802650 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xY6S64XhMz9t3G for ; Thu, 17 Aug 2017 23:26:30 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="SbdDt1qu"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3xY6S63PGGzDqYN for ; Thu, 17 Aug 2017 23:26:30 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="SbdDt1qu"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pg0-x243.google.com (mail-pg0-x243.google.com [IPv6:2607:f8b0:400e:c05::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xY6NG4jKtzDrCR for ; Thu, 17 Aug 2017 23:23:10 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="SbdDt1qu"; dkim-atps=neutral Received: by mail-pg0-x243.google.com with SMTP id t80so3753405pgb.2 for ; Thu, 17 Aug 2017 06:23:10 -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 :in-reply-to:references; bh=kM1MzWlBDVhzTGR54h4BkxtxeYj81+0jA9SJHWW27dk=; b=SbdDt1quTswpL6pzl1If45QFVPiEEOhwwoqpsKAVJ+ISHWdNLccaSpQKhgd+SB2zOR Eiq/a8dLlrEvTr4Q/+vNqDko3LShI7pa3OGYOHATc2tZAnMfMGH/TCxZqQaVvN3Y4f7l a+hM6Jvi6u1BJ0aEy/KAWi+xELxt+Gq6mXhHiiNO0uiDx0TaObM9bOKfYSm080EpVFDw cIfxxD29RtVt1XnxWcPXg6l4qzuUDXVPn662vlLQoAXweZVEifGOfO8pDwC1HhDptkCV +rsvwV33SsxicWa6RfOVdBHp9gjqemg1CHZe64ynzOySjTJY55vrro6sxt8v/8WdfmXc lfsQ== 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:in-reply-to:references; bh=kM1MzWlBDVhzTGR54h4BkxtxeYj81+0jA9SJHWW27dk=; b=ekeY9LSg7/m0Zz7fsQbD5ix2OAuxWoktdpWx5hMTdSN7lsY6nESP4LiYc6cEspF5ZD SqtviMzGBsZACBd5l0c8WwUyWd2crn6JkQBzYJ41/Al0dZtkUe1IJBPs3Bml4w2zINn1 QSp6z6rOhZF5Y9yHczMcSxE3KLFlv2lmcQLp27Z+vJpFhYRlVwcW/QoJLWiXrEhtziHW 8KtWzPanmtIzm2qHoIfMxTjtbqfUPFP408f7Ctskm/2hdJG1o4J7AAP/dgK4xZKbwHA+ KaL8rg2pfdaRfX6kyFdTBKY5KsK9ZIxuUDetYoBYy49wjZdCQiWX3j6sevTpx7H6PMFZ DKBA== X-Gm-Message-State: AHYfb5hFvGmevofVQG86BXeCuv/UJ7Vn8xkQ0XLWX8Zrp1iYwiWLVsPX 27klRD3wT56Yag== X-Received: by 10.99.37.199 with SMTP id l190mr2361022pgl.367.1502976188973; Thu, 17 Aug 2017 06:23:08 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.76]) by smtp.gmail.com with ESMTPSA id u72sm4171152pfk.122.2017.08.17.06.23.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Aug 2017 06:23:08 -0700 (PDT) From: Arvind Yadav To: tlfalcon@linux.vnet.ibm.com, benh@kernel.crashing.org, jallen@linux.vnet.ibm.com, mpe@ellerman.id.au, davem@davemloft.net Subject: [PATCH] net: ibm: ibmvnic: constify vio_device_id Date: Thu, 17 Aug 2017 18:52:54 +0530 Message-Id: <74d0d08fe98bf52e122d027efdcd7f9811309325.1502975929.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" vio_device_id are not supposed to change at runtime. All functions working with vio_device_id provided by work with const vio_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/ibm/ibmvnic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index a3e6946..d5372b5 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -3859,7 +3859,7 @@ static int ibmvnic_resume(struct device *dev) return 0; } -static struct vio_device_id ibmvnic_device_table[] = { +static const struct vio_device_id ibmvnic_device_table[] = { {"network", "IBM,vnic"}, {"", "" } };