Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2652014pxy; Tue, 3 Aug 2021 11:29:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2Cn7uZQ/AjkBEUs6P6TINMItnX0hBwnG5qQIvDJO7kOnDOu87QnjsPX2abLMCYNE2G4uC X-Received: by 2002:a05:6602:1203:: with SMTP id y3mr3192444iot.192.1628015375418; Tue, 03 Aug 2021 11:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628015375; cv=none; d=google.com; s=arc-20160816; b=EELDJsvrI8K99zLb4Yvz76H5FigqkejYRC8OefbU8vn4lOOS3+nj20rrJkgD5vlf/0 diwf8za0v2txiGT6fhjjbxj1ekbnA0o7smBAoRYkW0HrFAwOPdiqtyOQgrpXMWQft1xN OVzGqCQhCcgP3GoRnClDV0VMGffKwg6PNZERXGcM5i/cprvb9SO+4tXqwqkfiMEGE1TB aT5OcORM8m1DgOUHVjEdu3xlyASdKLOor6A01MihwghvnJLZz4h4PTILWd9T4aQUKc/l KUmBFKYlcU8HJ1D02/0C1cU6HlfBsYdSWj13+rgBEmjomb/6V3FNBAWmx8494L4cEUs8 sTjQ== 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=5zG/JSxfOUyvHzSPuzw92Auq72CKzFYuWlG5OHQCqgQ=; b=uHZpp0tCDLV8NVIFrGKXQa6Xc2xak+Xzfb6wPoXRpW+GtiO1gHdhfKBvJ8b8PtJgPA nEVdsH1PNPjqETmoahauymk4lfMXmOvh4xBZ0M1lecn2O/3Czowjw8/8jaonsrfWUv0O 9wPPhaBD+sDBhHeoAZVap+j8I1tJ5kp/xraDtuRyEKViYXE66U2dkslJ19kpEPPhHLiI 5fa9KrjroMvvggdix9p/koH+dnthkpSccHJz0gGJgCyCptxfKs+o6jy9QrlGCnvn8qXN 5MgZbGJPDxL20YBmHF0sn6zMOiyPI4JJMPuQVeyW1JKi+PGYxyqaOBkdJZ5WBCkxVYTq UOwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EnOniVcc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 16si15713675ioe.32.2021.08.03.11.29.23; Tue, 03 Aug 2021 11:29:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EnOniVcc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S238816AbhHCS1o (ORCPT + 99 others); Tue, 3 Aug 2021 14:27:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:36172 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238793AbhHCS1n (ORCPT ); Tue, 3 Aug 2021 14:27:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 828EF60F38; Tue, 3 Aug 2021 18:27:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628015251; bh=b5coXSNVumOlwboi0Y8EY/7mMzZofAt1yR97rrjEWuo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=EnOniVccHYcbPUOoldYN5TcX8f3C+JRnuXOHZxWbtWJMY1Ak5Rft8Yu9IVWd25mIX iudADck47r7/bo4UFcQvUYnq8hgDIIjzrESTJ2ktslvjw9WlMl0U28hVWKLw//VWBu d1HQGlOXqV5jyTRfDykOOCsp1cM4DsXuauWnSHlIWKyLmujnwW7Gg7191OH5tv9Ysa r6GOfrOdkaj5I9PQoVYzh6TzMNLgh8Feahn8l0jBdxFecoTVsgKs5oI/+U3jfHaBUZ e/xx8m2hml8eTRRgpcXieQrEUdQnt/C/QMfdHCIeBhVM3y7czlpbR6cVa19JB2U3FE Bn+jkASbimQIA== Received: by mail-wm1-f48.google.com with SMTP id l11-20020a7bcf0b0000b0290253545c2997so2677634wmg.4; Tue, 03 Aug 2021 11:27:31 -0700 (PDT) X-Gm-Message-State: AOAM533jmkLPA1WOaooXymw+poBR9UqPrAzNR03Qht7E92QkvtT1XYkS +claN/LL0w43SmIRYzUubf67gbIQvsq9tSVH1+Y= X-Received: by 2002:a05:600c:414b:: with SMTP id h11mr5573870wmm.120.1628015250107; Tue, 03 Aug 2021 11:27:30 -0700 (PDT) MIME-Version: 1.0 References: <20210802145937.1155571-1-arnd@kernel.org> <20210802164907.GA9832@hoboy.vegasvil.org> <20210802230921.GA13623@hoboy.vegasvil.org> <20210803155556.GD32663@hoboy.vegasvil.org> <20210803161434.GE32663@hoboy.vegasvil.org> In-Reply-To: From: Arnd Bergmann Date: Tue, 3 Aug 2021 20:27:14 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v2] ethernet/intel: fix PTP_1588_CLOCK dependencies To: "Keller, Jacob E" Cc: Richard Cochran , Nicolas Pitre , "Brandeburg, Jesse" , "Nguyen, Anthony L" , "David S. Miller" , Jakub Kicinski , Arnd Bergmann , Kurt Kanzenbach , "Saleem, Shiraz" , "Ertman, David M" , "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 3, 2021 at 7:19 PM Keller, Jacob E w= rote: > > On Tue, Aug 3, 2021 at 6:14 PM Richard Cochran wrote: > There is an alternative solution to fixing the imply keyword: > > Make the drivers use it properly by *actually* conditionally enabling the= feature only when IS_REACHABLE, i.e. fix ice so that it uses IS_REACHABLE = instead of IS_ENABLED, and so that its stub implementation in ice_ptp.h act= ually just silently does nothing but returns 0 to tell the rest of the driv= er things are fine. I would consider IS_REACHABLE() part of the problem, not the solution, it m= akes things magically build, but then surprises users at runtime when they do no= t get the intended behavior. Arnd