Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2223463iob; Sun, 15 May 2022 11:42:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkUkR7SvnAXiX671ioyzQ2oMDtAdGYs96gQ2vZiM0O7gEFEuiRbcvIIU/Lh6FSTNu2hNj/ X-Received: by 2002:a05:600c:1c0e:b0:394:66af:ef0f with SMTP id j14-20020a05600c1c0e00b0039466afef0fmr23657342wms.48.1652640177268; Sun, 15 May 2022 11:42:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652640177; cv=none; d=google.com; s=arc-20160816; b=u9Y4xUj7JDWBpr6LQia1QkTMMTSneFmNrRId3kPTq3NCuKn8xkh+04DcVsWV5S+GLM ySXDu5EcDvbrBBFV/KPJfmuXUV+gKBkO4H/NTpabXSCdqfT+Bzgc6OMLQ+pAwhdFgRyK T9mgzT/sFdWfKe4LavFRllnUO/LIob0EdLIoFc+jhFaDVKa9MdTD6FTM9tuqI/eAc9wO 4c+TYkBE45cTSzlkiOXcfVxycFQiIXP2vtSyCLTE6dhhbiMq92Kl1nyyjHUC0m8HL9K0 q0S8V5LCqLNhXhem7DJjyZ2tE3YG44lUAt80aktoUTeGdH+tsPXTobhbrzPHeSDkgSp9 ZhLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=W0IcwkIC62+e9+CLItbBIFdA4NdjJHDiidWSiPECNao=; b=Et59RAzOiLQF71hH6oREjE89rWeYNrW7r3tTA+4Fhd6duoiZRcbm0fVhZGT18W8kWb V5eg7Lu1+vQGxZrYf+XwXNZa3U6zb0x75LB24PDcZ0clHgb5vjsw6VKl8+MZJJ4sQIxN JLUMWYimzE4HAzoWu0/tkMUB+bcIhMYg4BHvINYXeWD1oTXGh05ditLzaUKN884wjv5w 16PjBu4AJLBXaPgJQXtdA2SQoLwipsT4GRIXMdsSny6C31lYjZI27PtKJRQ52CkQn//l /L90WbIQBsD4zdK66bjJajmGGOH2oVvNqf2XBJkQbqCrv4kjkNA0stI4OOgKw+qZ17+l 3Z4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=1va55SdI; 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 l14-20020a05600c1d0e00b0039449bc9517si12027891wms.56.2022.05.15.11.42.30; Sun, 15 May 2022 11:42:57 -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-dk.20210112.gappssmtp.com header.s=20210112 header.b=1va55SdI; 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 S235188AbiENUxi (ORCPT + 99 others); Sat, 14 May 2022 16:53:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231316AbiENUxf (ORCPT ); Sat, 14 May 2022 16:53:35 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 336B936162 for ; Sat, 14 May 2022 13:53:32 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d25so10648631pfo.10 for ; Sat, 14 May 2022 13:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=W0IcwkIC62+e9+CLItbBIFdA4NdjJHDiidWSiPECNao=; b=1va55SdIra2FARAV9Y0J2GNI9+Qu66opAxRPIfRI0B6n0775TD5FvL5meuOR6xr9O9 CnYBcZp49a+FEAZLa5B+rnuMeqsHjTtwu4ie+nJYSukx/+hC6G/7x6Xtucl/Ut8rr468 erzT42mAiP2ThAeHlVH8NoseMzU3uIrtF1R/O3XQrSmzrIi5Py0L9PquD5yG0NpTeXHR mb56QbMHeJ2PtHj181iiiWZIPtLABwnFmqI92jpbeWU4/JfY2G+P6UtoWN47+yqOiZnM kHAh3rumM9jUulnnJ0XsIWlWu97ZF0dYrLr71LftVjnFfrgUIN7ESZwzU3gSe6mvcTXP ObBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=W0IcwkIC62+e9+CLItbBIFdA4NdjJHDiidWSiPECNao=; b=xyvJPg3dvEnnzTZstz9NiAfYS11bKEXknQY8vXq8mBijizB1iFtXkcBzh0bwW5tx3C g8DqQnOjqK61aPMebCopXNs3wY89DddzXXfhL9cONc9Uw11lgBJmJZNmVsJJQMigdjSb 4XXU9RrwsMJ4C0YC5sm4VwvqffuwtgsQaU3O4YKH10kQ+3LNlaprRWpSOTbNE/CwlKah B0K4gZZ9tn6USDzKnHA+H6YVYieOfFpfzxprWdOVVYffBmVDLZRQOnYiHGlDhlma93mI AywtvqcvL76XrMDsAuI64cev1P9SvTkP6HA2ABtS2t0GI4q6hCcCjuJ7n+kygQPk3D/h WEnA== X-Gm-Message-State: AOAM530vDPsH6Im3eEEpbbBoybywWN0+aN47vkjlEcSfjKcNQieafYA5 Nv+yh7g10TQ68PDtJHHE9ROmnicFlKmGRQ== X-Received: by 2002:a63:f158:0:b0:3db:8563:e8f5 with SMTP id o24-20020a63f158000000b003db8563e8f5mr9205183pgk.191.1652561611440; Sat, 14 May 2022 13:53:31 -0700 (PDT) Received: from [192.168.1.100] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id z12-20020a17090a540c00b001cd4989feb7sm5699900pjh.3.2022.05.14.13.53.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 May 2022 13:53:30 -0700 (PDT) Message-ID: Date: Sat, 14 May 2022 14:53:28 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] sparse: use force attribute for __kernel_rwf_t casts Content-Language: en-US To: Vasily Averin , Pavel Begunkov Cc: kernel@openvz.org, linux-kernel@vger.kernel.org, Steven Rostedt , Ingo Molnar , io-uring@vger.kernel.org References: <45e8576e-5fcc-bc52-8805-0b5cc3fc1a84@openvz.org> From: Jens Axboe In-Reply-To: <45e8576e-5fcc-bc52-8805-0b5cc3fc1a84@openvz.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, 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 5/14/22 10:23 AM, Vasily Averin wrote: > Fixes sparse warnings: > fs/io_uring.c: note: in included file (through include/trace/perf.h, > include/trace/define_trace.h, include/trace/events/io_uring.h): > ./include/trace/events/io_uring.h:488:1: sparse: > warning: incorrect type in assignment (different base types) > expected unsigned int [usertype] op_flags > got restricted __kernel_rwf_t const [usertype] rw_flags > fs/io_uring.c:3164:23: sparse: > warning: incorrect type in assignment (different base types) > expected unsigned int [usertype] flags > got restricted __kernel_rwf_t > fs/io_uring.c:3769:48: sparse: > warning: incorrect type in argument 2 (different base types) > expected restricted __kernel_rwf_t [usertype] flags > got unsigned int [usertype] flags Hand applied for 5.19, didn't apply directly. At some point it'd be nice to do the poll ones as they are the biggest issue wrt sparse, but honestly I've never really been very motivated to fix those sparse warnings as it would just be an unnecessary pain for backporting patches. -- Jens Axboe