alicelinux

A lightweight musl + clang/llvm + libressl + busybox distro
git clone https://codeberg.org/emmett1/alicelinux
Log | Files | Refs | README | LICENSE

kernel-6.8-tca.patch (1400B)


      1 diff --git a/networking/tc.c b/networking/tc.c
      2 index 3a79fd2..3020bfb 100644
      3 --- a/networking/tc.c
      4 +++ b/networking/tc.c
      5 @@ -231,6 +231,7 @@ static int cbq_parse_opt(int argc, char **argv, struct nlmsghdr *n)
      6  	return 0;
      7  }
      8  #endif
      9 +#ifdef TCA_CBQ_MAX
     10  static int cbq_print_opt(struct rtattr *opt)
     11  {
     12  	struct rtattr *tb[TCA_CBQ_MAX+1];
     13 @@ -322,6 +323,7 @@ static int cbq_print_opt(struct rtattr *opt)
     14   done:
     15  	return 0;
     16  }
     17 +#endif
     18  
     19  static FAST_FUNC int print_qdisc(
     20  		const struct sockaddr_nl *who UNUSED_PARAM,
     21 @@ -372,8 +374,10 @@ static FAST_FUNC int print_qdisc(
     22  		int qqq = index_in_strings(_q_, name);
     23  		if (qqq == 0) { /* pfifo_fast aka prio */
     24  			prio_print_opt(tb[TCA_OPTIONS]);
     25 +#ifdef TCA_CBQ_MAX
     26  		} else if (qqq == 1) { /* class based queuing */
     27  			cbq_print_opt(tb[TCA_OPTIONS]);
     28 +#endif
     29  		} else {
     30  			/* don't know how to print options for this qdisc */
     31  			printf("(options for %s)", name);
     32 @@ -442,9 +446,11 @@ static FAST_FUNC int print_class(
     33  		int qqq = index_in_strings(_q_, name);
     34  		if (qqq == 0) { /* pfifo_fast aka prio */
     35  			/* nothing. */ /*prio_print_opt(tb[TCA_OPTIONS]);*/
     36 +#ifdef TCA_CBQ_MAX
     37  		} else if (qqq == 1) { /* class based queuing */
     38  			/* cbq_print_copt() is identical to cbq_print_opt(). */
     39  			cbq_print_opt(tb[TCA_OPTIONS]);
     40 +#endif
     41  		} else {
     42  			/* don't know how to print options for this class */
     43  			printf("(options for %s)", name);