Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp16749616ybl; Wed, 1 Jan 2020 12:43:57 -0800 (PST) X-Google-Smtp-Source: APXvYqw/ndWz9EjB8wBKjp1DKh1c2EXNYUa4bLX3QOOZtV4lRN9X2IkDiKFxlYLO8DaUQxpGu7gW X-Received: by 2002:a05:6830:1607:: with SMTP id g7mr88273006otr.320.1577911436997; Wed, 01 Jan 2020 12:43:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577911436; cv=none; d=google.com; s=arc-20160816; b=B5b9D5MQokjCW7Gn5kT7Ls6h6TEHbjWK4x+R3YnNhS8ZkJggHOyBNyCCRg5SU21waN 21iSr/CWRLKqFmZG+DyNkIzRFcL6G2E7ehK55JvaWMcJavcMdOw2N+aGXdfQrv1+VSZv EL67PnLwTnA+b6BE+IsbDe19FUze9K9wO4/+BqDJWk8peOiL0GzK11JoAuYt1bgyXJF2 kI1Fxa/VZTYt5OcKOpEiw7dLQWJRcdFEvnvn87OA/g6KvydSy0/jOjaUM9RAJPaVbI2u AIQBDYcYEjw0geUz/6XuHquWawm8IGFe5hXTKg2jgUvrwvUjKIAFgIeurQZcnZldz5s6 OKFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=v7cr1kY2Lq9a8pmpvtgNvRRSj2Esi2GdGGct+/Bp2sY=; b=e+APwt3ycUMc7bk4k/bcwYPka9at0pLPMR9QYQT1Z829pCyRQdPXpZLT4NeJbdQrbM hbLfoPxQDnKD8djKNJq1RfQnhZXC19S6zwAImLUI/HPqBpd7guRwQZqYyKT9d/A+SSwx a9u4MRLZNgVaGeR4T9ybP2Rto+vjUKSHM5MfMqg9WZmGAbQ8jptI8bnqxfEMZbywcYO7 hdMeq/CkIN7ecJpoxhSZPuikl6cyHBlJhietiQSJtfcv9htHfd3nuEqGZCJtZSnoQyCv dWAf1RCbADGVgJb6uJ4Cn1HQ6sWqaKkyLoNS99MWb6jZbjBhFeZubZZxZgoUNYb+Csi1 eD8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b="X9zH/dsL"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8si27574803otp.254.2020.01.01.12.43.18; Wed, 01 Jan 2020 12:43:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b="X9zH/dsL"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727215AbgAAUkj (ORCPT + 99 others); Wed, 1 Jan 2020 15:40:39 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:44920 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbgAAUkj (ORCPT ); Wed, 1 Jan 2020 15:40:39 -0500 Received: by mail-wr1-f68.google.com with SMTP id q10so37608358wrm.11 for ; Wed, 01 Jan 2020 12:40:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=v7cr1kY2Lq9a8pmpvtgNvRRSj2Esi2GdGGct+/Bp2sY=; b=X9zH/dsLOxvqxgx1Abkb/3kolnT7NP+fICu0gW4gpjSjeCIeR5oDmiRa6icLcaQTCb bT1qmQ0EBZkIUP9BPPF3lXojVNT0f+9aD2nAXebkMd1nu/pnexMqHR4PZA/ClxtP0TrR RUR+up5tCvVs9LqDFrP9RrdAlcBoRKaiv5FjI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=v7cr1kY2Lq9a8pmpvtgNvRRSj2Esi2GdGGct+/Bp2sY=; b=UAWwcOuxyuLPh889p8p2TyU6TRze1Z366OyaNudJwF7OstHQNi4/95Req0f+wwo4gq AT7KNGs7vlz/GbbxcbPWt2rgIiPaLsU6LU1Foaw2q/ANxQMuiqsDuli6oKPr0S1yt55K 8ALhZeoDHXsOjmvXzs5BkrzuY5KbhkyDA2vXF5iZ1J5rzJIerycbewJ/2k4Oqpl/LdME NFUIguqyc0njPaeQXivOiCxQQQR8UF4WJwpDLcMWpMY5iliYh4b190S/Jm2W+O8SHmt/ mCp9liIa+XTUSc5rrctaPSKwMjIvfSHESHBcQLZW5GWbDxsofdzMr4YE43bzkcI5Pp43 1L9Q== X-Gm-Message-State: APjAAAVRggx2gKY6SefKBJNfXHehJEFEl2PKZvXQ1sUyJXaiF6hCPi/7 vGtj2fRxKeYAJtPfRmLSK23P5w== X-Received: by 2002:adf:fc0c:: with SMTP id i12mr83084758wrr.74.1577911237198; Wed, 01 Jan 2020 12:40:37 -0800 (PST) Received: from dvetter-linux.ger.corp.intel.com ([194.230.159.125]) by smtp.gmail.com with ESMTPSA id s1sm6682123wmc.23.2020.01.01.12.40.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jan 2020 12:40:35 -0800 (PST) Date: Wed, 1 Jan 2020 21:40:31 +0100 From: Daniel Vetter To: Wambui Karuga Cc: thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/panel: declare variable as __be16 Message-ID: <20200101204031.GC3856@dvetter-linux.ger.corp.intel.com> Mail-Followup-To: Wambui Karuga , thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20191230195609.12386-1-wambui.karugax@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191230195609.12386-1-wambui.karugax@gmail.com> X-Operating-System: Linux dvetter-linux.ger.corp.intel.com 5.2.11-200.fc30.x86_64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 30, 2019 at 10:56:09PM +0300, Wambui Karuga wrote: > Declare the temp variable as __be16 to address the following sparse > warning: > drivers/gpu/drm/panel/panel-lg-lg4573.c:45:20: warning: incorrect type in initializer (different base types) > drivers/gpu/drm/panel/panel-lg-lg4573.c:45:20: expected unsigned short [unsigned] [usertype] temp > drivers/gpu/drm/panel/panel-lg-lg4573.c:45:20: got restricted __be16 [usertype] > > Signed-off-by: Wambui Karuga Applied to drm-misc-next, thanks for your patch! -Daniel > --- > drivers/gpu/drm/panel/panel-lg-lg4573.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/panel/panel-lg-lg4573.c b/drivers/gpu/drm/panel/panel-lg-lg4573.c > index 20235ff0bbc4..b262b53dbd85 100644 > --- a/drivers/gpu/drm/panel/panel-lg-lg4573.c > +++ b/drivers/gpu/drm/panel/panel-lg-lg4573.c > @@ -42,7 +42,7 @@ static int lg4573_spi_write_u16(struct lg4573 *ctx, u16 data) > struct spi_transfer xfer = { > .len = 2, > }; > - u16 temp = cpu_to_be16(data); > + __be16 temp = cpu_to_be16(data); > struct spi_message msg; > > dev_dbg(ctx->panel.dev, "writing data: %x\n", data); > -- > 2.17.1 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch