[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210829164921.u5ntqk5jz2v3hlgr@h510>
Date: Sun, 29 Aug 2021 16:49:35 +0000
From: Bryan Brattlof <hello@...anbrattlof.com>
To: Krish Jain <krishjain02939@...il.com>
Cc: Greg KH <gregkh@...uxfoundation.org>,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Declare the file_operations struct as const
On this day, August 29, 2021, thus sayeth Krish Jain:
> > >
> > > Hi, what option do you mean? I already ran make allmodconfig and sudo
> > > make modules_install install and then make "CCFLAGS=-Werror W=1
> > > M=drivers/staging/android/" and now I do get output but one line
> > > "WARNING: Symbol version dump "Module.symvers" is missing. Modules may
> > > not have dependencies or modversions. You may get many unresolved
> > > symbol warnings." . Then I tried "make CCFLAGS=-Werror V=1
> > > M=drivers/staging/android/" and that outputted the following:
> > >
> >
> > Most of the answers you're asking for are going to get vague responses
> > (if any) on the mailing lists. The idea being (and I agree with) that
> > giving out the answers will steal your opportunity to explore and learn
> > the material yourself.
> >
> > Yes, it would be faster if we told you the answer, but ultimately, we
> > would be doing a disservice to you.
> >
> > Besides, more times than not we (me especially) don't have the answer.
> >
> > With that said, I will give a (generous) hint. :)
> >
>
> Hi. Do I have to build the kernel once before this works? Or can I
> just build a module directly?
>
Again, do not allow others to rob you of learning how to solve these
issues yourself. I *strongly* encourage you to familiarize yourself with
the Kernel Build System in the Documentation.
https://www.kernel.org/doc/html/latest/kbuild/modules.html
Specifically the first paragraph of "2. How to Build External Modules"
It may seem like a lot for such a simple issue but it *is* worth it.
~Bryan
Powered by blists - more mailing lists