From patchwork Wed Jun 6 21:37:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 137846 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1290356lji; Wed, 6 Jun 2018 14:38:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI3kw4vkysXRrlKYTOKkUC28sLcBOAjDJYXm4aefNbZHWa2R1NgcYRvyH76d97Zcsonj2Qi X-Received: by 2002:a65:4348:: with SMTP id k8-v6mr3930083pgq.341.1528321113509; Wed, 06 Jun 2018 14:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528321113; cv=none; d=google.com; s=arc-20160816; b=M3XuWhdWPzw8ylO1CLRpDSuTXq+OGMEEoh/wv3Qi36RP/bo4z9ej1+fhDvEawwRNA8 BvFe551ZXpm3cCZwEyQC9O0u6s7r5Qkoyg/Ncwrxhj8j5cf45kzDdetfiUVijVMJUReX 6u1Vcm0xp9yxh4hd7x6ZWmzI920ydGfY1YEFgbsaAgAVsqeLtFaB82JaYf7ZdT92tLUD uMikm9wm+/NvzS72OQoPk0xmoh+uPumsiv5uJCp8QbaIM5Nj3Ob3y0EJF3suPc5QBM1n ycqGXZsJP3HXSBHB70Gt/wFU1E/yPlkIpASTOJYH0j3XKEhYQeX2kctKf2rsGo1wk48X D7Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=CgO+8+LNgxGqu8JOavfmfA92s+GGDeEi3LfXucSNG4Q=; b=Lb9Rcpi8Xpu44zf7ovqyFcPPYuOZo3Gw9nXcLyLl1xQaQZ5D1+9t+h+QuJbTKvCu2o xQRIYXpgvymKQxcEYXhOK/EDqP2XzmXv+/VKoWCWY1dQ9grpKWVmcV260BclMMCCX7RN w68Dx2LrXDCWAcmBmRWUBl2vfwscx1cnENjkvrHRYKC+kOhD3sU7kxGrxFfwQqgFLdui H/Sh4HprcvZTICJHJaBEXPYp2LhlbaLFOGK9rZTU1Yhd/tKhIkMGL8c7a6TOJs73MMdF sEc+yZmj/Hpe/OOB8Fsb+o9OYwz3Wk6B2hk4iXmkOyl1GTFoYpjYn8kzVZaMAcoDorbh T8jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=LIlLX9fk; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-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 32-v6si28971360ple.447.2018.06.06.14.38.33; Wed, 06 Jun 2018 14:38:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-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=LIlLX9fk; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id DCD5C783C6; Wed, 6 Jun 2018 21:37:46 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf0-f179.google.com (mail-pf0-f179.google.com [209.85.192.179]) by mail.openembedded.org (Postfix) with ESMTP id 2828D77F76 for ; Wed, 6 Jun 2018 21:37:36 +0000 (UTC) Received: by mail-pf0-f179.google.com with SMTP id b17-v6so3773570pfi.0 for ; Wed, 06 Jun 2018 14:37:37 -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; bh=gwTlB22MEUaHe/pTB1MXianPPXtqY2SNLnPqxEsoCUQ=; b=LIlLX9fkCly9ZypBH6NJeIzzkJMd9CVlGG3cQ//QkIEAk5XSH4GIVeWscqQjTCmasI RQs5VV1rcAaYjWtdIZylzijw0aWBdvIZKPlSWO7zq84cFc6P9DEZ6cY+UCwgbBcEdiPC mG+hQ+m8M3p77JYylxFpCEL+VlktLOMfUU64LyphT0pGhaaQEBenpIiP/1Un5/eVw0YB CbS1elxV53kdPRkCcv1ENfQB6ufmroeYVjns1GvExhFlUzgtlI+ZBFjvD5/6/1hPgjWx 8F8z/MXE5eI3iHUTwF2n9RY5isMmDlj+vctkMBx8pGxWGeV0FhVSNMGrBmadqsnnhHp8 s7dg== 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; bh=gwTlB22MEUaHe/pTB1MXianPPXtqY2SNLnPqxEsoCUQ=; b=Y2gvHAc6JitLKWD+xoOk+0DDkBUTDQvU0SHFjScJQugyel87l8xs7QiaSHSfwtMjNk M7eQu4TuDjdifaJRODG/a2CFv2yOKLETAu0YSnQhrPzG6I2/sTucgJuzglIjdRmY0Ep6 Sl3LLfC4f4/6VmPBfmAWz0sadHDkFI08AVbyta/zoskjQBIy6OPWcGRiVc2oiDHrVctN 55acQAwLBLBIJk3PMKua0+cmyl68lF/JlMSi/38lbOQsYPDOqR6s54OinAY5VaXidNLH abhHgh68f76M/nF/U/yduSnYDj1X4PATtWhJgB4DRujFgjMN1hUK4MLndeYC/upGmJA0 syLg== X-Gm-Message-State: APt69E3mFI+ti3Hl6taQLPTFgU67DNtWcy0ZOBTd9TjLYTAkoLEaiQy2 S21tlJRDLnUn5ZLI3L0KbJ1WlA== X-Received: by 2002:a63:7a4a:: with SMTP id j10-v6mr3918551pgn.421.1528321056968; Wed, 06 Jun 2018 14:37:36 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::c68]) by smtp.gmail.com with ESMTPSA id c191-v6sm30452374pfg.48.2018.06.06.14.37.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jun 2018 14:37:36 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 6 Jun 2018 14:37:26 -0700 Message-Id: <1ff58046b4eef02b93398683e15592165513018e.1528320772.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Subject: [OE-core] [PATCH 10/12] linux-yocto: Fix mips build with gcc8 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...ips-Disable-attribute-alias-warnings.patch | 43 +++++++++++++++++++ meta/recipes-kernel/linux/linux-yocto_4.15.bb | 1 + 2 files changed, 44 insertions(+) create mode 100644 meta/recipes-kernel/linux/files/0001-mips-Disable-attribute-alias-warnings.patch -- 2.17.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-kernel/linux/files/0001-mips-Disable-attribute-alias-warnings.patch b/meta/recipes-kernel/linux/files/0001-mips-Disable-attribute-alias-warnings.patch new file mode 100644 index 0000000000..f24d933bcb --- /dev/null +++ b/meta/recipes-kernel/linux/files/0001-mips-Disable-attribute-alias-warnings.patch @@ -0,0 +1,43 @@ +From bb47f1bdc9243117bf8009f1c265b2a8feaf9c58 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Fri, 4 May 2018 11:49:35 -0700 +Subject: [PATCH] mips: Disable attribute-alias warnings + +This warning is seen with gcc-8 +include/linux/syscalls.h:211:18: error: 'sys_cachectl' alias between functions of incom +patible types 'long int(char *, int, int)' and 'long int(long int, long int, long int)' + +Signed-off-by: Khem Raj +--- + arch/mips/kernel/Makefile | 2 ++ + arch/mips/mm/Makefile | 1 + + 2 files changed, 3 insertions(+) + +diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile +index f10e1e15e1c6..eb92e52eb3db 100644 +--- a/arch/mips/kernel/Makefile ++++ b/arch/mips/kernel/Makefile +@@ -2,6 +2,8 @@ + # + # Makefile for the Linux/MIPS kernel. + # ++CFLAGS_signal.o += $(call cc-disable-warning, attribute-alias) ++CFLAGS_syscall.o += $(call cc-disable-warning, attribute-alias) + + extra-y := head.o vmlinux.lds + +diff --git a/arch/mips/mm/Makefile b/arch/mips/mm/Makefile +index c463bdad45c7..b7f9ef80dac7 100644 +--- a/arch/mips/mm/Makefile ++++ b/arch/mips/mm/Makefile +@@ -2,6 +2,7 @@ + # + # Makefile for the Linux/MIPS-specific parts of the memory manager. + # ++CFLAGS_cache.o += $(call cc-disable-warning, attribute-alias) + + obj-y += cache.o dma-default.o extable.o fault.o \ + gup.o init.o mmap.o page.o page-funcs.o \ +-- +2.17.0 + diff --git a/meta/recipes-kernel/linux/linux-yocto_4.15.bb b/meta/recipes-kernel/linux/linux-yocto_4.15.bb index 31d96ef434..d579ffd645 100644 --- a/meta/recipes-kernel/linux/linux-yocto_4.15.bb +++ b/meta/recipes-kernel/linux/linux-yocto_4.15.bb @@ -26,6 +26,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA SRC_URI += "file://0001-powerpc-Disable-attribute-alias-warnings-from-gcc8.patch \ file://0002-powerpc-ptrace-Disable-array-bounds-warning-with-gcc.patch \ + file://0001-mips-Disable-attribute-alias-warnings.patch \ " LINUX_VERSION ?= "4.15.13"