Received: by 10.213.65.68 with SMTP id h4csp842892imn; Wed, 14 Mar 2018 01:31:16 -0700 (PDT) X-Google-Smtp-Source: AG47ELvMbelAsuQlfTmqC0XTMnF2TVVXvKEppZRkW76/2ZsRy5qnaZiADaxRrYDfP6gHm9EaPJ4f X-Received: by 2002:a17:902:7f0c:: with SMTP id d12-v6mr3235090plm.350.1521016276334; Wed, 14 Mar 2018 01:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521016276; cv=none; d=google.com; s=arc-20160816; b=qGUtE25nRW70tS+2QObpzpNTQO4hYibJYIA5r+Xjpjhr26NXQ8UW9Uj7GHlC8PLwGn lg+0mryz8B80EBD6cvaFbH+8GKnNEWkRkWh+n+2KQeICgl3EOFf6wmzJx6ADkiuGHuAP VUCpYQxnU3uOg64ERWSyPwu0iBThzQJ+JkUmJrRCnxGR8lGmAfVKIuQ14C0iDkN/LTVo fFshjkM7xzW771miOJkAiAd2eHKgnZn6AcASFRtV5J0O8ddEDmMjjbavy2VisStEyYo8 PCDbXCvkEj2YZEP47VwNP+2AGXTgpyB8AAF+DFvznygfzWejNHZAX+QpVoxLLuj/ccr7 gKOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:date:cc:to:from:subject:arc-authentication-results; bh=YTmfTx5GuIysXqZWkzIY7/LKWsifWg2Sf+4ek7ZXJ9o=; b=wLTpG8oddgh70QK55UYxMF4lUkTs2Amn0q/sFFkdnbiIfa+iL4l6++Cj8XS4DxWebz w1s154WOIQFylOOGoRuCkU+A16HyAi5TCtq6nPOV4OqvRSCu+9yakUANMgyGzIJnM402 9EMmHzzAIcUVhYrO3GpPykJyb2gxsftLn21xWNtsf/aR+HxefWRUO7NgdgvOkS+Sgonc /qMvVSooYvaO+sFR3mtlBPH/3kdwvns9mFHN6IWljmd+WVJdlEKL/vkLWws6zgB9WKXz kPxM0ZSI5jg5FmXSQSPAi0BMIYFNqxUeSjE3kJoe804uEQQpUatocCNmda9BFEppp3o7 cBjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11-v6si1572646plo.467.2018.03.14.01.31.00; Wed, 14 Mar 2018 01:31:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753063AbeCNIaF (ORCPT + 99 others); Wed, 14 Mar 2018 04:30:05 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:57280 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750862AbeCNIaC (ORCPT ); Wed, 14 Mar 2018 04:30:02 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2E8SfDB078659 for ; Wed, 14 Mar 2018 04:30:02 -0400 Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.149]) by mx0b-001b2d01.pphosted.com with ESMTP id 2gpxcrbxj9-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Wed, 14 Mar 2018 04:30:01 -0400 Received: from localhost by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 14 Mar 2018 02:30:01 -0600 Received: from b03cxnp08026.gho.boulder.ibm.com (9.17.130.18) by e31.co.us.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 14 Mar 2018 02:29:58 -0600 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2E8TwRD9961754; Wed, 14 Mar 2018 01:29:58 -0700 Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0B908BE19D; Wed, 14 Mar 2018 02:29:58 -0600 (MDT) Received: from [9.109.248.135] (unknown [9.109.248.135]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP id 06990BE19B; Wed, 14 Mar 2018 02:29:55 -0600 (MDT) Subject: [linux-next][bisected c7c133f3][gcc 4.8.5] build fail with error: first argument to =?UTF-8?Q?=E2=80=98=5F=5Fbuiltin=5Fchoose=5Fexpr=E2=80=99?= not a constant From: Abdul Haleem To: linuxppc-dev Cc: linux-next , linux-kernel , Stephen Rothwell , Kees Cook , mpe , sachinp Date: Wed, 14 Mar 2018 13:59:54 +0530 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18031408-8235-0000-0000-00000D28A6C9 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008670; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000254; SDB=6.01002826; UDB=6.00510305; IPR=6.00782157; MB=3.00020026; MTD=3.00000008; XFM=3.00000015; UTC=2018-03-14 08:30:00 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18031408-8236-0000-0000-0000400DF5D7 Message-Id: <1521016194.31953.9.camel@abdul.in.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-14_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803140100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Greetings, Today's next kernel fails to build with gcc 4.8.5 on powerpc machine. ./include/linux/jiffies.h: In function ‘jiffies_delta_to_clock_t’: ./include/linux/kernel.h:855:2: error: first argument to ‘__builtin_choose_expr’ not a constant __builtin_choose_expr(__builtin_constant_p(x) && \ ^ ./include/linux/kernel.h:867:19: note: in expansion of macro ‘__max’ #define max(x, y) __max(typeof(x), typeof(y), x, y) Machine Type: Power8 Baremetal gcc: 4.8.5 Builds fine when below patch is reverted c7c133f3 kernel.h: skip single-eval logic on literals in min()/max() -- Regard's Abdul Haleem IBM Linux Technology Centre