From: Janosch Frank <frankja@linux.ibm.com>
To: Steffen Eiden <seiden@linux.ibm.com>,
linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org
Cc: Ingo Franzki <ifranzki@linux.ibm.com>,
Harald Freudenberger <freude@linux.ibm.com>,
Christoph Schlameuss <schlameuss@linux.ibm.com>,
Claudio Imbrenda <imbrenda@linux.ibm.com>
Subject: Re: [PATCH v1 1/2] s390/uv: Refactor uv-sysfs creation
Date: Tue, 1 Oct 2024 13:43:59 +0200 [thread overview]
Message-ID: <9c1edf9c-589c-4998-8211-adc0e766438c@linux.ibm.com> (raw)
In-Reply-To: <20240930132042.2081982-2-seiden@linux.ibm.com>
On 9/30/24 3:20 PM, Steffen Eiden wrote:
> Streamline the sysfs generation to make it more extensible.
> Add a function to create a sysfs entry in the uv-sysfs dir.
> Use this function for the query directory.
>
> Reviewed-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
> @@ -767,17 +786,11 @@ static int __init uv_info_init(void)
> if (rc)
> goto out_kobj;
>
> - uv_query_kset = kset_create_and_add("query", NULL, uv_kobj);
> - if (!uv_query_kset) {
> - rc = -ENOMEM;
> + rc = uv_sysfs_dir_init(&uv_query_attr_group, &uv_query_kset, "query");
> + if (rc)
> goto out_ind_files;
> - }
> -
> - rc = sysfs_create_group(&uv_query_kset->kobj, &uv_query_attr_group);
> - if (!rc)
> - return 0;
> + return 0;
Could've left a \n before the return so it doesn't look weird if only
this patch is applied. But that's not important.
>
> - kset_unregister(uv_query_kset);
> out_ind_files:
> sysfs_remove_files(uv_kobj, uv_prot_virt_attrs);
> out_kobj:
> @@ -785,4 +798,4 @@ static int __init uv_info_init(void)
> kobject_put(uv_kobj);
> return rc;
> }
> -device_initcall(uv_info_init);
> +device_initcall(uv_sysfs_init);
next prev parent reply other threads:[~2024-10-01 11:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-30 13:20 [PATCH v1 0/2] s390/uv: Provide Host-key-hashes in sysfs Steffen Eiden
2024-09-30 13:20 ` [PATCH v1 1/2] s390/uv: Refactor uv-sysfs creation Steffen Eiden
2024-10-01 11:43 ` Janosch Frank [this message]
2024-09-30 13:20 ` [PATCH v1 2/2] s390/uv: Provide host-key hashes in sysfs Steffen Eiden
2024-10-01 11:41 ` Janosch Frank
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=9c1edf9c-589c-4998-8211-adc0e766438c@linux.ibm.com \
--to=frankja@linux.ibm.com \
--cc=freude@linux.ibm.com \
--cc=ifranzki@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=schlameuss@linux.ibm.com \
--cc=seiden@linux.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®