From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66E72C77B7F for ; Mon, 8 May 2023 19:06:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233062AbjEHTGa (ORCPT ); Mon, 8 May 2023 15:06:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229908AbjEHTG2 (ORCPT ); Mon, 8 May 2023 15:06:28 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B459330D0 for ; Mon, 8 May 2023 12:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=Y+ibpDLg5jE2BiPolUWS6HiosTxx6XTt8WmlptxH7e8=; b=e3vnN8DhWcLDtX0DPJg3JpHZ6j L4k8Kfga4n/aprH8X4QKVnQEmHuUf/paZUnuQ4Vaa/7lN6uN/dvShEyjy5T6khHvRdwZHEpF9t1uc 7aJzQc+o3H60y4aYHk1Une3Sf2eXSrqYxfhsHri6WVidLFLKCk+ct2/7m3UT0wd7qI9ONVbqUxxP5 lF3yQE+V6NmGI02ld4VE2gayMccpBqXNtXadL7ZOiupEEPded2GfD+nTix4Qabuu/1AkAtuxyOfaD u4A6N5gc59RxQadtLbnHTi7HR1cSn3zj3D6fpHugW30KFsL30qM3FENc2Fxp2uZNVHOoLr/EAIjQL JsdW7hAQ==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pw6Bm-001Aya-2O; Mon, 08 May 2023 19:06:26 +0000 Message-ID: <6c1124dc-c4fd-62d1-f1ea-b0a3d0b36fbb@infradead.org> Date: Mon, 8 May 2023 12:06:26 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [RFC PATCH] workqueue: fix cast warnings on i386 Content-Language: en-US To: Arnd Bergmann , Lai Jiangshan Cc: linux-kernel@vger.kernel.org, Tejun Heo References: <20230429044506.24843-1-rdunlap@infradead.org> <4143448b-fb4f-860d-da67-b864e5b33020@infradead.org> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/8/23 06:41, Arnd Bergmann wrote: > On Mon, May 1, 2023, at 06:42, Randy Dunlap wrote: >> On 4/30/23 21:37, Lai Jiangshan wrote: >>> Both the type of the "data" and WORK_STRUCT_WQ_DATA_MASK are >>> "unsigned long", so I don't think "(data & WORK_STRUCT_WQ_DATA_MASK)" >>> needs to be converted to "unsigned long". >>> >>> WORK_STRUCT_FLAG_MASK = (1UL << WORK_STRUCT_FLAG_BITS) - 1, >>> WORK_STRUCT_WQ_DATA_MASK = ~WORK_STRUCT_FLAG_MASK, >>> >>> This simple fix might hide the real problem. >> >> Thanks for replying. >> >> Do you have any suggestions for how to eliminate these warnings on i386 >> and ARCH=um SUBARCH=i386? > > I'm pretty sure the patch I posted earlier is the correct one, see > https://lore.kernel.org/all/20230117164041.1207412-1-arnd@kernel.org/ > Thanks for the reply. Your patch looks good. I appreciate the explanation. > Sorry I never followed up on this after the initial post, I have > a backlog of patches that I sent out as build fixes but that for > some reason have not made it in. I know how that goes. I have quite a few as well. -- ~Randy