Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp935648pxb; Wed, 1 Sep 2021 13:07:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0nw0zds0nDD6djywlnTaNxP+8LG2q1XhXTakB5oqk3BgyuqOKGEDR72dZ1hdR7zkBilKZ X-Received: by 2002:a05:6402:8c6:: with SMTP id d6mr1452761edz.30.1630526871427; Wed, 01 Sep 2021 13:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630526871; cv=none; d=google.com; s=arc-20160816; b=YVO/HVa7YJqmFfj2ubQeRFWdIrwzX6EgbiDbeQPf2WnsyIgqEBLCJdG/rFwmghN2EO LDisYXIgs258fCtW21Ww4RVbNB1sjsqFfEWnU5qFtflxhpClgVD5W/3sBz7BMrgSD3GR VYXVmvy2FCQ5hCgKgDSJWxDe4ZepYNqMEONL9jHoJzLtS+omu4SshZC712NZy/NKq2rw EluEZNLSnoPJZSRP/Jd9DlPpodEKB/R/YUph9jghV3WTs1/y8G19cu3cRFyimrTv4fvj kWpj5DShHK9gSWbPXpoZGAD3ZNP0ajdJH/EGJfxmNdu8+y5hkc+CGR1AbENxUuMnqBTS gbYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=N8B7cD0D9ZFwyRPa4aYEuuZAbEVPjLVcuT/MQvCFZ4E=; b=fu/Vn3JqUOZthHaGSPlzrENwhM+mcIKg8iWiVfOYdFo15N9slskRmvYwM6gvEKN79+ SXG3wytO9KGag9DWb5j03y8UaY++3lTfRbWIWaYDheu3R63E1J3Ie1rIdVFQVjXnfKFu HeExPCh4xK70TiwijkdrmGLMVG6phayCnEpFC5aF6xZOP5i/3aVkS0SGCKzsPjvjF3b6 13xHUU9OVjiV5NeFOhKHpXMi2ImIKOIKkYwQoabhrJKjOWUmvpY1ezF26L574IMAC2px OlYNgHq8GEGrBeOwG72MHB/+s8EWoYU2q8idI/Hydz0gcoIs3Qe/xxLfkJsbfejbASyw WpYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=T4SZZPrP; 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 b26si493904eds.500.2021.09.01.13.07.28; Wed, 01 Sep 2021 13:07:51 -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=20210112 header.b=T4SZZPrP; 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 S1343668AbhIAPfr (ORCPT + 99 others); Wed, 1 Sep 2021 11:35:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244434AbhIAPfp (ORCPT ); Wed, 1 Sep 2021 11:35:45 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D048C061575 for ; Wed, 1 Sep 2021 08:34:48 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id gp20-20020a17090adf1400b00196b761920aso1914050pjb.3 for ; Wed, 01 Sep 2021 08:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N8B7cD0D9ZFwyRPa4aYEuuZAbEVPjLVcuT/MQvCFZ4E=; b=T4SZZPrPT2o7P4c6l1hWht9BmeX9neTWX/U9dCtFAbIDE0jFkgSuUtfVVsgSgMVeg6 vwdxfvvT4RhLD0BOfJ2GKCfyccZkXF4pgONNsjLUk994SrSUOJeuoxdndAA5E9ybRSUH wZZcsiiiO0FWr5PSZXbaiS9IyCiAH4t4yfJCtF1sLnMfRsoyC06pucJ9wy4SQ+0OXMPN bGtw5iEm1ZCG3Kf+w/sFsSVnlP4uKITchdNOv2oTAdsjIvUcqrE8xuRKOATKgC4rYn65 t0hlXbk694aBoUWouJY04jcvk2IFb/pLZH2OT7MFNY6SjVrayJ8VfjEXPga9uwE066i2 A61A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N8B7cD0D9ZFwyRPa4aYEuuZAbEVPjLVcuT/MQvCFZ4E=; b=aSVRb0Y++qv+Jv+tgKTZPYje6QjklkaYOpCZBDeM72WfoGc7wsTtEFQV+vNcxWAAY0 1YCFQkMd3n8icb46UCzNMFtawvGbXCRW1QqohTD4u2uWbRhWyIPOY1iSUpaSBspDyUAw GUgF2T0iGhfuUvrZWx7cpHVMLa0koi8V9xsaZbqH99HjrhAI6fVTYhWz7e6dBbkvRzv1 /+MsU+9cmikcin6WdUBztVm10oVm2josnHgmaKXjoF3S30f7+8+e3f5JoPsH3bMoVAq6 qd4GD+Jm90m+hJTUn6A9Qluowd0fl9hZdxjOOahXYl4hYqixRePei8lYXPMVBKIp9VVz NhVQ== X-Gm-Message-State: AOAM533Ie9B0ZuWQWRcfrfKh4OnpIbkvp313dAPzeZEZMUdL2EsIBYzT V5N5UqJ2rNEZXhTyL5Ved/Wnjk0hK+VhGztYlCw= X-Received: by 2002:a17:90a:8801:: with SMTP id s1mr12491424pjn.166.1630510487915; Wed, 01 Sep 2021 08:34:47 -0700 (PDT) MIME-Version: 1.0 References: <20210829144531.c2syu4vv4s22dlg7@h510> <20210831133533.6aayzjghdakrhy56@h510> <13366651.n50aozgL3V@localhost.localdomain> <20210831230014.cp46vho2hnndacjp@h510> In-Reply-To: From: Krish Jain Date: Wed, 1 Sep 2021 17:34:36 +0200 Message-ID: Subject: Re: [PATCH] Declare the file_operations struct as const To: Greg KH Cc: Bryan Brattlof , "Fabio M. De Francesco" , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 1, 2021 at 5:30 PM Greg KH wrote: > > On Wed, Sep 01, 2021 at 05:20:13PM +0200, Krish Jain wrote: > > On Wed, Sep 1, 2021 at 1:00 AM Bryan Brattlof wrote: > > > > > > On this day, August 31, 2021, thus sayeth Fabio M. De Francesco: > > > > > > > > I just want to *really* thank you for the hard work you got involved and that > > > > you carried out with one of the highest levels of professionalism (and > > > > patience :)) very few of us could ever equal (not I, for sure). > > > > > > > > I thank you also not for the technical hints you gave to Krish, instead for > > > > your your choice "to not rob [you] Krish the opportunity to learn". > > > > > > > > Actually I was tempted to write something like "first do this, than that, and > > > > finally run this tool". But I was able to desist, by learning from you how > > > > people should be helped for real. > > > > > > > > Most of us here should learn by your attitude. > > > > > > > > Thanks again, seriously. > > > > > > > > > > Thank you for such kind words, Fabio. > > > > > > I was very lucky to be, and still am, surrounded by people who > > > demonstrated this idea to me when I was young. I am very happy to see > > > others here see how beneficial and helpful (in the long term) learning > > > this way can be. > > > > > > I'm grateful to have found and be a part of this community. > > > ~Bryan > > > > > > > > > > > Interesting. > > > > "make drivers/staging/android/ " works now (finally!) and shows me the > > errors when I mess up in the file ashmem.c for example. > > Furthermore, " make CCFLAGS=-Werror W=1 drivers/staging/android/ " > > outputs the same errors too just more verbose. So it works completely > > now, However, "make CCFLAGS=-Werror W=1 M=drivers/staging/android/ > > " just takes to new prompt line and does not output anything. Do you > > know why? > > "M=pathname" is different than "pathname", you are asking for different > things to happen here, so depending on your kernel configuration, > different things will be built (or not built). > > And don't mes with CCFLAGS settings for building the kernel unless you > _really_ know what you are doing. For staging tree work, it's not > advised at all. > > good luck! > > greg k-h Oh ok, thanks Greg. I only attempted to use "make CCFLAGS=-Werror W=1 M=drivers/staging/android/" as that's the command Bryan used earlier and it worked. "As for your patch, I built the driver using: $ make CCFLAGS=-Werror W=1 M=drivers/staging/android" Can you tell me why this is the case? And whether I can just start working on an android driver patch and testing whether the android driver builds successfully using "make drivers/staging/android/ " instead of that command, would it be the same effectively? Best Regards, Thanks so much for helping a high schooler learn his way around the kernel