Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp121735imm; Thu, 13 Sep 2018 17:02:32 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb7B476zNGWOQzHhNZ9ahjclCkrTaE7W/iOJl3TbWAbPHXohiLB+yZ88PoNjPDktfpNcscF X-Received: by 2002:a17:902:8b8b:: with SMTP id ay11-v6mr9219311plb.1.1536883352011; Thu, 13 Sep 2018 17:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536883351; cv=none; d=google.com; s=arc-20160816; b=0BQQXO6OyHcmzLiVWv7DeevsuiKlUBr+3418l0JoyWnR+GXojT/6HnIb/8sN4m1jHE 6/y/7S8ovmWqX7ODtGWqFyeTDjLCOUhatEV3tP9f9g9DY7h5VCzWkVBoIsnu4YEGtBpB u28GBadpRVXS4hV6VyIOd+YSptRuXl8r99VMCOQMkDI6lbsm+zm+Sb0JwpZpFg+y4yvd Mfv12TrB2H7LAR4YA2TYxrxUpQFXgsyfUfXb6Lo/eSL6cq0dDDIcwrgU/HnG2nMnBz6p SoIHENY9MpOQRFpuMZOdEEAylCs5RCrDVLsQfZV8X8UX+XWuib4RGQY+2lit5h/8wlr6 +bcg== 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; bh=rtOOC3GLNWGMW84i9cg4IatCMDh5KWmKK57ezAje8XQ=; b=0eZ48yMTTsxMpNKVslguYwSp2WNz4yUfRDaWjEi+HKNKTf89Cc7XVIfuZkijRmZ/fz i1YQ06FccRmKAuFEEz9bZLBEcfijg7Us1KCz1yWPdMJe89QbxunyQCQGNgZikEdyQlm9 t8PrX0c7NzPaCsvxj2xCxunJ9zWsDZzq0aOI58szt/iP4VuanQrA7q83B2DQ60mGYobU duMhzlpT4ZENQvkBCz5tY48pHjR5mJbXkhET1uwEnsBV38rRp1ieM8/fjhJO6l29Vlut hQGj8XMO9B0TsjkCsokne+ha/NhvWRRWBrV2nvVMTY4Jwraf8DT6gbC1dgjdwfxbE4ON hvpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A+SazxOI; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z13-v6si4150347pgk.127.2018.09.13.17.02.16; Thu, 13 Sep 2018 17:02:31 -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=@gmail.com header.s=20161025 header.b=A+SazxOI; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728168AbeINFMl (ORCPT + 99 others); Fri, 14 Sep 2018 01:12:41 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:53940 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726826AbeINFMk (ORCPT ); Fri, 14 Sep 2018 01:12:40 -0400 Received: by mail-wm1-f66.google.com with SMTP id b19-v6so171530wme.3; Thu, 13 Sep 2018 17:00:54 -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=rtOOC3GLNWGMW84i9cg4IatCMDh5KWmKK57ezAje8XQ=; b=A+SazxOIVOng2Qqd9ERzco+Dg3+REfS/RE60E3X3G7QKqhHyhW4Bctoj6r3V3sSWb7 3glLbnzgm6d+f9IDNotGsedqYq6iGL63xHOXtWpZrRuvpLASra0hy5h4cmNFMcvNWfDR qAVWAFj9M8pXAtW85OiluZVxbAD8ZFeOhPv6cPNnJm/NusAeShjgIuzJMHo++JcTgdyj w/Jng7jF61j3/bF7bc2kRV3KlOzOCHYpNZkPMeAkPjKds/Sjhs0yQ49pyxdcwDQjdWzi L/jzWMXalII5fYifMf06v8JF8i50pU0MU7dFkr3zpjBQyShjt8ZYv5m8+q+hFwc9WSDC AjJw== 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=rtOOC3GLNWGMW84i9cg4IatCMDh5KWmKK57ezAje8XQ=; b=l4sSvn3WV9A+isolO6KFr99MnCw3Drut6MHL9eQw2GM1llr27bT1QTWmA/e7kIxsjY Td17pS1d8WFKicEYeJgSnYCedeeUk+20EKzP2N5UzlBYYxj+kOz2hrhr/FHMivLAHPJ9 bKmgy1UqEDgr4qzj7o9JvRWQggoKExxV2GvXLPvJRoEwtrdfmFUXsnT5I43vCxJWQnMf uPB13ZJPLiAEwTy6fDsaU8dwKClO8l3Sg1P0dHH3Z6tckR1TsSqD918y3hD/ddZMAjRq NoDaaZY6eYsf9RZNBtABwjqv7cIQBDLAHQPSGhrn1DVKpcCMF62CExHo/m1Y0GdBzwzq pCDQ== X-Gm-Message-State: APzg51BFPTYEYE4BNYy2H5lVrVWPN/5J9TS/NgKh18lpPcPsOuJdM/m3 CcNyASqiqH6BjYmflbi1Qy8= X-Received: by 2002:a1c:e70b:: with SMTP id e11-v6mr264388wmh.22.1536883253277; Thu, 13 Sep 2018 17:00:53 -0700 (PDT) Received: from localhost.localdomain (62.83.35.8.dyn.user.ono.com. [62.83.35.8]) by smtp.gmail.com with ESMTPSA id x125-v6sm118129wmg.27.2018.09.13.17.00.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Sep 2018 17:00:52 -0700 (PDT) From: Miguel Ojeda To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Miguel Ojeda , Stefan Agner , Rasmus Villemoes , Eli Friedman , Christopher Li , Kees Cook , Ingo Molnar , Geert Uytterhoeven , Arnd Bergmann , Greg Kroah-Hartman , Masahiro Yamada , Joe Perches , Dominique Martinet , linux-sparse@vger.kernel.org Subject: [PATCH 1/2] Compiler Attributes: naked was fixed in gcc 4.6 Date: Fri, 14 Sep 2018 01:59:40 +0200 Message-Id: <20180913235941.31211-2-miguel.ojeda.sandonis@gmail.com> In-Reply-To: <20180913235941.31211-1-miguel.ojeda.sandonis@gmail.com> References: <20180913235941.31211-1-miguel.ojeda.sandonis@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 9c695203a7dd ("compiler-gcc.h: gcc-4.5 needs noclone and noinline on __naked functions") added noinline and noclone as a workaround for a gcc 4.5 bug, which was resolved in 4.6.0. Since now the minimum gcc supported version is 4.6, we can clean it up. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44290 and https://godbolt.org/z/h6NMIL Cc: Stefan Agner Cc: Rasmus Villemoes Cc: Eli Friedman Cc: Christopher Li Cc: Kees Cook Cc: Ingo Molnar Cc: Geert Uytterhoeven Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: Masahiro Yamada Cc: Joe Perches Cc: Dominique Martinet Cc: Linus Torvalds Cc: linux-sparse@vger.kernel.org Reviewed-by: Luc Van Oostenryck Reviewed-by: Nick Desaulniers Signed-off-by: Miguel Ojeda --- include/linux/compiler-gcc.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 763bbad1e258..25d3dd6b2702 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -84,14 +84,8 @@ * to trace naked functions because then mcount is called without * stack and frame pointer being set up and there is no chance to * restore the lr register to the value before mcount was called. - * - * The asm() bodies of naked functions often depend on standard calling - * conventions, therefore they must be noinline and noclone. - * - * GCC 4.[56] currently fail to enforce this, so we must do so ourselves. - * See GCC PR44290. */ -#define __naked __attribute__((naked)) noinline __noclone notrace +#define __naked __attribute__((naked)) notrace #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) -- 2.17.1