Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4770508rwr; Mon, 8 May 2023 12:23:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7MSnWQNLhN/MagI8OvASE4w8W1MTMQ0wwovQh4trIIjicJm6IWaBEGOksWWwMntZru0DXs X-Received: by 2002:a05:6a20:a123:b0:f3:3ec4:b511 with SMTP id q35-20020a056a20a12300b000f33ec4b511mr16482071pzk.26.1683573785706; Mon, 08 May 2023 12:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683573785; cv=none; d=google.com; s=arc-20160816; b=gqCOzvwP0lqr7dq+i+QIzmrkwjiX0ivXoVdX4WaywzgUK7dJhJTFJNlESJwDGYVyQY j1TS0vz5KZKdSc73XaESJBaWy0cXHmOtuaSDjpfJAoPcr0iScUCJOeAku0rcesCFhgik JPXp1uOeebvzg+ooaFFQXjhBXweA/InhXew4WI7ChhyJBg5PFj0fRefAi7LhOQvxxp2K p/NqaDmn+wdw0uhp6NW6NfnB8Twyn/iz1hSbbV6njmkXIBZFLfce9uLWJtWNzwDa3T29 A56V4z1VOuIPW9Rg/MRBoup5DEfQrRt2eNfAauejEfQxVUNCD8W7cAneSXAUKK7ev8J0 ZrVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Y+ibpDLg5jE2BiPolUWS6HiosTxx6XTt8WmlptxH7e8=; b=J5bEFd/qMxZSkUSToM/ZbFRYhcgEjflvU9CK9BWttbmNLVwoy6E44UKKenNBDYumU7 7GPWORa+XUXa6th0QLwMuC7Dd71codweIaadzY7jIO8/YKl0y9g68GAF/Oos5mJjzp/3 naNCfKSiZWXNWjyZCTPMXWbH2k+JDUnzPpMa0lj4E+cKjLULqindZ6iHnQk8AR/gCpwe lCakXthTEWRPe7tznHYObl2PDrLLsxDbgGMWSzAuKesc2/HF1AXRGroqe1HSioUeAo+7 OkJUTRXkxnU6vPgIe6sgXnpM7p6JBDNs1+6jxQhG5iV/1wHZr6L7qpcWGoiiHoUhBdkC PMfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=e3vnN8Dh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h64-20020a638343000000b00528ca114e67si1458434pge.898.2023.05.08.12.22.52; Mon, 08 May 2023 12:23:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=e3vnN8Dh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232803AbjEHTG3 (ORCPT + 99 others); Mon, 8 May 2023 15:06:29 -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 X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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