From: Greg KH <greg@kroah.com>
To: Mark Brown <broonie@kernel.org>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
alsa-devel@alsa-project.org, stable@vger.kernel.org
Subject: Re: [PATCH 2/2] ASoC: dapm: Adapt for debugfs API change
Date: Fri, 21 Jun 2019 16:53:09 +0200 [thread overview]
Message-ID: <20190621145309.GA6313@kroah.com> (raw)
In-Reply-To: <20190621143053.GH5316@sirena.org.uk>
On Fri, Jun 21, 2019 at 03:30:53PM +0100, Mark Brown wrote:
> On Fri, Jun 21, 2019 at 03:22:22PM +0200, Greg KH wrote:
> > On Fri, Jun 21, 2019 at 12:33:57PM +0100, Mark Brown wrote:
>
> > > struct dentry *d;
> > >
> > > - if (!parent)
> > > + if (!parent || IS_ERR(parent))
> > > return;
>
> > How can parent be NULL?
>
> It was more effort than it was worth to check to see if it could
> actually be NULL through default initialization or something and fix it
> than just not delete the check so I just left it there. I'll probably
> go back and clean it up more thorougly at some point.
>
> > I am trying to make it so that debugfs doesn't return anything for when
> > a file is created. Now if that will ever be possible or not, I don't
> > know, but I am pretty close in one of the branches in my driver-core
> > tree...
>
> You mentioned this in a mail last week, I then replied pointing out that
> this is not helpful as it reduces the robustness and quality of our
> debugging tools and you then did not respond.
Sorry, had lots of other stuff to work on, it's in my queue to respond
to still...
> This is a view I still hold and in any case debugfs as it stands (and
> was in the kernel versions since this was broken) is still capable of
> reporting errors so we should fix that.
Sort story is, I am trying to change it so that it can not report errors :)
And even then, no kernel code should be doing anything different if
debugfs calls fail or not, that is why I am I making these changes. No
"real" code should ever be affected, and right now, it is, if something
goes wrong with debugfs.
So removing those checks is the goal here. Your driver code should not
care if debugfs is working at all or not.
thanks,
greg k-h
next prev parent reply other threads:[~2019-06-21 14:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-21 11:33 [PATCH 1/2] ASoC: core: Adapt for debugfs API change Mark Brown
2019-06-21 11:33 ` [PATCH 2/2] ASoC: dapm: " Mark Brown
2019-06-21 13:22 ` Greg KH
2019-06-21 14:30 ` Mark Brown
2019-06-21 14:53 ` Greg KH [this message]
2019-06-21 15:20 ` Mark Brown
2019-06-24 16:32 ` Applied "ASoC: dapm: Adapt for debugfs API change" to the asoc tree Mark Brown
2019-06-21 13:20 ` [PATCH 1/2] ASoC: core: Adapt for debugfs API change Greg KH
2019-06-24 16:32 ` Applied "ASoC: core: Adapt for debugfs API change" to the asoc tree Mark Brown
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=20190621145309.GA6313@kroah.com \
--to=greg@kroah.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=stable@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).