Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp970099imm; Mon, 1 Oct 2018 23:55:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV62gBZwF+iQEx1W7R3cTVOW6VS6FXOi/gJEVdHVL+SNnsladsuOI6+dDp7K6pcAzP9Q0PMo4 X-Received: by 2002:a17:902:6e17:: with SMTP id u23-v6mr15427359plk.28.1538463347424; Mon, 01 Oct 2018 23:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538463347; cv=none; d=google.com; s=arc-20160816; b=w0yb4wr83/rCY0ApjVfczSHu0re+wcG9O4rqqPysaNJOhmlgVCcUG8ijgCBp/oehf7 HOPBPSjKdHUK8nC1yOV5toExSjWUA/CHbiND+X0RyN8xpwS3Twcnt53Cc2hYplEi/S5f 1XBnIfSvnvM27CHKIikv96mtHC1W1a3nfxUEKk1eDgmP3hkESlux3AqHnidLrBLp8qAr lnxjP0bVBuUhj3O+KS1oaZeNjTbkmOagqaC66DbiQ0BBwEbtOe4qpKsdalh8QXsNYiUl 1mGiHdRb14LV0KEg9+9hWeH0ZP9VbwHdrJNUBtIdoXsRf/i4LUgDWrrmpULyAYmFOPeK WFTA== 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=NsudmGgl9KkY4yvHI4pOMwykhxIfBPcwuEQH6q+dJUM=; b=AtIw+du8dr3fWrx5iqRuAmlylC9oQV4rZQS1FAmP4k9hBnkZA4+EXBwXiVilZ1Zimt lvSsd0CvXR8p3SyirM4UIK6G9LdP0EAPGCWeVjyG7KcvPNBQkXVEp4ewGA7gbckXyJf/ sPS5EktJyD6AuP0vBpLbL+FM8cjshHu9fFD8u+7oOxc4ykoC9Vq6uddquICCWcPsUti4 XSDm0yS2MJRxgarzdbkurM8EDjczQ/PAFUavFmTNIFKPGix6BMmux9N9/gNXUa7HTECK cOvJl6fkZ0exwhnhtpSYPwBEAe/gPHlcbA7cWHVDcisp9c7w/MHRA3/CaSe7QXc5GF51 tDmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kzIcoe0Z; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4-v6si15081356plj.321.2018.10.01.23.55.30; Mon, 01 Oct 2018 23:55:47 -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=pass header.i=@gmail.com header.s=20161025 header.b=kzIcoe0Z; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726637AbeJBNhI (ORCPT + 99 others); Tue, 2 Oct 2018 09:37:08 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52364 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbeJBNhI (ORCPT ); Tue, 2 Oct 2018 09:37:08 -0400 Received: by mail-wm1-f68.google.com with SMTP id 189-v6so1025118wmw.2; Mon, 01 Oct 2018 23:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NsudmGgl9KkY4yvHI4pOMwykhxIfBPcwuEQH6q+dJUM=; b=kzIcoe0ZU8tpQQQZswjGlsPlRbatyWpUpLjTx8xvv5q6VQ7l/NueSD7wqcMTdrZYV/ ykdIiDQHK2oPzN7mj96DVD3q6rhrH3o5gy3Pqb31LeLVPsHjHBYHDPIksgO4ahdRFvUy BRQTAqN6QrplDtdiMZE2DgEkSd4fq0h8jVpDjAJ+WBvd/ZLQ1BwZmoTIHjY9NGs7riBH pnocz3YRlI4MgVNV9VgIMMjmWgzVfzBZJayXEHOHb9KSS1bivKw/0q4zqKMEkENVSH/w xpndllLO7KSfXGiDM6gW1A2n5U3flNYA6TpfdqRy8t2wfDpA5k7sYbvcyjxJe4jrVMtP PyeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NsudmGgl9KkY4yvHI4pOMwykhxIfBPcwuEQH6q+dJUM=; b=jBkBF6tr7ukuzaR8Y+IFYfAxBHlWrmiobmWpi7A3XgI4mFoZltrYR0tSay5dFH+EgD Vv6GbHnLtkJLW8mt63EdpVEjuZRaA56KAma1IgzK+vwNKSL5xKj/65P3ggLSFdn+V2JM aZ7Rc+nB3UDPTS87fck/8pk/pfF6gx8ZhfBqBObnLHQ6VovZkkLmSoMWX42XT0inoaLY psDFQGbWxlyg0+sNv8fO7oPWrMNTlR8vQ3XNDb5KH6x8fbxMJ1hQT1qGEv2y3UeoUht4 yrPhqWJJaZQedkjcOhmu5pTJMH1fXAvZ/8+8jMz19uGisYQNjKESnIJJDodikS88JlGW yuXQ== X-Gm-Message-State: ABuFfojfDze8ecwHCAGGLGtBH8L5MzbsOicUkBrM7jdfTK8ogt2pwB5r HeXkosk5gj1QVLn5XF48UzM= X-Received: by 2002:a1c:1a88:: with SMTP id a130-v6mr869197wma.142.1538463324134; Mon, 01 Oct 2018 23:55:24 -0700 (PDT) Received: from flashbox ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id m12sm7932286wrx.75.2018.10.01.23.55.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Oct 2018 23:55:23 -0700 (PDT) Date: Mon, 1 Oct 2018 23:55:22 -0700 From: Nathan Chancellor To: Bart Van Assche Cc: Boaz Harrosh , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers Subject: Re: [PATCH] libosd: Remove ignored __weak attribute Message-ID: <20181002065522.GA27010@flashbox> References: <20180930205448.26205-1-natechancellor@gmail.com> <10b12992-3570-4646-374b-82cbd7276839@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10b12992-3570-4646-374b-82cbd7276839@acm.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 01, 2018 at 06:16:32PM -0700, Bart Van Assche wrote: > On 9/30/18 1:54 PM, Nathan Chancellor wrote: > > diff --git a/include/scsi/osd_types.h b/include/scsi/osd_types.h > > index 48e8a165e136..6b6fdcafa6cc 100644 > > --- a/include/scsi/osd_types.h > > +++ b/include/scsi/osd_types.h > > @@ -28,7 +28,7 @@ struct osd_obj_id { > > osd_id id; > > }; > > -static const struct __weak osd_obj_id osd_root_object = {0, 0}; > > +static const struct osd_obj_id osd_root_object = {0, 0}; > Hi Bart, > Structure definitions should occur in .c files instead of in header files > especially if the header file is included from multiple source files. Please > consider moving the definition of osd_root_object into a .c file. > Additionally, zero initializers should be left out to minimize the size of > object files. > I'm perfectly happy to make this change in a v2 if necessary. > Boaz, the most recent osd patch that is neither trivial nor treewide > refactoring is six years old (51976a8c85ce ("[SCSI] osd_uld: Add osdname & > systemid sysfs at scsi_osd class"). That suggests that nobody is using this > driver anymore. Can this driver be removed from the kernel tree? > However, this is certainly a better option if possible. > Thanks, > > Bart. Thanks for the comments! Nathan