From patchwork Thu Aug 29 19:22:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 172648 Delivered-To: patch@linaro.org Received: by 2002:ac9:5c4b:0:0:0:0:0 with SMTP id r11csp2817001ocp; Thu, 29 Aug 2019 12:22:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxghkPlIw1rqvWmYhUNjurkWKzXoUuX1zms3U5AtH3TdAoTT9cp0lLz53+kUB6bjL7YfHj2 X-Received: by 2002:aa7:9e42:: with SMTP id z2mr659638pfq.2.1567106563803; Thu, 29 Aug 2019 12:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567106563; cv=none; d=google.com; s=arc-20160816; b=ntZUa0e3Aez1Bds/6bRXvqWwhQjFP3GB1Bm6j0VAzjGKqa/8KehcJw6JxEPu3ssD0a Al9cVoyRuYa3RZ+/O5NuptYUHSe0h+x7DaE52tQMfsvkzRIc1h8B2KjFhuNhL5IZBisy by4g/+LWol2+qXTgUjW6ms7WSuv7tsGMmoT/hRVHQ6U6qRLtZomxMkREPe8FDWw9c7pa 3funuRVDVJ93K4Xymay/9Rs9QClW3zmI4dVS1rm1O8c9nZfvDF5Qri/dKJBzovI5agj0 9QfS5KrLwbqGvuho9BxvhPNUfshFPgCzCYUaRHsb/WK0+Y4GnCxScipKC1oW3MgnHYEi uf5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=wCyRsLW5qlYIgyfVIhpvCRl6MUbFaQtjW2YB1hQwxZY=; b=NW2FE9OQp2VrS6BOeC03Di708vK3VTEP2UAoXWKDubqcdfeLvyUXmTrYN5+FFf8x5z NAMmPebdCPUdf6dAvMIEIKDvEZDV/1l6VXl4kalq5PhbtOO6GFKEJLOkMA+OQmpTFHeZ zecrKAXbP+LxG4P0YKqHmAZVZZy/LX36vSqtgSaJoWuKJrhuZe0k2PzxdjItOXlwt1uF JyT0bwfaUKKf7MYYd32Meq3W4JxutDpyPqfM9Hc72TRBmPsXnI+HpYn8HpRDeSuklW0x wwqwnvPVmAZu+1Lks7EyMY4O5TJWDw75aEqJOBukfdoW3mgSeSEx1boq+vtYr9YIi67Q L83w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=ayYB8sGJ; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id ck12si2965561pjb.26.2019.08.29.12.22.43; Thu, 29 Aug 2019 12:22:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=ayYB8sGJ; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 8FDF77F3BE; Thu, 29 Aug 2019 19:22:31 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mail.openembedded.org (Postfix) with ESMTP id 5ED887F333 for ; Thu, 29 Aug 2019 19:22:17 +0000 (UTC) Received: by mail-pf1-f179.google.com with SMTP id 26so371952pfp.9 for ; Thu, 29 Aug 2019 12:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vazvWJp9Un5/vzIfclUH+ULn2V+3sfh3OLKHxCyVk0c=; b=ayYB8sGJHJt7KVv5Svx1GbuGPYr0gJOQDH2B310vov5iAhuNl/vwqcRafnWxw21Bb+ HzojD4W/sToHKgXie3VCTHbIeuorwFW4kW6JjTtvt+gR0G8J21+xv/D8JMa5d4pRLPgE dfVo9yVUDCOHUjpfF5B2apDwWDx+pvPexX0gEWVtazgmG346VhPg6raLjRRecRUMlUwX UVE6nOdxqMKzgnqcFDhXindMnFD033PzGiXRtvvZoDT2tKbbq52LTKTWUKjZq7iPWzd2 k/ZQ1lmvHqBad0jjjp+eIp9XsU3IbCXofucioWDDj823fjMZrMvr71kNQ8ae+0g+x7Ja 7VBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vazvWJp9Un5/vzIfclUH+ULn2V+3sfh3OLKHxCyVk0c=; b=mW29n3ZMN2soa3gq12bAZCCP0vsEwoePemVBoHeYz/bK8yw7ga7xMn2LJqQcykzj6p p7GYhJVdBiPsGTIlNP9gPvNYQgWVea33rNLrg0KMsA0sfd0tWbjtSLNYjnuFnYzPg3J2 q8Eptmnwg3ayAS718m0Z4LuRJ3mE8IkR7+I247aCoONtMiSkQP4aWf0cUcEcydBMQL9Y CDquxWE08HmLCaKNL0go/wQe5lae2WgiOYqk+3Q+quWkvvY/8WKe4L8xsERg2EXJtZTp HheI+6Q1k7dlBMH3LKTWnN7qbvS5CQ5FAb59gImE+x5QI4ybbmgNMsz3FDedUL/Bt021 glWQ== X-Gm-Message-State: APjAAAXN4JkPTmAi6q3FGhcHYjqgAhENu95u9UzH9FaiFRDKRYmgh2vW CDHlzLw/dJWWMi8RY3nn7cX3VCpDytA= X-Received: by 2002:a65:518a:: with SMTP id h10mr9617388pgq.117.1567106537611; Thu, 29 Aug 2019 12:22:17 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id s16sm4893281pfs.6.2019.08.29.12.22.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 12:22:17 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 29 Aug 2019 12:22:05 -0700 Message-Id: <20190829192206.1200-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190829192206.1200-1-raj.khem@gmail.com> References: <20190829192206.1200-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-networking][PATCH 4/5] linux-atm: Fix build with kernel headers 5.2+ X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...-Include-linux-sockios.h-for-SIOCGST.patch | 59 +++++++++++++++++++ .../linux-atm/linux-atm_2.5.2.bb | 1 + 2 files changed, 60 insertions(+) create mode 100644 meta-networking/recipes-support/linux-atm/linux-atm/0001-saaldump-atmdump-Include-linux-sockios.h-for-SIOCGST.patch -- 2.23.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-support/linux-atm/linux-atm/0001-saaldump-atmdump-Include-linux-sockios.h-for-SIOCGST.patch b/meta-networking/recipes-support/linux-atm/linux-atm/0001-saaldump-atmdump-Include-linux-sockios.h-for-SIOCGST.patch new file mode 100644 index 0000000000..a54869db89 --- /dev/null +++ b/meta-networking/recipes-support/linux-atm/linux-atm/0001-saaldump-atmdump-Include-linux-sockios.h-for-SIOCGST.patch @@ -0,0 +1,59 @@ +From 4456e13880803a300e4b6f263ad22a37481b5df5 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 29 Aug 2019 09:33:43 -0700 +Subject: [PATCH] saaldump,atmdump: Include linux/sockios.h for SIOCGSTAMP + +In linux kernel commit 0768e17073dc527ccd18ed5f96ce85f9985e9115 +the asm-generic/sockios.h header no longer defines SIOCGSTAMP. +Instead it provides only SIOCGSTAMP_OLD. + +The linux/sockios.h header now defines SIOCGSTAMP using either +SIOCGSTAMP_OLD or SIOCGSTAMP_NEW as appropriate. This linux only +header file is not pulled so we get a build failure. + +Fixes +../../../linux-atm-2.5.2/src/maint/atmdump.c:142:18: error: use of undeclared identifier 'SIOCGSTAMP' + if (ioctl(s,SIOCGSTAMP,&stamp) < 0) { + ^ +1 error generated. +make[3]: *** [Makefile:623: atmdump.o] Error 1 +make[3]: *** Waiting for unfinished jobs.... +../../../linux-atm-2.5.2/src/maint/saaldump.c:169:14: error: use of undeclared identifier 'SIOCGSTAMP' + if (ioctl(s,SIOCGSTAMP,&stamp) < 0) { + ^ +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/maint/atmdump.c | 2 +- + src/maint/saaldump.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/maint/atmdump.c b/src/maint/atmdump.c +index 8b17826..9e4853b 100644 +--- a/src/maint/atmdump.c ++++ b/src/maint/atmdump.c +@@ -5,7 +5,7 @@ + #if HAVE_CONFIG_H + #include + #endif +- ++#include + #include + #include + #include +diff --git a/src/maint/saaldump.c b/src/maint/saaldump.c +index 83bdde9..69429a8 100644 +--- a/src/maint/saaldump.c ++++ b/src/maint/saaldump.c +@@ -5,7 +5,7 @@ + #if HAVE_CONFIG_H + #include + #endif +- ++#include + #include + #include + #include +-- +2.23.0 + diff --git a/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb index 9ed7ca613b..e594906c33 100644 --- a/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb +++ b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb @@ -12,6 +12,7 @@ SRC_URI = "http://nchc.dl.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BPN}-${P file://0001-ttcp-Add-printf-format-string.patch \ file://0003-mpoad-Drop-old-hack-to-compile-with-very-old-glibc.patch \ file://0001-IFNAMSIZ-is-defined-in-net-if.h.patch \ + file://0001-saaldump-atmdump-Include-linux-sockios.h-for-SIOCGST.patch \ " SRC_URI_append_libc-musl = " file://musl-no-on_exit.patch"