Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp932872pxb; Thu, 26 Aug 2021 19:20:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaiPABldQKG5iW37KejTuM4j4VwmPaIOF55llK/5ZgwP2D8JhVYj4/yLrs1hcmS9SnPuCE X-Received: by 2002:a17:907:75d9:: with SMTP id jl25mr7527418ejc.4.1630030859307; Thu, 26 Aug 2021 19:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630030859; cv=none; d=google.com; s=arc-20160816; b=sAnvKAa8ShRRASVSuEVW1keIZtAS6AqpwZYAhxkWb4xCcvivAwnkZSi/lkULDRUDFl GcYaZofstpMAWT4uw221nTUqMFg1l2h4UqLpFLPA1gR0pICDvetEZcmgsGJpL7pE0hRl nHTKOxnK5dWqGEuuZm1REwhZQxKEScghf1VHLnCIaVgJMJiNHZJ95TID+8+bQffRxFld TW9kBI9LH2/kUr1bYbyqnTgMoxOBvu5OYr5+xkxNWq1cQDe2vmqmTiMZGJMHZ2Qb0dBM suOQPQ4Z/IRPrjZNxZ2sz6tKrpTf0fkbOo094YBnBy1ho1pcfbMe2sVQUohCZSebb7MP hYNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=Fudd8jhG4G4A8TwkFkc6LJ/nOYeKTZZ7GsfAF8ps2HA=; b=e6lZX4TiN7mCgLMsb8h3ZGch268atPsCfm+SWid0X7/RE5RAHDI1uPzvZ1oho7ULEc hiQk56iJLWYCb4LHGRHeZBkRhxsAziI20EyYR33ZDZ55Dfh/1MYNTSVoVyvI/WcSVdx3 rz9kqm0+HeGnCFmsFkM/qufaX07SzOXcUbddeTuukZFJGL9hIOp6WwyBXHPZnnS2qQVO VKYms10dvuWm5YBVRB5SdzmEa6EOYEBVJZydnt6oAgR7gLdCzuQIUbP2clRvM2vgQxr6 bCgDkDzXmn5a+FEeomjDPA6DNdfF+zTSk1gHKVOJLxME9EfDiu+Qlni4gPOT1MFnFfjL wb2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ioQSQPB8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si4596629eds.512.2021.08.26.19.20.36; Thu, 26 Aug 2021 19:20:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ioQSQPB8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244065AbhH0CUJ (ORCPT + 99 others); Thu, 26 Aug 2021 22:20:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244004AbhH0CUJ (ORCPT ); Thu, 26 Aug 2021 22:20:09 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ADADC061757 for ; Thu, 26 Aug 2021 19:19:21 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id k24so4712461pgh.8 for ; Thu, 26 Aug 2021 19:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Fudd8jhG4G4A8TwkFkc6LJ/nOYeKTZZ7GsfAF8ps2HA=; b=ioQSQPB8D9MKu84GyC5cgvx9tWkRTwbjHbZSufgrUucdYRk+9P+kTkZlP6RN4MlVeW QiO93lCjZV/Fh6SK/geKFBFDRgedEoZ0wg3UQkcLcdrGhQ5JRfsWPb2XtkK7JYK3fWNY dUKYWAalDqikYs5OnLUvtK+fboeFWTPlSqAb8l1ruh5wjFxCSC8gHUI53vZKQO8KDYTd WcOk6ZjrzNta6WgBzOC4+coi2PFbcoWkLhVbkIV3HU2RvNt1dLuGLpZghKkvN2WmX01m guoIG+wWS94FclSn7meiJG9S6gAdotRVEHNFEKI3CKyBO7Um4Fxl/N9LKNH2Xbg9fMXT bFdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Fudd8jhG4G4A8TwkFkc6LJ/nOYeKTZZ7GsfAF8ps2HA=; b=Lhiq9WAKAWetb3iftUuvyWeebFjnAw3iV9oi/U/Za9KWpkezm9Iy0n4+epX8oXWE9N nR7lMH5KfyoxMr2ZfVNbQ41TyOb7Brjj36S2WDliCF7MeW86SlXQV3yMjSmqxGK9EAyu O9E2NBmAwqhxDnZNOBRyJcCICHTDLN1m5pc4jDlHEKbzi7nmL8KVK+p+DIXaKByuseZd YUzinTRumrOwMPYCApiNVOZHMhosoi2tlA+cFlF7sl5P91EU5IYa05df5NHJG9KN1yQw WDqrFF/lvMyGPmTj0Gs9o4UEB4O8vFp3qTqdDzmDe5szZP5XbVJVrchfQG32A8WK4l6X DJhg== X-Gm-Message-State: AOAM531Ls5ID19dODR7sGGosr5WlmN077n5kds0bEwnqjfiGR+tl8Joj cex0zHFtoWfAxTCWVH8fUKNVCfqY6T6gKUPhxzcHI/Zbaq5CVg== X-Received: by 2002:a63:fd12:: with SMTP id d18mr5934077pgh.129.1630030760887; Thu, 26 Aug 2021 19:19:20 -0700 (PDT) MIME-Version: 1.0 From: Krish Jain Date: Fri, 27 Aug 2021 04:19:08 +0200 Message-ID: Subject: [PATCH] Declare the file_operations struct as const To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Krish Jain Declare the file_operations struct as const as done elsewhere in the kernel, as there are no modifications to its fields. Signed-off-by: Krish Jain --- drivers/staging/android/ashmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ashmem.c b/drivers/staging/android/ashmem.c index ddbde3f8430e..ec18f2ddd66c 100644 --- a/drivers/staging/android/ashmem.c +++ b/drivers/staging/android/ashmem.c @@ -377,7 +377,7 @@ ashmem_vmfile_get_unmapped_area(struct file *file, unsigned long addr, static int ashmem_mmap(struct file *file, struct vm_area_struct *vma) { - static struct file_operations vmfile_fops; + const static struct file_operations vmfile_fops; struct ashmem_area *asma = file->private_data; int ret = 0; -- 2.25.1