]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
ras-page-isolation: don't use "/**" for normal comments
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 18 Nov 2024 15:11:30 +0000 (16:11 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 18 Nov 2024 15:11:30 +0000 (16:11 +0100)
The usage of /** is reserved for doxygen markups. Don't use
it where it doesn't belong.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
ras-page-isolation.c

index aa1dcf8df919dd21281b83489bcc65da63dc603f..eb1f3a9509be2b0c70f20ffaa106b239227a89e3 100644 (file)
@@ -181,7 +181,7 @@ parse:
                        value *= units->val;
                        if (tmp != 0 && value / tmp != units->val)
                                config->overflow = true;
-                       /**
+                       /*
                         * if units->val is 1,  config->env is greater than ulong_max, so it is can strtoul
                         * if failed, the value is greater than ulong_max, set config->overflow = true
                         */
@@ -220,7 +220,7 @@ static void page_isolation_init(void)
 {
        char threshold_string[PARSED_ENV_LEN];
        char cycle_string[PARSED_ENV_LEN];
-       /**
+       /*
         * It's unnecessary to parse threshold configuration when offline
         * choice is off.
         */
@@ -269,7 +269,7 @@ static void row_isolation_init(void)
 {
        char threshold_string[PARSED_ENV_LEN];
        char cycle_string[PARSED_ENV_LEN];
-       /**
+       /*
         * It's unnecessary to parse threshold configuration when offline
         * choice is off.
         */
@@ -358,7 +358,7 @@ static void page_record(struct page_record *pr, unsigned int count, time_t time)
        unsigned long tolerate;
 
        if (period >= cycle.val) {
-               /**
+               /*
                 * Since we don't refresh automatically, it is possible that the period
                 * between two occurrences will be longer than the pre-configured refresh cycle.
                 * In this case, we tolerate the frequency of the whole period up to
@@ -374,7 +374,7 @@ static void page_record(struct page_record *pr, unsigned int count, time_t time)
        if (pr->count >= threshold.val) {
                log(TERM, LOG_INFO, "Corrected Errors at %#llx exceeded threshold\n", pr->addr);
 
-               /**
+               /*
                 * Backup ce count of current cycle to enable next round, which actually
                 * should never happen if we can disable overflow completely in the same
                 * time unit (but sadly we can't).