<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/edac/edac_device_sysfs.c, branch linux-5.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-01-23T19:01:29Z</updated>
<entry>
<title>EDAC: Use default_groups in kobj_type</title>
<updated>2022-01-23T19:01:29Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2022-01-04T11:24:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=625c6b55699777ece6b87235f579e2cfbde049ce'/>
<id>urn:sha1:625c6b55699777ece6b87235f579e2cfbde049ce</id>
<content type='text'>
There are currently 2 ways to create a set of sysfs files for a
kobj_type, through the default_attrs field, and the default_groups
field. Move the edac sysfs code to use default_groups field which has
been the preferred way since

  aa30f47cf666 ("kobject: Add support for default attribute groups to kobj_type")

so that the obsolete default_attrs field can be removed soon.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Link: https://lore.kernel.org/r/20220104112401.1067148-2-gregkh@linuxfoundation.org
</content>
</entry>
<entry>
<title>EDAC: Use proper list of struct attribute for attributes</title>
<updated>2022-01-23T19:01:25Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2022-01-04T11:24:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=11413893a0d0b19df976eb9a2b600ba56802db2f'/>
<id>urn:sha1:11413893a0d0b19df976eb9a2b600ba56802db2f</id>
<content type='text'>
The EDAC sysfs code is doing some crazy casting of the list of
attributes that is not necessary at all. Instead, properly point to the
correct attribute structure in the lists, which removes the need to
cast anything and the code is now properly typesafe (as much as sysfs
attribute logic is typesafe...)

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Link: https://lore.kernel.org/r/20220104112401.1067148-1-gregkh@linuxfoundation.org
</content>
</entry>
<entry>
<title>EDAC: Fix reference count leaks</title>
<updated>2020-06-17T13:38:35Z</updated>
<author>
<name>Qiushi Wu</name>
</author>
<published>2020-05-28T20:22:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=17ed808ad243192fb923e4e653c1338d3ba06207'/>
<id>urn:sha1:17ed808ad243192fb923e4e653c1338d3ba06207</id>
<content type='text'>
When kobject_init_and_add() returns an error, it should be handled
because kobject_init_and_add() takes a reference even when it fails. If
this function returns an error, kobject_put() must be called to properly
clean up the memory associated with the object.

Therefore, replace calling kfree() and call kobject_put() and add a
missing kobject_put() in the edac_device_register_sysfs_main_kobj()
error path.

 [ bp: Massage and merge into a single patch. ]

Fixes: b2ed215a3338 ("Kobject: change drivers/edac to use kobject_init_and_add")
Signed-off-by: Qiushi Wu &lt;wu000273@umn.edu&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Link: https://lkml.kernel.org/r/20200528202238.18078-1-wu000273@umn.edu
Link: https://lkml.kernel.org/r/20200528203526.20908-1-wu000273@umn.edu
</content>
</entry>
<entry>
<title>edac: move EDAC device definitions to drivers/edac/edac_device.h</title>
<updated>2016-12-15T10:54:51Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2016-10-29T12:01:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6d8ef2472410c8ab004729a71ec829a224699a08'/>
<id>urn:sha1:6d8ef2472410c8ab004729a71ec829a224699a08</id>
<content type='text'>
The edac_core.h header contain data structures and function
definitions for both EDAC MC and EDAC device.

Let's move the devices ones to a separate header file, as part
of a header reorganization.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>EDAC: Remove edac_get_sysfs_subsys() error handling</title>
<updated>2015-12-11T15:56:41Z</updated>
<author>
<name>Borislav Petkov</name>
</author>
<published>2015-11-30T13:20:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d4538000ca4354a2c07cdd31ce994af7d23e24d6'/>
<id>urn:sha1:d4538000ca4354a2c07cdd31ce994af7d23e24d6</id>
<content type='text'>
It cannot fail now. We either load EDAC core after having successfully
initialized edac_subsys or we don't.

Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
</content>
</entry>
<entry>
<title>EDAC: Rip out the edac_subsys reference counting</title>
<updated>2015-12-11T15:56:39Z</updated>
<author>
<name>Borislav Petkov</name>
</author>
<published>2015-11-27T10:40:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=733476cf207faf574b132523ff2aee78b488ed6b'/>
<id>urn:sha1:733476cf207faf574b132523ff2aee78b488ed6b</id>
<content type='text'>
This was really dumb - reference counting for the main EDAC sysfs
object. While we could've simply registered it as the first thing in the
module init path and then hand it around to what needs it.

Do that and rip out all the code around it, thus simplifying the whole
handling significantly.

Move the edac_subsys node back to edac_module.c.

Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
</content>
</entry>
<entry>
<title>edac: Convert debugfX to edac_dbg(X,</title>
<updated>2012-06-11T16:23:49Z</updated>
<author>
<name>Joe Perches</name>
</author>
<published>2012-04-29T20:08:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=956b9ba156dbfdb9cede2b2927ddf8be2233b3a7'/>
<id>urn:sha1:956b9ba156dbfdb9cede2b2927ddf8be2233b3a7</id>
<content type='text'>
Use a more common debugging style.

Remove __FILE__ uses, add missing newlines,
coalesce formats and align arguments.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>edac: Don't add __func__ or __FILE__ for debugf[0-9] msgs</title>
<updated>2012-06-11T16:23:47Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2012-04-29T14:59:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dd23cd6eb1f59ba722a6e6aa228adff7c01404de'/>
<id>urn:sha1:dd23cd6eb1f59ba722a6e6aa228adff7c01404de</id>
<content type='text'>
The debug macro already adds that. Most of the work here was
made by this small script:

$f .=$_ while (&lt;&gt;);

$f =~ s/(debugf[0-9]\s*\(\s*)__FILE__\s*": /\1"/g;
$f =~ s/(debugf[0-9]\s*\(\s*)__FILE__\s*/\1/g;
$f =~ s/(debugf[0-9]\s*\(\s*)__FILE__\s*"MC: /\1"/g;

$f =~ s/(debugf[0-9]\s*\(\")\%s[\:\,\(\)]*\s*([^\"]*\s*[^\)]+)__func__\s*\,\s*/\1\2/g;
$f =~ s/(debugf[0-9]\s*\(\")\%s[\:\,\(\)]*\s*([^\"]*\s*[^\)]+),\s*__func__\s*\)/\1\2)/g;
$f =~ s/(debugf[0-9]\s*\(\"MC\:\s*)\%s[\:\,\(\)]*\s*([^\"]*\s*[^\)]+)__func__\s*\,\s*/\1\2/g;
$f =~ s/(debugf[0-9]\s*\(\"MC\:\s*)\%s[\:\,\(\)]*\s*([^\"]*\s*[^\)]+),\s*__func__\s*\)/\1\2)/g;

$f =~ s/\"MC\: \\n\"/"MC:\\n"/g;

print $f;

After running the script, manual cleanups were done to fix it the remaining
places.

While here, removed the __LINE__ on most places, as it doesn't actually give
useful info on most places.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>edac: convert sysdev_class to a regular subsystem</title>
<updated>2011-12-14T23:21:07Z</updated>
<author>
<name>Kay Sievers</name>
</author>
<published>2011-12-14T23:21:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fe5ff8b84c8b03348a2f64ea9d884348faec2217'/>
<id>urn:sha1:fe5ff8b84c8b03348a2f64ea9d884348faec2217</id>
<content type='text'>
After all sysdev classes are ported to regular driver core entities, the
sysdev implementation will be entirely removed from the kernel.

Cc: Doug Thompson &lt;dougthompson@xmission.com&gt;
Cc: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Cc: Lucas De Marchi &lt;lucas.demarchi@profusion.mobi&gt;
Cc: Borislav Petkov &lt;borislav.petkov@amd.com&gt;
Signed-off-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Fix common misspellings</title>
<updated>2011-03-31T14:26:23Z</updated>
<author>
<name>Lucas De Marchi</name>
</author>
<published>2011-03-31T01:57:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=25985edcedea6396277003854657b5f3cb31a628'/>
<id>urn:sha1:25985edcedea6396277003854657b5f3cb31a628</id>
<content type='text'>
Fixes generated by 'codespell' and manually reviewed.

Signed-off-by: Lucas De Marchi &lt;lucas.demarchi@profusion.mobi&gt;
</content>
</entry>
</feed>
