From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751497AbdJOVEa (ORCPT ); Sun, 15 Oct 2017 17:04:30 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:50462 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750883AbdJOVE2 (ORCPT ); Sun, 15 Oct 2017 17:04:28 -0400 X-Google-Smtp-Source: ABhQp+TKmlp2xN6Ilu330h0ECvhbWSliN1YNnXs906AHJso0BSeQGozOkW1F/LtuFVZ2siFCKpqs+Q== From: Sudip Mukherjee To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Sudip Mukherjee Subject: [PATCH] parport: make parport_ip32_ops const and __initconst Date: Sun, 15 Oct 2017 22:04:23 +0100 Message-Id: <1508101463-14523-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bhumika Goyal Make this const as it is only used during a copy operation. This usage is inside init function and the structure is not referenced after initialisation, so make it __initconst too. Signed-off-by: Bhumika Goyal Signed-off-by: Sudip Mukherjee --- drivers/parport/parport_ip32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/parport/parport_ip32.c b/drivers/parport/parport_ip32.c index 0186db7..6287307 100644 --- a/drivers/parport/parport_ip32.c +++ b/drivers/parport/parport_ip32.c @@ -1769,7 +1769,7 @@ static size_t parport_ip32_ecp_write_data(struct parport *p, /*--- Default parport operations ---------------------------------------*/ -static __initdata struct parport_operations parport_ip32_ops = { +static const struct parport_operations parport_ip32_ops __initconst = { .write_data = parport_ip32_write_data, .read_data = parport_ip32_read_data, -- 1.9.1