Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp506109imm; Wed, 6 Jun 2018 01:06:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJe6H5Atiw1PsuQ4O1ygTKmddLn/087g0y9gerpTbo/gCcoUQPYPHtSvvmdnAit00F0FMEW X-Received: by 2002:a17:902:b611:: with SMTP id b17-v6mr2182664pls.284.1528272389944; Wed, 06 Jun 2018 01:06:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528272389; cv=none; d=google.com; s=arc-20160816; b=yK7FMTqiYf5ZkAUrCvanll6ZduV/sU0CRyI1fFi8y26u/SNlL5JO5aKUieWSXu/Y5H xTs0dAybpzMK09NlH+4pkc6uXtjnC4ECqegSdIrVLvOM2TfL65yTG+U8GxINzWxpjvXx EDYSaEQnuIaPVCqGz0NkZ+ULSl5J+yu5/Doe2j0S0pQM25/9ML61HkCNxbP6SXG/oYTO 4YPrFLavuREDkyY+nSGGzWOXUayolw5NG9w95zRvvpOZ3T9dG6xxxj/lUec4885EiUej 693uxhPhm9grU1WergwH424Ez7/6iXdZFM14KScWbVF6J86fsFC/BOWSmDvHcQufkXS5 wOtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:reply-to:mime-version:dkim-signature :arc-authentication-results; bh=ygYj227CxZP3iYWnyU51xb76TO7gaYs5XvO2A1m1RoE=; b=c9AzR8amaXTA7R7SNdO9CdgdAzVQ2F87uPyX7M4vOuFViQa9VRt/jS+IjM0UhzBm3v OXpgQW0BAE5J38e65HQuLRuujplZc0aMBIF0pAGFmg/dqVESbrVDfDLusmO7Tsi921x7 Nxz1PYN9fg0mmToTwn8cJ0NAQ1t4zu4MQ1iN27r6vIUw0p04U/TvZ1aXZK6m6iUWJHqR EVaK5ecHz43TTM6T9RzhXKxRiy19G9TNmiGXFZ6c9YygJHT5DHZOowm3aN4O6JOGbygG KVkdI/Q6/1D46Z8i3s6zzXOPnb45yGE6Mu6TjESLOf5FKsRkkV3WCwTP20yosbofX3Ao YwOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t783AuRP; 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 g12-v6si4144859pgu.515.2018.06.06.01.06.15; Wed, 06 Jun 2018 01:06:29 -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=t783AuRP; 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 S932448AbeFFIFu (ORCPT + 99 others); Wed, 6 Jun 2018 04:05:50 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:44816 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932283AbeFFIFs (ORCPT ); Wed, 6 Jun 2018 04:05:48 -0400 Received: by mail-lf0-f68.google.com with SMTP id 36-v6so7649772lfr.11; Wed, 06 Jun 2018 01:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ygYj227CxZP3iYWnyU51xb76TO7gaYs5XvO2A1m1RoE=; b=t783AuRPaTvk9HW+AD35kKSjQM4B6gMXF151cUfjhmcSkqIrLaD+mwd3cFXCrhzXsM bijWWiGLwsDuurwgKHzsgx7xwiOE+R/maiaBwVshKDo6pnXyFY/RGhfHRLoV8PCxX9Qy QCZqSKqgFd0OOdQmoRHL41WMx2I1rOb0QkyyO+XNQMirwxnNFiUTxPafIfKV3y0He5I6 u/tKt6yoOt8dBUnNuEASd5mygA1eTN0IHf3cg2OE576IZKbntEUmZ1niX8lg9CRF2OJM BaVXg4FcikShPlVkWyMTbbcY9OjjlLDoFGH8r+BjTF/nM5DzXJleggUSGU7zkPTGe3zh KzsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=ygYj227CxZP3iYWnyU51xb76TO7gaYs5XvO2A1m1RoE=; b=D8//hKgmPGvkQ0taHpoeFHoKKfLg7Of5INWVMHJchGBK3ZzxZhL+oP/Mp6cH6uzBj0 z/oXNYfU7JGYgotJe67RB0fLkxUmDUNtFNrMSK+rch3uXxrzoabTcmPtca/031tRN0wk NriOLznCq/h+tFAvtRj8QxOsPFMIdhJ8AYOpVqrmH7FjhBSdKXL1aV0XGShc1jPIJH6A 9V9D3dJVnm2z8JOYUSC75q1R/PfhZ0sYNLJdg1kXUFPFg1a1qD4/dipN8fXpEglehp5S LVTm5xiXs88VvHIT6aejVniJClTmplVJJgw4qjyx0IVCqF5PjMIPkP7FTAf7j8AKIgnR 5zyA== X-Gm-Message-State: APt69E2gzxlcLu3e7jYU7yYcJHgx+3CGn/GJFUo/1s+tnzIM+TThc5rs vEJwM7mUi9FR8ln9Y7X3OzrlXiHSghoFr9abQX8= X-Received: by 2002:a19:6387:: with SMTP id v7-v6mr1163194lfi.74.1528272346453; Wed, 06 Jun 2018 01:05:46 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:b87:0:0:0:0:0 with HTTP; Wed, 6 Jun 2018 01:05:45 -0700 (PDT) Reply-To: sedat.dilek@gmail.com In-Reply-To: <5ad1876557235a089a50e6ed6c558a7dcb0da714.camel@perches.com> References: <20180605170532.170361-1-ndesaulniers@google.com> <20180605170532.170361-2-ndesaulniers@google.com> <202492204c2d5bd5ca27307cbca5e44673b739ed.camel@perches.com> <5ad1876557235a089a50e6ed6c558a7dcb0da714.camel@perches.com> From: Sedat Dilek Date: Wed, 6 Jun 2018 10:05:45 +0200 Message-ID: Subject: Re: [PATCH v2 1/2] compiler-gcc.h: add gnu_inline to all inline declarations To: Joe Perches Cc: Nick Desaulniers , akpm@linux-foundation.org, ard.biesheuvel@linaro.org, aryabinin@virtuozzo.com, akataria@vmware.com, boris.ostrovsky@oracle.com, brijesh.singh@amd.com, caoj.fnst@cn.fujitsu.com, gregkh@linuxfoundation.org, hpa@zytor.com, jan.kiszka@siemens.com, jarkko.sakkinen@linux.intel.com, jgross@suse.com, jpoimboe@redhat.com, kirill.shutemov@linux.intel.com, mingo@redhat.com, mjg59@google.com, mka@chromium.org, pombredanne@nexb.com, rostedt@goodmis.org, tglx@linutronix.de, thomas.lendacky@amd.com, tweek@google.com, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, virtualization@lists.linux-foundation.org, astrachan@google.com, manojgupta@google.com, ghackmann@google.com, tstellar@redhat.com, keescook@google.com, yamada.masahiro@socionext.com, michal.lkml@markovi.net, linux-kbuild@vger.kernel.org, geert@linux-m68k.org, will.deacon@arm.com, mawilcox@microsoft.com, Arnd Bergmann , rientjes@google.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, when discovering 'gnu_inline', I found ... $ git grep -w __FORTIFY_INLINE include/linux/string.h:#define __FORTIFY_INLINE extern __always_inline __attribute__((gnu_inline)) include/linux/string.h:__FORTIFY_INLINE char *strncpy(char *p, const char *q, __kernel_size_t size) include/linux/string.h:__FORTIFY_INLINE char *strcat(char *p, const char *q) include/linux/string.h:__FORTIFY_INLINE __kernel_size_t strlen(const char *p) include/linux/string.h:__FORTIFY_INLINE __kernel_size_t strnlen(const char *p, __kernel_size_t maxlen) include/linux/string.h:__FORTIFY_INLINE size_t strlcpy(char *p, const char *q, size_t size) include/linux/string.h:__FORTIFY_INLINE char *strncat(char *p, const char *q, __kernel_size_t count) include/linux/string.h:__FORTIFY_INLINE void *memset(void *p, int c, __kernel_size_t size) include/linux/string.h:__FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size_t size) include/linux/string.h:__FORTIFY_INLINE void *memmove(void *p, const void *q, __kernel_size_t size) include/linux/string.h:__FORTIFY_INLINE void *memscan(void *p, int c, __kernel_size_t size) include/linux/string.h:__FORTIFY_INLINE int memcmp(const void *p, const void *q, __kernel_size_t size) include/linux/string.h:__FORTIFY_INLINE void *memchr(const void *p, int c, __kernel_size_t size) include/linux/string.h:__FORTIFY_INLINE void *memchr_inv(const void *p, int c, size_t size) include/linux/string.h:__FORTIFY_INLINE void *kmemdup(const void *p, size_t size, gfp_t gfp) include/linux/string.h:__FORTIFY_INLINE char *strcpy(char *p, const char *q) After the inline changes suggested by Joe this can be adapted? Beyond this, a general question: Can someone explain why all these inline defines are in compiler-gcc.h (as there exists compiler.h and compiler-clang.h)? Thanks. Regards, - Sedat -