From patchwork Mon Oct 1 09:44:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 147878 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp3688178lji; Mon, 1 Oct 2018 02:45:30 -0700 (PDT) X-Google-Smtp-Source: ACcGV60Li/wkmeDUx20I45T8ZdHvl1z2iE+ssfaIy1Y2bHWHuu/NRXOBO4KKC6z0sqV9MSQfRWjJ X-Received: by 2002:a63:1947:: with SMTP id 7-v6mr9570826pgz.192.1538387130571; Mon, 01 Oct 2018 02:45:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538387130; cv=none; d=google.com; s=arc-20160816; b=gF3RE8EVuw94nKrbYPal+pDKFTvcJU/Ozenhtk7CnJXYNTk7e6668GO9GuvQoWORwv wTNvf3hDru9aGVg9LVkDmvkA76OTqzP58iSsRhh5AMSJlTTkpfKDxEhnIXxHn3KF7ecG MOR2ed3rgf/qNUrgrx/AAPF8MS+O+kjaAOUyLtO5IIXRcmAtF6CIrDw3HqkGFskYb6Pb SV61gTLxKd0h6kSbgIAdiv9vbq6nLCiuFORp247471gbXBwHNAKuiCgCZa+tJdMLfvrl EpxWMVA1w9pbkV3VQdevyXWKUlp73Sojb0cmJg8yefFkzQKT8mFvYTqcrz4klvUSAUql DH3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=SpZLur+sbJBSYyU7Lxk/b7C7/dHU+CrpWov6wcdLp/0=; b=rypgTWMpAsX3IEbf/KWL+v+LJzT/xamBue19yNK4Jh7wi7yXfpkX9z8axHnGnqGC9b kpljPKOiS1FF9vivnUZ/6vTxiH9htFHFU+PDRbtmMXUtOLUv2yzEwn0ZwgQFbI24UBI8 YrtcyUpkwnb/VQM6Spzms0uuEr0os7LIj8XGEExyIVNipEQp2ZpTWb59O79Au8iWBnBp QU534lbrF3s8aWYrgYvjSadpMvU80Y/e052OLBwMNBaTMuUEJ0VZ227qwtstJ1igaC1Q YYBRHLjwqPQT5KznUIxUrGl64dUmNkilk78BcomtAIZpZDlxnWrSJ+kHaA03u6E0kH1I VPDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=gHLvUYXM; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c31-v6si11442496pgb.348.2018.10.01.02.45.30; Mon, 01 Oct 2018 02:45:30 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=gHLvUYXM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729187AbeJAQWY (ORCPT + 32 others); Mon, 1 Oct 2018 12:22:24 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:64025 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729050AbeJAQWX (ORCPT ); Mon, 1 Oct 2018 12:22:23 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id w919iipJ005108; Mon, 1 Oct 2018 18:44:45 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com w919iipJ005108 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1538387085; bh=SpZLur+sbJBSYyU7Lxk/b7C7/dHU+CrpWov6wcdLp/0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gHLvUYXM8wWsdtMDUcST736bPxk8/3DXBmeZhA2+/IbM7x7PWUZigq3BGBCMxl12c dLbf3ve2ZrGPqbgQ2RKApbnm64u6PidFbkvg/EzFEHZpF6oHsijjuLDyu9ZzBv6uyN 2IhKUi/hwQJlcWXZE0nDHzxqfhFPQYlmm60riPQVkzhPh8YRlWIA9g4uGHjQzSXcAI p37IjL8obA08CWdP4XtMHdMOPkPGjs0NSrhNjxahC1NYz6RfajRW/osuYunZSHzKQJ jymK5oW/uH2I6iQUKc47lEG77RjPlF9PtH7DKlb+Srkyf7+pxQArzC1VsnCtjRLD1h 8Yfk8PWzuobDg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Arnd Bergmann , Kees Cook , Nick Desaulniers , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] kbuild: add -Wdeclaration-after-statement flag unconditionally Date: Mon, 1 Oct 2018 18:44:37 +0900 Message-Id: <1538387078-21892-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538387078-21892-1-git-send-email-yamada.masahiro@socionext.com> References: <1538387078-21892-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have raised the compiler requirement from time to time. With commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6"), the minimum for GCC is 4.6 now. This flag has been here since the pre-git era. It is documented in the GCC 4.6 manual, and it is recognized by Clang and ICC as well. Let's rip off the cc-option switch, and see if somebody complains about it. Signed-off-by: Masahiro Yamada --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 Tested-by: Nick Desaulniers diff --git a/Makefile b/Makefile index 505a324..8a23fee 100644 --- a/Makefile +++ b/Makefile @@ -797,7 +797,7 @@ endif NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) # warn about C99 declaration after statement -KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) +KBUILD_CFLAGS += -Wdeclaration-after-statement # disable pointer signed / unsigned warnings in gcc 4.0 KBUILD_CFLAGS += -Wno-pointer-sign