Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp2049583rdb; Tue, 5 Sep 2023 12:45:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGcA4RCQvhmrsU3sTiF5kobNcdVaRySTzxQDHwr6nmRIjg2CER2z70TwscG47leEPpoMsDN X-Received: by 2002:a05:6a20:1605:b0:14e:b4d5:782d with SMTP id l5-20020a056a20160500b0014eb4d5782dmr14578776pzj.2.1693943143360; Tue, 05 Sep 2023 12:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693943143; cv=none; d=google.com; s=arc-20160816; b=aMbPRgF70hGVB1EVQlzjShdeZQ97yV7eHvTMYjay7XdKWzEh8FWmws46Fq42szhL4d xHqgJoJ9nlzQHUEA5A/sNpAvGnbq1Y/eDhrJGbZxoR/er/oQZ7vtTNcy9uQw4/FhaZUd W877D/L6UCZ52mQ2y8elgniTeENMAWj5wGmdGfWn0CSq9CHsbfrmO2X4QZ2LBsUB5vmU xtgp1DobtG67oSIH94rM2kM4V4ryFAixS2HSSIDZZRVaQZWC5zDg350b4T4Ha6wjif8R 2CzbPRIU0UUUYU3+7t/X2BkN4EO4oloz1bYZ2yPtf5uM3pUkpYXM/AbKKu+BzrTgzeV/ hkLA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=U0lR03pMKmi5rn6arMgwDOzh6T75DnnrTWH9F/+12is=; fh=tbu4Rv5dn/FIf7kprEggtzsW+ymg+QmWTaeDGolwAyc=; b=pmXwW0O3ynQHnjrL0WkuWWgtDDWaiypiVif11M9839YZXQC0syG6jEsK9Epk1Y2fxO CVitDdNdP1Ryk+iFx2FIdNEUWsiG8A9/bTyB4yiwuAMasnWNo2hMJZGiZ/eotbDIxt0A iIRwWseovCt7EjxczL9jUgI+Ihvg/ad1T0lDNc81STjCUZQmRCx21FRhsP1UNf/zhTfE DWnRr9tqkeT1ApUelwpaU7R26eXKI8vTyH3/YBt6XWQdeQbeSUnekw6H4XPCR3nqMMo0 djTa6CAwPWDSx2YODamaOMLHAJoJBm5Q67EUndzSshhhhZxUZDAisVfw5Ju/2MX8JYpa wPvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=pXKKPB9l; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a63e302000000b00563ef54582bsi9872418pgh.105.2023.09.05.12.45.42; Tue, 05 Sep 2023 12:45:43 -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=@ventanamicro.com header.s=google header.b=pXKKPB9l; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245503AbjHaOeD (ORCPT + 2 others); Thu, 31 Aug 2023 10:34:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229834AbjHaOeB (ORCPT ); Thu, 31 Aug 2023 10:34:01 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D8521B1 for ; Thu, 31 Aug 2023 07:33:59 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-52bcd4db4cbso1085973a12.1 for ; Thu, 31 Aug 2023 07:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1693492437; x=1694097237; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=U0lR03pMKmi5rn6arMgwDOzh6T75DnnrTWH9F/+12is=; b=pXKKPB9lkIEseG7s31oAOxv2JL4p4TIgTwdibdVtbiooioBKgCLOY8wY7snhvxYw6h 9nUGmteH6bmN3huVS2pxoVsVqFjHU91axAmLWt8RBbiyduPpqCU8nOiFGcSfdD1Lnt2O ci3OBheFrt+nyDnWLA6gEadRZzBhBG0/GL91HA6UhlESlWRspaTVFPUd8KlzGZrmift2 bBhYHfF6mnENZ6qBT2HGOvbX3PrlK/i42deLeI3ShQJ1EDB9ujI/E9glIkXwhAb10ETt y8/s36oryaNY+V29Zj5yg2QjumhNXGLATQn93Lz+qew+UF3qPXXaXfWG2mkbg6mPB6C9 Nw7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693492437; x=1694097237; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U0lR03pMKmi5rn6arMgwDOzh6T75DnnrTWH9F/+12is=; b=YWhCJ+FYZNPtDhKHlelhf3ZC7+DaWc6c1OP5ztV9fVOIGAusCDVgpGpvf08tnE+z5y JJGYJ33v751NazFaroXCgY9B7vCSL3xGb0y+cyrqP/F5Gc9fLZWUp50qYzRBlnTH4Nrq fk7eU3ORczFVIu6lRV3j4EvUcdD4bklD5z8xt/CRpgOUDqj5K1BN+/4UhHVZ6rcSmJTB GreOEvClh7BH9BLa2OC3bCYKIgqv9BzfUY1B0xHUtdcQHwAmgvkNZiJO9zYq3IyLGcpE V+UaqDWCle0rjKU24Mf//KWp05jiva6GZtcAUpGgRRkIvC0qg0aZmSzrsDh4/MfBL/71 4GxA== X-Gm-Message-State: AOJu0YykJTVPerXbd7Rf5RJ0rr4k7pKdB5+7hX4QRIMZ44kadQBIIsp0 39Zl+EdL9lSt1G9dg/MhOPXHQw== X-Received: by 2002:a17:907:2ccc:b0:9a1:fab3:ee3f with SMTP id hg12-20020a1709072ccc00b009a1fab3ee3fmr4622377ejc.40.1693492437655; Thu, 31 Aug 2023 07:33:57 -0700 (PDT) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id a6-20020a170906244600b0099cce6f7d50sm827834ejb.64.2023.08.31.07.33.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Aug 2023 07:33:57 -0700 (PDT) Date: Thu, 31 Aug 2023 16:33:56 +0200 From: Andrew Jones To: Maciej =?utf-8?Q?Wiecz=C3=B3r-Retman?= Cc: Ilpo =?utf-8?B?SsOkcnZpbmVu?= , Paolo Bonzini , Shuah Khan , Reinette Chatre , kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, LKML Subject: Re: [PATCH 6/6] selftests/kvm: Replace attribute with macro Message-ID: <20230831-ada633c2cf0a9ff1df74e8c6@orel> References: <82ed62dd7070203701b4ca326e62862404dd5f72.1693216959.git.maciej.wieczor-retman@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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 Wed, Aug 30, 2023 at 03:40:10PM +0200, Maciej Wiecz?r-Retman wrote: > On 2023-08-30 at 15:22:57 +0300, Ilpo J?rvinen wrote: > >On Mon, 28 Aug 2023, Wieczor-Retman, Maciej wrote: > > > >> The __printf() macro is used in many tools in the linux kernel to > >> validate the format specifiers in functions that use printf. Some > >> selftests use it without putting it in a macro definition and some tests > >> import the kselftests.h header. > > > >"Some" and yet this only converts one? Please be more precise in the > >wording. > > Okay, I'll mention them by subsystem. > > >> Use __printf() attribute instead of the full attribute since the macro > >> is inside kselftests.h and the header is already imported. > > > >IMO, this would be enough: > > > >Use __printf() from kselftests.h instead of the full attribute. > > Fair enough, I'll change the paragraph to that. There are two in kvm selftests. test_assert(), a few lines down, also uses the attribute. Thanks, drew > > >Was there a reason why you didn't convert mm/pkey-helpers.h one? > > Sorry, must have just missed it somehow. Thank you for pointing it out. > > -- > Kind regards > Maciej Wiecz?r-Retman