Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1132167rdb; Tue, 30 Jan 2024 08:46:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IF08PjRQs1BwIPlUAejkT6BnrUPGLAfDYJgClkUHBYpsIjGwebGilFL55/NkUvI+1kLTaUm X-Received: by 2002:a05:6a20:7596:b0:19c:ab50:e71f with SMTP id n22-20020a056a20759600b0019cab50e71fmr1796464pze.57.1706633183783; Tue, 30 Jan 2024 08:46:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706633183; cv=pass; d=google.com; s=arc-20160816; b=EZNinKTeErkCLnYgJM3rImI9eTKAVNLH70/6O8SlErZe9xDwq/dtRO7ulDac3G9oP+ z7valUBkqzrHJ98dFj3XLG5X7jr9XdamKoVfVDXwSt6pXSLP6x4zRv5JwMHsRnveroY2 Vmocld/zaPfv3iUX1rrRDSdJrDWdcwkQ4sJWc9pyNPIuPlh1OWYteJi/pvVf63EB8aao +ReFQfXMGI40M1DNufQH31MHxE8IeNvyqi6kcisADypF0XnhdUNEkqOMnrcuEW72rT77 /EYQgd1J5kQ4I+QJPpZXfd4XONfv0apDkdcSmQar/P8jysA2vdfIBseg9fGr3Y5yNvsB 8AWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Q4IdfZSEW3wrjkkwM/GeP2wfNp8/zwo4oENOZCH0OWM=; fh=euBX6zFX7rGurPxgsgAib5Pi7OhWVpXjsol43yI8k10=; b=G1GJnL142uruNkpdKGQJGuLPt73AAk2tNsOqPRpuefRlcNcCi1kurv2VRp82LY0lrJ ViC9l+vWDGYmuA4PHXWXZG1uYBtZMrKSGByXj1H0bATXhcbeczQzdrdYn5sN7h8NhOuk NVgjjgwFcsqrCc4F8rLXJX/TrNqwVLEoNSDm1+we11ZYRVmnsaeIGDku712SrN65zm16 kZAv9BPukPVDWn4Oxk3D1g3Dm1lCtH/pTneo++wSh2xOs1ARPlIBQit8gnUHtRowLSzz 8nb29gk6fhE9p3yDBsHu0DHwtuGos6oC16Hc4Zf2s7VJhgnjXpBhVT+Bkr7R8RyOaF5Q j2GQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rmV1osKl; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-44958-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44958-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i129-20020a639d87000000b005cfc912e46dsi7496309pgd.721.2024.01.30.08.46.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 08:46:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44958-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rmV1osKl; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-44958-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44958-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6F9AD293DB5 for ; Tue, 30 Jan 2024 16:35:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 720FF128397; Tue, 30 Jan 2024 16:35:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rmV1osKl" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90F62128378; Tue, 30 Jan 2024 16:35:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706632532; cv=none; b=EPs+nGYY1Qqc67HQlv6NExB+xcaByHQkuIM6ERTH52SoiAVFFEFSYdOWNunqrjk7KNR2iLZyaqFjsfQvEEFW4cLIHPuTfrBxPAX7XJitXfDAqtzZp1IUw/dSaaXtxer9Knyf9CT5oJv8hTHo1c7ZLMKfKtNZ153ATXu6V128Krk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706632532; c=relaxed/simple; bh=VzF6pgl3cBvoSdippxVco5i9J4H7GF91CCbu75befoc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=csQwYw2S9a9RV6fyfbXasXTv5W40V4nIkGxoFnOZtdxKDOGiWLaK1524HROLdTLzCUea6+oFM490thr9OlOW11NZ8zBbUgcRY4sRR0NZ7KvGa4n6YFeAHIyWkRsVyG4u3AIv8NoXcFpSM2pBAT41IbeTg+wWwg2NlRQUL3joG1o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rmV1osKl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18707C433C7; Tue, 30 Jan 2024 16:35:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1706632532; bh=VzF6pgl3cBvoSdippxVco5i9J4H7GF91CCbu75befoc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rmV1osKlts6fNfbt2Gqcb87x/cxVsBDXDLihZNSueL4wrvx6U10lWgZaJDAe3Z6VZ xFeX6auKGBkN4J2tRse+GFUfLGhaO84V4KpPSR2bUKEuN3wRWF/f6qMgLrXJc2WL7D OAGX7o6Jzj9GNAm1/L2xMT5w6Ce7EuQWwjdUv7FA= Date: Tue, 30 Jan 2024 06:04:17 -0800 From: Greg KH To: Dawei Li Cc: arnd@arndb.de, fancer.lancer@gmail.com, lkp@intel.com, linux-kernel@vger.kernel.org, set_pte_at@outlook.com, stable@vger.kernel.org Subject: Re: [PATCH] misc: eeprom/idt_89hpesx: Convert data structures to LE explicitly Message-ID: <2024013039-asleep-rally-39c0@gregkh> References: <20240130040632.3039911-1-dawei.li@shingroup.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240130040632.3039911-1-dawei.li@shingroup.cn> On Tue, Jan 30, 2024 at 12:06:32PM +0800, Dawei Li wrote: > For data structures needs cpu_to_le* conversion, its prototype needs to > be declared with __le* explicitly. > > Fixes: cfad6425382e ("eeprom: Add IDT 89HPESx EEPROM/CSR driver") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202401261250.b07Yt30Z-lkp@intel.com/ > Signed-off-by: Dawei Li > Cc: > --- > drivers/misc/eeprom/idt_89hpesx.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/misc/eeprom/idt_89hpesx.c b/drivers/misc/eeprom/idt_89hpesx.c > index d807d08e2614..327afb866b21 100644 > --- a/drivers/misc/eeprom/idt_89hpesx.c > +++ b/drivers/misc/eeprom/idt_89hpesx.c > @@ -129,7 +129,7 @@ struct idt_smb_seq { > struct idt_eeprom_seq { > u8 cmd; > u8 eeaddr; > - u16 memaddr; > + __le16 memaddr; > u8 data; > } __packed; > > @@ -141,8 +141,8 @@ struct idt_eeprom_seq { > */ > struct idt_csr_seq { > u8 cmd; > - u16 csraddr; > - u32 data; > + __le16 csraddr; > + __le32 data; > } __packed; > > /* Declaring them this way is nice, but this doesn't actually "fix" anything at all as no code is actually changed. So how is ths a bugfix? How does this patch do anything? confused, greg k-h