Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1613605imm; Tue, 2 Oct 2018 11:00:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV638c0F7ha8DKlKqdTjsPLD5EDUv1AqDWvaJLJXBrbb+85KXj8B7XUFxzhtzhOR8+5HauXux X-Received: by 2002:a63:ad44:: with SMTP id y4-v6mr15228885pgo.138.1538503216816; Tue, 02 Oct 2018 11:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538503216; cv=none; d=google.com; s=arc-20160816; b=gnzjvCtJom1rArk/6R7QQ5VgyEGQSWbULtbMv7e9zIMr9Tpkc0fh2ZKqGRKUktUaas eiLTXlhUqcnisqJOJDq+PE7Exhh1o7W0ZTNFwJ9p7OCSAcFrSA766eowyse5J7UYz13a wIXpStrV5Gp3XcoyGKXjQiDelX57JV6JerKh7R9GOVeIMGh0GDOeg/b7BMJfGLuIHntS 2SeFiPAszecRyDL1k8TlvjaPORctS0UxxV9DXkR+L5c1ZuuL571Y2aGCNoJ3atRfj7SI 57WiVY2dAddj3Y6E/J69jeCZkn6P4vxmojTSsvxrSBEE7mHiSl1VsZd6h/LBJEGF+x+r i0Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tX97xYLhCZrGHl8og9Qk69El28f07YxnhNPgoplAH08=; b=BDRGOoUh+y8Eu9NilLGR+6JkrSepKslsgIY+Ua6Y8Ryrasom8qK7VwLLI97Qho52nc D6r+39sl86Yj+v7J7UX0JJgWaX1FNOZEbKdLANm04lu6aE2H1Fzep+L+Ksko8LuNknW6 JocOC+ClHb5Fhv1l36RRmYPCY7t1zurZt3cb478hXJMFLGhnqmdiRXiQYd1R0avcKjPd DDMAn++xV2+zYp6q0SjGQQ3/HXMs8GT/6s/rnmwjfa2I8OS5eRNg79LCAQ+dmObVsafB K5NQ6CedJyEXg8h9Kw+g/UNw39yfYkD2CJc+/FV5bJ0+Pp6HuLJ/riQ8lNRpXrAveDrX 2N6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=aOZv02xt; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o11-v6si16383506pls.76.2018.10.02.11.00.01; Tue, 02 Oct 2018 11:00:16 -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=@google.com header.s=20161025 header.b=aOZv02xt; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727470AbeJCAI6 (ORCPT + 99 others); Tue, 2 Oct 2018 20:08:58 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:37524 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726679AbeJCAI5 (ORCPT ); Tue, 2 Oct 2018 20:08:57 -0400 Received: by mail-pf1-f194.google.com with SMTP id j23-v6so313103pfi.4 for ; Tue, 02 Oct 2018 10:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tX97xYLhCZrGHl8og9Qk69El28f07YxnhNPgoplAH08=; b=aOZv02xtm358uVrjerHYykczSATtkZt7pE4297OxS3ME0QqxmpfiaVCKkd4Dkx5Y2w 8gyOAcXLm/04M9xGpIyhT2bJhDNPCw7E5HmcFtNOxXysiV+AzUxgqOFqPkAhjF9YklDj qvq9Lms0caEuDAe+V+BRQODMcD4UVbJ7kdY+fSpgDQhWnVblctxi/P9jnLKO4MlDrrOY QcZ649Q0bXV3A501bF5HrQjCa0wpieYfU7UljUgQW9IYRDGaqUV/2GKd0P72BbIbEY7J 0MejAjuFwYzes3ecXOp0XjfnQAhugBYPyrW5tVAnYvwg0J/PTb29EZi81MszxGZwe1rw G4Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tX97xYLhCZrGHl8og9Qk69El28f07YxnhNPgoplAH08=; b=D1TU0oh3pMzTCRlhXZWtqWQWn3/teAmsN8CfflK5RNn7WjrUR8eKxpp/Gup6fA2RWn 23nrwYpEPBLsRptYLmlLR87pOLkL0iRyUuvu1Bw88SwTZQemcHDD2F29kUUNVzFjo8bf gWoGPOuNvxBF6Dpco8Dwp11AElYMx1+i8oIgBFWofkL8rRCGubchAtDN6PyFh5aPWrqs Z16XL4ivLAFUqDuwSLVvMIYyThlnbktHfMZXcgN9HXlW70KLcZVzZvksFvcKP0AQ5Njm RBN/7eIdhzfUvARRIzgc0eC5MTRM2uFUx8Z86tb7bMls85y6d8MxBkKCDEzBljk6IV5U nXyg== X-Gm-Message-State: ABuFfojFIuJF+Iq2aw2rr78MpfZYAkAukDdFmaxYNxGtzCm2SPkRhdnc nnFRkDiIMLY4WNKUJkjt4hiYtcR4yPIXROID1TBvzA== X-Received: by 2002:a63:a047:: with SMTP id u7-v6mr15553852pgn.145.1538501069685; Tue, 02 Oct 2018 10:24:29 -0700 (PDT) MIME-Version: 1.0 References: <20180930205448.26205-1-natechancellor@gmail.com> <10b12992-3570-4646-374b-82cbd7276839@acm.org> In-Reply-To: <10b12992-3570-4646-374b-82cbd7276839@acm.org> From: Nick Desaulniers Date: Tue, 2 Oct 2018 10:24:18 -0700 Message-ID: Subject: Re: [PATCH] libosd: Remove ignored __weak attribute To: bvanassche@acm.org Cc: Nathan Chancellor , ooo@electrozaur.com, "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 1, 2018 at 6:16 PM 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}; > > 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. Sorry, my understanding was that global variables either occupy the .bss section or the .data section, depending on whether they were zero-initialized vs initialized to non-zero, respectively (where non-initialized are treated as zero initialized). Looks like without the explicit zero initialization, compilers will put the symbols in a "common" section, which `man 1 nm` says is also unitialized data. I didn't think .bss sections occupied space in an object file or binary; the kernel's loader would set up the mappings at execution? Can you clarify? > > 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? > > Thanks, > > Bart. -- Thanks, ~Nick Desaulniers