From patchwork Fri Oct 21 11:59:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel Ojeda X-Patchwork-Id: 6669 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp667934wrr; Fri, 21 Oct 2022 05:25:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM46eiTdZyYh3ZqUfB3o5WPk5Ur4lB8/qPIJXkBJyWzHxmCE6cVNfZc3l6yOCL/2BGNj53sO X-Received: by 2002:a17:907:720e:b0:78e:2b59:fdf1 with SMTP id dr14-20020a170907720e00b0078e2b59fdf1mr15725324ejc.659.1666355138636; Fri, 21 Oct 2022 05:25:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666355138; cv=none; d=google.com; s=arc-20160816; b=k3qbsEty0QQwI27/AUdnP1fssWxpQkYaLROFKcfPBBqYHnyCU3CWgeKEvjzG5VSdNZ EKURQQCgF/21EMIhWxRkL3B2yt/zcfp90IVilMPhQkxQ9NCCHaoSh9OIF0a0jDR07hlt l/lAAc9WxMEW5wIiSaoyazziKAjaD9EiYoLOIrwJi8dE+L8bm2WhSbJRycj28D2JT+qn LNjB3Ka0zReLdwhWi7pFeXdR7vcpsGkhvWk9MJqYQjnmNG4RJZore0YKrL5pYOWCd9cu jNZjdE8DBDaS2uKC5IlPOOAwfY4f2RuD2z2Sws5rFNNk3QzA6+/C4nOdglFvePFvw+xB lwcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qEnY/tYRtqHG2Qfa00jTQhr8RMAKK4jMsdIiqcf11aw=; b=wBHjdZbJxd1MXImZ2WvwIEIZITXTkFwFx48pqsIkDcsDGUV0TeRJ2qy5OLxzrGMXI5 ODo/XLQhPhjEiqy6iLbXsRoCnkyYtqT+VC1hVB2BkEph1MZRtuhtO7Ysi2HUTa2sof3o KlLvlxXW/nbgHYWqLaeCn+S7FRuVU67my89ANU1AVLBHjj/NcsN1WLwp8VvwKDmcRuzh E9CFM0tCbcSG1OZl2EoUWA6ftSNp/xfIcxhvZb+wZXefysKyQDR37yoD6NbyusC/LckS xsW5GYLZ2Tdbi729A8Cnhx78MkWQ1pIaZqPcT9Z7+2PszEYWriYGoLSF8Dcpy0VJhyaB 7C8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dF4pLXzg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m7-20020a056402510700b0045935adb5b1si22148512edd.395.2022.10.21.05.25.12; Fri, 21 Oct 2022 05:25:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dF4pLXzg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229919AbiJUMA2 (ORCPT + 99 others); Fri, 21 Oct 2022 08:00:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbiJUMA0 (ORCPT ); Fri, 21 Oct 2022 08:00:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 831B824C10A for ; Fri, 21 Oct 2022 05:00:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 85E68B82B93 for ; Fri, 21 Oct 2022 12:00:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 264AEC433D6; Fri, 21 Oct 2022 12:00:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666353622; bh=k8JUHW9fchhpucbQdTqeS+XpjxIaOPmsYLjmQJ8UZt0=; h=From:To:Cc:Subject:Date:From; b=dF4pLXzg6J4TMw39jr2J4A25Xhwm4piQylhLCHimblU8Uw7VsAofbSTAYtnTdnOxV /lTYg3DbdATbgMBqCeoCBCIN0m35HnCl2SbOEPWe1JtjnGNG35FVLy0oeukNqlxkq6 OG8mzxkg0UjTQAMy2IfxuW0l6/bzB/CvRxZxWT+qH3/NXyk+YcwEUdg41zdbwbvXmw rBn5PZJ671ijJVSfoe7mqu2RyAfemnsRdfXvdnZxSSJJu3/ToXfDDemxRZyceG+miK phx+V6K0Wl9/IWHANeIqGlKcywz27XEqMJZdLPhWAnQVUCVhf4fFVSLrlHkhgO6urI IsDagljFJh/mg== From: Miguel Ojeda To: Andrey Konovalov , Marco Elver , Kees Cook , Arnd Bergmann Cc: Andrew Morton , Kumar Kartikeya Dwivedi , Nick Desaulniers , Nathan Chancellor , Uros Bizjak , Dan Li , Alexander Potapenko , Miguel Ojeda , linux-kernel@vger.kernel.org Subject: [PATCH 1/5] compiler-gcc: be consistent with underscores use for `no_sanitize` Date: Fri, 21 Oct 2022 13:59:52 +0200 Message-Id: <20221021115956.9947-1-ojeda@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747300006226828122?= X-GMAIL-MSGID: =?utf-8?q?1747300006226828122?= Other macros that define shorthands for attributes in e.g. `compiler_attributes.h` and elsewhere use underscores. Signed-off-by: Miguel Ojeda Reviewed-by: Kees Cook Reviewed-by: Nathan Chancellor --- include/linux/compiler-gcc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) base-commit: 9abf2313adc1ca1b6180c508c25f22f9395cc780 diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index f55a37efdb97..b9530d3515ac 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -83,25 +83,25 @@ #endif #if __has_attribute(__no_sanitize_address__) -#define __no_sanitize_address __attribute__((no_sanitize_address)) +#define __no_sanitize_address __attribute__((__no_sanitize_address__)) #else #define __no_sanitize_address #endif #if defined(__SANITIZE_THREAD__) && __has_attribute(__no_sanitize_thread__) -#define __no_sanitize_thread __attribute__((no_sanitize_thread)) +#define __no_sanitize_thread __attribute__((__no_sanitize_thread__)) #else #define __no_sanitize_thread #endif #if __has_attribute(__no_sanitize_undefined__) -#define __no_sanitize_undefined __attribute__((no_sanitize_undefined)) +#define __no_sanitize_undefined __attribute__((__no_sanitize_undefined__)) #else #define __no_sanitize_undefined #endif #if defined(CONFIG_KCOV) && __has_attribute(__no_sanitize_coverage__) -#define __no_sanitize_coverage __attribute__((no_sanitize_coverage)) +#define __no_sanitize_coverage __attribute__((__no_sanitize_coverage__)) #else #define __no_sanitize_coverage #endif