Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp364760imm; Wed, 17 Oct 2018 01:10:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV60pen6AByH6gNKtpjTuoAuC/iV2f+aq3llKgzwUDvX4F+lJO9bA1dFqikLGmOPbln3n3D4w X-Received: by 2002:a63:df03:: with SMTP id u3-v6mr4783265pgg.362.1539763842939; Wed, 17 Oct 2018 01:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539763842; cv=none; d=google.com; s=arc-20160816; b=yYy1M2oelnLZcg5F3/KNr7DisqarVksjIqCrtwyd9qJbWe6nbVqZwdiBXHiplrJRZx +zipJ6DPErc3TD22g6wXmTi3UbRMfaq0k6YaXh6vzgrR248Qbzk7TCRJusNP67VfINkJ HGFBQp0NUzFvnTpB2g1T0O4MCwjA6oS/SMIAY/rheXczjT8o79mDFuz8FWp9iKnBH/I0 iFCtcLCWldzeKr9Dy6QOX9aZ30Hh62DHXKzvenf5xNDI1xfz8R/NCSpPY3yr86DE0SuJ w1D+agSJKcMvhaAzNqLnzBwnNcGGB4PJaoOcZhywbU/xcA/4axt9uH7GUuKo2rqTDLsf 9XYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rJrI2j69eN6/HmnToQAGKaT7C7ls83agIo2TyKHiiEw=; b=0QNlJbPlJxCHpDhLLfaVtl2X90voNQzYPW1ZKsY/sA6W4A7FAKoL6POGNAX9DDqCwu V+sscOLTIdouWR6+NHEi+u8B/6s3iFckk13x+JVXX6BTfShwd9J9OHZHGqUwY/wJmOAy XTVJD+yVgyI5ui/4iQlaWw5jGorIB8zc841b5p4oJA7HZwFv6LW5deKBht22guMwAOwA h5Yg7RrQ3XeHWekXvub/iYDcSjDBr/MxkTD9sfYIBeQyUwgPZkBBij8zYPfvLlT3NufC 7iT4nbL9oEC0/JjDMFAwCTZkc36i/NvqMuE5yEkwWss9gbk34U6d8WA1mSOdUrMIihb+ /itw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=r2ZexZJj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1-v6si16556075pgh.244.2018.10.17.01.10.26; Wed, 17 Oct 2018 01:10:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=r2ZexZJj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727378AbeJQQD4 (ORCPT + 99 others); Wed, 17 Oct 2018 12:03:56 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33126 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727008AbeJQQD4 (ORCPT ); Wed, 17 Oct 2018 12:03:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rJrI2j69eN6/HmnToQAGKaT7C7ls83agIo2TyKHiiEw=; b=r2ZexZJjtOvcljsd0NkNx0nbS VZMqRnPwuxAvEbdUDJVuCQAk1RoESz99qxp7igVIGKJ+pUC0vmH7TnJjVkDr3Ml8BoHicpZnTjmFq ji4ym+uPzCl6XwsEqD/4woRSvG+xXaOJk5MfnMoIfVhMlQtaAzbQAIhUyY8W1JVPjtnA0JJ9+tYFK hdeZ9aG0JunwyP8jsilbQTS3FQOG95PgEj2Cxy+0/yEKAQlpMtOtdcSZMmbUN5MwhK6sA9hNUlZTD 2/lKkOY8LuYKQKAeAVB3T4GXe3eDHcWHegfR5X8482jg7EpL/2+s80qlEWSIi1ccjJC831qhzNMxr E99RfBVOg==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCgtQ-0006UA-4K; Wed, 17 Oct 2018 08:09:24 +0000 Date: Wed, 17 Oct 2018 01:09:23 -0700 From: Christoph Hellwig To: Finn Thain Cc: Hannes Reinecke , "James E.J. Bottomley" , "Martin K. Petersen" , Michael Schmitz , linux-scsi@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 5/6] esp_scsi: De-duplicate PIO routines Message-ID: <20181017080923.GC24540@infradead.org> References: <35ac9f31-7068-ab93-4629-363ee0bb4c70@suse.de> <2b48c925-73f0-0ca0-2f3c-3c35d90010ba@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 16, 2018 at 04:39:07PM +1100, Finn Thain wrote: > > Perhaps I've misunderstood your concern here. Is it a problem that > esp_scsi.ko may or may not export the function, depending on .config? > > For example, if esp_scsi.ko came from a build with CONFIG_SUN3X_ESP=y && > !CONFIG_SCSI_ZORRO_ESP && !CONFIG_SCSI_MAC_ESP, then it would export no > esp_send_pio_cmd() symbol. > > A dummy function (mentioned above) might then avoid a link error from > "modprobe zorro_esp" or "modprobe mac_esp" in this scenario. (The modules > would load but fail to work properly.) > > This seems a bit too contrived so I'll post v3 for you to consider. Please leave the possibly unused exports as-is.