mirror of
https://github.com/breeze303/nss-packages.git
synced 2025-12-16 16:57:29 +00:00
To keep fork as closely synced with upstream, move NSS packages back into repository. Not sure why they were moved out from my original fork. * nss-firmware * qca-nss-crypto * qca-nss-cfi Removed the following: * mhz (already available in packages repo) * qrtr (unecessary, and has been broken for years) Also moved packages out of `qca` and back into root directory.
15 lines
575 B
Diff
15 lines
575 B
Diff
--- a/nss_stats.c
|
|
+++ b/nss_stats.c
|
|
@@ -380,8 +380,9 @@ size_t nss_stats_print(char *node, char
|
|
*/
|
|
void nss_stats_create_dentry(char *name, const struct file_operations *ops)
|
|
{
|
|
- if (!debugfs_create_file(name, 0400, nss_top_main.stats_dentry, &nss_top_main, ops)) {
|
|
- nss_warning("Failed to create debug entry for subsystem %s\n", name);
|
|
+ if (!debugfs_lookup(name, nss_top_main.stats_dentry))
|
|
+ if (!debugfs_create_file(name, 0400, nss_top_main.stats_dentry, &nss_top_main, ops)) {
|
|
+ nss_warning("Failed to create debug entry for subsystem %s\n", name);
|
|
}
|
|
}
|
|
|