From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Wolfram Sang <w.sang@pengutronix.de>
Cc: kernel-janitors@vger.kernel.org,
Ralf Baechle <ralf@linux-mips.org>,
"Eric W. Biederman" <ebiederm@xmission.com>,
linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] arch/mips/txx9/generic: init dynamic bin_attribute
Date: Fri, 12 Mar 2010 18:34:51 +0000 [thread overview]
Message-ID: <20100312183450.GC8736@core.coreip.homeip.net> (raw)
In-Reply-To: <1268377431-11671-2-git-send-email-w.sang@pengutronix.de>
On Fri, Mar 12, 2010 at 08:03:49AM +0100, Wolfram Sang wrote:
> Commit 6992f5334995af474c2b58d010d08bc597f0f2fe introduced this requirement.
> Found with coccinelle, but fixed manually. Compile tested on X86 where
> possible.
>
Regarding all 3 - it looks like these dynamically alocated attributes
could be converted to statically allocated ones. I'd recommend doing
that instead (in fact, I posted patch for the firmware_class couple days
ago).
> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
> Cc: Ralf Baechle <ralf@linux-mips.org>
> Cc: Eric W. Biederman <ebiederm@xmission.com>
> ---
> arch/mips/txx9/generic/setup.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c
> index 7174d83..95184a0 100644
> --- a/arch/mips/txx9/generic/setup.c
> +++ b/arch/mips/txx9/generic/setup.c
> @@ -956,6 +956,7 @@ void __init txx9_sramc_init(struct resource *r)
> if (!dev->base)
> goto exit;
> dev->dev.cls = &txx9_sramc_sysdev_class;
> + sysfs_bin_attr_init(&dev->bindata_attr);
> dev->bindata_attr.attr.name = "bindata";
> dev->bindata_attr.attr.mode = S_IRUSR | S_IWUSR;
> dev->bindata_attr.read = txx9_sram_read;
--
Dmitry
next prev parent reply other threads:[~2010-03-12 18:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-12 7:03 init dynamic bin_attribute structures Wolfram Sang
2010-03-12 7:03 ` [PATCH 1/3] arch/mips/txx9/generic: " Wolfram Sang
2010-03-12 18:34 ` Dmitry Torokhov [this message]
2010-03-13 2:28 ` [PATCH 1/3] arch/mips/txx9/generic: init dynamic bin_attribute Wolfram Sang
2010-03-13 8:33 ` Dmitry Torokhov
2010-03-15 17:49 ` Ralf Baechle
2010-03-12 7:03 ` [PATCH 2/3] drivers/base: init dynamic bin_attribute structures Wolfram Sang
2010-03-13 2:11 ` Wolfram Sang
2010-03-12 7:03 ` [PATCH 3/3] drivers/rtc: " Wolfram Sang
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=20100312183450.GC8736@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=ebiederm@xmission.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--cc=w.sang@pengutronix.de \
/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