From patchwork Tue May 29 06:18:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stewart Smith X-Patchwork-Id: 921844 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40w3T45phMz9s16 for ; Tue, 29 May 2018 16:18:48 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40w3T44KdKzDr4g for ; Tue, 29 May 2018 16:18:48 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=linux.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=stewart@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40w3SY1dXgzDr43 for ; Tue, 29 May 2018 16:18:20 +1000 (AEST) Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4T6EI11095014 for ; Tue, 29 May 2018 02:18:18 -0400 Received: from e36.co.us.ibm.com (e36.co.us.ibm.com [32.97.110.154]) by mx0a-001b2d01.pphosted.com with ESMTP id 2j8ygvbyen-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 29 May 2018 02:18:18 -0400 Received: from localhost by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 29 May 2018 00:18:17 -0600 Received: from b03cxnp08028.gho.boulder.ibm.com (9.17.130.20) by e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 29 May 2018 00:18:15 -0600 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4T6IFlS2294086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 28 May 2018 23:18:15 -0700 Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DCC826E050 for ; Tue, 29 May 2018 00:18:14 -0600 (MDT) Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AF8956E052 for ; Tue, 29 May 2018 00:18:14 -0600 (MDT) Received: from birb.localdomain (unknown [9.185.142.34]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP for ; Tue, 29 May 2018 00:18:14 -0600 (MDT) Received: by birb.localdomain (Postfix, from userid 1000) id D133D4EC6B5; Tue, 29 May 2018 16:18:10 +1000 (AEST) From: Stewart Smith To: skiboot@lists.ozlabs.org Date: Tue, 29 May 2018 16:18:05 +1000 X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180529061810.28003-1-stewart@linux.ibm.com> References: <20180529061810.28003-1-stewart@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 18052906-0020-0000-0000-00000E07DD9E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009096; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000263; SDB=6.01039234; UDB=6.00531874; IPR=6.00818363; MB=3.00021352; MTD=3.00000008; XFM=3.00000015; UTC=2018-05-29 06:18:16 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18052906-0021-0000-0000-000061A1663A Message-Id: <20180529061810.28003-3-stewart@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-29_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805290074 Subject: [Skiboot] [PATCH 2/7] core/test/run_mem_region: fix GCC8 compile error X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" error: ‘const’ attribute on function returning ‘void’ [-Werror=attributes] Fix by not putting the const attribute in the stub Signed-off-by: Stewart Smith --- core/test/run-mem_region_init.c | 2 +- core/test/run-mem_region_release_unused.c | 2 +- core/test/run-mem_region_release_unused_noalloc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/test/run-mem_region_init.c b/core/test/run-mem_region_init.c index d4265af72061..f1028da32703 100644 --- a/core/test/run-mem_region_init.c +++ b/core/test/run-mem_region_init.c @@ -106,7 +106,7 @@ static void add_mem_node(uint64_t start, uint64_t len) free(name); } -void __attrconst add_chip_dev_associativity(struct dt_node *dev __attribute__((unused))) +void add_chip_dev_associativity(struct dt_node *dev __attribute__((unused))) { } diff --git a/core/test/run-mem_region_release_unused.c b/core/test/run-mem_region_release_unused.c index 4941453e9b8c..fdd273a7f55b 100644 --- a/core/test/run-mem_region_release_unused.c +++ b/core/test/run-mem_region_release_unused.c @@ -100,7 +100,7 @@ static void add_mem_node(uint64_t start, uint64_t len) free(name); } -void __attrconst add_chip_dev_associativity(struct dt_node *dev __attribute__((unused))) +void add_chip_dev_associativity(struct dt_node *dev __attribute__((unused))) { } diff --git a/core/test/run-mem_region_release_unused_noalloc.c b/core/test/run-mem_region_release_unused_noalloc.c index 1ad4abb07800..6ae79591f08e 100644 --- a/core/test/run-mem_region_release_unused_noalloc.c +++ b/core/test/run-mem_region_release_unused_noalloc.c @@ -100,7 +100,7 @@ static void add_mem_node(uint64_t start, uint64_t len) free(name); } -void __attrconst add_chip_dev_associativity(struct dt_node *dev __attribute__((unused))) +void add_chip_dev_associativity(struct dt_node *dev __attribute__((unused))) { }