Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3169014pxx; Mon, 2 Nov 2020 01:38:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6nhdRwOH05TGZ9w+hvuh9BQ/TY9lQA7LYXgGirwubLHB6Os/ConwWw2acVHRTru4oP1dR X-Received: by 2002:a17:906:7f0d:: with SMTP id d13mr13737758ejr.299.1604309938141; Mon, 02 Nov 2020 01:38:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604309938; cv=none; d=google.com; s=arc-20160816; b=Sc4D2R9x79+N+H6kK1Br4DdCjJ+ZFrLpW+DSCzeGGGVqCuBHh9+5cn6lyBExQmzYNg KLI/6apu3odQxqL2HyA4cIA2V3FCLWksME/xaFBKo0jMIpDUEb04QywAL6I6etdN/rFp OILXf8oVEIentj2A/nJ3ZAA6aqDP6sEDTxmLY0rLzWJl2Eq8/H5geYSQGT1rz4KxnKyp UFDEzXK4pxSWWxGOXR15nnStu8Udy5saxEV+lqjBaA6TDV3NtXXSNiRD5vNN5aHSqN1l FWn4X7TRI7CGKmxDKWq5uDaT16bF2fQYtTPPKYUkRM1YtcKq1DE/v3yqWogBNvda8udF KT8Q== 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; bh=q4LWjOQb48RbMvuqunvROMBYqbWJviRmRbs1farYf+o=; b=zHztQQtJomH0B6RTfPR9gPiecrZWap2g9c1iOwIYwjvKCoAoqPjSOBy1TN53CQXcyv rS4DNheIGCixjkEqm5mBWEsSBj7Wdhldk0RBYDsAF3zewewMKTpkMCROI6tTZYvQcfm7 20hnCPqL9Wo+2Pvb1oXVAQgZDXmemaDmH9ky/B01Xq9ak135zJzc1HkQrXtsqhD99bJG 7XYIY7rNE8PW6xt55NPeXJ05YvVM+272S7ZyLhTMDcctBTBvQVWVVeDuy8TW0Dm+NP3B sawkiPu8BQz3Y8brJ+mC7M4+zBmVeg+RSYAxg5Butb4rfeQf8U8/RCcWYmfT+F3XIhS0 IvDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ouivo3Wk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a6si11270794edq.273.2020.11.02.01.38.35; Mon, 02 Nov 2020 01:38:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ouivo3Wk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728334AbgKBJhQ (ORCPT + 99 others); Mon, 2 Nov 2020 04:37:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728317AbgKBJhP (ORCPT ); Mon, 2 Nov 2020 04:37:15 -0500 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 225F7C0617A6; Mon, 2 Nov 2020 01:37:15 -0800 (PST) Received: by mail-pf1-x42d.google.com with SMTP id 133so10597890pfx.11; Mon, 02 Nov 2020 01:37:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=q4LWjOQb48RbMvuqunvROMBYqbWJviRmRbs1farYf+o=; b=Ouivo3WkaZWDdXarHlxfc76m/TrdvxXtNjxs/qxYSq5z1VkleGC5Biq3uMuBsyswOw sewYi9DabhWO7RN0Qvtwl9XEYrmkScHJrmHPoSUlYwXuGUrsfb7uYXvkM4O+iHn6kqh+ MYJIDi6A4Ufxb+P5QQUIB2ztW1TBwwoaxRAWXfj904qfJAiNKy6X2oafViYxJR1oq5qT fgm9qCtv3huwI6tLzKwUE8+0Xu9caqDo2RTNhA7Fx8KTtWLom/JvHNfI2YHgAwodKNxn sGmDA0j9bSydLptOUNPWxXJzv5RZcEvHgWExANOO60Sn8cR6+dxA/yNo3PdA8jR5DQcU +1Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=q4LWjOQb48RbMvuqunvROMBYqbWJviRmRbs1farYf+o=; b=QyfpC29DOUVWVoWvY2CdRES45GBRReIj5H+sQgOgsfbt/HzkzcgpRb1/KJQVm0+gSV uuMhw2F8sWX++HU8tDtbc9QZaInYLc9zVa9qTJ3hm4npc8tRiMr5U51KgIrOhHp/tQcv WlLbzjx5V/mytex8vuoAhydGwmEsXUXJVU9EG0eTK9FqZulU4BpMLZBTfS4zf0CQFxBx bZtX2eNcibMuDLi3RbzqvHZqm+CnPjfMJR1eZcSA8Fc5MkciIZPKNHyTCPZqMX2Kx7wp CzZ9lV+54HtFxa+N0/1Oezw21Cn28gzhDno3cytJDnG54bg32DdFk7RzrJ+6HOJQiBAh /btA== X-Gm-Message-State: AOAM533OJYM9UITSQgjQHFV8Xo6PvujohnWziplsnjS1Oqs1iHXcwyap AODMg9NPsU3HWUIhFCX5ag== X-Received: by 2002:a62:1991:0:b029:155:f476:2462 with SMTP id 139-20020a6219910000b0290155f4762462mr21521857pfz.43.1604309834682; Mon, 02 Nov 2020 01:37:14 -0800 (PST) Received: from localhost.localdomain (59-125-13-244.HINET-IP.hinet.net. [59.125.13.244]) by smtp.gmail.com with ESMTPSA id 199sm5566013pgg.18.2020.11.02.01.37.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 01:37:13 -0800 (PST) From: Peilin Ye To: Daniel Vetter , Greg Kroah-Hartman , Jiri Slaby , Thomas Winischhofer Cc: Bartlomiej Zolnierkiewicz , Nicolas Pitre , "Gustavo A . R . Silva" , Tetsuo Handa , George Kennedy , Nathan Chancellor , Peter Rosin , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Peilin Ye Subject: [PATCH v2 1/2] console: Remove dummy con_font_op() callback implementations Date: Mon, 2 Nov 2020 04:36:05 -0500 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org `struct console_font` is a UAPI structure, thus ideally should not be used for kernel internal abstraction. Remove some dummy .con_font_set, .con_font_default and .con_font_copy `struct consw` callback implementations, to make it cleaner. Suggested-by: Daniel Vetter Signed-off-by: Peilin Ye --- Change in v2: - [v2 2/2] no longer Cc: stable, so do not Cc: stable Context: https://lore.kernel.org/lkml/CAKMK7uFY2zv0adjKJ_ORVFT7Zzwn075MaU0rEU7_FuqENLR=UA@mail.gmail.com/ drivers/usb/misc/sisusbvga/sisusb_con.c | 21 --------------------- drivers/video/console/dummycon.c | 20 -------------------- 2 files changed, 41 deletions(-) diff --git a/drivers/usb/misc/sisusbvga/sisusb_con.c b/drivers/usb/misc/sisusbvga/sisusb_con.c index c63e545fb105..dfa0d5ce6012 100644 --- a/drivers/usb/misc/sisusbvga/sisusb_con.c +++ b/drivers/usb/misc/sisusbvga/sisusb_con.c @@ -1345,24 +1345,6 @@ static int sisusbdummycon_blank(struct vc_data *vc, int blank, int mode_switch) return 0; } -static int sisusbdummycon_font_set(struct vc_data *vc, - struct console_font *font, - unsigned int flags) -{ - return 0; -} - -static int sisusbdummycon_font_default(struct vc_data *vc, - struct console_font *font, char *name) -{ - return 0; -} - -static int sisusbdummycon_font_copy(struct vc_data *vc, int con) -{ - return 0; -} - static const struct consw sisusb_dummy_con = { .owner = THIS_MODULE, .con_startup = sisusbdummycon_startup, @@ -1375,9 +1357,6 @@ static const struct consw sisusb_dummy_con = { .con_scroll = sisusbdummycon_scroll, .con_switch = sisusbdummycon_switch, .con_blank = sisusbdummycon_blank, - .con_font_set = sisusbdummycon_font_set, - .con_font_default = sisusbdummycon_font_default, - .con_font_copy = sisusbdummycon_font_copy, }; int diff --git a/drivers/video/console/dummycon.c b/drivers/video/console/dummycon.c index 2a0d0bda7faa..f1711b2f9ff0 100644 --- a/drivers/video/console/dummycon.c +++ b/drivers/video/console/dummycon.c @@ -124,23 +124,6 @@ static int dummycon_switch(struct vc_data *vc) return 0; } -static int dummycon_font_set(struct vc_data *vc, struct console_font *font, - unsigned int flags) -{ - return 0; -} - -static int dummycon_font_default(struct vc_data *vc, - struct console_font *font, char *name) -{ - return 0; -} - -static int dummycon_font_copy(struct vc_data *vc, int con) -{ - return 0; -} - /* * The console `switch' structure for the dummy console * @@ -159,8 +142,5 @@ const struct consw dummy_con = { .con_scroll = dummycon_scroll, .con_switch = dummycon_switch, .con_blank = dummycon_blank, - .con_font_set = dummycon_font_set, - .con_font_default = dummycon_font_default, - .con_font_copy = dummycon_font_copy, }; EXPORT_SYMBOL_GPL(dummy_con); -- 2.25.1