Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1973872pxp; Sun, 13 Mar 2022 05:40:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypJnQlmIHGiupPyUfODpKLBRLJYOMaJb1JG+nUUuFkjjAM9QINSsIuiZ/sGbVyfeXAO0Um X-Received: by 2002:a17:902:f64d:b0:151:3895:46bf with SMTP id m13-20020a170902f64d00b00151389546bfmr19208342plg.31.1647175204155; Sun, 13 Mar 2022 05:40:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647175204; cv=none; d=google.com; s=arc-20160816; b=HAQgNEZfOChpmosM5EQ3Q8B9iGZDmRqMG14E+2tgu9Ic8R3DJuS8vVxbdUXyCRIiI7 ecqZhpuTLkayYFei9RSQy2Cvm2TD8/73tA4IyUU+fXzUPWVUk1aC56OWHvdnGCrJ7Q16 OEwAxQOg8RnFMdE5+ygLlypxVNhxzke/FEp4Zisxc3C1PhNtt/3njtuEUcpIAw3hQ+TF xtcY2Xuq7sy+5JtEDeZ4smkV0PizW5oeLxu7qfrsZK1F0471g8oGMJmMwZUjv1ToWJ2j cKBSAlQ56sE+xxq/dHYJklf9lhcTV3XNzEYPhcjwCiuIO6iP8E9kneUQg3M+5cn3FYCM jXKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=gkrxwfNAo+wqaPPhsyYAGfR02IOHUYddLvZA6FjMTBI=; b=W4fX4IwIhlrWqxr+NzTBEQ4B4cTB+ROqujs9IUPyGQ1d2bEvReyCvCRAD+pcY77e79 89PZaE5pB3F8SENOHPt/WyZB4tvedtsze69WGTOvL5J9flvsoMbqIg3PJ44PZ2BczcKn oUM0JnK0Ohf1ZvYrW2Kdaxq0t0db/UdKfBjXPHNbFk7c1dsWFZv/2rWhThOOVS7/uQbc UHtxNQg/WT5x9Dxl/OdM7jnaH1G6wRHoe4K++OZFWgwHaL2pt/hvQL4kW6U6OYwum7Pq JtgzQ80q/V+tt716HKOWb68BLW/6OfGspFFP/0jcxwfSlLK8hNMSNHIlxi4nh5a7Cwko wQ1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FxJI0HFe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020a17090301d100b00151aae03a1csi13764086plh.539.2022.03.13.05.39.52; Sun, 13 Mar 2022 05:40:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FxJI0HFe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232755AbiCLVoX (ORCPT + 99 others); Sat, 12 Mar 2022 16:44:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232749AbiCLVoU (ORCPT ); Sat, 12 Mar 2022 16:44:20 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD5513EB82 for ; Sat, 12 Mar 2022 13:43:12 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id g17so20910930lfh.2 for ; Sat, 12 Mar 2022 13:43:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=gkrxwfNAo+wqaPPhsyYAGfR02IOHUYddLvZA6FjMTBI=; b=FxJI0HFe2HmQgNZiUkdK9qEcNJJeSgk4FpoWUuXVXhAG8PE6Z/+Wb1cQUhO8D8Oltz gpa3xaJ5I7fTr48Jxvxm8vFopvlo5SnVkTZk5zQA3NjrSol6HjXqCryzaIJ+Jt3TBQqn IePtH5560IjsGAuL0JrBmszuiytvSoJTC8hZ2cjUzx+qYnybpYijooYq5UH7JkZo/pjM broSIP1ct1Rz7ddFtS/rUhUxLtIwPjZ810pO3bERK2Bv+jNzNuq9R4IKkAFOG59hXOyt DYPiwdT6WPd4flHWLoEc+CxIAUC8YdNFHxBIHNBbAQY1+OFU/mp5dFWNMOc6RL0VuJDH IWRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=gkrxwfNAo+wqaPPhsyYAGfR02IOHUYddLvZA6FjMTBI=; b=29pxryeeFtD5K0nOiP7KrSa0TN1CYUDfDvIZMc1okUjvQUtQuWNeIyqA9T45BCWHT8 BPBdfgVSTKJui+HY4lUQFqklKKLJczbk1DbtwFm/p+Kc5NwYQx2/Hbyx+CoyjGjbHFDY Sy76vzkyIbn1D0vItmzTK8nCczgZkG7rdSB8cFi5Q1u5b7EH5qiig5e9YcAMKtmjabNr 5zS7lemXhx6idONoif86I/QLlG4hQn/lscE5pi2UXMwyzl3JV55jUuIuEi/BLwdgH5ar mrvrX4Fg3XpiDTuk/eZe9vyxUXtbMdfcDcThyL/jehQMAf6KpODxZxh6bGjiv0WaWlpS QN1g== X-Gm-Message-State: AOAM533M5gKF9+5NzrxyOQI39KstROgGmZlt6PlapH81W7noyDLhzWkh oJoEacqtVf/yw3NecC/ge1uwCY983E0= X-Received: by 2002:a05:6512:2316:b0:446:a84a:173e with SMTP id o22-20020a056512231600b00446a84a173emr8994713lfu.73.1647121390992; Sat, 12 Mar 2022 13:43:10 -0800 (PST) Received: from [192.168.1.11] ([94.103.229.107]) by smtp.gmail.com with ESMTPSA id b1-20020ac247e1000000b0044842b76861sm2377192lfp.140.2022.03.12.13.43.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 12 Mar 2022 13:43:10 -0800 (PST) Message-ID: <303ed0c8-8e2c-51a4-a4da-be973a25cdec@gmail.com> Date: Sun, 13 Mar 2022 00:43:08 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH] staging: android: ashmem: Declared file operation with const keyword Warning found by checkpatch.pl script. Content-Language: en-US To: shaikh kamal Cc: Greg Kroah-Hartman , =?UTF-8?Q?Arve_Hj=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 References: <20220312204128.3942-1-shaikhkamal2012@gmail.com> From: Pavel Skripkin In-Reply-To: <20220312204128.3942-1-shaikhkamal2012@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shaikh, On 3/12/22 23:41, shaikh kamal wrote: > Signed-off-by: shaikh kamal > --- > 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..4c6b420fbf4d 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; > + static const struct file_operations vmfile_fops; > struct ashmem_area *asma = file->private_data; > int ret = 0; > Are you sure this patch compiles? vmfile_fops is overrided few lines below odd checkpatch.pl warning... With regards, Pavel Skripkin