All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: sayli karnik <karniksayli1995@gmail.com>
Cc: outreachy-kernel <outreachy-kernel@googlegroups.com>
Subject: Re: [Outreachy kernel] Doubt regarding use of a function
Date: Sat, 11 Mar 2017 08:02:47 +0100	[thread overview]
Message-ID: <20170311070247.GA5990@kroah.com> (raw)
In-Reply-To: <CAKG5xWjEB0QWQ732XVxTmAdyAt8Z5k4U2DWmZsxG-xKvyXA5fg@mail.gmail.com>

On Sat, Mar 11, 2017 at 12:14:47PM +0530, sayli karnik wrote:
> On Sat, Mar 11, 2017 at 2:57 AM, Greg KH <gregkh@linuxfoundation.org> wrote:
> > On Fri, Mar 10, 2017 at 10:54:10PM +0530, sayli karnik wrote:
> >> ieee80211 has the following function which to me does nothing-
> >> void ieee80211_tkip_null(void)
> >> {
> >>      printk("============>%s()\n", __func__);
> >>      return;
> >> }
> >
> > What exactly directory/file is this?
> >
> staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c: function definition
> staging/rtl8192u/ieee80211/ieee80211_module.c: function call

Ah, that trainwreck :(

> >> Before its function call there is this comment-
> >> /* These function were added to load crypte module autoly */
> >>          ieee80211_tkip_null();
> >>
> >> Is this function needed in the driver?
> >
> > Yes, the function says what it is there for.
> >
> >> If not, can I send in a patch removing it?
> >
> > If you do, you have to fix the auto-loading of the module properly :)
> >
> Is there a way to do that apart from the one currently used?

First determine if the comment is really correct or not.  Then you can
answer this question.  Maybe I was originally wrong in my statement,
I'll leave it up to you to do the research and figure it out :)

thanks,

greg k-h


      reply	other threads:[~2017-03-11  7:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-10 17:24 Doubt regarding use of a function sayli karnik
2017-03-10 17:26 ` [Outreachy kernel] " Julia Lawall
2017-03-10 17:35   ` sayli karnik
2017-03-10 17:50     ` Julia Lawall
2017-03-10 21:28       ` Greg Kroah-Hartman
2017-03-10 21:27 ` Greg KH
2017-03-11  6:44   ` sayli karnik
2017-03-11  7:02     ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170311070247.GA5990@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=karniksayli1995@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.