randomconfig fixes
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 23 Jun 2020 01:13:55 +0000 (03:13 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 23 Jun 2020 01:13:55 +0000 (03:13 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/brctl.c
procps/top.c

index 68725f93ca811db71a5e5c66c6aaf096a11e2b51..2f4ac4a878812e895ca8d218399fba81050d2998 100644 (file)
@@ -107,7 +107,7 @@ static unsigned str_to_jiffies(const char *time_str)
 
 #define filedata bb_common_bufsiz1
 
-#if ENABLE_FEATURE_BRCTL_SHOW
+#if ENABLE_FEATURE_BRCTL_SHOW || ENABLE_FEATURE_BRCTL_FANCY
 static int read_file(const char *name)
 {
        int n = open_read_close(name, filedata, COMMON_BUFSIZE - 1);
@@ -120,7 +120,9 @@ static int read_file(const char *name)
        }
        return n;
 }
+#endif
 
+#if ENABLE_FEATURE_BRCTL_SHOW
 /* NB: we are in /sys/class/net
  */
 static int show_bridge(const char *name, int need_hdr)
index 5c41e8e10a8b2b29e80167602db69ea8ad8e72db..8d39526ff208db6ba0bb56395eec8ff07c1665b7 100644 (file)
@@ -979,9 +979,11 @@ static unsigned handle_input(unsigned scan_mask, duration_t interval)
                IF_FEATURE_TOPMEM(&& scan_mask != TOPMEM_MASK)
                ) {
                        scan_mask ^= PSSCAN_TASKS;
+#  if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE
                        free(prev_hist);
                        prev_hist = NULL;
                        prev_hist_count = 0;
+#   endif
                        continue;
                }
 # endif