From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934567AbeCMP6H (ORCPT ); Tue, 13 Mar 2018 11:58:07 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:35079 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932972AbeCMP6D (ORCPT ); Tue, 13 Mar 2018 11:58:03 -0400 X-Google-Smtp-Source: AG47ELscQO7ggSNmF+rbGXXE+3dvAE93fM3Tfwrj3da1WvCW8/UGmb/tw5nA0kUQBpcrQaDMCR2k8WUJ+X4GzhqiUAY= MIME-Version: 1.0 In-Reply-To: <20180313183326.0e93f359@canb.auug.org.au> References: <20180313183326.0e93f359@canb.auug.org.au> From: Mike Snitzer Date: Tue, 13 Mar 2018 11:57:40 -0400 X-Google-Sender-Auth: Q5e8WCRNsBRTLxXSoT7PhRUYjOo Message-ID: Subject: Re: linux-next: Tree for Mar 13 To: Stephen Rothwell , Kees Cook Cc: Linux-Next Mailing List , Linux Kernel Mailing List , Bart Van Assche Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id w2DFwADg021767 I had to revert the following commits to get this kernel to build (otherwise I got macro expansion errors, using RHEL7 gcc-4.8.5-28.el7.x86_64): beb7eb2 kernelh-skip-single-eval-logic-on-literals-in-min-max-v3 19ff7e5 kernelh-skip-single-eval-logic-on-literals-in-min-max-v2 c7c133f kernel.h: skip single-eval logic on literals in min()/max() (it wasn't until I reverted commit c7c133f that the kernel build worked) Here is a snippet of the errors if commit c7c133f was applied: [root@rhel-storage-02 linux]# make CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CC kernel/bounds.s CHK include/generated/bounds.h CHK include/generated/timeconst.h CC arch/x86/kernel/asm-offsets.s In file included from ./include/linux/crypto.h:21:0, from arch/x86/kernel/asm-offsets.c:9: ./include/linux/jiffies.h: In function ‘jiffies_delta_to_clock_t’: ./include/linux/kernel.h:856:2: error: first argument to ‘__builtin_choose_expr’ not a constant __builtin_choose_expr(__builtin_constant_p(x) && \ ^ ./include/linux/kernel.h:869:19: note: in expansion of macro ‘__max’ #define max(x, y) __max(typeof(x), typeof(y), x, y) ^ ./include/linux/jiffies.h:444:28: note: in expansion of macro ‘max’ return jiffies_to_clock_t(max(0L, delta)); ^ ./include/linux/mm.h: In function ‘get_mm_hiwater_rss’: ./include/linux/kernel.h:856:2: error: first argument to ‘__builtin_choose_expr’ not a constant __builtin_choose_expr(__builtin_constant_p(x) && \ ^ ./include/linux/kernel.h:869:19: note: in expansion of macro ‘__max’ #define max(x, y) __max(typeof(x), typeof(y), x, y) ^ ./include/linux/mm.h:1569:9: note: in expansion of macro ‘max’ return max(mm->hiwater_rss, get_mm_rss(mm)); ^ ./include/linux/mm.h: In function ‘get_mm_hiwater_vm’: ./include/linux/kernel.h:856:2: error: first argument to ‘__builtin_choose_expr’ not a constant __builtin_choose_expr(__builtin_constant_p(x) && \ ^ ./include/linux/kernel.h:869:19: note: in expansion of macro ‘__max’ #define max(x, y) __max(typeof(x), typeof(y), x, y) ^ ./include/linux/mm.h:1574:9: note: in expansion of macro ‘max’ return max(mm->hiwater_vm, mm->total_vm); ^ ./include/linux/bvec.h: In function ‘bvec_iter_advance’: ./include/linux/kernel.h:833:2: error: first argument to ‘__builtin_choose_expr’ not a constant __builtin_choose_expr(__builtin_constant_p(x) && \ ^ ./include/linux/kernel.h:847:19: note: in expansion of macro ‘__min’ #define min(x, y) __min(typeof(x), typeof(y), x, y) ^ ./include/linux/bvec.h:59:2: note: in expansion of macro ‘min’ min((iter).bi_size, \ ^ ...