Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2271545pxm; Fri, 4 Mar 2022 12:48:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwm7Q6fdaWAOe0gJZ1zXBMOpaC5P3YmD8KyMnzsOtfbZrI0pen4Gd4IhgW2/cBfAzMLCssJ X-Received: by 2002:a17:902:a611:b0:14f:9d5d:950a with SMTP id u17-20020a170902a61100b0014f9d5d950amr387878plq.69.1646426921666; Fri, 04 Mar 2022 12:48:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646426921; cv=none; d=google.com; s=arc-20160816; b=RYa7axxf2RwsfaDmVTT1i8RyNgWgKRhfzjiXEaYgH1+CGq7GEsnHxZ0ZLvm0lUlAOP g8e3AdRk53PaQt3NkIfLTuqIMoHFp27XyZqMqapyKsu+UmiuMMUF0o0rFWzMcGlmRqmz Oq52R9Lnwl/WgCXC435q/3yuV4fRAGkNefDbNy6A1aEPp8N1LQmCmsuTAJPSg1RWSzpg yoqNR+rEPY1AJCu5Cmy6OjB+B9IBXsZ5rP1kDURjLkL0FfiLnteDYWSiTXUkMCT3FSMq 9MRpsvGv1o4kRQBjyUlEseCv2Dp81p5OUd3cf2c+dLcDAXOpeDAWMdZi7bFEnbWIwlLS OEcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uuolMha36fR3V9fCYUEsh1kVaVRuC07DhiUU/5Ph/4c=; b=01bXvGYDAfSvg4sg6R27MLU35cWeTEms4pjFFAOfQsdFF/3nmw5LVFyR80cF8uPIVQ sdNPHkDuVe9oBtM/msWFG6EWl37pLLtx6Fa6ymGLcV4zvQt4Y3ql+Yy/+1IpZHeW8xaS aFtpX2XvAHxw1lFSTu/RBe/8u97cVOZJ7jVF3kNmqSvZCrRd9TEIHjFpfPed/NWuAmDS Z7IaK32XcCQuZFx2z542hn1cjQujPMlzK4rf7qkEHl4w7szdNWZwdEB/mt+kFmw3Qpxk ZBn9VRKSUVxTGF4mzHI6kNR+tw4H2VjLqbVU3udGVA2Qh7AeQhaM4HDO/ap4HSo2Y85W IPHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HOwaHQUi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i17-20020a635411000000b003644cdb823csi5338410pgb.78.2022.03.04.12.48.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:48:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HOwaHQUi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E361F2BE197; Fri, 4 Mar 2022 11:49:40 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229591AbiCDTUG (ORCPT + 99 others); Fri, 4 Mar 2022 14:20:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbiCDTUD (ORCPT ); Fri, 4 Mar 2022 14:20:03 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9F0F6DEA1D for ; Fri, 4 Mar 2022 11:19:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646421506; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uuolMha36fR3V9fCYUEsh1kVaVRuC07DhiUU/5Ph/4c=; b=HOwaHQUizKNciuTYM1ezrCBTZSreQC+ffmFBOc0bWKmnVaE3YciC2VyniEaPuVOI0ojGyT c9zR8TQc8EaELeWc+GXTf35SXRUnvk+qbyoA4+Bx7xPd+o+rwE8HgE5xSg68is+7+lUlgK 1n8GFaYGnv5D32OfpgfbsdPpSYUCFzo= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-581-o0J213NeMY6k0yTYe2pc_Q-1; Fri, 04 Mar 2022 14:18:25 -0500 X-MC-Unique: o0J213NeMY6k0yTYe2pc_Q-1 Received: by mail-qt1-f197.google.com with SMTP id a6-20020a05622a02c600b002dd2d38f153so6795167qtx.17 for ; Fri, 04 Mar 2022 11:18:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=uuolMha36fR3V9fCYUEsh1kVaVRuC07DhiUU/5Ph/4c=; b=ZpuRiN1h+avOUR9SeUpHm4kLdkNpM6hrUKBTDKeTDMc5DRK/PiimsZ+MYY5mjAd/Om etu4mVQW5P/yC/QDPKZzVPbhSLH1seZVF3XhUzYOi4xS+CKBktvVKLjrrwDGOpWxzOsA 2oXdplncua6ma/rg8Sf5FfMiuTVY/gFPzQOf8E/H5mx/ukFFEiTTwcJ1htg4lR+6NyCP i0eN4/eKYnp6dmEg2waOaXnLlz8zwgH5P7JFtXZZFim30s0Oh8qB15uYo/hCe3hhPZTw HNqjZ7YBJICDQqWsclKILMZkVGeaI5UZrV81Y8EAHn1CtVhj59YpncT6cFJsg2zXMe4i WngQ== X-Gm-Message-State: AOAM5320LPvC4ruS+qtkhwsf4/b7G58tFyGQvo+RSuC5OS+5PA376Z1w zpXdRoUnNXSSVG5ned1rZJRFCTRWJ3swTZCwReYAwsF6rRrvZJQvuOEASdMnADexH8ImGa4+8r2 rQSm5D9d9nNwqcS9lkn5THosN X-Received: by 2002:a05:622a:11d0:b0:2de:7392:d6b1 with SMTP id n16-20020a05622a11d000b002de7392d6b1mr240408qtk.90.1646421505037; Fri, 04 Mar 2022 11:18:25 -0800 (PST) X-Received: by 2002:a05:622a:11d0:b0:2de:7392:d6b1 with SMTP id n16-20020a05622a11d000b002de7392d6b1mr240393qtk.90.1646421504807; Fri, 04 Mar 2022 11:18:24 -0800 (PST) Received: from treble ([2600:1700:6e32:6c00::45]) by smtp.gmail.com with ESMTPSA id n18-20020a05620a223200b00476534e4fdbsm2708079qkh.95.2022.03.04.11.18.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 11:18:24 -0800 (PST) Date: Fri, 4 Mar 2022 11:18:16 -0800 From: Josh Poimboeuf To: Vincent Mailhol Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org, "H . Peter Anvin" , Nick Desaulniers , Alexey Dobriyan Subject: Re: [PATCH] x86/bug: __WARN_FLAGS: prevent shadowing by renaming local variable f to __flags Message-ID: <20220304191816.tyoowjqivxw4qo2j@treble> References: <20220303110755.24147-1-mailhol.vincent@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220303110755.24147-1-mailhol.vincent@wanadoo.fr> X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Thu, Mar 03, 2022 at 08:07:55PM +0900, Vincent Mailhol wrote: > This patch renames the variable from f to __flags (with two underscore > prefixes as suggested in the Linux kernel coding style [1]) in order > to prevent collisions. > > [1] Linux kernel coding style, section 12) Macros, Enums and RTL, > paragraph 5) namespace collisions when defining local variables in > macros resembling functions > https://www.kernel.org/doc/html/v4.10/process/coding-style.html#macros-enums-and-rtl Looks good to me. > > fixes: bfb1a7c91fb7 ("x86/bug: Merge annotate_reachable() into > _BUG_FLAGS() asm") > Signed-off-by: Vincent Mailhol Fixes tag should be capitalized and in a single line, like: Fixes: bfb1a7c91fb7 ("x86/bug: Merge annotate_reachable() into _BUG_FLAGS() asm") Otherwise: Acked-by: Josh Poimboeuf -- Josh