Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1844854ioo; Fri, 27 May 2022 19:53:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfleNY3sUvXE2w6FIty9hWlGlCYQk0kLGCgSOGE12f+YnDQvlTWtxWR82Sm9jC5yiUObLp X-Received: by 2002:a17:90b:4b12:b0:1dc:dfdb:446 with SMTP id lx18-20020a17090b4b1200b001dcdfdb0446mr11280342pjb.150.1653706412263; Fri, 27 May 2022 19:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653706412; cv=none; d=google.com; s=arc-20160816; b=KjX1M2BCWP1hH66yrKLwPZn7UjkcJf4Y3Yj+JIpD/S8JudEv91qHzUzAzfW+2w+NT8 N3AM1fkBHj91sG0a855c2mi1yiY0pxY+fU9BStjihfGmBSCkG0la75em2g+DPjwu6Qaq xb7sNislYwl70X2TbAVIjXBuK5wcPYhS4SXCYYyRzJYmLKwbnwlXOvMfefC+v1bZhjvT PX5pTJHPTQFdkwKsyI6sLq7FLf/6At34FdV3xBSQ2K3yvM37Migh07PdyI2ntWr/mbkX GfsAfETKLvatacIO9bPvWkTXUB1t5cDGqc86OLUJWgjUH4UEt8MelITn15sEjaCMRcTH arYw== 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=/zrleRNQCe5coayR0kaH9WedW9Vs8BA6BoXc0zZ1wCI=; b=naXqQfhmzXR5+4tMbjDYW2QbfCpJw18D6lfwY0LBmsDOPNy27bLS8dzcAt9exOkPHj 3pHwG/hSOqH39sY/99m2R7ELbH8XZEXTJakC5YsBF0NQ7htLbvzw1jbY+BghWjnoSZTW 29Q+zq0EEjkO/0sxHOJTI4CRTAT/DjHrWojUiB7qPc0J2Ti8sD/kGdeueDpWHu2jpPF5 nn6fhnqaJvhGl0c7fjFOiVZxi3/Ic7fFkf3lwm4QbEq39Dd30HORDQk0UX9MhqwTSD8V qpSO3gPadxfcdlpmRUzt7OZwZg+KNuqe+JEahr/Lv9mwUsi/x49srRGhm7ZrVfuayv+w SQWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BPUDe3A2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me14-20020a17090b17ce00b001e2676272a7si5268563pjb.80.2022.05.27.19.53.21; Fri, 27 May 2022 19:53:32 -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=@redhat.com header.s=mimecast20190719 header.b=BPUDe3A2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244018AbiE0Kfo (ORCPT + 99 others); Fri, 27 May 2022 06:35:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232721AbiE0Kfj (ORCPT ); Fri, 27 May 2022 06:35:39 -0400 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 CB73C128158 for ; Fri, 27 May 2022 03:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653647738; 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=/zrleRNQCe5coayR0kaH9WedW9Vs8BA6BoXc0zZ1wCI=; b=BPUDe3A2qxGTVUWfvgoWs4QWrfSc69uBmjggfUqmNLr4QOC6CrVkjHkg4VDmx5is6v9e38 uXhYx3LY/+llLGvxmiUw7/nBUSAOPDynjdz3xyQW54xQyIE9Jx+D5c/Swtl6Ag+AZaiUG1 SNM9emd/9aoKZMXx6MaVAQmdDnxvUt4= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-613-mzvO4ACxOJOT77PJI6rTWg-1; Fri, 27 May 2022 06:35:36 -0400 X-MC-Unique: mzvO4ACxOJOT77PJI6rTWg-1 Received: by mail-qv1-f72.google.com with SMTP id a1-20020a0ccdc1000000b004642891d824so965391qvn.16 for ; Fri, 27 May 2022 03:35:36 -0700 (PDT) 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=/zrleRNQCe5coayR0kaH9WedW9Vs8BA6BoXc0zZ1wCI=; b=Bw/04fp0YlyNBD4YsDRACNKqA0yUyAugLaEunI0JwUor4aor1VPUSlJCAzBDyDIzLU RO+aGv6l1/n7YOMWJinSVB/sB1NNZcXoxUP7QVcI38Dr4WTwEGxFTdrIPt7HS5TN0BXS GmfaHi5uzYmEyfFAJSu7enSnLiTbIJgaJsLiaUvdVZRAi/bwmz5r+QOEZ/0EXoU8AWXi WqdmIQFvffzbMcNpjka0TbkNASLsdSRcvZe/kyng2hMq8wSpp9nj/oHw0mktfj3w8mm6 mSzMBdQo4ZLNHhgSfsVzbpcKLcNAhoEew4lyYVXoOX4Qc7fOVamSUdvz3TXqVksHMN1z cAxA== X-Gm-Message-State: AOAM531FhkfOWwCcecxHFlh556PgdAZcoZtKjh/6Zf91M6bK8Mm1fHgk EG188LCOSpET8OGHyqrK7nVWpTdJ1klD13j3CNqchChwpStlLA0JpsJejzKDxCG3tkPbIjbX2mx 6JAQZW3uUJ6GizP20iJ22NA4k X-Received: by 2002:a05:622a:178f:b0:2f3:dd2e:6054 with SMTP id s15-20020a05622a178f00b002f3dd2e6054mr32734451qtk.554.1653647736321; Fri, 27 May 2022 03:35:36 -0700 (PDT) X-Received: by 2002:a05:622a:178f:b0:2f3:dd2e:6054 with SMTP id s15-20020a05622a178f00b002f3dd2e6054mr32734439qtk.554.1653647736086; Fri, 27 May 2022 03:35:36 -0700 (PDT) Received: from sgarzare-redhat (host-87-12-25-16.business.telecomitalia.it. [87.12.25.16]) by smtp.gmail.com with ESMTPSA id c142-20020ae9ed94000000b006a33fc1113csm2498024qkg.23.2022.05.27.03.35.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 03:35:35 -0700 (PDT) Date: Fri, 27 May 2022 12:35:29 +0200 From: Stefano Garzarella To: Jason Wang Cc: mst@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, peterz@infradead.org, paulmck@kernel.org, maz@kernel.org, pasic@linux.ibm.com, cohuck@redhat.com, eperezma@redhat.com, lulu@redhat.com, xuanzhuo@linux.alibaba.com, Vineeth Vijayan , Peter Oberparleiter , linux-s390@vger.kernel.org Subject: Re: [PATCH V6 9/9] virtio: use WARN_ON() to warning illegal status value Message-ID: <20220527103529.kc6tpon3lohceskm@sgarzare-redhat> References: <20220527060120.20964-1-jasowang@redhat.com> <20220527060120.20964-10-jasowang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20220527060120.20964-10-jasowang@redhat.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fri, May 27, 2022 at 02:01:20PM +0800, Jason Wang wrote: >We used to use BUG_ON() in virtio_device_ready() to detect illegal >status value, this seems sub-optimal since the value is under the >control of the device. Switch to use WARN_ON() instead. > >Cc: Thomas Gleixner >Cc: Peter Zijlstra >Cc: "Paul E. McKenney" >Cc: Marc Zyngier >Cc: Halil Pasic >Cc: Cornelia Huck >Cc: Vineeth Vijayan >Cc: Peter Oberparleiter >Cc: linux-s390@vger.kernel.org >Signed-off-by: Jason Wang >--- > include/linux/virtio_config.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Stefano Garzarella