Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1397939pxx; Fri, 30 Oct 2020 09:04:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjQdUTlm9fpTpUFUUSLpsn4ZdQPAjRENmGZX47ZfU1xRghkAlVyyBbj5XSUa/lkad7Ww+R X-Received: by 2002:a50:9e0b:: with SMTP id z11mr3281217ede.341.1604073880872; Fri, 30 Oct 2020 09:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604073880; cv=none; d=google.com; s=arc-20160816; b=Y0pTvgOcV4Td57i8eUXAYj5BLK1iGXNNC7Q/I8WmiZwm1962bTZiC9DCMeSf8DYs0U rAWAA3TsZOU2b6ecfwqCJUIsfYzHt9Mn+5RxUh07US3sIIjFu7MkLpHycDbRJwiG+UnN Jkyi5Km/ScD7Ho+wl3ai0DbotfhTDgJjq9wSy/d1AqCdVZrk8INX0+Y5x1SMoVVxuUX4 WE3OD0ACGFAEnH7YWRvgLcLFbRjXopFLymJlizGgtNJ89ZVMHfyZy8o3kjaujxoKtjyt TytbvtWlLRLwlDZZyXhkIX0JmBettUH46XqHC94RUSlEwKvniO8YyG45bwFGMitnigzr 5flQ== 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=c1vCUXQx+8ujG1SC6TG7vRFSLw+HgEPq/pfglble5SE=; b=WGElis43Pp0awUbVMt/tnfLwJt/enCK+qdYpEn7ZKTh4ZAmhRqLa35ibzjkpshVWaT SrB1cZqFnDqcwQ90kYbzH2JSUJ/qtp8i4OlONqDbYwtqql0ID8hkjAC57DVy15auoODs XxVySSyN+QQifHLE9Lck79Tf1i0Js9nPL8EQAURC9cDWW/3Twv8IhCtfR+vMeh7GVoE5 +fJ6r+7l037n9Z9SrFMLNeKsnG5cAQ125KCh7yHNFpWZn0H/Ir4HzjavJN9HLVjup6Bf rIy0aw9rKFUYQVXSvWtYVVtLNO7regzFwGwcVisZcWErd1LwR4uEwj0hwW/tSqZgenBu 9rIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=dqLGMyFg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s16si4612909ejy.687.2020.10.30.09.04.16; Fri, 30 Oct 2020 09:04:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=dqLGMyFg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726063AbgJ3QCo (ORCPT + 99 others); Fri, 30 Oct 2020 12:02:44 -0400 Received: from mx2.suse.de ([195.135.220.15]:51494 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgJ3QCo (ORCPT ); Fri, 30 Oct 2020 12:02:44 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1604073763; 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=c1vCUXQx+8ujG1SC6TG7vRFSLw+HgEPq/pfglble5SE=; b=dqLGMyFgMFJUqcupJ4r9KTUvdptU0xOcxXG+p9FKwbRQAhRVSkV9zEeA+RlnGZCI7FSKMp H/wz5CB3L7mk+IcApg3qcTT4HNyqE643kLbgRQ6mKQkrmXFd60XCHPgG64PAgBZdDbRygY bMRdq91KYbcTqan0mJ/Nl4crzQpZY+c= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 3D367ACF5; Fri, 30 Oct 2020 16:02:43 +0000 (UTC) Date: Fri, 30 Oct 2020 17:02:42 +0100 From: Petr Mladek To: Rasmus Villemoes Cc: Shuah Khan , Kees Cook , Willy Tarreau , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Arpitha Raghunandan <98.arpi@gmail.com>, Andy Shevchenko , Brendan Higgins Subject: Re: [PATCH 2/4] kselftest_module.h: unconditionally expand the KSTM_MODULE_GLOBALS() macro Message-ID: <20201030160242.GC20201@alley> References: <20201025214842.5924-1-linux@rasmusvillemoes.dk> <20201025214842.5924-3-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201025214842.5924-3-linux@rasmusvillemoes.dk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun 2020-10-25 22:48:40, Rasmus Villemoes wrote: > Two out of three users of the kselftest_module.h header > manually define the failed_tests/total_tests variables instead of > making use of the KSTM_MODULE_GLOBALS() macro. However, instead of > just replacing those definitions with an invocation of that macro, > just unconditionally define them in the header file itself. > > A coming change will add a few more global variables, and at least one > of those will be referenced from kstm_report() - however, that's not > possible currently, since when the definition is postponed until the > test module invokes KSTM_MODULE_GLOBALS(), the variable is not defined > by the time the compiler parses kstm_report(). > > Signed-off-by: Rasmus Villemoes Reviewed-by: Petr Mladek Best Regards, Petr