Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp37403lqh; Mon, 6 May 2024 10:26:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOfiitDyZBoxRaY+ridaR+0p/KrH5swvN4YzDxHB0cri1GmVThoYxZPjc74qOnmOZUpilf/wHh//LllcOXdfvBXpNqc1OS0NtQJK4rIw== X-Google-Smtp-Source: AGHT+IGQdlaJI6FowIjLOUV7SW2amYDfJfaJ7f8dSZDbaCAJL0E9epQoDX6DbuOaUsLYhofdeldZ X-Received: by 2002:a05:6a21:6704:b0:1ae:3874:b48e with SMTP id wh4-20020a056a21670400b001ae3874b48emr11632950pzb.30.1715016377990; Mon, 06 May 2024 10:26:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715016377; cv=pass; d=google.com; s=arc-20160816; b=jeddQoCNOyOBYSaXb8FVmArb5BKJCbOzRnEMXgNlHG8sGB8IHQoCPYAp8Jhmj/7S9e a+wW4kmS35ElF7Mx0MshaN34VVXmuGo9G5u9mRjNZkRZ0BPjMTT3htKmNaJmFn1SpfQm keY0N+r5/T77OlC7dyAFnQUP2RX9BWzWD3K0GgqAFpB9hz6OySXjyHcQlnn6UDbuzDgL 2H+I5ZW5nE+7LeezawGG0NHHa96+g1Vosu4//cAnDiTnMsaA/YZSwTMT3/SlUaWsrYe7 bqfBnWOhgjJYFlbjweOVLSkpaqnNJmhuoO9rwTc8Zg9DFak7SzwR3vIVJV4piAA4mWJF QPLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=o74xjSgX6ct8IVhhMhcaWWX0LqgWCepZXu5YS4av2Bo=; fh=nnHyvVQgZxSxAs2MHW/ccWsg4BUlHZXbuTr0Qv58RkQ=; b=koqkX2O//n9LvP5cyHbXYHHB2mOhCBiUdvxSkF4yvGkuCu9eLnmQ7OxNhsa5EgG+yK bYidL6bem2kv37zp5Ibkz42H7ena2/vNB8mtstQZDeFfRdH3DZbVickDgmkGcntldqvO y7RblMdvja9yMHuLGfee8+6VaO2UJC5dAIp52smeJBzgTvX9DaS6xkx/MWsOY1YNmDj8 JSLilziIDeFAmw1dgVzZogyzg9rmwLfzoQUEb4Dvhun4x1Stj4X3w/ZMgJa7mh8G/AbT qfb9EMgp40XTO27grzgsm2TOjDabexrfVBFO4KOiuXf+meRI7YPUg+ca8xwJ9aEUd7z+ bO6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=D8uO3I7i; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-170230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170230-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t9-20020a056a00138900b006f446ee102bsi8099073pfg.379.2024.05.06.10.26.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 10:26:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=D8uO3I7i; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-170230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170230-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 85FA428549C for ; Mon, 6 May 2024 17:26:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD1FB15575A; Mon, 6 May 2024 17:26:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="D8uO3I7i" Received: from 008.lax.mailroute.net (008.lax.mailroute.net [199.89.1.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B0F715746D; Mon, 6 May 2024 17:26:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715016370; cv=none; b=Kk4JXmMVrd/Em2IfUe/b1ovlOrMq1hbSYCGi/RRJYvkmz1Q3WH0S4/iIIxF9IxVbKBOsrNHsXLC6YHLmNPiS4Nju+uYd1ag7G68NUBVYZSyl3IzXYkD3qqxOE/g4gjlfxpUyEefrR2Eut0OqdOwJhIjOSNHr3EVNF9TA3ID+75o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715016370; c=relaxed/simple; bh=/UEdzWG6W3N3O/mmzu5JT7SpPAIeYbPNPjDDE2tNG3k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ALQc6EbbeLzxUonOBcLyKLVRtGkb+BpT9h/6FQHbD3Q9NdZIRVrARsifWIeq6je8X48vCogGuFLxdRKwr8HErjaQN07hDf4CoOdGSf/EJd36C7VBdR3O9D+apGIRN72m8Biyzf7Qgd9kpvp0uvmSCYnUvDAAlfUTcLsaCmsZgu4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=D8uO3I7i; arc=none smtp.client-ip=199.89.1.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Received: from localhost (localhost [127.0.0.1]) by 008.lax.mailroute.net (Postfix) with ESMTP id 4VY7c02D1Vz6Cnk9X; Mon, 6 May 2024 17:26:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1715016366; x=1717608367; bh=o74xjSgX6ct8IVhhMhcaWWX0 LqgWCepZXu5YS4av2Bo=; b=D8uO3I7i5qgxMTT3MRWY6m34AzGmqRocT9xTmb2M TEphfE6dJ1cepLDC0xCrhswRYwwNjSAl9i+1mOrKnA9EzQPgD0L7FjE4p/T0tjuT CSGb4dUz2MetdcIVcwkBKWfb0WBrDaLhErKRfcdk56uSD5gV/psP32gnstj34VtD AS+8zAtsqQvRgWJZ9SeBX5uUF0b+EHJHxGkc/gyplXkCY29qaOlyycaMAKp1LGsM BwMHw7tPFTLupK+CpYKNiYvwtV2QTNtHubnG+cwCCnlZKqLZ4y9Vc0i3Pht9ceaX 9Tj5M23RFO7LeMDzShoEifev/W4iKhBcxUcn5LDklX1UXA== X-Virus-Scanned: by MailRoute Received: from 008.lax.mailroute.net ([127.0.0.1]) by localhost (008.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id sRWVsYLPV9Et; Mon, 6 May 2024 17:26:06 +0000 (UTC) Received: from [192.168.3.219] (c-73-231-117-72.hsd1.ca.comcast.net [73.231.117.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 008.lax.mailroute.net (Postfix) with ESMTPSA id 4VY7bw61x4z6Cnk9W; Mon, 6 May 2024 17:26:04 +0000 (UTC) Message-ID: <5a1ebb30-d6b8-4f1f-9324-4d7b12e1be21@acm.org> Date: Mon, 6 May 2024 10:26:02 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH -mm 1/2] nilfs2: use integer type instead of enum req_op for event tracing header To: Ryusuke Konishi Cc: Andrew Morton , linux-nilfs@vger.kernel.org, linux-kernel@vger.kernel.org, Jens Axboe References: <20240430080019.4242-1-konishi.ryusuke@gmail.com> <20240430080019.4242-2-konishi.ryusuke@gmail.com> <650ed9f6-fa50-4a3b-939d-633f9e389137@acm.org> <32e6621b-cbd9-42be-8626-49c12c25f139@acm.org> Content-Language: en-US From: Bart Van Assche In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/5/24 12:04 PM, Ryusuke Konishi wrote: > I also tried typecasting on the declaration header side of event > tracing, but so far, the sparse warnings don't go away except for the > patch I first proposed. How about this patch? diff --git a/include/trace/events/nilfs2.h b/include/trace/events/nilfs2.h index 8efc6236f57c..b1a364a33a62 100644 --- a/include/trace/events/nilfs2.h +++ b/include/trace/events/nilfs2.h @@ -200,7 +200,11 @@ TRACE_EVENT(nilfs2_mdt_submit_block, __field(struct inode *, inode) __field(unsigned long, ino) __field(unsigned long, blkoff) - __field(enum req_op, mode) + /* + * Use field_struct to avoid is_signed_type() on the bitwise + * type enum req_op. + */ + __field_struct(enum req_op, mode) ), TP_fast_assign( Thanks, Bart.