From patchwork Tue Jun 27 11:36:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9811433 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 F0E8C603F2 for ; Tue, 27 Jun 2017 11:37:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4A9E2841F for ; Tue, 27 Jun 2017 11:37:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D8B2E28625; Tue, 27 Jun 2017 11:37:33 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EE4C72861D for ; Tue, 27 Jun 2017 11:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=52xH9DMf+ZeQ13UMyMUIJmr5trZzGh68cjjaA9Z1+qE=; b=jzS YVw+mg0VrELsabyDJs4vZB25Bq5jXV7XNwzG9xrSPGdCVJJGFCh+e9kKDWHSu/i45wcrn02zv760c LTk1hJIXX1vuJOyALfOzLud7BwWIQbPdaiBwIZ6rVZXppIROknDgjcw/slp3IoXGQnY0A4TrRH+Ue rhf+KZIWKffLITOXN8LS4UYnos7wcpgT/hv3mMPIPD2FVbeeRzGPZ8RZQm10N8uHCS8xih8eT+Wid TasA0ia4wNFw5hL3uNC7VERI/0KjoTXLI1mEa1iSgrXArlD+D1QQLVYQmLnoBljRrOSxFQ+kzg9j+ YgPVgTAcOuYNepsR5fTJZNkmKLjE8qA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dPoo9-0002NK-MZ; Tue, 27 Jun 2017 11:37:25 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dPoo6-0002Fq-8g for linux-arm-kernel@lists.infradead.org; Tue, 27 Jun 2017 11:37:24 +0000 Received: by mail-pf0-x242.google.com with SMTP id z6so4405791pfk.3 for ; Tue, 27 Jun 2017 04:37:06 -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=8ZsxLGsFYU9OC3kz3iiHzcLDFLFUv5oNd06Kqnu3GJ4=; b=BarfMWizhuAsoIxM/hUypQUro9Z5vlhjryBJxE4CFvNv/Qm9bJyi+mUplWkLjTzzvs M2MkaxPW5MVxz8HR/oXM5Fo8fzWXjxxWdqtOVnEfvwyyso2jY9J1Gh/x8QE9zfM1pl5g toafOkFofbK5OJr1jjjZjPtRbso0P46r+nBL5oDvqWn2WtoBJT2sTexLK5M34EB6RJST sowmHKLtcfJL4w77Nw3iYBGlF/KFHwV7aD7SAxrLBkCn3TiK3tUP0JjfNHVH7d+4jU4J 1NFhK3LQJuhYJ9+4XcGTZ4x5YTK6MXF/hfJ1y07XaLg/QvKHLLefbuXW4SYMoC7NHi1C tmLA== 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=8ZsxLGsFYU9OC3kz3iiHzcLDFLFUv5oNd06Kqnu3GJ4=; b=AYlwB2s7Tvr3qDOHOMa5cYl1UA+AmoBf4khPKuhiWq36BuN4x5uJLUheOfYFWzQuCd AxQLOPR/WqHx/dMmJjQoSXa47bAp2hDqysAw4BAKiS1YTZDnrIrY8zaRwQpM+H0DJIGI Y/k1VwAK/J6BVaDmdPdkFGlRP23irUXSj9VDr3PBM1SxRhdw1R+OPq7TiyBa8/x5OiIX zkK7iNlL6ODk8tuvwnSY8rclnKP+QSpmx7ZaV6rlYnyUkdW6s3UbWAueuMerWK/9CPNX 6LCyPD9V5Q622jU/hlakd3Nx6PoPy1NsP20rPeB/taSEUYA5ItzE7x2jGX8lPf6M8s9X ZJ/g== X-Gm-Message-State: AKS2vOyYVM/I8RUZT7svaDLs0v4yBce9LvEQ6OwOWEkqieI2WMeTCYmn 4aUexL9R3XJByQ== X-Received: by 10.98.108.72 with SMTP id h69mr4747723pfc.54.1498563426172; Tue, 27 Jun 2017 04:37:06 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id c22sm6871003pfl.97.2017.06.27.04.37.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Jun 2017 04:37:05 -0700 (PDT) From: Arvind Yadav To: gregkh@linuxfoundation.org, jslaby@suse.com, baohua@kernel.org Subject: [PATCH] serial: sirf: make of_device_ids const. Date: Tue, 27 Jun 2017 17:06:17 +0530 Message-Id: X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170627_043722_372991_1303D6C4 X-CRM114-Status: GOOD ( 10.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. File size before: text data bss dec hex filename 877 1864 88 2829 b0d drivers/tty/serial/sirfsoc_uart.o File size after constify: text data bss dec hex filename 1885 840 88 2813 afd drivers/tty/serial/sirfsoc_uart.o Signed-off-by: Arvind Yadav --- drivers/tty/serial/sirfsoc_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sirfsoc_uart.c b/drivers/tty/serial/sirfsoc_uart.c index e03282d..684cb8d 100644 --- a/drivers/tty/serial/sirfsoc_uart.c +++ b/drivers/tty/serial/sirfsoc_uart.c @@ -1253,7 +1253,7 @@ static int __init sirfsoc_uart_console_init(void) return HRTIMER_RESTART; } -static struct of_device_id sirfsoc_uart_ids[] = { +static const struct of_device_id sirfsoc_uart_ids[] = { { .compatible = "sirf,prima2-uart", .data = &sirfsoc_uart,}, { .compatible = "sirf,atlas7-uart", .data = &sirfsoc_uart}, { .compatible = "sirf,prima2-usp-uart", .data = &sirfsoc_usp},