From patchwork Sun Sep 22 14:50:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3513 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3CEEF40D67 for ; Sun, 22 Sep 2024 16:50:21 +0200 (CEST) Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-a8d1095442csf255069766b.3 for ; Sun, 22 Sep 2024 07:50:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727016621; cv=pass; d=google.com; s=arc-20240605; b=Njmq5Ge/qOMr7Y45og6W467IWSgajpsjZQZQwY8S4I8w+n472MGxGXeZ6Vif7E4Arc 78uZkPgByDlsxQ45S1540MqjJsrs+BCbuJ7NyidDLPhu6mvijmtJOeFQghkkpKJHzsUm BgWjnN5NMYGx7tVA/bw1IIqj1z8OA8DnBFv8uE82BvqkJLeyTidR1MQVVCugkXeCmKQM o9BpsZyvdg0j7nc2Ucb7eZKDuFASNjSTt++207EW+nWe6HqJQ4ckoijpPrKWcluIkd8h Cn4ZnDiFcik9WtgVY6f+3Ao5txq4yUKho6BgzDRUi09Vv9/7dqYu+XOKqiSSctDFNBgq bYFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=1pFEE7Fbi5UqlKhWUPnPzHUET4DJO7pibeANPJR/+mY=; fh=FkFU0Zk7LlmJP+lV0aMcyM1kSjsnW7yVgodWrcrcbPQ=; b=bgzavD1qw86O5Yq082d/BogCMFETn9+pxfjI/nJOWiWa2+zVLRRq3fhJTviomSizEE G3jG/ynhAFb5BC1ihpFFMx0pf0pgIEjEBMTpUlVJN/A1KxUxqUL0KD3eAx4JNqhjejE+ eGAzemp9QrAO3r19fYFI09edj3ZxUwWjMIaF51NI3ey4jbFZo92cMmV3nSnGXGJJY/43 CI1h6pYZNKY/Ns+cE2P4UYfLpeyvMhldaLPXF38BPHfHUhNp3Yjo577TfMlY3B7yzK4/ bQTsyXO8sk0NdYyRZ/SPmxPUPODZ5MY1dLemtw/iU8OFf2ozxugeDH5mmUrooseE0bHC YWCA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ORB9Og9z; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1727016621; x=1727621421; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=1pFEE7Fbi5UqlKhWUPnPzHUET4DJO7pibeANPJR/+mY=; b=Tvr23UEjhA6ls+CLH/sXZ3vKNFaW/2EJ1XtAJvNzosLzfCSl/wxSHBnRox6LhtnqZZ xMF0isgqYKAmzoMJwvbTTIdoSbXwo27vYxJHoXsmNc21hlVpycUuTDJ9qIocM0d6nkl3 VfAlSviLi1de98CQJUBD6R+pSncl77Nz3LgNg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727016621; x=1727621421; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=1pFEE7Fbi5UqlKhWUPnPzHUET4DJO7pibeANPJR/+mY=; b=p3Ji2Ei5RaRvwIxccYslkX9aF3Cs/KAJGFTVQDncugy4vw53RwaQwKzoJfWBYh/TcG gDtiqd5vBe2bTV9U09vb5GtyQfrjf8zomxuoz33pv3Zjsv6Gu2azYTImMHiMx0MiWabQ gV7VkIgw4LOsrPS93zG6pqErIcQUGo/jpLfxjJibfRoW99RmaeWKL5ETGnhjRki692Zx 7AeDCRiINZwtKqHRnrDX0xeehSF+GnoUEuRRwt/AmRH72mPHr02tN73tgvlAoKyn8bhI QHpid/8l7OmmYv8gZv+2E10MewsfLRcvVwCEGMpc1OgrjAhE5Ksg6DX8GLgJtWl3/au0 1x8w== X-Forwarded-Encrypted: i=2; AJvYcCWt70IIGMkVTKlAuQYbvsXobZnyXQU1u2gb49tKR1vUsQ69jVRikZegtVYSg9vFjO1foBpOIu2rFOUvvHF0@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyzYeTNsjbeOzeyx6iH58Jkkwm7mZqkgpW2/720opIqsfWdNr+7 nuvdQbnMp58so8PCg8jCw/qTq/AHCY45t7xJGs9/HeofOVeXt2/XxxQZK+IREt3Hww== X-Google-Smtp-Source: AGHT+IGJ47+Q3OzoW2nMOhDCLI0sq1HfzAVGaVgtcUsEAP5gBj5WT5wx8T+62xq9y9bz261aa8ml5g== X-Received: by 2002:a05:6402:4409:b0:5be:fa68:a239 with SMTP id 4fb4d7f45d1cf-5c464a3a9f1mr6471351a12.13.1727016620711; Sun, 22 Sep 2024 07:50:20 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:1ece:b0:5be:ea4f:8c6d with SMTP id 4fb4d7f45d1cf-5c45994d0adls498264a12.2.-pod-prod-03-eu; Sun, 22 Sep 2024 07:50:19 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU6QrHuJ8A7JgGQbVocU/254OQrdbTYArmZRYvNs/OA4XF24P6kvMpFMndyWFC6bkW21r/8VlkSVCEQP6rW@amarulasolutions.com X-Received: by 2002:a17:907:7ea8:b0:a8d:4db8:9eed with SMTP id a640c23a62f3a-a90d5144b59mr963634566b.51.1727016619124; Sun, 22 Sep 2024 07:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727016619; cv=none; d=google.com; s=arc-20160816; b=WHJrkuUU6tF7wncagT/V9Cna+Xbf0QlQJBEJCKOxB6Hx4qv770ly0cPfmJREfrPN9X X2lH2fuHSWl0GWm7uHJ0P0jfeSnToZSLQqqTN8NDlQQVyD3t4PvGIvRLJvXg8bh8FH1B HmdJV5wBOjQ+dajatuGg72PpUDpGadLKpa0g4xfdjlV699g9+at1NMdx3KP6ePaShYGW X3ZvXNTinEa6rDcDQt0CaqdW5RHTlzqu88vFEHJC3oAqtbsNFqEW52uSTwEN/fOBGp2X jzTSCg9cUb2Y1e6pDmkp8oD9gIl1quiXfQmgXL1Kl+48urjFpYGNZOx48R7KpCPpQPJ2 DqkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=3d944BDKuY8b/yUPC5xNbCL96du/ssM/tVVGCvZ3aCI=; fh=uks2w19u0Qr4eYasVfLVKCLD514oKfcsJyPP17/zM9Q=; b=x46cm74VjVYzx68tB9FCrCuR8wDw+p0mVrlCvY/2o0a0Oq6nABqOD5+6bxrocgJxdf g2i9kObuDNWp+M+IBR7/R26UxWj+xjXwwCnDCj5289hE5SIGJpSk7SSbTf5boQ56jzeP a+7cE258MEvHnc7ope54UcFufKBOtofT2NAoZc3/HsYsh110nckVe9eQHvhb2siAa99K dnN+dkToOIIkCqsVE4MDEIZPQOFnNEF6xPyenSzoh8DK4yHRqBi6yVGZK3cd/YGu7sv3 JrCMUlLl01qijpUykX6H3/rWPP1dXX5LxzOaCsbFqGwQcvdhuTxkj/wtQLWP+9m8tJcM 3Z9Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ORB9Og9z; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a90612e189esor683320266b.18.2024.09.22.07.50.19 for (Google Transport Security); Sun, 22 Sep 2024 07:50:19 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCU5qC4VHu+oroIkX5PDx5DZ6/WFyWpXfyyzYWN209DSGaJLZFppuumJOi7fugO8DPUE5nEQoeLuCzBf5Lmm@amarulasolutions.com X-Received: by 2002:a05:6402:13d1:b0:5c5:bebb:5408 with SMTP id 4fb4d7f45d1cf-5c5bebb5afdmr1535849a12.6.1727016618419; Sun, 22 Sep 2024 07:50:18 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-20-102-52.retail.telecomitalia.it. [79.20.102.52]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bc8907asm9724838a12.85.2024.09.22.07.50.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 07:50:17 -0700 (PDT) From: Dario Binacchi To: netdev@vger.kernel.org Cc: Stephen Hemminger , linux-amarula@amarulasolutions.com, Dario Binacchi Subject: [iproute2, PATCH 1/2] bridge: mst: fix a musl build issue Date: Sun, 22 Sep 2024 16:50:10 +0200 Message-ID: <20240922145011.2104040-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ORB9Og9z; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch fixes a compilation error raised by the bump to version 6.11.0 in Buildroot using musl as the C library for the cross-compilation toolchain. After setting the CFLGAS ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y) IPROUTE2_CFLAGS += -D__UAPI_DEF_IN6_ADDR=0 -D__UAPI_DEF_SOCKADDR_IN6=0 \ -D__UAPI_DEF_IPV6_MREQ=0 endif to fix the following errors: In file included from ../../../host/mips64-buildroot-linux-musl/sysroot/usr/include/arpa/inet.h:9, from ../include/libnetlink.h:14, from mst.c:10: ../../../host/mips64-buildroot-linux-musl/sysroot/usr/include/netinet/in.h:23:8: error: redefinition of 'struct in6_addr' 23 | struct in6_addr { | ^~~~~~~~ In file included from ../include/uapi/linux/if_bridge.h:19, from mst.c:7: ../include/uapi/linux/in6.h:33:8: note: originally defined here 33 | struct in6_addr { | ^~~~~~~~ ../../../host/mips64-buildroot-linux-musl/sysroot/usr/include/netinet/in.h:34:8: error: redefinition of 'struct sockaddr_in6' 34 | struct sockaddr_in6 { | ^~~~~~~~~~~~ ../include/uapi/linux/in6.h:50:8: note: originally defined here 50 | struct sockaddr_in6 { | ^~~~~~~~~~~~ ../../../host/mips64-buildroot-linux-musl/sysroot/usr/include/netinet/in.h:42:8: error: redefinition of 'struct ipv6_mreq' 42 | struct ipv6_mreq { | ^~~~~~~~~ ../include/uapi/linux/in6.h:60:8: note: originally defined here 60 | struct ipv6_mreq { I got this further errors ../include/uapi/linux/in6.h:72:25: error: field 'flr_dst' has incomplete type 72 | struct in6_addr flr_dst; | ^~~~~~~ ../include/uapi/linux/if_bridge.h:711:41: error: field 'ip6' has incomplete type 711 | struct in6_addr ip6; | ^~~ fixed by including the netinet/in.h header. Signed-off-by: Dario Binacchi --- bridge/mst.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bridge/mst.c b/bridge/mst.c index 873ca5369fd6..c8f7e6606c3c 100644 --- a/bridge/mst.c +++ b/bridge/mst.c @@ -4,6 +4,7 @@ */ #include +#include #include #include From patchwork Sun Sep 22 14:50:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3514 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8FA1640D67 for ; Sun, 22 Sep 2024 16:50:23 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5c25cf44030sf2203401a12.0 for ; Sun, 22 Sep 2024 07:50:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727016623; cv=pass; d=google.com; s=arc-20240605; b=L5wgBvjSe7KWKfOmd/K4gkHfCMlDDuN/uO6T04igIVFzvf+WbcWErXNe+nOI3hoq3T GIIrENPALj4N/Wul7hqfHorbCdqti1SsccQugVB5gxDUXLkLiyIHfm0lk5gQXtRpyA66 gElMBJbV5QXoD7sutvGnykpEIgO+enRVLzDWkvaiVR6F26TxxZfKIblDdeBSwI2W/iOM N4HYq/MS6Sszt0qRj8Vnx2ZVvwC81UuZnVjCOKvdtc1hU4nhxH6NvwkHJsdu98Vu6CA2 Kbwuw6pqLcy+CXmEfjbX30weIIHgUbVOZA4W/2JdQQvag+VIwhF3XUcIUPoQDzEF4B/c qKXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=pYNLVtIEGwk49mOyCZ7hlHqFAHAXd7lj0gXPecA2HdQ=; fh=hr2534vUkk3ii2EJAV7u8tZXz2pAaNMQJH/5oxzg6oc=; b=U/96YxMaV/jiY/I3lQByHRxv9zC2W3nqdeHpF0l0UIXTpdULdcRDcwkVPtqNKSeEZu zepPtMFARkVb+MXV05qGgu/jvRqvLLqPoaiQwQ3MD8sSkcl0DRju+lA81mjsPsQzZnYk AQ6KLR3sMF39AbJLrUwuFRJY7A1aqT7oHC4g1/I9OdpTqsHESnv4loP7JWtF2bLIoSTm VbqzvC1IYeGMI3buIiYgR7A1yOFqD2IuVBfnpRZDfAfBAcluCspmu6h5/ceRTa4ZeoL0 XVEg2GAPbN/UaU1fBpJpCGdB4M3bpPxYXUpYPK4GGow/Mrou8ap7h7WbNkDFXW3NAHwP Hx7Q==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="IYcW/ov9"; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1727016623; x=1727621423; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=pYNLVtIEGwk49mOyCZ7hlHqFAHAXd7lj0gXPecA2HdQ=; b=n3EhmEQ4Z1pmd8WBhRsCNLdQD9+6Enxkbat9/RZeGfH2SqAnYsX6wL/mK0ufmZK3cR cCuxku7C3thAXUjp0bRI3zlevxG6IkJWXbekJxoMBcAQYG16l9/EW+0obeV8g264umjv 6awNeAiFuL56X1KrOirFuiMigtxoMUAAOVyHI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727016623; x=1727621423; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pYNLVtIEGwk49mOyCZ7hlHqFAHAXd7lj0gXPecA2HdQ=; b=VHnIceNgyZm/LzeMjntT94gLMX/BU+ft53U7y/iikJf8LrEZhhDw8B9ItFhSxRMTey RQfdirGUqFyrFYMM3NT7er5kS4dU3IZ3ttOwglhNXVidDxz+QBa5tPTktMUkCfrTxZpo 1etBDcLitk7cxZrHqom4Y/T990oqKwt0PLQlPpKAk5re3H5KlTP8I4IYmVq82j36Ywy8 QrVFqbKRYfuIKaWDbUoT6QSiI9NP4mXFlIi3d428qnrq4GU0wUREIBx9Y4qEtTOTGoAR 1U5YE2Y+2FCz+TcqYkDGx8CL6XfcNJ0eAwRi1P22DgAINakhXXTIl7BHmrft9oZyGiNb IgtQ== X-Forwarded-Encrypted: i=2; AJvYcCV/QBvLpR+29V670wtJulvzSEm5oRj82wcYA0ABWph3Dvpw2j/7IQLkoyknWa4rk0efHtQjjtwj+OklwTv9@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YzLDmM66Tm0dhc4SOcLstL8kTNtIT/JKX37pmXWPRFLvBLDJJzZ IDBVdHzFlBUExBtSfLt3uWt7NAU+G+l+pdmbhse+5xsLxW8s3EPUDSAFTkCOiihbVQ== X-Google-Smtp-Source: AGHT+IFuAFvo5alL7u6HFWSSIo0p5TDy6Nwc4IYuUtnO5QLbjwXJdqcMnBWpBOqZ1nN7kbWInWA1sw== X-Received: by 2002:a05:6402:3509:b0:5c4:136e:cef8 with SMTP id 4fb4d7f45d1cf-5c464dba436mr7068413a12.16.1727016623177; Sun, 22 Sep 2024 07:50:23 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:210e:b0:5c5:b616:e00 with SMTP id 4fb4d7f45d1cf-5c5b6160e5fls818850a12.2.-pod-prod-09-eu; Sun, 22 Sep 2024 07:50:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXfIvSr4z7S/OKLc4uDTDCdSkynnDmYMYrQG/ycLlGz5mF89IvKtIsAYLO2kkmg82ClDDbHqpu2zLRRiCDA@amarulasolutions.com X-Received: by 2002:a17:907:7256:b0:a7a:8e98:890d with SMTP id a640c23a62f3a-a90d55e5d7dmr745328766b.16.1727016621705; Sun, 22 Sep 2024 07:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727016621; cv=none; d=google.com; s=arc-20160816; b=00AjdHTX4lZd5gkwrOjW5ByZxyYPl5AT3Z+p6t0a3xvMfyU5K1A6eDbJVoH+TxDTXC q9ZQsrMBoQuONed2yeD8QaCQ19stEzLNvJMUtSrKwtszYrrMbcgltNl05dlGnT5uvpGf sfT49MszEOx08hbeW6hEcfw+/O/ai33W3jVukgG71mkfqQrdYJXjnb3FHUV+nXHBx8NO qLZkVUej5rOVA2uCKTQzNgloihN4R6UsI9A7xKAU2IFbCpitrPQyxEFS0SgZ8m1zNn0J cubtI8qxj9dVdaBycRnuMatJ5duzc+f1hTptFx+ElqJciVOfsB/8LdTM1LcoY7fhYrvO 6bpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=VyVWc66giTUBEyVXjUY3pvJmuDFaMPkAt+mawlB1FXM=; fh=b4Ahyrjz4NkP3UMHMGNiQ3LJN8G7GPW/7Yn8OeL5sMU=; b=nwuJHqcPii8le6AnBgBZ9/DUtXS44yXckryqitp2QFK4WaLTWgX6C0WOOTZQH+pUuU x244qCH/uJ4MVQbXDm/qpsJL1TtHv53f9199ILaIyfEnylweFPEpLQ8dk1XeDVPK1hB9 DRhMwjAe8kH1IN29d5lj+kMwv8Skjb2UMzLi7dRAziTX9TMMHA4+j+LmPCizp5X5CQ80 HIqmgLpCi0jn9Av9F8xRr5gmZn9Rl+useXWo+Cif6F6qeFAZbl5GabrDD4+9swiqizi1 fgPecMZO3tjfPOQtailAcuohsap3qJiq+vqfSGgCVyeROMp3W0nCxaR0uxYUJb/bbA8e Nq+g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="IYcW/ov9"; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a906123fb75sor584464266b.9.2024.09.22.07.50.21 for (Google Transport Security); Sun, 22 Sep 2024 07:50:21 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCXPY2uBGvZe9voRnT6wIsyUUjrt5rZ1cmAezEFf/QkVsG6mIEjCM7PAbvVm6I88hs3Xlmdtf3/NWZ9w8Zik@amarulasolutions.com X-Received: by 2002:a05:6402:40d3:b0:5c5:bad0:df3f with SMTP id 4fb4d7f45d1cf-5c5bad0dfdfmr2721261a12.22.1727016620977; Sun, 22 Sep 2024 07:50:20 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-20-102-52.retail.telecomitalia.it. [79.20.102.52]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bc8907asm9724838a12.85.2024.09.22.07.50.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 07:50:19 -0700 (PDT) From: Dario Binacchi To: netdev@vger.kernel.org Cc: Stephen Hemminger , linux-amarula@amarulasolutions.com, Dario Binacchi Subject: [iproute2, PATCH 2/2] bridge: mst: fix a further musl build issue Date: Sun, 22 Sep 2024 16:50:11 +0200 Message-ID: <20240922145011.2104040-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240922145011.2104040-1-dario.binacchi@amarulasolutions.com> References: <20240922145011.2104040-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="IYcW/ov9"; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch fixes the following build errors: In file included from mst.c:11: ../include/json_print.h:80:30: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration 80 | _PRINT_FUNC(tv, const struct timeval *) | ^~~~~~~ ../include/json_print.h:50:37: note: in definition of macro '_PRINT_FUNC' 50 | type value); \ | ^~~~ ../include/json_print.h:80:30: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration 80 | _PRINT_FUNC(tv, const struct timeval *) | ^~~~~~~ ../include/json_print.h:55:45: note: in definition of macro '_PRINT_FUNC' 55 | type value) \ | ^~~~ ../include/json_print.h: In function 'print_tv': ../include/json_print.h:58:48: error: passing argument 5 of 'print_color_tv' from incompatible pointer type [-Wincompatible-pointer-types] 58 | value); \ | ^~~~~ | | | const struct timeval * ../include/json_print.h:80:1: note: in expansion of macro '_PRINT_FUNC' 80 | _PRINT_FUNC(tv, const struct timeval *) | ^~~~~~~~~~~ ../include/json_print.h:50:42: note: expected 'const struct timeval *' but argument is of type 'const struct timeval *' 50 | type value); \ | ^ ../include/json_print.h:80:1: note: in expansion of macro '_PRINT_FUNC' 80 | _PRINT_FUNC(tv, const struct timeval *) Signed-off-by: Dario Binacchi --- bridge/mst.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bridge/mst.c b/bridge/mst.c index c8f7e6606c3c..fccb7fd68140 100644 --- a/bridge/mst.c +++ b/bridge/mst.c @@ -4,6 +4,7 @@ */ #include +#include #include #include #include