From nobody Mon May 13 09:29:00 2024 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; envelope-from=linux-kernel-owner@vger.kernel.org; helo=vger.kernel.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1621412433; cv=none; d=zohomail.com; s=zohoarc; b=U1xirmG+AvIJ2JLg1DwN/tOvAgDciCZKVBn3OEk7RRtq5n1VWtcc19FvA+sVWlpoQFi0PHlbiQ3JSfRQC1eFjjPoKxCKY7yAvw7I5g3Pgo7UmWoFFCU593SK2MFAr+KDsWDc7GS5ndIaiNxum8edEBtZ5vK6cSJHz/gjKdyYZtU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1621412433; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:MIME-Version:Message-ID:Subject:To; bh=XyiYhLHr3hR1GTY2O/8/PlBeJbCviFxRhysxSfK2xtY=; b=NAuQ0TPaIJw4dhn6eDoNpq2WqCsmSuCGEfOdJE0eTPhY5RCUTvHVnBfEgJKzJXaDw+hmA+hRvoqJCqHyRH2pxFVpSj9Gdzw8E2itS73uUhvF8vlRztP39tFJgUjuicOdASWH3qFklBVvB1R5CYRjMP6YBA68n/0Zg07Dfznkkn4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mx.zohomail.com with SMTP id 1621412433519432.66592089885705; Wed, 19 May 2021 01:20:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244793AbhESIVv (ORCPT ); Wed, 19 May 2021 04:21:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237547AbhESIVu (ORCPT ); Wed, 19 May 2021 04:21:50 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 570EBC06175F for ; Wed, 19 May 2021 01:20:31 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id t11so6966602pjm.0 for ; Wed, 19 May 2021 01:20:31 -0700 (PDT) Received: from ubuntu.localdomain ([103.196.78.23]) by smtp.googlemail.com with ESMTPSA id t1sm7804931pgq.47.2021.05.19.01.20.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 01:20:30 -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:mime-version :content-transfer-encoding; bh=XyiYhLHr3hR1GTY2O/8/PlBeJbCviFxRhysxSfK2xtY=; b=KKeHp/84kv+UkRgsFu4P3cXC+C79LND1HgMm1EF8pU3EPaISb0wKOCHs+/hWGLLpu5 7/FmAUxrwe920A3EyPjldVbXpqGcIpTsUNJIvV3gybCUTg8ZAi2jEFjFd5SXw5ty0urV B1TyR33IpZBo40QmiMGyuB5RRKrnr4FriF1rPVjy1vuKBO0O0DTSMt4/+5Tz11MPCnhR w5705m5rjzvCrHM8ju/cvWKHWsbtJX1DbS5Mdwzq38qCUSkoPy/NxL1vkZZ/MQh15DwS Ic6JN77ea8JJk7HlQ/FIKmA+iQ116Y2KKvkfaB8VIrJ/HiNZX0QeTLQKKgsiE01hE+wS czjA== 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:mime-version :content-transfer-encoding; bh=XyiYhLHr3hR1GTY2O/8/PlBeJbCviFxRhysxSfK2xtY=; b=sEbk/1mRu7BI0EFGNwduGTABJeTpoGy1lvKuq8g/0kui/f0lAQOXHGTOBG9UdISneL zDy1VBfgtC2zHpPAKoqxUuDbhwi3/BlkN6J/uIdQn+v0IYGiLqi6zUEG/d9An3dKgkoW lMqe2UJCZE1nfkzCW9eIWvPISLc0Ms73y0BGUPyF9Ltbs1th9Xp9nQVql4rLfpv7VKBb UxLuTlc6Se+kjNcVRDihLPSBb4Ok7Fkj3pQCeMy0DzL8LyF0iYErDKDjxt4zA2wRE//C NMTO1u+tDTxPxWbYsS9Y0entg9ss3OSV3ha0rCgV9eKdiUMAf2xDvvE4ACCKSyVsoL5O Oz0w== X-Gm-Message-State: AOAM530hgHqnKmWyJCgqhuE3sSisnQMe+5JtCbdZF67ojH+h4WO8aKsh hpDKG4N9qybN/xNpNAV1Y6I= X-Google-Smtp-Source: ABdhPJyBv4/Pk8F8Q6q5ipUi+cz1YJ/a1YsGgGQyvySE+1ap3/11clgvRBoQCV9dKv7mLWLVR7ZgSw== X-Received: by 2002:a17:902:d204:b029:f0:b65d:a14d with SMTP id t4-20020a170902d204b02900f0b65da14dmr9538869ply.25.1621412430656; Wed, 19 May 2021 01:20:30 -0700 (PDT) From: Hriday Hegde Cc: hridayhegde1999@gmail.com, Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Hridya Valsaraju , Suren Baghdasaryan , linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH] staging: android: ashmem: Declared file operation with 'const' keyword Date: Wed, 19 May 2021 01:19:58 -0700 Message-Id: <20210519081958.7223-1-hridayhegde1999@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Fixing following warnings found by checkpatch.pl WARNING: struct file_operations should normally be const 380: FILE: drivers/staging/android/ashmem.c:380: + static struct file_operations vmfile_fops; Signed-off-by: Hriday Hegde --- 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/ash= mem.c index 8ee4320a5dc6..8ff2794b08e3 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, unsi= gned long addr, =20 static int ashmem_mmap(struct file *file, struct vm_area_struct *vma) { - static struct file_operations vmfile_fops; + static const struct file_operations vmfile_fops; struct ashmem_area *asma =3D file->private_data; int ret =3D 0; =20 --=20 2.25.1