Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10941407rwd; Thu, 22 Jun 2023 06:55:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7TRT/4oTFQqZgivsmERXVz+Jt/ieA2iwccPQNvvhjaKPYKBlH1XOfPH9xWQdJRUJREZvRg X-Received: by 2002:a17:902:f7d3:b0:1b3:b84b:9008 with SMTP id h19-20020a170902f7d300b001b3b84b9008mr22604871plw.5.1687442143234; Thu, 22 Jun 2023 06:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687442143; cv=none; d=google.com; s=arc-20160816; b=NNiWgoQJccZJbonK3AuGIZN2YUXrIk2KvtqSCwZuOEOgvl1x7vn23PN2oaUPmk6/ya tStccyzFWqH1VRYUZGT0rlo2FIakV7UdcbfUaikHdWqq1/Y31lCab5x26V7hYyAojswN +QZ6qRXBuol26JVBIDbQdEIUSqI+n97kTTr1MAXahjh4Nh7ywHUw9B8uYBPmYXcKJbcU GKeglJoYih2+sDRIwz4l2EM4nwX7l+dDdcthStmUl1SAZuyiLNUV5y3fFYo5rlELlXFP L7lNQp85zPXRYIhVRpeoCmPjhq/pjqTOh8u25WrxaOOUsO2I2vGCGM2Q9rP1+zWU8X0t 5YDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4LC7hw/PY4f5vlMOk+YDnrEpM4WWWX0cAv/SgJJYtgU=; b=XWP4NxZZPGPvDUcGVdK+Sli6LPYM0u3AseIKJ2HDkmt87b38uSoe0o68JsTNn5QEp7 t82qf5PsgSVyY+3HigqNWUyUq29aREAb+rTncg4Hg77QMMRyrhFR3F2GR2DZ+znlvi3+ /oerh3/FP8xywEzNZ4EDN4G8/QMa1KB6vT3W6XcpxW0hNFbolv8GqUaa284kMmLt7MVo tU4BE8mQRu6kfNahuyvxh78As3KXQjuUe9QhHqubbCvcwytc6EoHNfWjC6+RVbDp0A0p g50nAlsDMXBrCDmaDDPB/25ioDMwiJh9QmWODZFKk/CdcJaLGUKt/ctzrj3ItP+x+RdK FnWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tSJlPFgn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a170902744b00b001b539f7eb45si6148961plt.289.2023.06.22.06.55.29; Thu, 22 Jun 2023 06:55:43 -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=@kernel.org header.s=k20201202 header.b=tSJlPFgn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230317AbjFVNmH (ORCPT + 99 others); Thu, 22 Jun 2023 09:42:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230462AbjFVNmE (ORCPT ); Thu, 22 Jun 2023 09:42:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1C651FC1; Thu, 22 Jun 2023 06:42:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5344E61857; Thu, 22 Jun 2023 13:42:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4068C433CD; Thu, 22 Jun 2023 13:42:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687441320; bh=4LC7hw/PY4f5vlMOk+YDnrEpM4WWWX0cAv/SgJJYtgU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=tSJlPFgnienD6jgfmeaKGzB0l+Kc6RnWss1WHP+ZHUNbzq6MPuAS05exbUr+fQJ9o p31BD97zTQRy1vmNPPX0SHnpZ0BnvfL7VNjuRWVfgMf16HPOgQiPS1evGUNQ1GVayl Hu+6wEvedKkAWcu8RZgmFhspiFqhFza5wCnvc3Zvxtm0StIfecqg0LReRMuH7aYLcI hjzL5o2iruFCiZN/CHwGXJ4igX0z8kFPExrJRtLLiXcDK8eZrtFWg7+T6KNGYZqYN/ v3sK1DVSi2Lz0+O7D/ef9VxuFxrsfWjn6bmljjfABFo+pp0ebtxLmVGFGS5YgWo4vb ZxeY4qksBJ3NA== Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2b477e9d396so68335761fa.3; Thu, 22 Jun 2023 06:42:00 -0700 (PDT) X-Gm-Message-State: AC+VfDxVsAMpbOTBYenLwQi/2y+aJvYFqiMj8IG1gXpBWphlxBtNHKM6 meDABErJSszh+SLDeUKLjsAeYoMsV+v4mKpjbg== X-Received: by 2002:a2e:8848:0:b0:2b5:8335:a51f with SMTP id z8-20020a2e8848000000b002b58335a51fmr4662400ljj.11.1687441318581; Thu, 22 Jun 2023 06:41:58 -0700 (PDT) MIME-Version: 1.0 References: <20230614173633.2430653-1-robh@kernel.org> <20230614173633.2430653-2-robh@kernel.org> <23325977-ba37-4360-afb5-4ab38a66107e@roeck-us.net> <167e83a0-8666-27af-5e2c-4ddda917795a@roeck-us.net> <78cce73d-16d1-e357-bee7-2176479604f4@kernel.org> In-Reply-To: <78cce73d-16d1-e357-bee7-2176479604f4@kernel.org> From: Rob Herring Date: Thu, 22 Jun 2023 07:41:45 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] ata: octeon: Add compile test support To: Damien Le Moal Cc: Guenter Roeck , Sergey Shtylyov , Thomas Bogendoerfer , linux-ide@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Wed, Jun 21, 2023 at 10:26=E2=80=AFPM Damien Le Moal wrote: > > On 6/22/23 12:01, Guenter Roeck wrote: > > On 6/21/23 17:57, Damien Le Moal wrote: > >> On 6/22/23 01:51, Guenter Roeck wrote: > >>> On Wed, Jun 14, 2023 at 11:36:33AM -0600, Rob Herring wrote: > >>>> Add COMPILE_TEST to enable building Cavium Octeon drivers in MIPS > >>>> allyesconfig/allmodconfig builds. There's a dependency on MIPS heade= rs, > >>>> so other arches can't be enabled. > >>>> > >>>> Signed-off-by: Rob Herring > >>>> --- > >>>> Tested on allmodconfig build. Not sure if there's other MIPS configs > >>>> where this doesn't work. We'll see what 0-day says. > >>> > >>> Odd, in next-20230621 I get: > >>> > >>> Building mips:allmodconfig ... failed > >> > >> Indeed odd. Given that this is an allmodconfig, I would assume that > >> CONFIG_CAVIUM_OCTEON_SOC is set ? > >> > > > > No, it is not. CONFIG_CAVIUM_OCTEON_SOC is a choice option, > > meaning only one of the choices can be set, and mips:allmodconfig > > selects a different choice. > > OK. Then I think I need to drop this patch as I do not see how to allow > COMPILE_TEST without CONFIG_CAVIUM_OCTEON_SOC being set. > > Rob ? These could be fixed, but not sure it's worth the effort. > > > > Guenter > > > >>> -------------- > >>> Error log: > >>> ERROR: modpost: "__udivdi3" [drivers/ata/pata_octeon_cf.ko] undefined= ! This is due to 64-bit divides on 32-bit build, so do_div() needs to be used= . > >>> ERROR: modpost: "octeon_get_io_clock_rate" [drivers/ata/pata_octeon_c= f.ko] undefined! We'd need a static inline in the header for octeon_get_io_clock_rate(). Of course the real fix is Octeon needs to move to use the clock framework. > >>> ERROR: modpost: "__tracepoint_ata_bmdma_stop" [drivers/ata/pata_octeo= n_cf.ko] undefined! > >>> ERROR: modpost: "__traceiter_ata_bmdma_stop" [drivers/ata/pata_octeon= _cf.ko] undefined! Probably can just drop the trace_ata_bmdma_stop() call. It was added to replace a printk. Rob