Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2356564rwd; Sun, 28 May 2023 13:53:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7z7AcUyt6XDnxmeboMXkH+082vsEd9S9TeHqaD9Z5A19kV/mJFyiC7iwrLNBUeLAAhrV8i X-Received: by 2002:a17:903:25d1:b0:1b0:2cca:a1e3 with SMTP id jc17-20020a17090325d100b001b02ccaa1e3mr4781509plb.56.1685307234901; Sun, 28 May 2023 13:53:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685307234; cv=none; d=google.com; s=arc-20160816; b=AwSdfZENutRP/SrLQ/hAIeCvfgmIsRh/zJDuYRaPeFHYDjOA4MLybgwvKWQnjhd1Ub zPLRK5a6j6xvg6K+b0dK1I+Bl9x5xf82mlUVFVi8UjeikfqU7YPgnd7AfSSjozyXuRT/ o2Ssey+vAsgbAosfv3qwjBatPEn2tAr9VhNqOtxH9Aqno5ttC+AzNGm/qkCdyvsAuw3i sXyF3+XgTFfrY791fL/vWZWJiaYZ27luZ2+ucV6shjhhAxd+T8FW57smhw+xCQDLY2Ma Wyq4qfgHmRoIUc/rzrWH9hOcT7SKdSHcWv0ypPcFZntHfoBnYbuNy9RNqqSD+zRkTPyE rSUA== 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:to:content-language:subject:user-agent:mime-version:date :message-id; bh=3c7ui0/0zw8IQNoKpfcjNz481KA4SVJAj1O/dOTWz+I=; b=NH5yOQAtm7PY9IMnJP69EwrK46jcPSltjmiWvXVLVAriuCsmzKf6VijH2g7WWSb4Cb EmnXbg2L56Ci+naAEU1nT0fAoH7GwCebMmU99N0r3HReOaG1rMawPwl90rqBEPgee8pM jqfm3wpXHv5rwHNjNiq2eeLu1Ql1jEM4+hqTlW8DTt69d2dL2GqiHTU0Ms8+DZLVmpOx ndNFJG4waQk5d42G6sxGaBlScsDBTKX8uRA4EBt3lq5NFVzM/hJx7Tc/A6itvwhMby/l P0lNulFyv078dMapNHVKtLP5CjtDqV6vNst2LVTKEdPvQ5q18kWaGJYL095dE3MDR8HG fm0A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h22-20020a170902f7d600b001b016313b20si4311529plw.345.2023.05.28.13.53.42; Sun, 28 May 2023 13:53:54 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229562AbjE1UaF (ORCPT + 99 others); Sun, 28 May 2023 16:30:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjE1UaE (ORCPT ); Sun, 28 May 2023 16:30:04 -0400 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32F52AF; Sun, 28 May 2023 13:30:03 -0700 (PDT) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1b04706c974so946405ad.2; Sun, 28 May 2023 13:30:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685305802; x=1687897802; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3c7ui0/0zw8IQNoKpfcjNz481KA4SVJAj1O/dOTWz+I=; b=Eawk4uMKEv96dj2SZoPKpvgEqfju/75vrNvdDte68yrUoO4jEd3cZ2PPKeSGVrHavK F+Byo2ekaEvHGZMojcE56c5dQP38cAcfZKQCeDm06K966EYoVis2XFDfgSRlNcrjspGc IkaXqNcEk5lZYkLZYekJaF/usCn/END1Q3A6nfgIhqEDiJMUIL19FHKi/k7K+l7UvxEj diG9FWZHijgY26WL/ecgmmQrg0dfXeYHFe9iYc7U8HK93zNo7u8pDDQmFBUQz3HqX0bC f4vCdXRdVGoJIxV7pRy625NiY+u8/pUqXscZPxJs3zqXuWoZihJAV089r2RbFDWF8U9N IWng== X-Gm-Message-State: AC+VfDwyLW+wYL5dXN3gUopQ0L7iTglI1UNwlGLEXpSiEd0QANpw2uQE ZjyvreaAbnv40NBZ5Nnha8sYXG4faDg= X-Received: by 2002:a17:903:2442:b0:1af:bbfd:1c07 with SMTP id l2-20020a170903244200b001afbbfd1c07mr9906437pls.57.1685305801890; Sun, 28 May 2023 13:30:01 -0700 (PDT) Received: from [192.168.51.14] ([98.51.102.78]) by smtp.gmail.com with ESMTPSA id v2-20020a170902d68200b001b03842ab78sm1453118ply.89.2023.05.28.13.30.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 28 May 2023 13:30:01 -0700 (PDT) Message-ID: Date: Sun, 28 May 2023 13:30:01 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: scsi/stex time_after() build warnings Content-Language: en-US To: Randy Dunlap , linux-scsi@vger.kernel.org, "linux-kernel@vger.kernel.org" References: <89df78d0-fb52-9045-2074-1d6f0afae4d9@infradead.org> From: Bart Van Assche In-Reply-To: <89df78d0-fb52-9045-2074-1d6f0afae4d9@infradead.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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/27/23 16:08, Randy Dunlap wrote: > When I build stex.o for i386, I see these build warnings: Are you perhaps using gcc 13? Has the following alternative patch been considered? I think this patch is lower risk than the patch in the original email: diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c index 5b230e149c3d..8ffb75be99bc 100644 --- a/drivers/scsi/stex.c +++ b/drivers/scsi/stex.c @@ -109,7 +109,9 @@ enum { TASK_ATTRIBUTE_HEADOFQUEUE = 0x1, TASK_ATTRIBUTE_ORDERED = 0x2, TASK_ATTRIBUTE_ACA = 0x4, +}; +enum { SS_STS_NORMAL = 0x80000000, SS_STS_DONE = 0x40000000, SS_STS_HANDSHAKE = 0x20000000, @@ -121,7 +123,9 @@ enum { SS_I2H_REQUEST_RESET = 0x2000, SS_MU_OPERATIONAL = 0x80000000, +}; +enum { STEX_CDB_LENGTH = 16, STATUS_VAR_LEN = 128, Thanks, Bart.