Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp439392pxx; Wed, 28 Oct 2020 08:22:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVHIprNo8Wp4oHiEHGHLzI+Rz1tQaKeFOAZGZqIZfpj/+xyAdOjMX93QBViwBVK5tooRNW X-Received: by 2002:a50:a683:: with SMTP id e3mr8291236edc.33.1603898546838; Wed, 28 Oct 2020 08:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603898546; cv=none; d=google.com; s=arc-20160816; b=WcTSRZyLHORw9DJjQUN8l0urRUtejV3DLdzSDMQsRcSnjB4eY2/GyGaoBqsHgoAnWL T5IN2DaL21lkQ0JXf99QQVqJBkDLNiRn2l7yfZYKwG8R47jxpPpM3rV/K1FGs7yy3kui YmAIGbrOfszFdwDOI32bFFnKpStJ3jOom/q9DywV+5KZtU0QSXy4hyHfwso55iXF9IVw b3eRZEut7S3x38ohkXnBwqR6KKNXIsPh3AgOscTIU2OMgBAF8ui+uT4X1xH+YrkXU0vA nLQ0ekx+V/AYDmgBfV+etDahrQCQmy+8DUhRDr99f+S/2pMDIYYwzNwczdPaH7EaiIlj HUKA== 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=In/51AAXPn5EUWnx/UEYdjmTkRcrDAtPtyplaFeQ5lU=; b=z0sQNA5doWLWcMAebBufaLryvu2nsQF/qVyd3VuNlrmGSpttIe4twdM716v9vihkeS yIfTOn89T7VWU5dBiZwut3rv92411xfKDx2he5XIEp6IUa2N+mFV7vL7Pi4Fc1HSLmvt 08wL+TfHVxUhU5GiyRkg2ODBoX4157G8hr+YtMxVi3jQ0D75KuEG228sO9+cEC01d9vX xbtYeuQI2EWqMLVAv8d3fLfA6w90GOetxV/twLgf/pIM1UOVFHcJu0iOsK8GRmwflgdV rOG0vfJmj8alpoRA22xNAwNGLTTKd/PfgMhj0CT5ivXhJNi7ffF9d91Mzc3xJo5jdwD0 MQuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qV2cOWA0; 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 y19si2789537ejd.730.2020.10.28.08.22.04; Wed, 28 Oct 2020 08:22:26 -0700 (PDT) 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=qV2cOWA0; 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 S1810163AbgJ0QeO (ORCPT + 99 others); Tue, 27 Oct 2020 12:34:14 -0400 Received: from mail-pj1-f65.google.com ([209.85.216.65]:50270 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1810136AbgJ0QeE (ORCPT ); Tue, 27 Oct 2020 12:34:04 -0400 Received: by mail-pj1-f65.google.com with SMTP id p21so1066783pju.0; Tue, 27 Oct 2020 09:34:03 -0700 (PDT) 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=In/51AAXPn5EUWnx/UEYdjmTkRcrDAtPtyplaFeQ5lU=; b=qV2cOWA0GuqXDv+sBSouYZakOv5oFD4hgNf87hpEXF15Qq6sizcGpXNOD74WCXRcyv sO/6Tj/7iiwM9RpQdAbqqnNzT2YptHVUx8aGi2nb/wOnMB2L6hTcG+fENUtGC704OQeB OIvg9/sjXLRUzNEoS6cfGm0CB1cK6CwxiVYKkIeqQXO2O7pBxdEYIdTl09rtvVfPTYl6 DTWd8dOPZ2RAKadUbZ7lyRyJiFl+OilJWGQkEXvWKnG+EEIGEwVIDviHyTbWkf0bBPF3 C1qztcCFxeaUH9057nGg+r2mVwEQhOkgHxDdjZWQLSRvxcgn2sjn51v8dLGTej9Zl7rS X/uA== 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=In/51AAXPn5EUWnx/UEYdjmTkRcrDAtPtyplaFeQ5lU=; b=rXm4Kzi4qigM5vAMX7JPZXfomnBaMxmfoiM6j3rAw7i/xN7bHOHPHbOk4ZzMhDRoqq hmEF6sQ3XhZ3b1pVhQsmPbuvAtELn05xXGb/cUyBZvIADc73n2tvmpdhFghVWNSL9/dS hzjoxFNjtzjJQKnyMwQkiknwD+7fVgbC3Gibb5p0+069OL/XvJS+90u3GRzi+qii/k5t 8EdObfYsileYEpu1q23fbE0I/JS4551xZQzUXzAfIsMbmGkzt2WWNE1sewppO4uHaGm/ uEUDEPV49bQUuR7l/K1OAAHtaEY2SL/KmYBCCPZ91m329wKuPNL+v9U1YoCiqKdI6qln Ux7A== X-Gm-Message-State: AOAM532nB41HOusf7r2OeJTmqazxQUsiQVl6rbtojIJQrcEqMioQ/Rb2 2uOkjV0ZeTWx3ORM22QYEf7aQxHk6Pv6 X-Received: by 2002:a17:90b:3501:: with SMTP id ls1mr880626pjb.26.1603816442913; Tue, 27 Oct 2020 09:34:02 -0700 (PDT) Received: from localhost.localdomain (n11212042025.netvigator.com. [112.120.42.25]) by smtp.gmail.com with ESMTPSA id n16sm2854465pfo.150.2020.10.27.09.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 09:34:02 -0700 (PDT) From: Peilin Ye To: Daniel Vetter , Greg Kroah-Hartman , "James E . J . Bottomley" , Helge Deller Cc: Bartlomiej Zolnierkiewicz , Jiri Slaby , linux-parisc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Peilin Ye Subject: [PATCH 2/5] Fonts: Make font size unsigned in font_desc Date: Tue, 27 Oct 2020 12:33:05 -0400 Message-Id: <54f7d42e07eca2a2f13669575a9de88023ebc1ac.1603788512.git.yepeilin.cs@gmail.com> 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 It is improper to define `width` and `height` as signed in `struct font_desc`. Make them unsigned. Also, change the corresponding printk() format identifiers from `%d` to `%u`, in sti_select_fbfont(). Signed-off-by: Peilin Ye --- Build-tested. drivers/video/console/sticore.c | 2 +- include/linux/font.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/console/sticore.c b/drivers/video/console/sticore.c index 6a26a364f9bd..d1bb5915082b 100644 --- a/drivers/video/console/sticore.c +++ b/drivers/video/console/sticore.c @@ -502,7 +502,7 @@ sti_select_fbfont(struct sti_cooked_rom *cooked_rom, const char *fbfont_name) if (!fbfont) return NULL; - pr_info("STI selected %dx%d framebuffer font %s for sticon\n", + pr_info("STI selected %ux%u framebuffer font %s for sticon\n", fbfont->width, fbfont->height, fbfont->name); bpc = ((fbfont->width+7)/8) * fbfont->height; diff --git a/include/linux/font.h b/include/linux/font.h index b5b312c19e46..4f50d736ea72 100644 --- a/include/linux/font.h +++ b/include/linux/font.h @@ -16,7 +16,7 @@ struct font_desc { int idx; const char *name; - int width, height; + unsigned int width, height; const void *data; int pref; }; -- 2.25.1