Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1110924rwp; Thu, 13 Jul 2023 06:22:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlHxIIc41CS/o4u/+J0fNKy/bQevUHb3fmSA15EWvv7i3ep0m06QtpxyqXcEecgo0MyBjTLY X-Received: by 2002:a17:906:77d6:b0:993:d54b:3e46 with SMTP id m22-20020a17090677d600b00993d54b3e46mr1079469ejn.0.1689254532439; Thu, 13 Jul 2023 06:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689254532; cv=none; d=google.com; s=arc-20160816; b=HjvBaWvFSYKG80CNWzNmSsryjMNdmokSSrXXTZPDBXcFJ37WA4xuDy7fXIMkJIXTgk EO6B97cJssWeiVjKmSNmT+WMTCC1Gmzjv25xD1Ttwi84+AB5uxOi9s0aCtGzj8nEUSE/ SraA3v82jP20r9bWqg+RzFVq+8qLcelF8lLrEzKNwEoWhTb3rKl3JWSzvig4v5w35/zv D7uo/beTlJ0ZEHHjFqTdI7mCQegX7DHwlBzjfVRDaGxZ2AVg9Ih6bzncLywsd2BNUtuK rJjXRqr17fD6hLPWwy5QTs8RVsSyfPB+4bZRnfQCKlKUXkTnwbgvhFXnqT8YiyjAdX/i NJYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=Tx/aqv++WTiG+HB9fsdEKxv/jL2xUmStLjqk656Qv/M=; fh=0UdjU9rRcFFr7+5iyK8X9AjBr0VoKOKCHdY+7nrjjC8=; b=jt/91POZ2+Bfg4w1osG8FW8JfSw3rquxQ072tNPPJ/kdUclRHiPhUdJV2YeKlMaSIw 16cPqjJEVwH2a6k45fscdWKtiWBvP3J91l2qDCgoAG+fahAkBIGET0+krukmVekX5Do1 HHmzH49Q9RZ/xkpzerHK11EQIYmVyszUa8cxvHTHYJzx/Xi8vSZSi6Nn6wTDPNm0Qhdm Q0h6QwdRMXfYdiQ4SZsgj4eQy3ewFCSlzLYFpPFY8BUR2GGooWKBGqbnDOIxobORfP/O QqzOsCodbKvfvMRyxrT5s7TSA90qmhAAFUmoLcPcfSlBI6kxlcZu88YOuVIpv0QR6B6q 2MkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="Y6R4ohP/"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="+PO2jL/b"; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gh7-20020a170906e08700b0099238b86ef1si7471807ejb.164.2023.07.13.06.21.47; Thu, 13 Jul 2023 06:22:12 -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=@suse.de header.s=susede2_rsa header.b="Y6R4ohP/"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="+PO2jL/b"; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235107AbjGMNEY (ORCPT + 99 others); Thu, 13 Jul 2023 09:04:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234554AbjGMNDs (ORCPT ); Thu, 13 Jul 2023 09:03:48 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 743D2173F; Thu, 13 Jul 2023 06:03:46 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DD0B51FD93; Thu, 13 Jul 2023 13:03:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689253424; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Tx/aqv++WTiG+HB9fsdEKxv/jL2xUmStLjqk656Qv/M=; b=Y6R4ohP/Pm6oFdsUAcmnB840NjimBfd+ZktTM7bIoElWOXKo5kBxblyjYyCgwVacy9PoEG GoNw81G9eR3PzhrlVzAmdw22jRH255EDPbktF36wIW2bOp5d2+QQT1ezkOxEUfBZ398q79 tJUNNQAUVzbCPBHKioBVoCISgfeIutE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689253424; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Tx/aqv++WTiG+HB9fsdEKxv/jL2xUmStLjqk656Qv/M=; b=+PO2jL/bUd+URg1/Q6aNnuX9KiCFmy6zIrbKonDoY53JFV8vhnH/JYPfuS/urGLYZZoSk6 LbkTIyKc12IyBXBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7B83C13A94; Thu, 13 Jul 2023 13:03:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id OOVHHTD2r2TVPgAAMHmgww (envelope-from ); Thu, 13 Jul 2023 13:03:44 +0000 From: Thomas Zimmermann To: deller@gmx.de, javierm@redhat.com Cc: linux-sh@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, linux-input@vger.kernel.org, linux-media@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-geode@lists.infradead.org, linux-nvidia@lists.surfsouth.com, linux-hyperv@vger.kernel.org, linux-omap@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org, Thomas Zimmermann , Sam Ravnborg , Kirti Wankhede Subject: [PATCH v2 07/18] vfio-mdev: Remove flag FBINFO_DEFAULT from fbdev sample driver Date: Thu, 13 Jul 2023 14:58:27 +0200 Message-ID: <20230713130338.31086-8-tzimmermann@suse.de> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230713130338.31086-1-tzimmermann@suse.de> References: <20230713130338.31086-1-tzimmermann@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,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 The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by framebuffer_alloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * fix commit message (Miguel) Signed-off-by: Thomas Zimmermann Acked-by: Sam Ravnborg Cc: Kirti Wankhede --- samples/vfio-mdev/mdpy-fb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/samples/vfio-mdev/mdpy-fb.c b/samples/vfio-mdev/mdpy-fb.c index 3c8001b9e407..cda477b28685 100644 --- a/samples/vfio-mdev/mdpy-fb.c +++ b/samples/vfio-mdev/mdpy-fb.c @@ -162,7 +162,6 @@ static int mdpy_fb_probe(struct pci_dev *pdev, } info->fbops = &mdpy_fb_ops; - info->flags = FBINFO_DEFAULT; info->pseudo_palette = par->palette; ret = register_framebuffer(info); -- 2.41.0